-
Notifications
You must be signed in to change notification settings - Fork 136
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
StreamCache is not a true ReadStream #957
Labels
library
Relates to an Origami library
Comments
romainmenke
changed the title
StreamCache is not a true
StreamCache is not a true ReadStream
Dec 31, 2020
ReadStream
Yes, we can do that, if you are able to implement this change I'd be happy to review and release it. |
romainmenke
added a commit
to romainmenke/polyfill-library
that referenced
this issue
Jan 18, 2021
romainmenke
added a commit
to romainmenke/polyfill-library
that referenced
this issue
Jan 18, 2021
JakeChampion
added a commit
to romainmenke/polyfill-library
that referenced
this issue
Feb 24, 2021
…-read-stream--considerate-english-cocker-spaniel-1e4b136008
JakeChampion
added a commit
to romainmenke/polyfill-library
that referenced
this issue
May 24, 2021
…-read-stream--considerate-english-cocker-spaniel-1e4b136008
JakeChampion
added a commit
to romainmenke/polyfill-library
that referenced
this issue
Jul 12, 2021
…-read-stream--considerate-english-cocker-spaniel-1e4b136008
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
StreamCache
does not seem to implementReadStream
correctly.When used together with
merge2
it all seems to work, but when trying to use it as aReadStream
directly, nodata|end|...
events are ever triggered.https://github.com/Financial-Times/polyfill-library/blob/b0c8a8582dc164af25e834fc034e2db27c935516/lib/sources.js#L83
https://github.com/felixge/node-stream-cache/blob/master/lib/StreamCache.js
I ended up using this code to be able to read data from
StreamCache
withoutmerge2
.Would it be possible to return a true
ReadStream
fromstreamPolyfillSource
on a next major release? (I think this is a breaking change).For now the jsdoc type signature could be updated.
The text was updated successfully, but these errors were encountered: