Skip to content

[Flight] Improve transport protocol - #37846

Merged
eps1lon merged 2 commits into
mainfrom
sebbie/flight-transport-protocol/main
Oct 14, 2026
Merged

eps1lon merged 2 commits into
mainfrom
sebbie/flight-transport-protocol/main

Conversation

@eps1lon

@eps1lon eps1lon commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

eps1lon/react-secured-mirror#78
eps1lon/react-secured-mirror#80
eps1lon/react-secured-mirror#89

eps1lon and others added 2 commits October 8, 2026 14:04
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]>
@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

The size diff is too large to display in a single comment. This workflow run contains an artifact called sizebot-message.md with the full report.

Generated by sizebot against a39720a

@meta-cla meta-cla Bot added the CLA Signed label Oct 14, 2026
@github-actions github-actions Bot added the React Core Team Opened by a member of the React Core Team label Oct 14, 2026
@eps1lon
eps1lon requested a review from gnoff October 14, 2026 15:50
@eps1lon
eps1lon merged commit 0c9913a into main Oct 14, 2026
473 of 474 checks passed
@eps1lon
eps1lon deleted the sebbie/flight-transport-protocol/main branch October 14, 2026 16:31
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".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants