Skip to content

chore: bump Next.js to 16.4.6 - #24

Merged
glindsay65 merged 1 commit into
developfrom
cursor/bump-next-16-4-6-180c
Nov 12, 2026
Merged

glindsay65 merged 1 commit into
developfrom
cursor/bump-next-16-4-6-180c

Conversation

@glindsay65

@glindsay65 glindsay65 commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

[Susan (Grok Bot)]

First website audit slice only. This bumps the exact pins for next and eslint-config-next from 16.2.6 to 16.4.6. Remaining advisories stay for later PRs. Do not merge; Grant will review and merge.

Why 16.4.6

  • Latest stable Next 16.x as of 12 Nov 2026. npm latest is 16.4.6. 16.5 exists only as canary (16.5.0-canary.48).
  • npm's recommended fix for the installed next@16.2.6 is next@16.4.6 (isSemVerMajor: false).
  • That clears the critical advisory on 16.2.6, GHSA-vcvr-r3jv-pc5j (Remote Code Execution in next/og ImageResponse, affected >=16.2.0 <16.3.6). This site uses that API in src/app/opengraph-image.tsx.
  • 16.4.6 also covers the later Next advisories that still applied through 16.4.0, including GHSA-2464-fhr4-w9xw, GHSA-673q-mjm6-r5xr, GHSA-p293-qw3h-jr36, and GHSA-2xp9-vwfh-vxw4.

What this PR does not change

  • Both packages stay exact pins and stay aligned with each other.
  • Lockfile came from npm install next@16.4.6 eslint-config-next@16.4.6 --save-exact. It was not hand-edited. npm audit fix and npm audit fix --force were not run.
  • No Prisma package, engine, or @prisma/dev tree change. Prisma stays 7.8.0.
  • No engines change, no README Node wording change, no app version change (stays 1.2.0), no CI workflow change. Lint is not added to CI. .github/workflows/ci.yml still runs only npm ci and npm run test:run on Node 24.
  • No application code change. next.config.ts is empty, and none of the 16.3/16.4 breaking flags were in use.

Verification

Local Node is v22.23.4 (npm 10.9.9). CI stays on Node 24.

npm ci (after the bump) exited 0:

> fdc-website@1.2.0 postinstall
> prisma generate

Loaded Prisma config from prisma.config.ts.

Prisma schema loaded from prisma/schema.prisma.

✔ Generated Prisma Client (v7.8.0) to ./node_modules/@prisma/client in 60ms

added 714 packages, and audited 716 packages in 16s

34 vulnerabilities (2 low, 15 moderate, 17 high)

npm run lint exited 0 with no problems:

> fdc-website@1.2.0 lint
> eslint

npm run test:run exited 0:

 RUN  v4.1.8 /agent/repos/website

 Test Files  9 passed (9)
      Tests  68 passed (68)
   Start at  17:33:57
   Duration  3.90s (transform 601ms, setup 793ms, import 995ms, tests 283ms, environment 6.96s)

