-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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: add adapters for webstreams to node.js streams #39134
Conversation
f359cb3
to
2db3dbb
Compare
Good work! |
I think this should include some code&test for |
35c7181
to
0f4c4c9
Compare
Added! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
9fa29ee
to
aebb324
Compare
Where? I can't find them in the code. There are no changes to finished and pipeline to support whatwg streams. |
I think I misunderstood. I added tests to show that the adapters work properly with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we land #39294 and use the utils from that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO. The naming of the adapter methods are not very ergonomic....
Experimental adapters for the webstreams API Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #39134 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Landed in a99c230 |
This needs a backport to land on v16.x because it depends on the semver-major #39294 |
Does anyone want to backport this? Maybe @nodejs/backporters ? |
I'm willing to take care of it. |
Experimental adapters for the webstreams API Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: nodejs#39134 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Experimental adapters for the webstreams API Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: nodejs#39134 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Hey just wondering - is there any reason you chose not to overload |
@benjamingr See this comment. It's not off the table, but at least for now it seemed better to keep it separate as |
I'm going to keep the backport-requested label for some time, in case someone has an idea to backport without the need for semver-major changes. |
Experimental adapters for node.js streams and web streams.
Depends on #39062 (the first two commits here are from that PR and will be rebased out once that once lands)