How to track bug fixes and Next.js releases #82252
-
SummaryWe are struggling to follow how and when bugs are being fixed for this project. We encountered security vulnerabilities due to the @babel version Next was dependent on back in April along with several others. The PR was closed and merged into the canary branch months ago, but we are not seeing any official version releases that include it. There are many pre-releases, and we see a recent back-port of some issues, but it does not appear this fix made it. What is the recommended way for users of the framework to plan for migrating to newer version of Next.js? Reporting Issue: #77879 Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
I think, right now, the simplest way to check what you want to check, a dependency change, could be to go to: Notice that the Typically minor releases, 15.3 -> 15.4, have a blog post attached to it, which communicates what's changing, https://nextjs.org/blog/next-15-4 For backport fixes, the GitHub page of the patch is a good place to go to. https://github.com/vercel/next.js/releases/tag/v15.4.5 - notice there's a Note indicating that this release backports fixes, and the fixes are listed. |
Beta Was this translation helpful? Give feedback.
-
Since the official stable version of Next.js doesn’t include the fix yet, you have two options:
"overrides": {
"@babel/core": "^7.24.0"
}
"resolutions": {
"@babel/core": "^7.24.0"
} Then Runyarn run Important
rm -rf node_modules package-lock.json # or yarn.lock
npm install # or yarn install and then Test your app properly after doing this. |
Beta Was this translation helpful? Give feedback.
so for solving this issue of the old vulnerable
@babel/core
version still appearing in the runtimeUse
resolutions
inpackage.json
(if you're using Yarn):Latest version of babel/core above
If using npm, run:
Delete and clean everything before building:
In your Dockerfile, make sure:
node_modules
from earlier layers.After rebuilding the Docker image, run:
to verify only the new version is present.
This ensures the old ver…