node/lib/internal/streams
Trivikram Kamat e49154f4c8
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
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
2026-05-19 14:08:25 +02:00
..
iter stream: add sync iterable fast path to pipeTo 2026-05-19 14:08:25 +02:00
add-abort-signal.js stream: export namespace object from internal end-of-stream module 2026-01-23 11:47:27 +00:00
compose.js stream: export namespace object from internal end-of-stream module 2026-01-23 11:47:27 +00:00
destroy.js
duplex.js lib: add support for readable byte streams to .toWeb() 2025-11-16 06:51:24 +00:00
duplexify.js stream: ensuring cross-destruction in _duplexify to prevent leaks 2026-05-05 16:19:33 +02:00
duplexpair.js stream: propagate destruction in duplexPair 2026-05-05 16:19:20 +02:00
end-of-stream.js stream: export namespace object from internal end-of-stream module 2026-01-23 11:47:27 +00:00
fast-utf8-stream.js stream: fix UTF-8 character corruption in fast-utf8-stream 2026-03-05 19:32:54 +00:00
from.js stream: fix nested compose error propagation 2026-05-05 16:19:29 +02:00
lazy_transform.js
legacy.js events: repurpose events.listenerCount() to accept EventTargets 2025-11-26 11:09:07 +00:00
operators.js stream: do not pass readable.compose() output via Readable.from() 2025-12-23 18:52:32 +00:00
passthrough.js
pipeline.js stream: preserve error over AbortError in pipeline 2026-03-18 06:04:26 +00:00
readable.js stream: noop pause/resume on destroyed streams 2026-05-05 16:19:23 +02:00
state.js
transform.js
utils.js lib: prefer optional chaining 2024-09-24 19:48:15 +00:00
writable.js stream: add stream/iter to classic stream adapters 2026-05-05 16:19:19 +02:00