-
Notifications
You must be signed in to change notification settings - Fork 223
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
Readable.fromWeb
and Readable.toWeb
do not seems to be properly implemented
#482
Comments
Thanks for reporting! Which Node.js version are you using? |
NodeJS v18.7.0 so I would expect WebStreams to be available.
What about having an implementation for cases like NodeJS 16+ and modern web browsers were WebStreams are available? |
@mcollina I think the ask is for these methods to work since the environment this package runs in (either Node to support several versions or browsers) often does have web streams? |
I understand now, thanks! Would you like to send a PR? I'll be a bit low on time for the coming months. |
Hi @mcollina @benjamingr, since this is an old issue, just wanted to know if this is still relevant or if has it been solved in any way, if not I can work on this. Had a couple of questions:
|
Those are node core functions: https://nodejs.org/api/stream.html#streamreadablefromwebreadablestream-options |
Those functions have not been extracted correctly and should have been removed from this module. Use them from |
@mcollina addressing the issue of the empty |
Well, I think we should not have these methods to begin with and remove them in the build process. |
Would you suggest removing both methods from the |
Change build.mjs so that they are removed from the build when this module is extracted from Node.js. |
First, thank you for your amazing work on
readable-stream
!Readable.fromWeb
anReadable.toWeb
are calling thenewStreamReadableFromReadableStream
andnewReadableStreamFromStreamReadable
functions on thewebStreamsAdapters
.However
webStreamsAdapters
is only defined as an empty object leading to a failure.The same problem seems to affect
Writable
andDuplex
.The text was updated successfully, but these errors were encountered: