-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
webstreams: integrate into common stream utils #39316
Comments
As far as streams goes, this is probably a good first issue. |
Going to take a look at this as my first issue. Is that okay? |
No need to ask for permission. Just go ahead. |
Hello, I would like to assist on this issue. Can I get some more documentation and reading |
import { pipeline } from 'stream/promises';
await pipeline(new ReadableStream(), new TransformStream(), new WritableStream()); Adapting pipeline to whatwg:streams feels almost a bit unnecessary, whatwg:streams are already kind of promise based already await new ReadableStream()
.pipeThrough(new TransformStream())
.pipeTo(new WritableStream()) I think i would never use pipeline and whatwg:streams together, I don't know so much about |
#39519 did add support for some of the things here but lacked tests so it was disabled. If someone wants to pick up this issue I would recommend looking at #39519, uncomment the web stream stuff, add tests and fix any remaining issue there. |
Thanks for the heads up. I'll take a look this week :) |
The goal should be to add those for cross compatibility, so we can "pipe" from a WHATWG Stream to a Node.js Stream easily and without additional overhead. |
@mcollina does this still need to be handled? I can take it if so, although will take me a while. |
is this issue still unresolved ?? Can anyone tell me please?? |
I think this is still unresolved. A PR adding support (or at a minimum tests) for this would be highly appreciated. The use case these utilities are there to answer is to create interoperability between webstreams and nodestreams. |
@mcollina any documentation I can read to get more information on this? I feel like I can handle this as a first-timer. |
Not much TBH, however in the simplistic form: start writing a test, and keep working until it passes. |
@mcollina maybe pick up after this? |
yes! |
Can i take up this issue or it is resolved? |
go for it |
Refs: nodejs#39316 PR-URL: nodejs#46205 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Refs: nodejs#39316 PR-URL: nodejs#46273 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Refs: nodejs#39316 PR-URL: nodejs#46307 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Refs: nodejs#39316 PR-URL: nodejs#46675 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Refs: nodejs#39316 PR-URL: nodejs#46675 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Refs: nodejs#39316 PR-URL: nodejs#46273 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Refs: nodejs#39316 PR-URL: nodejs#46307 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Refs: nodejs#39316 PR-URL: nodejs#46675 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: James M Snell <jasnell@gmail.com>
With the introduction of web streams, it would be good to integrate support into the various common stream utilities...
Refs: #39134
/cc @mcollina @ronag
stream.finished()
stream.pipeline()
stream.addAbortSignal()
stream.compose()
(stream: compose #39029)The text was updated successfully, but these errors were encountered: