Skip to content

Upgrade Next.js to v16 and update dependencies#241

Draft
mirhamasala wants to merge 2 commits intomainfrom
mm/upgrade-nextjs
Draft

Upgrade Next.js to v16 and update dependencies#241
mirhamasala wants to merge 2 commits intomainfrom
mm/upgrade-nextjs

Conversation

@mirhamasala
Copy link
Collaborator

@mirhamasala mirhamasala commented Feb 13, 2026

📝 Description

This PR upgrades the project from Next.js 15 to Next.js 16, along with related dependency updates and TypeScript configuration improvements to ensure compatibility with the latest framework version.

  • Type: Refactor / Dependency Update

🛠️ Key Changes

  • Upgraded Next.js from ^15.5.9 to 16.1.6 (major version)
  • Updated React from ^19.2.1 to 19.2.4
  • Updated React-DOM from ^19.2.1 to 19.2.4
  • Updated TypeScript types for React and React-DOM
  • Updated @filecoin-foundation/ui-filecoin from ^0.7.4 to ^0.7.5
  • Added --webpack flag to dev and build scripts for compatibility
  • Changed TypeScript jsx compiler option from "preserve" to "react-jsx"
  • Added .next/dev/types/**/*.ts to TypeScript include paths
  • Removed ignored dependencies from dependabot configuration

🔖 Resources

Updated the dependabot.yml file to remove the ignored dependencies for "next" and "@types/node", streamlining the dependency update process.
Updated various dependencies in package.json and package-lock.json, including upgrading "next" to version 16.1.6 and "@filecoin-foundation/ui-filecoin" to version 0.7.5. Modified TypeScript configuration to change JSX setting from "preserve" to "react-jsx" and included additional type definitions for better development support.
@FilOzzy FilOzzy added this to FOC Feb 13, 2026
@vercel
Copy link

vercel bot commented Feb 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
filecoin-cloud Ready Ready Preview, Comment Feb 13, 2026 3:44pm

Request Review

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the project’s Next.js framework version (15 → 16) and aligns related tooling/configuration (React, TypeScript, scripts, dependency automation) to keep the app compatible with the new major release.

Changes:

  • Upgraded next to 16.1.6 and updated React/React DOM and their type packages.
  • Updated Next.js scripts to force Webpack and adjusted TypeScript JSX/include settings for Next-generated types.
  • Simplified Dependabot config by removing ignored dependencies and refreshed the lockfile.

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 3 comments.

File Description
tsconfig.json Updates JSX mode and expands TS include globs to cover additional Next-generated types.
package.json Bumps Next/React versions and modifies build/dev scripts for Webpack compatibility.
package-lock.json Updates resolved dependency graph for the Next 16 / dependency bumps.
.github/dependabot.yml Removes previously ignored dependencies so Dependabot will update them again.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"frontmatter-markdown-loader": "^3.7.0",
"gray-matter": "^4.0.3",
"next": "^15.5.9",
"next": "16.1.6",
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

next is pinned to an exact version (16.1.6) while most other dependencies use semver ranges (^). If this isn't intentional, consider using a caret range (e.g., ^16.1.6) to allow receiving compatible minor/patch updates (including security fixes) without manual edits.

Suggested change
"next": "16.1.6",
"next": "^16.1.6",

Copilot uses AI. Check for mistakes.
Comment on lines +32 to 35
"react": "19.2.4",
"react-csv": "^2.2.2",
"react-dom": "^19.2.1",
"react-dom": "19.2.4",
"react-markdown": "^10.1.0",
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

react/react-dom are pinned to exact versions while the rest of the dependencies largely use ^ ranges. If there’s no specific need to lock to exact patch versions, switching back to semver ranges helps keep the project up to date with compatible patches automatically.

Copilot uses AI. Check for mistakes.
Comment on lines +50 to +52
"@types/react": "19.2.14",
"@types/react-csv": "^1.1.10",
"@types/react-dom": "^19",
"@types/react-dom": "19.2.3",
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@types/react and @types/react-dom are pinned to exact versions. If the intent is to track React 19 types over time (similar to other deps), consider using a compatible range (e.g., ^19) to reduce manual maintenance when patch releases land.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: 📌 Triage

Development

Successfully merging this pull request may close these issues.

1 participant