Commit Graph
46718 Commits
Author SHA1 Message Date
Trivikram Kamat bbbb4aadef stream: observe abort while awaiting pipeTo source
Use the abort-aware iterator wrapper in the no-transform pipeTo()
path so a pending source read does not block AbortSignal handling.

Fixes: https://github.com/nodejs/node/issues/64014

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/64015
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/64014
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
2026-08-06 11:33:11 +02:00
Trivikram Kamat 4387ad412f stream: respect iter consumer abort signals
Delegate broadcast.push() and share.pull() calls with per-consumer
AbortSignals through pull(), so pending next() calls reject when the
signal aborts.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63997
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63302
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
2026-08-06 11:33:11 +02:00
Trivikram Kamat 4ba1fa0062 stream: handle falsy push writer fail reasons
Reject reads based on writer state so explicit falsy fail reasons do
not leave reads pending.

Fixes: https://github.com/nodejs/node/issues/63568

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63569
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63568
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2026-08-06 11:33:10 +02:00
Matteo Collina 3b8c30c096 stream: handle setEncoding after buffered data
Signed-off-by: Matteo Collina <hello@matteocollina.com>
PR-URL: https://github.com/nodejs/node/pull/63973
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Refs: https://github.com/nodejs/node/pull/63570
Refs: https://github.com/nodejs/undici/issues/5002
Reviewed-By: Jithil P Ponnan <jithil@outlook.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-08-06 11:33:10 +02:00
Trivikram Kamat 97ef13c84e stream: keep overlapping broadcast reads pending
Broadcast consumers may receive overlapping next() calls on the same
iterator. Queue those reads so chunks satisfy them in call order.

A single written chunk should resolve the earliest pending next();
later next() calls remain pending until more data is written or the
broadcast completes.

Fixes: https://github.com/nodejs/node/issues/63499

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63500
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63499
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-08-06 11:33:09 +02:00
James M Snell a46ddad9fa stream: refine the stream/iter backpressure
In `Writer`, there are two queues that matter: the slot queue
and the pending queue. The sync `writeSync`/`writevSync` only
use the slot queue. If writes cannot be accepted directly into
slots, they return `false`. The sync methods *never* enqueue
into the pending queue. The async `write`/`writev` will first
attempt to add to the slot queue; if it is full, then it will
attempt to add to the pending queue; if that is also full, the
backpressure policy kicks in.

Signed-off-by: James M Snell <jasnell@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/63697
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
2026-08-06 11:33:09 +02:00
Trivikram Kamat 557bf99245 stream: remove transform-writer handling in pipeTo
The pipeTo() and pipeToSync() argument parser already requires the
destination argument to be a writer. Remove the later transform-writer
handling so writer objects with a transform() method are treated only
as destinations.

Fixes: https://github.com/nodejs/node/issues/63683

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63684
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63683
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2026-08-06 11:33:08 +02:00
Trivikram Kamat 24b7831a1a stream: fix pipeToSync byte accounting
Stop pipeToSync() from counting chunks when writeSync() or writevSync()
returns false without accepting the data. Preserve writers that use
false as an accepted backpressure signal.

Fixes: https://github.com/nodejs/node/issues/63562

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63564
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63562
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2026-08-06 11:33:08 +02:00
Trivikram Kamat 3b5f1b56bc stream: reject pull() reads on abort
Make pull() race pending source reads against the provided AbortSignal
so aborting can reject a pending next() even when the source is waiting
before yielding data.

Fixes: https://github.com/nodejs/node/issues/63497

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63498
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63497
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2026-08-06 11:33:07 +02:00
Trivikram Kamat e48e287633 stream: fast-path stateless transform flush results
Avoid generator-based normalization for common flush result types in
fused stateless stream/iter transforms. This keeps the corrected flush
ordering while reducing overhead for already-normalized batches and
primitive byte outputs.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63605
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2026-08-06 11:33:07 +02:00
Trivikram Kamat f0ee316f45 stream: handle sync writev completion in pipeTo
Treat writer.writev() returning undefined as synchronous success to
match the existing write() fallback behavior for duck-typed writers.
This avoids calling Promise.prototype.then on undefined after a batch
write has already been accepted.

