https://github.com/josdejong/workerpool
-
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 debugornode --inspect). Thanks @stefanpenner.
- Fix option
nodeWorker: 'auto'not using worker threads when available. Thanks @stefanpenner.
- Implemented support for using
worker_threadsin Node.js, via the new optionnodeWorker: 'thread'. Thanks @stefanpenner.
- Enable usage in ES6 Webpack projects.
- Dropped support for AMD module system.
- Fixed space in license field in
package.json. Thanks @sagotsky.
- Add licence field to
package.json. Thanks @greyd.
- Fixed bug where tasks that are cancelled in a Pool's queue causes following tasks to not run. Thanks @greemo.
- New method
Pool.terminate(force, timeout)which will replacePool.clear(force). Thanks @jimsugg. - Fixed issue with never terminating zombie child processes. Thanks @jimsugg.
- Fixed a debug issue: look for
--inspectwithin argument strings, instead of exact match. Thanks @jimsugg.
- Updated all examples to neatly include
.catch(...)callbacks.
- Fixed #25: timer of a timeout starting when the task is created instead of when the task is started. Thanks @eclipsesk for input.
- Fixed #2 and #19: support for debugging child processes. Thanks @tptee.
- Implemented #18: method
pool.stats().
- Implemented support for registering the workers methods asynchronously. This enables asynchronous initialization of workers, for example when using AMD modules. Thanks @natlibfi-arlehiko.
- Implemented environment variables
platform,isMainThread, andcpus. Thanks @natlibfi-arlehiko. - Implemented option
minWorkers. Thanks @sergei202.
- Replaced conversion of Error-objecting using serializerr to custom implementation to prevent issues with serializing/deserializing functions. This conversion implementation loses the prototype object which means that e.g. 'TypeError' will become just 'Error' in the main code. See #8. Thanks @natlibfi-arlehiko.
- Fix for a bug in PhantomJS (see #7). Thanks @natlibfi-arlehiko.
- Determine
maxWorkersas the number of CPU's minus one in browsers too. See #6.
- Fixed #5 error when loading via AMD or bundling using Webpack.
- Implemented serializing errors with stacktrace. Thanks @mujx.
- Added an error message when wrongly calling
pool.proxy. - Fixed function
worker.poolnot accepting both a script and options. See #1. Thanks @freund17.
- Merged function
Pool.runintoPool.exec, simplifying the API.
- Implemented support for cancelling running tasks.
- Implemented support for cancelling running tasks after a timeout.
- Implemented support for both node.js and the browser.
- Implemented offloading functions.
- Implemented worker proxy.
- Added docs and examples.
- Module name registered at npm.