- Requires Node >= 10.
- Converted from tslint to eslint.
- Uses @types/node v14.
- Updated dependencies.
- Use
mocha-steps
for testing.
- Updated dependencies.
- Fixed fatal bug in
writeAll
that caused this method could be blocked.
- Breaking change:
writeAll
should not close the stream. Fixes #2.
- Minor tweaks in README.
- Added source map to the package.
- Tweaks to make it compatible with new
PromiseDuplex
.
- Rewritten in Typescript.
PromiseWritable
constructor acceptsNodeJS.WritableStream
.write
method usesencoding
argument ifchunk
is string.- Dropped support for Node < 6.
- Use markdownlint.
- Can call
destroy
twice.
- Support
import PromiseWritable from 'promise-writable'
syntax.
- New method
destroy
. - Bugfix when
PromiseWritable
could ignoreerror
event. writeAll
corks stream and waits fordrain
event.
- Typescript:
once('pipe' | 'unpipe')
resolves toReadable
.
- Typescript:
PromiseWritable<TWritable extends Writable>
.
- Do not use UMD import internally.
- Use native
Promise
rather thanany-event
.
- Typescript: reference additional modules in our typings file.
once(event)
is resolved toundefined
when stream is already closed or destroyed.
- Fixed
instanceof PromiseWritable
.
- Typescript: stream is
TWritable extends NodeJS.WritableStream
.
- PromiseDuplex object is instance of PromiseWritable.
- Exports also as a class and namespace and the default.
- Typings for Typescript.
- Additional safe checks for detecting already closed stream.
- Promise for
write
orwriteAll
resolves to number of written bytes.
- 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
- Minor tweaks for documentation.
- Default chunk size for writeAll is now 64KiB.
once('error')
is the same asonce('finish')
.
- New method
once
replaces otheronce*
methods.
- Initial release