it-parallel-batch
Advanced tools
Comparing version 1.0.11 to 2.0.0
167
package.json
{ | ||
"name": "it-parallel-batch", | ||
"version": "1.0.11", | ||
"version": "2.0.0", | ||
"description": "Takes an async iterator that emits promise-returning functions, invokes them in parallel and emits the results in the same order as the input", | ||
"main": "index.js", | ||
"repository": "github:achingbrain/it", | ||
"author": "Alex Potsides <alex@achingbrain.net>", | ||
"license": "Apache-2.0 OR MIT", | ||
"homepage": "https://github.com/achingbrain/it/tree/master/packages/it-parallel-batch#readme", | ||
"bugs": "https://github.com/achingbrain/it/issues", | ||
"scripts": { | ||
"test": "ava", | ||
"lint": "standard", | ||
"coverage": "nyc --reporter html --reporter lcov ava", | ||
"clean": "rm -rf .nyc_output coverage dist", | ||
"check": "npm run build:dep:types && tsc --noEmit", | ||
"build": "npm run build:types", | ||
"build:dep:types": "cd node_modules/it-batch && npm run build:types", | ||
"build:types": "npm run build:dep:types && tsc --emitDeclarationOnly --declarationDir dist", | ||
"prepublishOnly": "npm run build" | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/achingbrain/it.git" | ||
}, | ||
"author": "Alex Potsides <alex@achingbrain.net>", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"ava": "^3.12.1", | ||
"delay": "^4.3.0", | ||
"it-all": "^1.0.6", | ||
"nyc": "^15.1.0", | ||
"standard": "^16.0.3", | ||
"typescript": "^4.0.2" | ||
"bugs": { | ||
"url": "https://github.com/achingbrain/it/issues" | ||
}, | ||
"dependencies": { | ||
"it-batch": "^1.0.9" | ||
"engines": { | ||
"node": ">=16.0.0", | ||
"npm": ">=7.0.0" | ||
}, | ||
"typesVersions": { | ||
"*": { | ||
"*": [ | ||
".", | ||
"dist/*" | ||
] | ||
"type": "module", | ||
"types": "./dist/src/index.d.ts", | ||
"files": [ | ||
"src", | ||
"dist/src", | ||
"!dist/test", | ||
"!**/*.tsbuildinfo" | ||
], | ||
"exports": { | ||
".": { | ||
"types": "./dist/src/index.d.ts", | ||
"import": "./dist/src/index.js" | ||
} | ||
}, | ||
"gitHead": "b621056a11c9bfe991d1040b22a46651fa907a3c" | ||
"eslintConfig": { | ||
"extends": "ipfs", | ||
"parserOptions": { | ||
"sourceType": "module" | ||
} | ||
}, | ||
"release": { | ||
"branches": [ | ||
"master" | ||
], | ||
"plugins": [ | ||
[ | ||
"@semantic-release/commit-analyzer", | ||
{ | ||
"preset": "conventionalcommits", | ||
"releaseRules": [ | ||
{ | ||
"breaking": true, | ||
"release": "major" | ||
}, | ||
{ | ||
"revert": true, | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "feat", | ||
"release": "minor" | ||
}, | ||
{ | ||
"type": "fix", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "docs", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "test", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "deps", | ||
"release": "patch" | ||
}, | ||
{ | ||
"scope": "no-release", | ||
"release": false | ||
} | ||
] | ||
} | ||
], | ||
[ | ||
"@semantic-release/release-notes-generator", | ||
{ | ||
"preset": "conventionalcommits", | ||
"presetConfig": { | ||
"types": [ | ||
{ | ||
"type": "feat", | ||
"section": "Features" | ||
}, | ||
{ | ||
"type": "fix", | ||
"section": "Bug Fixes" | ||
}, | ||
{ | ||
"type": "chore", | ||
"section": "Trivial Changes" | ||
}, | ||
{ | ||
"type": "docs", | ||
"section": "Documentation" | ||
}, | ||
{ | ||
"type": "deps", | ||
"section": "Dependencies" | ||
}, | ||
{ | ||
"type": "test", | ||
"section": "Tests" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"@semantic-release/changelog", | ||
"@semantic-release/npm", | ||
"@semantic-release/github", | ||
"@semantic-release/git" | ||
] | ||
}, | ||
"scripts": { | ||
"build": "aegir build", | ||
"lint": "aegir lint", | ||
"dep-check": "aegir dep-check", | ||
"clean": "aegir clean", | ||
"test": "aegir test", | ||
"test:node": "aegir test -t node --cov", | ||
"test:chrome": "aegir test -t browser --cov", | ||
"test:chrome-webworker": "aegir test -t webworker", | ||
"test:firefox": "aegir test -t browser -- --browser firefox", | ||
"test:firefox-webworker": "aegir test -t webworker -- --browser firefox", | ||
"release": "aegir release" | ||
}, | ||
"dependencies": { | ||
"it-batch": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"aegir": "^37.5.0", | ||
"delay": "^5.0.0", | ||
"it-all": "^2.0.0" | ||
} | ||
} |
@@ -1,21 +0,29 @@ | ||
# it-parallel-batch | ||
# it-parallel-batch <!-- omit in toc --> | ||
[![Build status](https://github.com/achingbrain/it/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/achingbrain/it/actions/workflows/test.yml) [![Coverage Status](https://coveralls.io/repos/github/achingbrain/it/badge.svg?branch=master)](https://coveralls.io/github/achingbrain/it?branch=master) [![Dependencies Status](https://david-dm.org/achingbrain/it/status.svg?path=packages/it-parallel-batch)](https://david-dm.org/achingbrain/it?path=packages/it-parallel-batch) | ||
[![codecov](https://img.shields.io/codecov/c/github/achingbrain/it.svg?style=flat-square)](https://codecov.io/gh/achingbrain/it) | ||
[![CI](https://img.shields.io/github/workflow/status/achingbrain/it/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/achingbrain/it/actions/workflows/js-test-and-release.yml) | ||
> Takes an (async) iterable that emits promise-returning functions, invokes them in parallel and emits the results as they become available but in the same order as the input | ||
> Takes an async iterator that emits promise-returning functions, invokes them in parallel and emits the results in the same order as the input | ||
The final batch may be smaller than the batch size. | ||
## Table of contents <!-- omit in toc --> | ||
- [Install](#install) | ||
- [Usage](#usage) | ||
- [License](#license) | ||
- [Contribute](#contribute) | ||
## Install | ||
```sh | ||
$ npm install --save it-parallel-batch | ||
```console | ||
$ npm i it-parallel-batch | ||
``` | ||
The final batch may be smaller than the batch size. | ||
## Usage | ||
```javascript | ||
const parallelBatch = require('it-parallel-batch') | ||
const all = require('it-all') | ||
const delay = require('delay') | ||
import parallelBatch from 'it-parallel-batch' | ||
import all from 'it-all' | ||
import delay from 'delay' | ||
@@ -47,1 +55,12 @@ // This can also be an iterator, async iterator, generator, etc | ||
``` | ||
## License | ||
Licensed under either of | ||
- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>) | ||
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>) | ||
## Contribute | ||
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions. |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
8723
3
8
0
66
0
Yes
1
80
58
1
+ Addedit-batch@2.0.1(transitive)
- Removedit-batch@1.0.9(transitive)
Updatedit-batch@^2.0.0