A stream can deliver the same bytes while presenting them to its consumer in different pieces. That distinction sits at the center of a Node 26 runtime change and a downstream Next.js report: an optimization that avoids combining buffered chunks can also expose assumptions about how much data one read will return.
The runtime change arrived in Node v26.0.0, released May 5. The downstream Next.js report and a correction to Node’s documentation concern that existing change to stream behavior. The available evidence connects a specific binary-stream fast path with a reported increase in inline Flight scripts, while leaving clear limits around affected application versions and release availability.
Quick Answer
For a buffered binary stream without a string decoder, Node 26 can make a size-free Readable.read() return the first buffered chunk rather than combine all buffered data into one result. Node’s merged PR #60441 introduced that fast path. The change was semver-major and has been present since v26.0.0, according to the behavior report and documentation follow-up.
In an issue author’s reproduction using Next.js 16.4.5, the same build produced 3 inline Flight scripts on Node 24.22.2 and 407 on Node 26.13.0. Those figures are reported results from that reproduction, not measurements performed for this article or a forecast for every Next.js application. The report says 16.5.0-canary.43 returned the reproduction to 3 scripts; it does not establish a fix in a 16.4.x patch release. See Next.js issue #101343.
In Plain English
Imagine a stream has already buffered three packages containing aaa, bbb, and ccc. A consumer asks for data with read(), without specifying a size. In the Node reproduction, Node 24.22.2 hands over one combined package containing aaabbbccc. Node 26.13.0 hands over the first package, aaa, and leaves the other six bytes buffered.
The first result avoids forcing the consumer to handle several pieces. The second can avoid allocating a combined buffer and copying the original pieces into it. Both approaches can deliver the original bytes, but they give the next layer different work to do. A consumer that attaches formatting, escaping, or wrapper markup to each piece can turn a difference in read boundaries into a difference in generated output.
This is why the distinction matters beyond a small Node API detail. A runtime may become more efficient at handing off its buffers while an application above it performs more operations per response. The Next.js report is a concrete example of an output change accompanying that boundary shift; it is not evidence that all smaller stream chunks produce worse overall performance.
Code Evidence
The key change in Node PR #60441 is inside howMuchToRead(). In the branch for a read without a size, the implementation can use the first buffer’s length when data is buffered and no string decoder is configured. The added test pushes two Buffers, then checks that consecutive reads return those same Buffer objects. That object-identity check captures the optimization: the stream can hand through the existing buffers instead of creating a combined allocation.
Node issue #67323 records these version-specific results for its buffered-chunk reproduction: Node 24.22.2 returned aaabbbccc, with zero bytes remaining buffered; Node 26.13.0 returned aaa, with six bytes remaining buffered.
Those version labels are essential. The evidence establishes the reported comparison between Node 24.22.2 and 26.13.0, alongside the change’s introduction in v26.0.0. It does not supply a test matrix for every intervening release or every stream configuration.
The bounds of the implementation also matter. This fast path belongs to the no-size branch and specifically excludes streams with a string decoder. Object mode already returns one item per read. The evidence therefore does not support describing the change as a universal new rule for every call to read().
The Node change and its documentation follow-up identify read(readableLength) as an approximation of the former behavior. They also note edge cases requiring read(0) first. That qualification makes this a behavior to evaluate in context, rather than a mechanical replacement to apply everywhere.

Why It Matters
The Next.js evidence shows how a low-level allocation decision can become visible in generated HTML. In issue #101343, the author reports that a Next.js 16.4.5 reproduction using the same build produced 3 inline Flight scripts on Node 24.22.2 and 407 on Node 26.13.0. The issue also includes response-chunk, gzip-size, and median-request measurements. Those measurements belong to the issue author’s setup; this article does not independently validate or generalize them.
The script counts are useful because they identify a concrete output difference. They should not be converted into an equivalent multiplier for latency, transferred bytes, or application cost. More script elements and more response chunks are observations about output structure. Their practical impact depends on the rest of the response and the application consuming it.
Next.js merged PR #100142 into its canary branch. Its description says the Flight stream preserves React’s strings in object mode and escapes them directly for inline scripts, with byte encoding moved to output boundaries. That design keeps strings intact through the stage that prepares inline scripts, rather than depending on binary-buffer grouping at that stage.
The issue author reports that the Node 26 reproduction returned to 3 scripts with 16.5.0-canary.43. This supports a narrow conclusion: the reported reproduction showed the earlier script count on that canary version. A merge into canary and a successful canary reproduction do not establish availability in a stable 16.4.x patch.
For maintainers, the broader lesson is to examine what a consumer associates with each read result. If each returned chunk triggers wrapper generation or another per-piece operation, a runtime upgrade can change the amount of that work even when the underlying content stays the same. Checking byte correctness alone may miss a meaningful change in output structure.
Open Question
Where does an application deliberately define its output boundaries, and where does it inherit them from the stream implementation beneath it?
The evidence resolves the central Node behavior and documents a specific Next.js reproduction. It leaves the stable-release question narrower: a reader evaluating Next.js 16.4.x still needs evidence for the exact patch they intend to use. The canary result cannot answer that question on its own.
There is also a documentation discrepancy. At a recorded lookup, the published API page identified as v26.13.1 still said that omitting size returns all buffered data, while the merged source-documentation correction described the changed behavior. The published stream documentation URL is a moving reference; the discrepancy reported here is tied to that recorded lookup, not a claim that the live page remains unchanged.
Scope and Limitations
The Node results and Next.js measurements are attributed to their respective reports.
The runtime change dates to Node v26.0.0, released May 5, as recorded in the Node release announcement. The available evidence does not establish exact dates for the downstream report, documentation correction, or Next.js canary merge.
The technical discussion is limited to the evidenced no-size binary-stream path, its string-decoder exclusion, the existing one-item behavior in object mode, and the reported application versions. It does not establish identical effects in other frameworks or guarantee performance changes for other Next.js applications.
Sources
- Node PR #60441: implementation change and buffer-identity test
- Node issue #67323: reported read behavior on Node 24.22.2 and 26.13.0
- Node PR #67341: documentation correction and compatibility qualifications
- Node v26.0.0 release announcement
- Node stream API documentation: Readable.read(size), moving published reference
- Next.js issue #101343: downstream reproduction and reported measurements
- Next.js PR #100142: preserve Flight strings through inline-script processing