Fixes: https://github.com/nodejs/node/issues/63560

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63561
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63560
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-08-06 11:33:06 +02:00
Trivikram Kamat fbed90b2fb stream: settle pending broadcast reads on return
Resolve pending next() calls when broadcast consumers are returned,
so the promise does not remain pending after iterator cleanup.

Fixes: https://github.com/nodejs/node/issues/63519

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63603
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63519
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2026-08-06 11:33:06 +02:00
Trivikram Kamat 568dcc250f stream: serialize concurrent share consumer reads
Ensure overlapping next() calls on a single share() consumer resolve
in the same order they were requested.

Fixes: https://github.com/nodejs/node/issues/63477

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63478
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63477
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-08-06 11:33:05 +02:00
Antoine du Hamel 5e2b4c4ade stream: fix lint error
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/63598
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Mattias Buelens <mattias@buelens.com>
2026-08-06 11:33:05 +02:00
Trivikram Kamat 74bd0cd35a stream: reject pending reads on iterator throw
Settle reads that are already waiting when a push stream iterator is
returned or thrown. This prevents next() promises from hanging after
consumer cancellation.

Fixes: https://github.com/nodejs/node/issues/63554

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63555
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63554
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-08-06 11:33:04 +02:00
Trivikram Kamat 45780df841 stream: wait for push writer end fallback to drain
When endSync() returns -1 after buffered writes, a follow-up end()
should stay pending until the readable side drains the queued data.

Do not make duplex channel close() wait for that drain, since close()
only needs to signal EOF to the peer. Waiting there can deadlock when
the peer starts reading only after close() resolves.

Fixes: https://github.com/nodejs/node/issues/63502

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63503
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63502
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2026-08-06 11:33:03 +02:00
Trivikram Kamat 217b495e0a stream: flush each fused stateless transform
Ensure consecutive stateless stream/iter transforms each receive a
final null flush after upstream flush output has been processed.

Fixes: https://github.com/nodejs/node/issues/63467

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63468
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63467
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-08-06 11:33:03 +02:00
Trivikram Kamat 2e8685592e stream: avoid duplicate writes in toWritable
PushWriter can return false after accepting a chunk when block
backpressure is active. Teach the classic Writable adapter to treat
that case as accepted backpressure instead of retrying through the
async write path.

Fixes: https://github.com/nodejs/node/issues/63359

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63360
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63359
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-08-06 11:33:02 +02:00
Trivikram Kamat 88a3392a78 stream: propagate abort reason in share and broadcast
Pass signal.reason to the multi-consumer cancel paths so signal abort
is reported as AbortError instead of clean iterator completion.

Also make detached share consumers rethrow a stored source error when
they resume after cancellation, preserving the abort reason for pending
pulls.

Fixes: https://github.com/nodejs/node/issues/63357

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63358
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63357
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-08-06 11:33:02 +02:00
René fce3df74e9 stream: disallow writing string chunk with 'buffer' encoding
Signed-off-by: Renegade334 <contact.9a5d6388@renegade334.me.uk>
PR-URL: https://github.com/nodejs/node/pull/63062
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Refs: https://github.com/nodejs/node/pull/33075
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2026-08-06 11:33:01 +02:00
ikeyan 5658c631fa stream: align Readable.toWeb termination with eos
PR-URL: https://github.com/nodejs/node/pull/62394
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Mattias Buelens <mattias@buelens.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-08-06 11:33:01 +02:00
Antoine du Hamel cc425bc659 doc: fix promise nomenclature in stream_iter.md
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/63406
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2026-08-06 11:33:00 +02:00
Trivikram Kamat b022a1419c benchmark: respect stream/iter broadcast backpressure
Only decrement the remaining byte count after a stream/iter broadcast
write is accepted. If writeSync() is blocked by strict backpressure,
fall back to the async write() path for the same chunk.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63314
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-08-06 11:33:00 +02:00
Trivikram Kamat 02a51a746b stream: add sync iterable fast path to pipeTo
Avoid normalizing sync iterable sources through from() when pipeTo()
has no transforms or signal and the writer can accept sync writes.
This keeps writes incremental while preserving async fallback for
values that still need it.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63318
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
2026-08-06 11:32:59 +02:00
Trivikram Kamat 4c9f3edb64 stream: fix merge handling for object-like sources
merge() treated any final non-iterable object as an options object.
That dropped valid from() inputs such as ArrayBuffer, ArrayBufferView,
and streamable protocol objects.

