[Snyk] Security upgrade next from 14.2.13 to 15.5.16#101
Conversation
…t-js/pnpm-lock.yaml to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-NEXT-16638674
|
The upgrade from Next.js v14 to v15 is a major version change with significant breaking changes that require code modifications and careful review of application behavior. The two most impactful changes are the move to asynchronous request APIs and a fundamental shift in caching strategy. Key Breaking Changes:
Recommendation:
|
⛔ Snyk checks have failed. 2 issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
There was a problem hiding this comment.
PR Complexity Score: 1.8 - Trivial
View Breakdown
- Lines Changed: 444
- Files Changed: 2
- Complexity Added: 0
- Raw Score: 14.88
Overview
This PR upgrades the payment-components/next-js app from Next.js 14.2.13 to 15.5.16 and refreshes its dependency lockfile.
The primary goal is to align with the latest Next.js major version, including its new engine, peer dependency, and optional dependency requirements.
Changes are confined to the Next.js dependency declaration and the pnpm lockfile resolution graph.
Key Changes
- Bumps
nextfrom14.2.13to15.5.16inpayment-components/next-js/package.jsonto adopt the newest major Next.js release. - Updates
pnpm-lock.yamlto:- Resolve
next@15.5.16and the corresponding platform-specific@next/swc-*binaries. - Switch from
@swc/helpers@0.5.5to@swc/helpers@0.5.15and remove@swc/counter. - Update
styled-jsxfrom5.1.1to5.1.6with extended React peer support (incl. React 19). - Introduce new optional dependencies such as
sharp@0.34.5(plus its@img/*platform packages),detect-libc, andsemver@7.8.0, and dropbusboy/streamsearchthat were previously pulled in by older Next.js.
- Resolve
Risks & Considerations
- Next.js 15 is a major version bump and may introduce breaking changes in routing, app directory behavior, server actions, or build/runtime semantics; existing pages and API routes should be regression-tested.
- The Next.js engine requirement tightens to
^18.18.0 || ^19.8.0 || >= 20.0.0, so CI/CD and runtime environments must run a compatible Node.js version. - New optional
sharpand@img/*platform packages expand native dependency surface; image optimization behavior and build times on various platforms should be validated. - Next.js now declares peer compatibility with React 19/RC; while the project remains on React 18, future React upgrades could surface new compatibility issues that weren’t present with Next 14.
File-level change summary
| File | Change summary |
|---|---|
| payment-components/next-js/package.json | Updated the Next.js dependency from version 14.2.13 to 15.5.16. |
| payment-components/next-js/pnpm-lock.yaml | Regenerated lockfile to resolve Next.js 15.5.16 and its updated/transitive dependencies (including swc binaries, styled-jsx, sharp, and related packages). |
Snyk has created this PR to fix 1 vulnerabilities in the pnpm dependencies of this project.
Snyk changed the following file(s):
payment-components/next-js/package.jsonpayment-components/next-js/pnpm-lock.yamlVulnerabilities that will be fixed with an upgrade:
SNYK-JS-NEXT-16638674
Breaking Change Risk
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Allocation of Resources Without Limits or Throttling