Skip to content

fix(KNO-12386): upgrade Next.js 16.1.4 → 16.2.2#1378

Merged
kylemcd merged 2 commits intomainfrom
kyle-kno-12386-docs-small-upgrade-for-nextjs
Apr 2, 2026
Merged

fix(KNO-12386): upgrade Next.js 16.1.4 → 16.2.2#1378
kylemcd merged 2 commits intomainfrom
kyle-kno-12386-docs-small-upgrade-for-nextjs

Conversation

@kylemcd
Copy link
Copy Markdown
Member

@kylemcd kylemcd commented Apr 1, 2026

Summary

Upgrades Next.js from 16.1.4 to 16.2.2 in the lock file to resolve 5 security vulnerabilities flagged by Aikido (1 high, 2 medium, 2 low).

What changed

  • Lock file only — next was already declared as ^16.1.4 in package.json, so 16.2.2 is within the existing semver range
  • No code changes required

Why this is safe

This is a minor version bump (16.1.4 → 16.2.2). The 16.2.x release notes contain no user-facing breaking changes — primarily internal improvements (Turbopack, error page redesign, React upgrade, build optimizations). All new features are opt-in via experimental flags.

Type-checking (tsc) passes with identical results before and after the upgrade (pre-existing .next/types errors only).

@linear
Copy link
Copy Markdown

linear bot commented Apr 1, 2026

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 1, 2026

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

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Apr 2, 2026 4:52pm

Request Review

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Risk HIGH: Upgrades Next.js from 16.1.4 to 16.2.2 by updating yarn.lock to resolve security vulnerabilities.

Reasons

  • yarn.lock is modified, which triggers HIGH risk per classification rules regardless of diff size
  • Dependency version changes can introduce subtle runtime behavior changes even within semver-compatible ranges
  • The change upgrades a core framework dependency (Next.js) that affects the entire build and rendering pipeline
  • The diff is small (81+/71-, 1 file) and stays within the declared ^16.1.4 semver range, which limits actual risk in practice
  • The PR author provides clear justification that type-checking passes and no breaking changes are present in the 16.2.x release notes

Notes

  • Verify the Vercel preview deployment builds and renders correctly — this is the most important signal for a lock-file-only Next.js bump
  • Confirm no regressions in page rendering, especially dynamic routes and API routes
  • The author notes this resolves 5 security vulnerabilities (1 high, 2 medium, 2 low) flagged by Aikido — worth confirming those CVEs are addressed in 16.2.2
  • Since package.json is unchanged and Next.js was already declared as ^16.1.4, this is a low-friction upgrade despite the HIGH classification
Open in Web View Automation 

Sent by Cursor Automation: Docs PR classifier

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Copy link
Copy Markdown
Contributor

@cjbell cjbell left a comment

Choose a reason for hiding this comment

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

should this be in the package.json as well?

kylemcd added 2 commits April 2, 2026 11:46
Raises the minimum version to ensure fresh installs cannot resolve
to a version below the security fix threshold (16.1.7).

Addresses review comment from @cjbell.
@kylemcd kylemcd force-pushed the kyle-kno-12386-docs-small-upgrade-for-nextjs branch from bce3ddc to ad20fdb Compare April 2, 2026 16:47
@kylemcd kylemcd merged commit dca3c32 into main Apr 2, 2026
5 checks passed
@kylemcd kylemcd deleted the kyle-kno-12386-docs-small-upgrade-for-nextjs branch April 2, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants