Repository navigation
chore: bump Next.js to 16.4.6 - #24
Merged
Merged
Conversation
Co-authored-by: Grant Lindsay <glindsay65@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
[Susan (Grok Bot)]
First website audit slice only. This bumps the exact pins for
nextandeslint-config-nextfrom 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
latestis 16.4.6. 16.5 exists only as canary (16.5.0-canary.48).next@16.2.6isnext@16.4.6(isSemVerMajor: false).next/ogImageResponse, affected>=16.2.0 <16.3.6). This site uses that API insrc/app/opengraph-image.tsx.What this PR does not change
npm install next@16.4.6 eslint-config-next@16.4.6 --save-exact. It was not hand-edited.npm audit fixandnpm audit fix --forcewere not run.@prisma/devtree change. Prisma stays 7.8.0..github/workflows/ci.ymlstill runs onlynpm ciandnpm run test:runon Node 24.next.config.tsis 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:npm run lintexited 0 with no problems:npm run test:runexited 0:npx tsc --noEmitexited 0 with no output.src/app/opengraph-image.tsxis part of that check (**/*.tsx). The import is stillImageResponsefromnext/og. In 16.4.6 the Node constructor isconstructor(element: ReactElement, options?: ImageResponseOptions), and this file passes a static element plus{ width: 1200, height: 630 }. It takes no routeparamsorid, 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 buildwas not run locally. It fails at/api/syncwithoutDATABASE_URLon agent machines. NoDATABASE_URLwas invented, andprisma db pushwas not run.Lockfile
Prisma did not move.
prisma,@prisma/client,@prisma/adapter-pg, and@prisma/enginesare still 7.8.0. The existing@prisma/devstayed at 0.24.3. No new@prisma/devtree was added.Everything that moved is in the
next/eslint-config-nextinstall:next,@next/env,@next/eslint-plugin-next, and every@next/swc-*binary: 16.2.6 → 16.4.6eslint-config-next: 16.2.6 → 16.4.6@swc/helpers: 0.5.15 → 0.5.23 (directnextdependency)postcss: 8.5.15 → 8.5.23; nestednext/node_modules/postcss8.4.31 removednanoid: 3.3.12 → 3.3.20 (postcss@8.5.23requiresnanoid@^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 nestedsemver: 7.8.0 → 7.8.6@img/sharp-freebsd-wasm32@0.35.5,@img/sharp-webcontainers-wasm32@0.35.5,@img/sharp-wasm32/node_modules/@emnapi/runtime@1.11.3fastq: 1.20.1 → 1.20.3, dev-only, undereslint-config-next→@next/eslint-plugin-next→fast-glob→@nodelib/fs.walk(fastq@^1.6.0)Nothing outside that tree moved.
npm audit
next@16.2.6)next@16.4.6)The critical Next advisory is gone.
nextis no longer listed.postcss,sharp, andnanoidalso dropped off the report because they moved with Next.Left for later PRs, not touched here:
@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@prisma/dev,@hono/node-server,valibot,vitest,@vitest/mocker,typescript-eslintand its@typescript-eslint/*packages,minimatch,eslint-config-next,qs,baseline-browser-mapping@babel/core,esbuildeslint-config-nextis still a moderate finding viatypescript-eslint. npm's suggested fix for that chain is a downgrade toeslint-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, andexperimental.useOffline. Flags removed in 16.3 that this repo never set:experimental.viewTransition,partialFallbacks,instantNavigationDevToolsToggle, andexperimental.useNodeStreams(streams are now always on).16.4 recommends Cache Components and enables them for new
create-next-appprojects. Existing apps are not switched over.experimental.appNewScrollHandlerwas removed in 16.4 after becoming the default in 16.3; this repo never set it, and the new handler leaves focus unchanged.agentUpgrade: trueis no longer a valid value; this repo does not setagentUpgrade.eslint-config-next@16.4adds ESLint 10 support. The peer is stilleslint >= 9, and this repo stays oneslint: ^9.next@16.4.6still peersreact^18.2.0 || ^19.0.0, so React stays at 19.2.4.nextrequires Node>=20.9.0; CI stays on Node 24 andengines.nodestays>=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.appThe deployment is behind Vercel Authentication.
/opengraph-imagereturned 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.