promise-socket
Advanced tools
Comparing version 5.0.0 to 6.0.0
# Changelog | ||
## v6.0.0 2019-07-15 | ||
- Uses promise-readable and promise-writable v5. | ||
- `writeAll` method doesn't close a socket. | ||
- `PromiseReadable` implements `AsyncIterable` so it is possible to use | ||
`for await (const chunk of promiseReadable)` loop. | ||
- New method `iterate` is provided. | ||
## v5.0.0 2019-06-14 | ||
@@ -4,0 +12,0 @@ |
{ | ||
"name": "promise-socket", | ||
"version": "5.0.0", | ||
"version": "6.0.0", | ||
"description": "Return promise for socket stream", | ||
@@ -26,3 +26,3 @@ "main": "lib/promise-socket.js", | ||
"dependencies": { | ||
"promise-duplex": "^4.0.3", | ||
"promise-duplex": "^5.0.0", | ||
"tslib": "^1.10.0" | ||
@@ -34,14 +34,15 @@ }, | ||
"@types/mocha": "^5.2.7", | ||
"@types/node": "^12.0.8", | ||
"@types/node": "^12.6.2", | ||
"@types/readline-transform": "^0.9.1", | ||
"chai": "^4.2.0", | ||
"coveralls": "^3.0.4", | ||
"changelog-parser": "^2.8.0", | ||
"coveralls": "^3.0.5", | ||
"cross-env": "^5.2.0", | ||
"delay": "^4.3.0", | ||
"dirty-chai": "^2.0.1", | ||
"eslint": "^5.16.0", | ||
"eslint-config-prettier": "^5.0.0", | ||
"eslint-plugin-import": "^2.17.3", | ||
"eslint": "^6.0.1", | ||
"eslint-config-prettier": "^6.0.0", | ||
"eslint-plugin-import": "^2.18.0", | ||
"eslint-plugin-node": "^9.1.0", | ||
"eslint-plugin-promise": "^4.1.1", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"markdownlint-cli": "^0.17.0", | ||
@@ -51,4 +52,4 @@ "mocha": "^6.1.4", | ||
"prettier": "^1.18.2", | ||
"promise-readable": "^4.2.1", | ||
"promise-writable": "^4.1.1", | ||
"promise-readable": "^5.0.1", | ||
"promise-writable": "^5.0.1", | ||
"readline-transform": "^0.9.0", | ||
@@ -58,5 +59,5 @@ "shx": "^0.3.2", | ||
"ts-node": "^8.3.0", | ||
"tslint": "^5.17.0", | ||
"tslint": "^5.18.0", | ||
"tslint-config-prettier": "^1.18.0", | ||
"typescript": "^3.5.2" | ||
"typescript": "^3.5.3" | ||
}, | ||
@@ -69,3 +70,3 @@ "scripts": { | ||
"lint": "npm run compile && tsc --pretty -p examples && tsc --pretty -p test && eslint . && tslint -t stylish -p . && tslint -t stylish -p examples && tslint -t stylish -p test && prettier --ignore-path .gitignore --list-different '**/*.{js,json,md,ts,yml}' && markdownlint \"*.md\"", | ||
"postpublish": "git tag v$npm_package_version -a -m \"Release v$npm_package_version\" && git push --tags", | ||
"postpublish": "node -e \"require(\\\"changelog-parser\\\")(\\\"CHANGELOG.md\\\").then(ch => console.log(ch.versions.filter(v => v.version === \\\"$npm_package_version\\\").map(v => \\\"v$npm_package_version\\n\\n\\\" + v.body).concat(\\\"Release v$npm_package_version\\\")[0]))\" | xargs -0 git tag v$npm_package_version -a -m && git push --tags", | ||
"prepack": "npm run compile", | ||
@@ -72,0 +73,0 @@ "prepublishOnly": "npm run test", |
@@ -149,2 +149,22 @@ # promise-socket | ||
### iterate | ||
```js | ||
for await (const chunk of promiseDuplex.iterate(chunkSize)) {} | ||
``` | ||
Check | ||
[`PromiseReadable.iterate`](https://www.npmjs.com/package/promise-readable#iterate) | ||
for details. | ||
### Symbol.asyncIterator | ||
```js | ||
for await (const chunk of promiseDuplex.iterate(chunkSize)) {} | ||
``` | ||
Check | ||
[`PromiseReadable[Symbol.asyncIterator]`](https://www.npmjs.com/package/promise-readable#symbolasynciterator) | ||
for details. | ||
### write | ||
@@ -151,0 +171,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18898
247
29
+ Addedcore-js@3.39.0(transitive)
+ Addedpromise-duplex@5.0.3(transitive)
+ Addedpromise-readable@5.0.4(transitive)
+ Addedpromise-writable@5.0.4(transitive)
- Removedpromise-duplex@4.0.3(transitive)
- Removedpromise-readable@4.2.1(transitive)
- Removedpromise-writable@4.1.1(transitive)
Updatedpromise-duplex@^5.0.0