Sitelet https://web.archive.org/web/20211021115756/https://github.com/nodejs/node/pull/40193
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stream: support array of streams in promises pipeline #40193

Closed
wants to merge 4 commits into from

Conversation

@Mesteery
Copy link
Member

@Mesteery Mesteery commented Sep 23, 2021

Fixes: #40191

@lpinca
Copy link
Member

@lpinca lpinca commented Sep 23, 2021

It should be already supported

if (ArrayIsArray(streams[0]) && streams.length === 1) {
streams = streams[0];
}
no?

@Mesteery
Copy link
Member Author

@Mesteery Mesteery commented Sep 23, 2021 •

Since c04d621, promises.pipeline calls directly pipelineImpl:

const { pipelineImpl: pl } = require('internal/streams/pipeline');

@lpinca
Copy link
Member

@lpinca lpinca commented Sep 23, 2021

Ah ok. Can you please add a test?

lpinca
lpinca approved these changes Sep 24, 2021
test/parallel/test-stream-pipeline.js Show resolved Hide resolved
ronag
ronag approved these changes Sep 24, 2021
@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Oct 7, 2021

@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Oct 9, 2021

@Ayase-252
Copy link
Member

@Ayase-252 Ayase-252 commented Oct 20, 2021

Landed in b920a10

@Ayase-252 Ayase-252 closed this Oct 20, 2021
Ayase-252 added a commit that referenced this issue Oct 20, 2021
Fixes: #40191

PR-URL: #40193
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@Mesteery Mesteery deleted the patch-2 branch Oct 20, 2021
targos added a commit that referenced this issue Oct 20, 2021
Fixes: #40191

PR-URL: #40193
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
targos added a commit that referenced this issue Oct 20, 2021
Notable changes:

Fixed distribution for native addon builds

This release fixes an issue introduced in Node.js v17.0.0, where some V8
headers were missing from the distributed tarball, making it impossible
to build native addons. These headers are now included.
#40526

Fixed stream issues
* Fixed a regression in `stream.promises.pipeline`, which was introduced
  in version 16.10.0, is fixed. It is now possible again to pass an
  array of streams to the function.
  #40193
* Fixed a bug in `stream.Duplex.from`, which didn't work properly when
  an async generator function was passed to it.
  #40499

PR-URL: #40535
targos added a commit that referenced this issue Oct 20, 2021
Notable changes:

Fixed distribution for native addon builds

This release fixes an issue introduced in Node.js v17.0.0, where some V8
headers were missing from the distributed tarball, making it impossible
to build native addons. These headers are now included.
#40526

Fixed stream issues
* Fixed a regression in `stream.promises.pipeline`, which was introduced
  in version 16.10.0, is fixed. It is now possible again to pass an
  array of streams to the function.
  #40193
* Fixed a bug in `stream.Duplex.from`, which didn't work properly when
  an async generator function was passed to it.
  #40499

PR-URL: #40535
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

6 participants