Fixes: https://github.com/nodejs/node/issues/63355

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63356
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63355
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
2026-08-06 11:32:59 +02:00
Trivikram Kamat c50d8e49cc stream: limit iter from sync iterable batches
Bound sync iterable normalization in from() and fromSync() to
FROM_BATCH_SIZE. This avoids unbounded batches for from() sync
iterable fallbacks and lets fromSync() coalesce plain Uint8Array
values for writev paths.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63324
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
2026-08-06 11:32:58 +02:00
Trivikram Kamat 1d7c86d577 stream: cache minimum cursor count in broadcast
Track how many broadcast consumers share the cached minimum cursor,
matching the share implementation. This lets buffer trimming avoid
calling getMinCursor() until the last minimum-cursor consumer
advances or detaches. Add coverage for fan-out trimming behavior.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63322
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
2026-08-06 11:32:58 +02:00
Trivikram Kamat ec2666edbe stream: avoid retrying accepted pipeTo writes
PushWriter in block backpressure mode can return false from writeSync()
and writevSync() after accepting data. Treat that false return as
backpressure and wait for drain instead of retrying the same chunks
asynchronously.

Fixes: https://github.com/nodejs/node/issues/63296

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63297
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63296
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
2026-08-06 11:32:57 +02:00
Trivikram Kamat f63143fd83 stream: validate broadcast writer writev chunks
Validate BroadcastWriter writev() and writevSync() inputs before
converting chunks so non-array values throw ERR_INVALID_ARG_TYPE.

Fixes: https://github.com/nodejs/node/issues/63299

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63300
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63299
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
2026-08-06 11:32:57 +02:00
Trivikram Kamat 944470b08a stream: uncork fromWritable writev on chunk error
Ensure fromWritable().writev() uncorks the wrapped Writable when
converting a later chunk throws. This prevents an internal cork from
leaking after ERR_INVALID_ARG_TYPE.

Fixes: https://github.com/nodejs/node/issues/63294

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63295
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63294
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
2026-08-06 11:32:56 +02:00
Trivikram Kamat ae79f2b67a stream: validate fromWritable() options before cache
Validate options before returning a cached fromWritable() adapter so
invalid later options still throw.

Cache adapters by backpressure policy as well as Writable instance,
since the policy changes write behavior.

Fixes: https://github.com/nodejs/node/issues/63277

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63278
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63277
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
2026-08-06 11:32:56 +02:00
Trivikram Kamat c98cc67f33 stream: optimize single-slot push queue drain
Avoid allocating a new result array when PushQueue drains a single
queued slot. Return that slot directly and keep the existing flattening
path for multiple queued slots.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63274
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
2026-08-06 11:32:55 +02:00
Trivikram Kamat 9a45ff5d8f stream: preserve toReadableSync batch after backpressure
Keep the current batch and index across _read() calls so chunks that
remain after push() returns false are emitted on later reads.

Fixes: https://github.com/nodejs/node/issues/63275

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63276
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63275
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-08-06 11:32:54 +02:00
Trivikram Kamat eb72fe94fc stream: cache minimum cursor count in share
Track the number of consumers at the cached minimum cursor in share()
so the minimum is only recomputed when the last consumer at that cursor
advances or detaches.

