Skip to content

Commit 37bd36b

Browse files
committed
chore: publish v9.1.0
1 parent 772cd3a commit 37bd36b

File tree

6 files changed

+14
-8
lines changed

6 files changed

+14
-8
lines changed

HISTORY.md

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
https://github.com/josdejong/workerpool
33

44

5+
## 2024-01-18, version 9.1.0
6+
7+
- Support capturing the stdout/stderr streams from the workers (#425, #423).
8+
Thanks @cpendery.
9+
10+
511
## 2023-12-22, version 9.0.4
612

713
- Improve the logic to detect the Node.js platform (#421). Thanks @tamuratak.

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Apache License
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright (C) 2014-2023 Jos de Jong [email protected]
189+
Copyright (C) 2014-2024 Jos de Jong [email protected]
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ To see the coverage results, open the generated report in your browser:
515515

516516
## License
517517

518-
Copyright (C) 2014-2023 Jos de Jong <[email protected]>
518+
Copyright (C) 2014-2024 Jos de Jong <[email protected]>
519519

520520
Licensed under the Apache License, Version 2.0 (the "License");
521521
you may not use this file except in compliance with the License.

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "workerpool",
33
"license": "Apache-2.0",
4-
"version": "9.0.4",
4+
"version": "9.1.0",
55
"description": "Offload tasks to a pool of workers on node.js and in the browser",
66
"homepage": "https://github.com/josdejong/workerpool",
77
"author": "Jos de Jong <[email protected]> (https://github.com/josdejong)",

src/types.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
* - In case of `'web'`, a Web Worker will be used. Only available in a browser environment.
1818
* - In case of `'process'`, `child_process` will be used. Only available in a node.js environment.
1919
* - In case of `'thread'`, `worker_threads` will be used. If `worker_threads` are not available, an error is thrown. Only available in a node.js environment.
20-
* @property {number} [workerTerminateTimeout] The timeout in milliseconds to wait for a worker to cleanup it's resources on termination before stopping it forcefully. Default value is `1000`.
20+
* @property {number} [workerTerminateTimeout] The timeout in milliseconds to wait for a worker to clean up it's resources on termination before stopping it forcefully. Default value is `1000`.
2121
* @property {string[]} [forkArgs] For `process` worker type. An array passed as `args` to [child_process.fork](https://nodejs.org/api/child_process.html#child_processforkmodulepath-args-options)
2222
* @property {import('child_process').ForkOptions} [forkOpts] For `process` worker type. An object passed as `options` to [child_process.fork](https://nodejs.org/api/child_process.html#child_processforkmodulepath-args-options).
23-
* @property {WorkerOptions} [workerOpts] For `web` worker type. An object passed to the [constructor of the web worker](https://html.spec.whatwg.org/multipage/workers.html#dom-worker). See [WorkerOptions specification](https://html.spec.whatwg.org/multipage/workers.html#workeroptions) for available options.
23+
* @property {WorkerOptions} [workerOpts] For `web` worker type. An object passed to the [constructor of the web worker](https://html.spec.whatwg.org/multipage/workers.html#dom-worker). See [WorkerOptions specification](https://html.spec.whatwg.org/multipage/workers.html#workeroptions) for available options.
2424
* @property {import('worker_threads').WorkerOptions} [workerThreadOpts] Object`. For `worker` worker type. An object passed to [worker_threads.options](https://nodejs.org/api/worker_threads.html#new-workerfilename-options).
25-
* @property {boolean} [emitStdStreams] Emit stdout and stdout from worker under the `stdout` and `stderr` events. Not supported by `web` worker type.
25+
* @property {boolean} [emitStdStreams] Capture stdout and stderr from the worker and emit them via the `stdout` and `stderr` events. Not supported by the `web` worker type.
2626
* @property { (arg: WorkerArg) => WorkerArg | undefined } [onCreateWorker] A callback that is called whenever a worker is being created. It can be used to allocate resources for each worker for example. Optionally, this callback can return an object containing one or more of the `WorkerArg` properties. The provided properties will be used to override the Pool properties for the worker being created.
2727
* @property { (arg: WorkerArg) => void } [onTerminateWorker] A callback that is called whenever a worker is being terminated. It can be used to release resources that might have been allocated for this specific worker. The callback is passed as argument an object as described for `onCreateWorker`, with each property sets with the value for the worker being terminated.
2828
*/

0 commit comments

Comments
 (0)