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

add addReadStreamLazy() #80

Merged
merged 4 commits into from
Oct 19, 2024
Merged

add addReadStreamLazy() #80

merged 4 commits into from
Oct 19, 2024

Conversation

thejoshwolfe
Copy link
Owner

Closes #74

Adds an alternative to addReadStream() that lets you create the stream later. This is recommended in general as a replacement for addReadStream().

Also drops the bloated bl dependency.

Also adds an assertion that you don't call the add*() functions after calling end().

Also cleans up some of the error handling by avoding calling into your code after an error has been emitted.

This shrinks our node_modules size by an order of magnitude.
The replacement code is smaller than the package-lock metadata describing bl's dependencies.
@thejoshwolfe thejoshwolfe merged commit f0ee5a1 into master Oct 19, 2024
@thejoshwolfe thejoshwolfe deleted the add-read-stream-lazy branch October 19, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Piping streams which come from third party servers
1 participant