-
Notifications
You must be signed in to change notification settings - Fork 70
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
Consider removing readable-stream dependency #150
Comments
Node has always had |
Oh I wasn't aware that this package is used in the browser as well. However, as far as I know node 16 offers the WebStream api and since it's a browser standard it should be fairly stable and "just work" I will have to check the minimum supported browsers tho |
Here is the TL;DR from the person shipping
My recommendation is:
Consider what @Fuzzyma is asking, the solution here is relatively simple: split https://github.com/rvagg/bl/blob/master/bl.js (the browser thing) into its own module for browser usage, of which |
This kind of thing itches my brain so just a few opinions here: The fact that this package uses If it was ever intended to work in a browser, it shouldn't use those libraries. Polyfilling them is a workaround for that design choice.
Given the description of the project, too, it is clear to me that this is a node library. If a consumer wants to use a node library in a browser, it should be on them to polyfill things rather than the maintainer of this library. I don't think this project should've ever had a browser entry point. I'd argue this is probably the case for almost all consumers of |
my 2c
|
Looking at your CI runs, its seems like the lowest Node Version that is supported is Node 18.
Afaik, Node 18 has a native ReadableStream implementation so I was wondering while
readable-stream
is still used.bl
is downloaded about 150M times a month and the traffic created by thereadable-stream
dependency alone is over 8TB. Considering that and 2 less deps to care about, I think it would be a win to get rid ofreadable-stream
I saw that you bumped the version of
readable-stream
in your latest major so if there was already a discussion about it, please point me to it :).I would be happy to create a PR to do the necessary changes!
The text was updated successfully, but these errors were encountered: