Repository navigation
fix(deps): upgrade Next.js to 16.4.2 - #100
Merged
Merged
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis dependency-only PR pins Next.js to 16.4.2 and regenerates the lockfile, reducing upstream audit findings while retaining the existing lint configuration and application dependency versions. Verification indicates unchanged type-check, build, runtime, route, browser, and container behavior; reviewers should separately track the documented deprecation warnings, residual vulnerabilities, lint baseline, and required rebase. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
keyurgolani
force-pushed
the
fix/deps-next-16-security
branch
from
October 20, 2026 10:32
17a9509 to
2fae14e
Compare
npm audit reports critical upstream advisories against next@16.1.1. 16.4.2 is the newest 16.x and picks up the upstream fixes. The lockfile change stays inside next's own dependency tree.
…agent hooks Next 16.2 logs every Server Function call with its arguments in next dev, which prints values typed into forms. 16.3 writes AGENTS.md into the repo when next dev runs under a coding agent, and 16.4 lets agent-run builds fail once on a new advisory. Turn all three off.
keyurgolani
force-pushed
the
fix/deps-next-16-security
branch
from
October 20, 2026 10:34
2fae14e to
98158d8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements CHECKMATE-22.1 · gate A (item 16 follow-up)
Refs #92
Bumps
nextfrom 16.1.1 to 16.4.2, the newest 16.x. npm audit reports critical upstream advisories againstnext@16.1.1(GHSA-p293-qw3h-jr36, GHSA-2xp9-vwfh-vxw4), and 16.4.2 picks up the upstream fixes.The only code change is
next.config.ts, which turns off three new defaults:logging.serverFunctions. Since 16.2,next devprints every Server Function call with its arguments, so saving Settings would print what was typed into the form.agentRules. Since 16.3,next devwrites anAGENTS.mdinto the repo root when it runs under a coding agent.experimental.agentUpgrade. Since 16.4, agent-run builds query the advisory API and can fail once on a new advisory. npm audit already tracks that.The lockfile only moves packages in
next's own tree:@next/env,@next/swc-*,@swc/helpers, sharp 0.35.5 with its@img/*binaries, postcss 8.5.23 (now deduped to the top level, soviteand@tailwindcss/postcssresolve it too),nanoid,baseline-browser-mappingand a nestedsemver. The installedreactstays at 19.2.3. The App Router's bundled React canary moves withnext.eslint-config-nextstays at 16.1.1. Moving it to 16.4.2 adds 30 lint errors and 1 warning across 20 files. The errors come fromeslint-plugin-react-hooks7.1, which 16.4.x requires, mostlyset-state-in-effecton mounted-flag effects like this one inheader.tsx. The lint gate doesn't allow the increase and the bump fixes nonextadvisory, so it can go with gate B's lint baseline.npm audit:
next@16.1.1next@16.4.2next,postcss,sharpandnanoiddrop out. Still critical:vitestand@vitest/coverage-v8. Still high:brace-expansion,browserslist,flatted,js-yaml,minimatch,picomatch,rollup,source-map-js,undici,vite, andbraceswith the four packages that pull it in (micromatch,fast-glob,@next/eslint-plugin-next,eslint-config-next).braceshas no fixed release, and@next/eslint-plugin-next16.4.2 still pinsfast-glob@3.3.1.Verified on the rebased branch, against
nextwith the gate A fixture:next.config.tslints clean, no new findings overall, noeslint-disableadded.npx tsc --noEmit: 0 errors.npm test: 23 files, 290 tests pass on the PocketBase fixture.npm run buildwith both PocketBase URLs on127.0.0.1:9passes, same route table.npm startwith the same closed URLs:/,/signin,/signup,/discoverand static assets return 200 with the same page text as 16.1.1. Sign-in and sign-out cookies, the proxy's 401 on protected API routes, and Server Action origin checks behave the same.next devunder an agent no longer writesAGENTS.md.DOCKER_BUILD=true) traces the same project files as 16.1.1, and the production image builds and serves the same pages.New build warnings, nothing blocking:
runtime = 'edge'inopengraph-image.tsxandtwitter-image.tsx.fsreads inschema-init.tspull the whole project into standalone output. 16.1.1 traced the same files without saying so.ImageResponsealso switched its default font to Geist in 16.2, so the OG images render in Geist now.No owner steps.
Summary by Sourcery
Upgrade Next.js to the latest 16.x release while preserving existing development, build, and runtime behavior.
Bug Fixes:
Enhancements:
Tests: