Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@supercharge/promise-pool

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@supercharge/promise-pool - npm Package Versions

13

2.0.0

Diff

Changelog

Source

2.0.0 - 2021-11-09

Breaking Changes

The 2.x release line changes the exports of this package:

// Now: 2.x
import { PromisePool } from '@supercharge/promise-pool'
// or
const { PromisePool } = require('@supercharge/promise-pool')

// Before: 1.x
import PromisePool from '@supercharge/promise-pool' // required the `esModuleInterop` flag in tsconfig.json
// or
const PromisePool = require('@supercharge/promise-pool')

The 1.x releases used CommonJS- and ESM-compatible default exports. That required TypeScript packages using ESM imports to enable the esModuleInterop flag in their tsconfig.json file. The named exports in 2.x don’t require that flag anymore.

marcuspoehls
published 1.9.0 •

Changelog

Source

1.9.0 - 2021-11-03

Added

  • pool.stop() method
  • add downlevelIteration: true option to tsconfig.json

Updated

  • bump dependencies
  • use UVU and c8 for testing (instead of Jest)
  • refined example output (in examples/promise-pool.js)
  • extend README with examples on how to stop an active promise pool
marcuspoehls
published 1.8.0 •

Changelog

Source

1.8.0 - 2021-09-24

Added

  • test code on Node.js v16
  • provide index as the second argument in the process function
      await PromisePool
        .withConcurrency(2)
        .for([1,2,3,4])
        .process(async (num, index) => {
          // processing …
        })
    

Updated

  • bump dependencies

Removed

  • testing on Node.js v15
marcuspoehls
published 1.7.0 •

Changelog

Source

1.7.0 - 2021-04-11

Updated

  • bump dependencies
  • refactored code to not use the @supercharge/goodies package

Removed

  • dependency to @supercharge/goodies
marcuspoehls
published 1.6.2 •

Changelog

Source

1.6.2 - 2021-04-09

Updated

  • bump dependencies

Fixed

  • missing concurrency in certain cases when not calling .withConcurrency()
marcuspoehls
published 1.6.1 •

Changelog

Source

1.6.1 - 2021-03-28

Fixed

  • typing error when processing a promise pool that was created from non-static methods
marcuspoehls
published 1.6.0 •

Changelog

Source

1.6.0 - 2020-11-03

Added

  • .handleError(handler) method: aka “bring your own error handling”. This allows you to take over error handling from the pool. If you impelement the .handleError method, the pool won’t collect errors anymore. It puts error handling in your hands.

Updated

  • bump dependencies

Fixed

  • 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
marcuspoehls
published 1.5.0 •

Changelog

Source

1.5.0 - 2020-09-20

Updated

  • bump dependencies
  • return types for results and errors now resolve properly for sync and async action handlers
marcuspoehls
published 1.4.0 •

Changelog

Source

1.4.0 - 2020-09-17

Added

  • improved types supporting typed return values
  • improved error handling when rejecting a promise without an error instance (thank you wzh)

Updated

  • bump dependencies
  • change main entrypoint in package.json to dist folder
  • move test runner from @hapi/lab to jest
  • move assertions from @hapi/code to jest
marcuspoehls
published 1.3.0 •

Changelog

Source

1.3.0 - 2020-07-16

Added

  • TypeScript typings

Updated

  • bump dependencies
  • moved code base to TypeScript to automatically generate type definitions
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc