Files
node/doc/api
James M Snell 12e34ca588 stream: accept explicit stream/iter budgets below 16384
push(), duplex(), broadcast(), share() and shareSync() rejected an
explicit budget below 16384 bytes with ERR_OUT_OF_RANGE. The spec
(push() step 3, broadcast() step 1 and share() step 2) only requires
the implementation-defined default to be at least 16384 bytes; an
explicit budget is used as given. Small budgets are also useful in
tests and in memory-constrained code.

Accept any explicit budget of at least 1 byte, and validate it in one
place. Defaults are unchanged. The validation tests are updated to the
new lower bound; note that WebIDL conversion truncates fractions, so
1.5 is now a valid budget of 1 and 0.5 is used to exercise the
rejection instead.

Assisted-by: OpenCode
Signed-off-by: James M Snell <jasnell@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/66483
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
2026-10-10 17:56:19 +00:00
..
2026-09-03 11:40:52 +02:00
2026-09-22 10:59:57 +02:00
2026-10-10 11:21:51 +00:00
2026-10-07 16:40:44 +02:00
2026-09-03 15:37:21 +00:00
2026-09-25 20:28:33 +00:00
2025-12-16 20:31:28 +00:00
2026-10-05 21:26:47 +00:00
2026-09-11 13:15:27 -04:00
2026-10-05 16:47:38 +00:00
2026-08-03 11:44:23 +00:00
2026-09-25 20:28:33 +00:00
2026-09-09 18:04:31 +02:00
2026-10-07 16:40:44 +02:00
2026-10-07 16:40:44 +02:00
2026-10-07 16:40:44 +02:00