-
Notifications
You must be signed in to change notification settings - Fork 639
refactor: update next examples to v16 #7088
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
There was a problem hiding this 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 updates the Next.js examples to version 16, aligning with the latest Next.js release. The changes include upgrading dependencies, updating TypeScript configurations to match Next.js 16 requirements, and adding proper type annotations.
Key changes:
- Updated Next.js from v15.2.3 to v16.0.0 and React from v18.3.1 to v19.2.0
- Modified TypeScript configuration to use
jsx: "react-jsx"instead ofjsx: "preserve" - Added type annotations and theme-related attributes for better type safety
Reviewed Changes
Copilot reviewed 5 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| examples/theming/package.json | Updated Next.js to v16.0.0, React to v19.2.0, and removed --no-lint flag from build script |
| examples/theming/tsconfig.json | Changed jsx compiler option to react-jsx and added .next/dev/types path to include array |
| examples/nextjs/package.json | Updated Next.js to v16.0.0, React to v19.2.0, and removed --no-lint flag from build script |
| examples/nextjs/tsconfig.json | Changed jsx compiler option to react-jsx and added .next/dev/types path to include array |
| examples/nextjs/src/app/layout.tsx | Added Metadata type import, typed metadata export, and added theme data attributes to html element |
Update our Next.js examples to v16: https://nextjs.org/blog/next-16
Changelog
New
Changed
Removed
Rollout strategy
This is a change only to our examples