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

workerpool

Package Overview
Dependencies
Maintainers
2
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

workerpool - npm Package Versions

13
7

8.0.0

Diff

Changelog

Source

2023-10-25, version 8.0.0

BREAKING CHANGE: the library now throws an Error when passing unknown or inherited properties for workerOpts, workerThreadOpts and forkOpts.

  • Fix: throw an error in case of unknown properties or inherited properties in workerOpts, workerThreadOpts and forkOpts to protect against security issues related to prototype pollution (see ea5368c5e53d97120b952ffad151a318c1ff073c).
  • Fix: #56 document the return type of all functions.
  • Docs: added a full usage example with Vite and Webpack5 (#408), thanks @KonghaYao.
josdejong
published 7.0.0 •

Changelog

Source

2023-10-25, version 7.0.0

BREAKING CHANGE: The setup to bundle workerpool has been replaced. This should be a drop-in replacement, but it may have impact depending on your setup.

  • Switched build setup from Webpack to Rollup, see #403. Thanks @KonghaYao.
josdejong
published 6.5.1 •

Changelog

Source

2023-10-11, version 6.5.1

  • Fix: workerThreadOpts not working when workerType: auto, see #357.
josdejong
published 6.5.0 •

Changelog

Source

2023-09-13, version 6.5.0

  • Implement support for passing options to web workers constructors (#400, #322). Thanks @DonatJR.
josdejong
published 6.4.2 •

Changelog

Source

2023-08-21, version 6.4.2

  • Fix: a bug in the timeout of termination (#395, #387). Thanks @Michsior14.
josdejong
published 6.4.1 •

Changelog

Source

2023-08-17, version 6.4.1

  • Fix: worker termination before it's ready (#394, #387). Thanks @Michsior14.
josdejong
published 6.4.0 •

Changelog

Source

2023-02-24, version 6.4.0

  • Support transferable objects (#3, #374). Thanks @Michsior14.
  • Implement a new callback onTerminate at the worker side, which can be used to clean up resources, and an option workerTerminateTimeout which forcefully terminates a worker if it doesn't finish in time (#353, #377). Thanks @Michsior14.
  • Pass workerThreadOpts to the onTerminateWorker callback (#376). Thanks @Michsior14.
josdejong
published 6.3.1 •

Changelog

Source

2022-11-07, version 6.3.1

  • Fix #318: debug ports not being released when terminating a pool.
josdejong
published 6.3.0 •

Changelog

Source

2022-10-24, version 6.3.0

  • Implement option workerThreadOpts to pass options to a worker of type thread, a worker_thread (#357, fixes #356). Thanks @galElmalah.
josdejong
published 6.2.1 •

Changelog

Source

2022-04-11, version 6.2.1

  • Fix #343: .terminate() sometimes throwing an exception.
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