Releases: dex4er/js-promise-readable
Releases · dex4er/js-promise-readable
v2.0.0
- Use native
Promise
rather than any-event
.
v1.2.1
- Typescript: reference additional modules in our typings file.
v1.2.0
once
is resolved to undefined
when stream is already closed or
destroyed for "close"
or "end"
events and rejects for others.
read
and readAll
is resolved when "close"
event was occured.
v1.1.0
- Typescript: stream is
TReadable extends NodeJS.ReadableStream
v1.0.0
- Exports also as a class and namespace and the default.
- Typings for Typescript.
- Additional safe checks for detecting already closed stream.
Breaking change:
- Resolves to
undefined
rather than null
if there is no data or stream is
closed. Please use double sign equality instead triple sign to check if
stream is closed, ie. data == null
.
v0.4.3
- Upgraded chai@4.0.2, chai-as-promised@7.0.0, snazzy@7.0.0
standard@10.0.2, tap@10.5.1, tap-given@0.4.1
v0.4.2
- Minor tweaks for documentation.
v0.4.1
once('error')
is the same as once('end')
.
v0.4.0
- New method
once
replaces other once*
methods.
v0.3.0
- Method
end
is renamed to onceEnd
.