feat: accept Next.js 16.4.6 on the native Node path

Draft
SO
3d ago
+1065-23

Summary

Prepares the native Node path for Next.js 16.4.6, the way #452 did for 16.4.5. It is stacked on #473, which moves the catalog to 16.4.6.

This is a draft, and the native path does not accept 16.4.6 with it yet. The Pages handler references for 16.4.6 come from the native-pages-handler-profile producer, and GitHub Actions cannot start jobs for this account at the moment (billing).

What is pinned

node-next-release.ts pins the 13 sources the native path reviews per release, from the published next@16.4.6 (package.json ed29e688…):

  • Same bytes as 16.4.5: the page template factory (app-page-runtime.js) and the four Pages runtimes (pages, pages-turbo, pages-api, pages-api-turbo).
  • New: the eight App Router runtimes (app-page*, app-route*). They bundle base-http/node, whose appendHeader is the release's one server change.

dist/compiled/fast-jwt, dist/compiled/ws and dist/server/require-hook.js are 16.4.5's bytes, so the fast-jwt profile's releases gain 16.4.6.

The Turbopack runtime is fingerprinted by its AST, not by release. 16.4.6 changes Turbopack only in turbo-tasks and turbo-tasks-backend (dev GC), not in the runtime's sources, so no fingerprint is added. The native CI's 16.4.6 legs confirm it once they run.

Other changes

  • Producer:
    • fixture-16.4.6 is 16.4.5's fixture with the release's versions. Its lock holds the registry's dist.integrity for next, @next/env and the eight @next/swc-* binaries. These are the only lines that differ.
    • inputs.mts pins the two files and the linux-x64-gnu binary's integrity.
    • The workflow gains the --next=16.4.6 jobs, with and without server minification.
  • Native CI: builds the fixtures on 16.4.6 too, and runs the release-independent checks in its leg. fixtures/next-native moves to 16.4.6.
  • Docs: docs/native-functions.md and docs/node26.md name 16.4.6.

Left before this can merge

  1. Run the producer on this branch, once Actions runs.
  2. Write the 16.4.6 Pages handler references and register them, as #452 did for 16.4.5. That means node-manifest-handler-reference-16-4-6*.ts, node-manifest-handler-unminified-16-4-6*.ts, the catalog entry and the integration test's names. The producer's README says agents do not read its outputs, apart from the 16.4.4 and 16.4.5 references, which were written at the owner's request; who writes 16.4.6's is the owner's call.
  3. Let the native CI run on 16.4.3 to 16.4.6.

Verification

Run locally, as Actions cannot run:

  • the adapter's test/node-* files: 4,005 passed, 77 skipped, including the new 16.4.6 release case;
  • the three changed test files: 59 passed;
  • oxfmt and ESLint pass on the changed files.

Summary by cubic

Pins Next.js 16.4.6's native sources so the fast-jwt profile and native CI cover the release, but the native Node path does not accept 16.4.6 yet.

16.4.6 publishes the page template factory and the four Pages runtimes as 16.4.5 does; only the eight App Router runtimes differ. The fast-jwt, ws and require-hook.js bytes match 16.4.5, so node-next-release.ts pins the new hashes and the fast-jwt profile takes 16.4.6 alongside 16.4.4 and 16.4.5. The Pages handler producer gains a fixture-16.4.6 with pinned registry integrities, and the native CI and fixtures build on 16.4.6.

This is a draft. The native path does not accept 16.4.6 yet: its Pages handler references come from the producer, and GitHub Actions cannot run jobs for this account at the moment, so the producer has not run. The producer README now records the owner's request that the 16.4.6 references be written from a run whose artifacts regenerate the 16.4.5 data byte for byte. The Turbopack runtime is fingerprinted by AST, not release; 16.4.6 changes only turbo-tasks internals, so no new fingerprint is added.