- Converted to ESM module.
- Requires Node >= 16.
- Uses "node:" prefix for Node.js modules.
- Uses
promise-writable
with listeners leak fixed in dex4er/js-promise-writable#55; closes #63. - Uses
promise-duplex
withclosed
property that works with Node.js >= 16; closes #77. setTimeout
returnsthis
; closes: #72.
- Requires Node >= 10.
- Converted from tslint to eslint.
- Uses @types/node v14.
- promise-readable@5.0.4: 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.
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
- 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