This avoids scanning every consumer on each trim attempt when multiple
consumers advance through a shared buffer.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63262
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
2026-08-06 11:32:54 +02:00
René b57b51eeed stream: minor stream/iter implementation edits
Signed-off-by: Renegade334 <contact.9a5d6388@renegade334.me.uk>
PR-URL: https://github.com/nodejs/node/pull/63132
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2026-08-06 11:32:53 +02:00
René 274b3a2ea1 stream: remove redundant method check from iter.pipeToSync
Signed-off-by: Renegade334 <contact.9a5d6388@renegade334.me.uk>
PR-URL: https://github.com/nodejs/node/pull/63099
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2026-08-06 11:32:53 +02:00
René 859a02da96 doc: minor structural stream/iter edits
Signed-off-by: Renegade334 <contact.9a5d6388@renegade334.me.uk>
PR-URL: https://github.com/nodejs/node/pull/63089
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-08-06 11:32:52 +02:00
Daijiro Wachi 630b15eb20 doc: fix doubled word typo in stream_iter.md
PR-URL: https://github.com/nodejs/node/pull/62916
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2026-08-06 11:32:52 +02:00
James M Snell baf98faa06 stream: add stream/iter to classic stream adapters
Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode/Opus 4.6
PR-URL: https://github.com/nodejs/node/pull/62469
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Robert Nagy <ronagy@icloud.com>
2026-08-06 11:32:51 +02:00
James M Snell a290f51f15 benchmark: add benchmarks for experimental stream/iter
Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-By: Claude/Opus 4.6
PR-URL: https://github.com/nodejs/node/pull/62066
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2026-08-06 11:32:51 +02:00
James M Snell 14c547351b test: add tests for experimental stream/iter implementation
Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-By: Claude/Opus 4.6
PR-URL: https://github.com/nodejs/node/pull/62066
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2026-08-06 11:32:50 +02:00
James M Snell 28dc85d8d2 stream: add stream/iter Implementation
Experimental implementation of https://stream-iter.jasnell.me/

Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-By: Claude/Opus 4.6
PR-URL: https://github.com/nodejs/node/pull/62066
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2026-08-06 11:32:50 +02:00
Anna Henningsen fbb3960189 src: show original file name in FileHandle GC close errors
Otherwise, it can be virtually impossible to debug where these types
of errors originate from.

PR-URL: https://github.com/nodejs/node/pull/60593
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2026-08-06 11:32:49 +02:00
SRAVANI GUNDEPALLI 2cc54e1793 test: skip quic tests that IBM i does not support
PR-URL: https://github.com/nodejs/node/pull/60160
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2026-08-06 11:32:49 +02:00
James M Snell 54c094d245 quic: continue working on quic api bits
PR-URL: https://github.com/nodejs/node/pull/60123
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
2026-08-06 11:32:48 +02:00
Node.js GitHub Bot 080c4d7cda deps: update ngtcp2 to 1.22.0
PR-URL: https://github.com/nodejs/node/pull/62595
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
2026-08-06 11:32:47 +02:00
Node.js GitHub Bot 4309e7c82f deps: update ngtcp2 to 1.21.0
PR-URL: https://github.com/nodejs/node/pull/62051
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-08-06 11:32:47 +02:00
Node.js GitHub Bot 90cf11cfb5 deps: update nghttp3 to 1.15.0
PR-URL: https://github.com/nodejs/node/pull/61512
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
2026-08-06 11:32:46 +02:00
Node.js GitHub Bot e1f315a554 deps: update ngtcp2 to 1.20.0
PR-URL: https://github.com/nodejs/node/pull/61511
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2026-08-06 11:32:46 +02:00
Node.js GitHub Bot 9a3f690c9d deps: update ngtcp2 to 1.19.0
PR-URL: https://github.com/nodejs/node/pull/61156
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
2026-08-06 11:32:45 +02:00