Repository navigation
[Flight] Improve transport protocol - #37846
Merged
Merged
Conversation
eps1lon/react-secured-mirror#78 eps1lon/react-secured-mirror#80 eps1lon/react-secured-mirror#89 Co-Authored-By: Hendrik Liebau <[email protected]> Co-Authored-By: Claude Code (kimi-k3[1m]) <[email protected]>
The transport protocol change made Fizz and Flight emit a DEV warning
whenever a zero-byte chunk is written in an environment without
ArrayBuffer.prototype.detached support. Several tests that legitimately
write empty chunks did not assert this warning, and two Flight form
tests asserted it unconditionally even though it only fires when
ArrayBuffer.prototype.detached is unsupported (Node.js < 21, older
browsers).
- Assert the warning, gated on the absence of
ArrayBuffer.prototype.detached, in ReactDOMFizzForm ("can hydrate
hidden fields in the beginning of a form"), ReactDOMFizzServerBrowser
("should stream large contents that might overlow individual
buffers"), and four ReactDOMFizzStaticBrowser prerender tests.
- Gate the existing assertions in ReactFlightDOMForm ("can submit a
multiple complex closure server action without hydrating it",
"useActionState can reuse state during MPA form submission") on the
same condition so they pass on Node.js >= 21.
- Add ReadableByteStreamController to the ESLint globals, fixing
no-undef errors in the new Flight Edge/Node tests.
Co-Authored-By: Claude Code (kimi-k3[1m]) <[email protected]>
|
The size diff is too large to display in a single comment. This workflow run contains an artifact called Generated by sizebot against a39720a |
gnoff
approved these changes
Oct 14, 2026
sokra
pushed a commit
to vercel/next.js
that referenced
this pull request
Oct 15, 2026
[diff react/react@07dde64d...99c106c4](react/react@07dde64...99c106c) <details> <summary>React upstream changes</summary> - react/react#37852 - react/react#37850 - react/react#37846 - react/react#37764 </details> --------- Co-authored-by: next-js-bot[bot] <279046576+next-js-bot[bot]@users.noreply.github.com> Co-authored-by: Josh Story <[email protected]>
k-taro56
added a commit
to arkorlab/upwind
that referenced
this pull request
Oct 16, 2026
…with its fixes A canary is numbered as the minor it leads to, so 16.5.0-canary.0 to .13 read as past the 16.4.1 floor, and neither a build nor `upwind dev` said anything of them. They are not past its fixes: each vendors a React from before react/react#37846 (b618bbb4 up to canary.8, 07dde64d from canary.11 to .13 — the last three published after 16.4.1 itself), and 16.5.0-canary.14 is the first built with one after it (99c106c4, through vercel/next.js#100215). `SECURITY_CANARY_FLOOR` names that canary, and `securityFloorOf` holds a canary of its release to it; every other version is judged as before, a prerelease by the release it is numbered as. A warning names whichever floor the version falls short of, as a release or as a canary. `check-patches.ts` holds the new floor to being a canary of a release inside the range and past the floor, and asks the canaries on either side of it; the judgements move to `floor-judgements.ts`, which keeps the script under its line ceiling. Breaking the canary rule fails two of them. Also, from review: the upwind README says why the warning is worth giving in both places — a deployment's Function carries the project's Next.js and its transport, a development run also optimizes images — and "what a Server Action is sent" reads "what is sent to a Server Action".
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.
eps1lon/react-secured-mirror#78
eps1lon/react-secured-mirror#80
eps1lon/react-secured-mirror#89