Socket
Socket
Sign inDemoInstall

workerpool

Package Overview
Dependencies
0
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous12356Next

5.0.4

Diff

Changelog

Source

2019-12-31, version 5.0.4

  • Fixed #121: isMainThread not working when using worker_threads.
  • Drop official support for node.js 8 (end of life).
josdejong
published 5.0.3 •

Changelog

Source

2019-12-23, version 5.0.3

  • Fixed library not working in the browser. See #106.
josdejong
published 5.0.2 •

Changelog

Source

2019-11-06, version 5.0.2

  • Fixed environment detection in browser. See #106. Thanks @acgrid.
josdejong
published 5.0.1 •

Changelog

Source

2019-10-13, version 5.0.1

  • Fixed #96: WorkerPool not cancelling any pending tasks on termination.
josdejong
published 5.0.0 •

Changelog

Source

2019-08-25, version 5.0.0

  • Deprecated option nodeWorker and created a new, more extensive option workerType giving full control over the selected type of worker. Added new option 'web' to enforce use a Web Worker. See #85, #74.
  • In a node.js environment, the default workerType is changed from 'process' to 'thread'. See #85, #50.
  • Improved detection of environment (browser or node), fixing wrong detection in a Jest test environment. See #85.
josdejong
published 4.0.0 •

Changelog

Source

2019-08-21, version 4.0.0

  • Pass argument --max-old-space-size to child processes. Thanks @patte.
  • Removed redundant dependencies, upgraded all devDependencies.
  • Fixed Webpack issues of missing modules child_process and worker_threads. See #43.
  • Bundled library changed due to the upgrade to Webpack 4. This could possibly lead to breaking changes.
  • Implemented new option maxQueueSize. Thanks @colomboe.
  • Fixed exiting workers when the parent process is killed. Thanks @RogerKang.
  • Fixed #81: Option minWorkers: 'max' not using the configured maxWorkers.
  • Fixed not passing nodeWorker to workers initialized when creating a pool. Thanks @spacelan.
  • Internal restructure of the code: moved from lib to src.
josdejong
published 3.1.2 •

Changelog

Source

2019-03-12, version 3.1.2

  • Improved error message when a node.js worker unexpectedly exits (see #58). Thanks @stefanpenner.

  • Allocate debug ports safely, this fixes an issue cause workers to exit unexpectedly if more then one worker pool is active, and the process is started with a debugger (node debug or node --inspect). Thanks @stefanpenner.

josdejong
published 3.1.1 •

Changelog

Source

2019-02-25, version 3.1.1

  • Fix option nodeWorker: 'auto' not using worker threads when available. Thanks @stefanpenner.
josdejong
published 3.1.0 •

Changelog

Source

2019-02-17, version 3.1.0

  • Implemented support for using worker_threads in Node.js, via the new option nodeWorker: 'thread'. Thanks @stefanpenner.
josdejong
published 3.0.0 •

Changelog

Source

2018-12-11, version 3.0.0

  • Enable usage in ES6 Webpack projects.
  • Dropped support for AMD module system.
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc