1.9.0 - 2021-11-03
pool.stop()method- add
downlevelIteration: trueoption totsconfig.json
- bump dependencies
- use UVU and c8 for testing (instead of Jest)
- refined example output (in
examples/promise-pool.js) - extend
READMEwith examples on how to stop an active promise pool
1.8.0 - 2021-09-24
- test code on Node.js v16
- provide
indexas the second argument in theprocessfunctionawait PromisePool .withConcurrency(2) .for([1,2,3,4]) .process(async (num, index) => { // processing … })
- bump dependencies
- testing on Node.js v15
1.7.0 - 2021-04-11
- bump dependencies
- refactored code to not use the
@supercharge/goodiespackage
- dependency to
@supercharge/goodies
1.6.2 - 2021-04-09
- bump dependencies
- missing concurrency in certain cases when not calling
.withConcurrency()
1.6.1 - 2021-03-28
- typing error when processing a promise pool that was created from non-static methods
1.6.0 - 2020-11-03
.handleError(handler)method: aka “bring your own error handling”. This allows you to take over error handling from the pool. If you impelement the.handleErrormethod, the pool won’t collect errors anymore. It puts error handling in your hands.
- bump dependencies
- failed tasks are handled properly now and the pool ensures the concurrency limit. Before, the pool started to process all items as soon as one failed
1.5.0 - 2020-09-20
- bump dependencies
- return types for
resultsanderrorsnow resolve properly for sync and async action handlers
1.4.0 - 2020-09-17
- improved types supporting typed return values
- improved error handling when rejecting a promise without an error instance (thank you wzh)
- bump dependencies
- change
mainentrypoint inpackage.jsontodistfolder - move test runner from
@hapi/labtojest - move assertions from
@hapi/codetojest
1.3.0 - 2020-07-16
- TypeScript typings
- bump dependencies
- moved code base to TypeScript to automatically generate type definitions
1.2.0 - 2019-10-15
- static methods for
.withConcurrencyand.for- moves boilerplate from your code to the promise pool package
new Pool().for(items)is nowPool.for(items))new Pool().withConcurrency(2)is nowPool.withConcurrency(2))- it’s always the details :)
- bump dependencies
1.1.1 - 2019-09-24
- bump dependencies
- move package docs to Supercharge docs
1.1.0 - 2019-08-14
module.exports.default
- bump dependencies
- update NPM scripts
1.0.0release 🚀 🎉