destroy
method returnsthis
.
- Converted to ESM module.
- Requires Node >= 16.
- Uses "node:" prefix for Node.js modules.
- Fixes TypeScript error for
closed
property; closes #61.
- Requires Node >= 10.
- Converted from tslint to eslint.
- Uses @types/node v14. Fixes #41.
- [email protected]: chunk returned by
read
method might be an empty string.
- Use
mocha-steps
for testing.
- Compatibility with newer NodeJS typings.
- Updated dependencies.
- Uses promise-readable and promise-writable v5.
PromiseReadable
implementsAsyncIterable
so it is possible to usefor await (const chunk of promiseReadable)
loop.- New method
iterate
is provided.
- Minor tweaks in README.
- Added source map to the package.
- Fixed regression in
package.json
.
- Fixed regression in
index.js
.
- Rewritten in Typescript.
- Dropped support for Node < 6.
- Use markdownlint.
- Minor bugfix in error handler.
- Can call
destroy
twice.
- New
setEncoding
anddestroy
methods. - Support for
import PromiseDuplex from 'promise-duplex'
syntax. - Bugfix when PromiseDuplex could ignore error event.
- Upgraded [email protected] and [email protected]
- Upgraded [email protected]
- Workaround for bug in @types/node. See DefinitelyTyped/DefinitelyTyped#20493
- Typescript:
once('pipe' | 'unpipe')
resolves toReadable
.
- Do not use UMD import internally.
- Use native
Promise
rather thanany-event
.
- Typescript: reference additional modules in our typings file.
- Better README.
once
is resolved toundefined
when stream is already closed or destroyed for"close"
or"end"
events and rejects for others.read
andreadAll
is resolved when"close"
event was occured.
- Exports also as a class and namespace and the default.
- Typings for Typescript.
- Based on promise-readable@1 and promise-writable@1
Breaking change:
- Resolves to
undefined
rather thannull
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
.
- Upgraded [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
- Minor tweaks for documentation.
- New method
once
replaces otheronce*
methods.
- Use any-promise.
- Initial release