npx tsc --noEmit exited 0 with no output. src/app/opengraph-image.tsx is part of that check (**/*.tsx). The import is still ImageResponse from next/og. In 16.4.6 the Node constructor is constructor(element: ReactElement, options?: ImageResponseOptions), and this file passes a static element plus { width: 1200, height: 630 }. It takes no route params or id, so the Next 16 async image-generator params change does not apply. The file renders site copy only (HOME_HERO), not request input.

npm run build / next build was not run locally. It fails at /api/sync without DATABASE_URL on agent machines. No DATABASE_URL was invented, and prisma db push was not run.

Lockfile

Prisma did not move. prisma, @prisma/client, @prisma/adapter-pg, and @prisma/engines are still 7.8.0. The existing @prisma/dev stayed at 0.24.3. No new @prisma/dev tree was added.

Everything that moved is in the next / eslint-config-next install:

  • next, @next/env, @next/eslint-plugin-next, and every @next/swc-* binary: 16.2.6 → 16.4.6
  • eslint-config-next: 16.2.6 → 16.4.6
  • @swc/helpers: 0.5.15 → 0.5.23 (direct next dependency)
  • postcss: 8.5.15 → 8.5.23; nested next/node_modules/postcss 8.4.31 removed
  • nanoid: 3.3.12 → 3.3.20 (postcss@8.5.23 requires nanoid@^3.3.16)
  • sharp: 0.34.5 → 0.35.5, plus the @img/sharp-* and @img/sharp-libvips-* optional platform packages (same bump)
  • sharp's nested semver: 7.8.0 → 7.8.6
  • added: @img/sharp-freebsd-wasm32@0.35.5, @img/sharp-webcontainers-wasm32@0.35.5, @img/sharp-wasm32/node_modules/@emnapi/runtime@1.11.3
  • fastq: 1.20.1 → 1.20.3, dev-only, under eslint-config-next → @next/eslint-plugin-next → fast-glob → @nodelib/fs.walk (fastq@^1.6.0)

Nothing outside that tree moved.

npm audit

total low moderate high critical exit
Before (next@16.2.6) 38 2 15 20 1 1
After (next@16.4.6) 34 2 15 17 0 1

The critical Next advisory is gone. next is no longer listed. postcss, sharp, and nanoid also dropped off the report because they moved with Next.

Left for later PRs, not touched here:

  • High: @graphql-tools/merge, @graphql-tools/schema, @graphql-tools/utils, @prisma/config, prisma, deepmerge-ts, mysql2, hono, body-parser, brace-expansion, browserslist, fast-uri, js-yaml, source-map-js, undici, vite, zod
  • Moderate: @prisma/dev, @hono/node-server, valibot, vitest, @vitest/mocker, typescript-eslint and its @typescript-eslint/* packages, minimatch, eslint-config-next, qs, baseline-browser-mapping
  • Low: @babel/core, esbuild

eslint-config-next is still a moderate finding via typescript-eslint. npm's suggested fix for that chain is a downgrade to eslint-config-next@15.5.29. That was not taken.

Changelog

Reviewed the 16.3 and 16.4 posts, the v16.3.0 and v16.4.0 release notes, and the version 16 upgrade guide. None of it requires a code change in this repo.

16.3 improvements for existing apps (less dev memory, build disk cache, native Node streams, smaller prefetch batches) apply with no config. Opt-in only, and left off: cacheComponents, partialPrefetching, Instant Navigations, the Rust React Compiler, and experimental.useOffline. Flags removed in 16.3 that this repo never set: experimental.viewTransition, partialFallbacks, instantNavigationDevToolsToggle, and experimental.useNodeStreams (streams are now always on).

16.4 recommends Cache Components and enables them for new create-next-app projects. Existing apps are not switched over. experimental.appNewScrollHandler was removed in 16.4 after becoming the default in 16.3; this repo never set it, and the new handler leaves focus unchanged. agentUpgrade: true is no longer a valid value; this repo does not set agentUpgrade. eslint-config-next@16.4 adds ESLint 10 support. The peer is still eslint >= 9, and this repo stays on eslint: ^9. next@16.4.6 still peers react ^18.2.0 || ^19.0.0, so React stays at 19.2.4. next requires Node >=20.9.0; CI stays on Node 24 and engines.node stays >=20.

Preview

Please glance at the Vercel Preview, including the Open Graph image, because that is the route the ImageResponse advisory covers.

Preview (READY, commit c869f10): https://website-git-cursor-bump-next-16-4-6-180c-fast-dog-coding.vercel.app

The deployment is behind Vercel Authentication. /opengraph-image returned HTTP 200, content-type: image/png, 1200×630, 50032 bytes, x-matched-path: /opengraph-image, x-vercel-cache: PRERENDER.

CI still does not run lint.

Open in Web Open in Cursor 

Co-authored-by: Grant Lindsay <glindsay65@users.noreply.github.com>
@vercel

vercel Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
website Ready Ready Preview Nov 12, 2026 5:35pm UTC

Request Review

@glindsay65
glindsay65 merged commit 865da18 into develop Nov 12, 2026
4 checks passed
@glindsay65
glindsay65 deleted the cursor/bump-next-16-4-6-180c branch November 12, 2026 17:45

This branch was successfully deployed

1 active deployment
Preview — c869f10c Deployed Nov 12, 2026 by vercel[bot]
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