You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
stream.promises.pipeline doesn't support arrays of streams since node 16.10 #40191
How often does it reproduce? Is there a required condition?
Always in 16.10, never in 16.9
What is the expected behavior?
It should output:
a
b
c
What do you see instead?
node:internal/errors:464
ErrorCaptureStackTrace(err);
^
TypeError [ERR_MISSING_ARGS]: The "streams" argument must be specified
at new NodeError (node:internal/errors:371:5)
at pipelineImpl (node:internal/streams/pipeline:181:11)
at node:stream/promises:26:5
at new Promise (<anonymous>)
at pipeline (node:stream/promises:17:10)
[...] {
code: 'ERR_MISSING_ARGS'
}
Additional information
Starting with node 16.10, the promise version of pipeline doesn't handle this signature:pipeline(streams), where streams is <Stream[]> | <Iterable[]> | <AsyncIterable[]> | <Function[]> according to the documentation.
I think the problem is related with the introduction of the signal parameter, possibly with this change: 97f3072ceb#diff-241fa22640048b6a147dec92f1ebf253043a1c4c342c7e52402112eb3c58f8fbL35
The callback version of stream.pipeline is not affected.
Related PR :
Activity
stream: support array of streams in promises pipeline
stream: support array of streams in promises pipeline
fix: support Node 16, workaround pipeline bug
stream: support array of streams in promises pipeline
♻️ Remove pipeline type signature
stream: support array of streams in promises pipeline