feat: accept Next.js 16.4.5 on the native Node path
Merged
SO
1mo ago+2261+2261+0123456789012345678901234567890123456789-88-88-01234567890123456789
Native Node Functions accept Next.js 16.4.5, the November 2026 security release, as well as 16.4.3 and 16.4.4. (It was stacked on #448, now merged; main is merged in.)
What 16.4.5 changes for this path
Of the 13 sources the native path pins per release, 16.4.5 changes nine and keeps four:
- Changed:
build/templates/app-page-runtime.js, and the eight App Router runtimes (app-page and app-route, each with turbo and experimental builds). - Byte-identical to 16.4.4: the four Pages runtimes.
Also byte-identical to 16.4.4, checked against both installed packages:
- the shared reviewed sources: route modules,
load-components, templates, request meta and route kind; pages-handler.js,fast-jwt,wsandrequire-hook;next's own dependencies;- the Turbopack runtime, since 16.4.5 changes nothing under
turbopack/.
Changes
- Release pins (
node-next-release.ts). 16.4.5 joinsNATIVE_NEXT_RELEASESby its exactpackage.jsonand source bytes. A source two releases publish alike, such as a Pages runtime, is either one's own; 16.4.4's copy of an App Router runtime is refused in a 16.4.5 package. - fast-jwt profile. It names the releases that publish it, 16.4.4 and 16.4.5, instead of one.
wsand the require hook already accept any pinned release. - Producer.
--next=16.4.5compiles the public Pages fixture with 16.4.5, fromfixture-16.4.5/. That fixture differs from 16.4.3's in the release and its integrities alone, and the tests check this.- The workflow runs it with and without server minification.
- Native CI.
native-addon-functionsadds a 16.4.5 leg, which now runs the release-independent checks.tools/native-addon-next-ci.mtsmaps 16.4.5 to its commit.fixtures/next-nativemoves to 16.4.5.
- Docs:
docs/native-functions.md,docs/node26.mdand the producer README.
getHandler references for 16.4.5
- Producer run 41884809602 compiled the public Pages fixture with 16.4.5, twice and offline, for each server minification setting. The catalog now holds the whole-factory references from those artifacts beside 16.4.3's and 16.4.4's. The owner asked me to write them, as with 16.4.4, an exception the producer README records.
- How the data was checked.
- The same steps first regenerated the committed 16.4.4 data from that run's 16.4.4 artifacts. Both factories files came out byte for byte, and every canonical fingerprint matched.
- The run's 16.4.4 corpora also compare equal to the 16.4.4 references.
- Comparison results.
- Each 16.4.5 reference compares equal to its own corpus.
- It compares different from 16.4.4's corpus, and the 16.4.4 references compare different from 16.4.5's.
- What differs. Only the handler group's three fingerprints: its module ids and the version string it passes to the tracer. The leaf rows and the Next.js source pins are the same.
Producer runner
ubuntu-latest became Ubuntu 26.04, whose Docker keeps images in the containerd store. There an image's ID is its index digest, not the config digest the producer pins, runs and records, so every producer job, 16.4.3's included, stopped at "Pinned image identity changed". The producer now runs on ubuntu-24.04, and all six jobs pass.
Checks run locally
- The native adapter suites: release pins, JWT, proofs, handler and Pages,
ws. That is 25 files, 628 tests, and 594 again on the tree with main merged in. nodeCachePolicyPatchapplied to all twelve 16.4.5 runtimes, each matching once.- oxfmt, ESLint and
tsc.
Summary by cubic
Native Node Functions now accept Next.js 16.4.5 alongside 16.4.3 and 16.4.4.
- Pins 16.4.5's release bytes in
node-next-release.ts; the four Pages runtimes are byte-identical to 16.4.4, and the other nine reviewed sources change. - Extends the fast-jwt compiler profile to cover both 16.4.4 and 16.4.5, since they publish the same JWT bundle.
- Adds 16.4.5 legs for CI and the Pages producer, moves
fixtures/next-nativeto 16.4.5, and catalogs the release's getHandler references (default and server-minification-off); the 16.4.4 references were regenerated byte for byte from the same producer run. - Pins the Pages producer to Ubuntu 24.04, because
ubuntu-latestbecame 26.04, whose containerd store reports an image's index digest instead of the config digest the producer pins and records.
Summary by CodeRabbit
- New Features
- Added support for Next.js 16.4.5 in the native Node.js backend and Pages handler profiles.
- Added Pages handler profiles for the default configuration and with server minification disabled.
- Documentation
- Updated compatibility guidance for Next.js 16.4.5, including its JWT handling profile and Node.js 26 notes.