Open thucpn opened 2 weeks ago
Latest commit: c17351b727fb0e2f0492a88e5e37b4d53f61cc25
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
The update significantly modernizes the Next.js project by upgrading to Next.js 15 and refreshing many dependencies, ensuring better compatibility and features. Configuration changes have been applied for improved server handling, and external dependencies are streamlined for enhanced performance.
File Path | Summary |
---|---|
.changeset/curly-eyes-rest.md |
Provides a summary of the Next.js upgrade and other changes. |
templates/types/streaming/nextjs/next.config.json |
Moved serverComponentsExternalPackages to a new top-level key serverExternalPackages . |
templates/types/streaming/nextjs/package.json |
Updated multiple dependencies: @radix-ui/react-* , next , react , tailwind-merge , etc. |
templates/types/streaming/nextjs/webpack.config.mjs |
Added canvas: "commonjs canvas" to external dependencies. |
Note: Dependencies in
package.json
are upgraded to newer versions, improving overall application performance and feature set.
In the code where updates flow,
Next.js 15 began to glow.
Sharp and onnxruntime, now aligned,
External packages, redefined.
Dependencies dance, freshly renewed,
The rabbit cheers, oh what a view!Let projects thrive, as change takes flight,
In lines of code, by day and night. 🐰✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Deprecated dependencies:
$ pnpm i
WARN 10 deprecated subdependencies found: @humanwhocodes/config-array@0.11.14, @humanwhocodes/object-schema@2.0.3, are-we-there-yet@2.0.0, dommatrix@1.0.3, fs-promise@2.0.3, gauge@3.0.2, glob@7.2.3, inflight@1.0.6, npmlog@5.0.1, rimraf@3.0.2
Already up to date
Progress: resolved 1056, reused 1007, downloaded 0, added 0, done
WARN Issues with peer dependencies found
.
├─┬ @llamaindex/pdf-viewer 1.1.1
│ ├─┬ @wojtekmaj/react-hooks 1.17.2
│ │ └── ✕ unmet peer react@"^16.8.0 || ^17.0.0 || ^18.0.0": found 19.0.0-rc-8971381549-20240625
│ ├─┬ react-intersection-observer 9.5.1
│ │ └── ✕ unmet peer react@"^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0": found 19.0.0-rc-8971381549-20240625
│ ├─┬ react-pdf 6.2.2
│ │ ├── ✕ unmet peer react@"^16.8.0 || ^17.0.0 || ^18.0.0": found 19.0.0-rc-8971381549-20240625
│ │ └── ✕ unmet peer react-dom@"^16.8.0 || ^17.0.0 || ^18.0.0": found 19.0.0-rc-8971381549-20240625
│ └─┬ react-window 1.8.9
│ ├── ✕ unmet peer react@"^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0": found 19.0.0-rc-8971381549-20240625
│ └── ✕ unmet peer react-dom@"^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0": found 19.0.0-rc-8971381549-20240625
├─┬ ai 3.2.11
│ └─┬ @ai-sdk/react 0.0.11
│ └─┬ swr 2.2.0
│ ├── ✕ unmet peer react@"^16.11.0 || ^17.0.0 || ^18.0.0": found 19.0.0-rc-8971381549-20240625
│ └─┬ use-sync-external-store 1.2.2
│ └── ✕ unmet peer react@"^16.8.0 || ^17.0.0 || ^18.0.0": found 19.0.0-rc-8971381549-20240625
├─┬ lucide-react 0.294.0
│ └── ✕ unmet peer react@"^16.5.1 || ^17.0.0 || ^18.0.0": found 19.0.0-rc-8971381549-20240625
├─┬ next 15.0.0-rc.0
│ ├── ✕ unmet peer react@19.0.0-rc-f994737d14-20240522: found 19.0.0-rc-8971381549-20240625
│ └── ✕ unmet peer react-dom@19.0.0-rc-f994737d14-20240522: found 19.0.0-rc-8971381549-20240625
├─┬ vaul 0.9.1
│ ├── ✕ unmet peer react@"^16.8 || ^17.0 || ^18.0": found 19.0.0-rc-8971381549-20240625
│ ├── ✕ unmet peer react-dom@"^16.8 || ^17.0 || ^18.0": found 19.0.0-rc-8971381549-20240625
│ └─┬ @radix-ui/react-dialog 1.1.1
│ └─┬ react-remove-scroll 2.5.7
│ ├── ✕ unmet peer react@"^16.8.0 || ^17.0.0 || ^18.0.0": found 19.0.0-rc-8971381549-20240625
│ ├─┬ react-remove-scroll-bar 2.3.6
│ │ ├── ✕ unmet peer react@"^16.8.0 || ^17.0.0 || ^18.0.0": found 19.0.0-rc-8971381549-20240625
│ │ └─┬ react-style-singleton 2.2.1
│ │ └── ✕ unmet peer react@"^16.8.0 || ^17.0.0 || ^18.0.0": found 19.0.0-rc-8971381549-20240625
│ ├─┬ use-callback-ref 1.3.2
│ │ └── ✕ unmet peer react@"^16.8.0 || ^17.0.0 || ^18.0.0": found 19.0.0-rc-8971381549-20240625
│ └─┬ use-sidecar 1.1.2
│ └── ✕ unmet peer react@"^16.8.0 || ^17.0.0 || ^18.0.0": found 19.0.0-rc-8971381549-20240625
└─┬ llamaindex 0.4.3
└─┬ chromadb 1.8.1
└── ✕ unmet peer @google/generative-ai@^0.1.1: found 0.12.0
Not releasing yet, waiting for the other packages to use react 19
Follow upgrade guides: https://rc.nextjs.org/docs/app/building-your-application/upgrading/version-15 https://react.dev/blog/2024/04/25/react-19-upgrade-guide
Summary by CodeRabbit
New Features
Configuration Changes
serverComponentsExternalPackages
fromexperimental
to the top-levelserverExternalPackages
innext.config.json
.sharp
andonnxruntime-node
toserverExternalPackages
.Dependency Updates
react
,next
,typescript
,eslint
,prettier
, and more.Build Enhancements
canvas
as an external dependency in the webpack configuration.