- Compatibility with newer NodeJS typings.
- Updated dependencies.
- Uses promise-readable and promise-writable v5.
writeAll
method doesn't close a socket.PromiseReadable
implementsAsyncIterable
so it is possible to usefor await (const chunk of promiseReadable)
loop.- New method
iterate
is provided.
- Method
setTimeout
sets an event handler that destroys a socket withTimeoutError
. The handler is removed if timeout is equal0
.
- Minor tweaks in README.
- Added source map to the package.
- Rewritten in Typescript.
- Dropped support for Node < 6.
- Support
connect(port, host)
method arguments, again.
- Support
connect(port, host)
method arguments (not really).
- Use markdownlint.
- Tweaks for example BSMTP client.
- New method
destroy
. - Support for
import PromiseSocket from 'promise-socket'
syntax. - Upgraded promise-readable@3, promise-writable@3 and promise-duplex@3.
- Requires promise-duplex@2.0.3.
- Do not use UMD import internally.
- Use native
Promise
rather thanany-event
.
- Typescript: reference additional modules in our typings file.
- Exports also as a class and namespace and the default.
- Typings for Typescript.
- Based on promise-duplex@1.x.x
- Upgraded chai@4.0.2, chai-as-promised@7.0.0, promise-duplex@0.1.2, snazzy@7.0.0, standard@10.0.2, tap@10.5.1, tap-given@0.4.1
- Bugfixes for tests
- Initial release