3 All notable changes to this project will be documented in this file.
5 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
12 - Make continuous tasks stealing start at worker node idling.
14 ## [3.0.6] - 2023-11-24
18 - Ensure pool statuses are checked at initialization, `start()` or `destroy()`.
19 - Ensure pool `ready` event can be emitted after several `start()/destroy()` cycles.
21 ## [3.0.5] - 2023-10-27
25 - Ensure pool `ready` event can be emitted only once.
27 ## [3.0.4] - 2023-10-20
31 - Switch to Bencher for benchmarking: [https://bencher.dev/perf/poolifier](https://bencher.dev/perf/poolifier).
32 - Use builtin retry mechanism in worker choice strategies instead of custom one.
34 ## [3.0.3] - 2023-10-19
38 - Avoid null exception at sending message to worker.
39 - Avoid null exception at checking worker node readiness.
41 ## [3.0.2] - 2023-10-17
45 - Fix race condition at dynamic worker node task assignment and scheduled removal. See issue [#1468](https://github.com/poolifier/poolifier/issues/1468) and [#1496](https://github.com/poolifier/poolifier/issues/1496).
47 ## [3.0.1] - 2023-10-16
51 - Workaround possible race condition at work nodes array element removal and querying. See issue [#1468](https://github.com/poolifier/poolifier/issues/1468).
55 - Switch the worker node eventing code to `EventTarget` API.
57 ## [3.0.0] - 2023-10-08
61 - Remove Node.js 16.x.x (EOL) support.
63 ## [2.7.5] - 2023-10-03
67 - Use `EventEmitterAsyncResource` type from `@types/node` for pool event emitter. TypeScript users will need to update to latest `@types/node` version.
69 ## [2.7.4] - 2023-09-25
73 - Fix source maps (bundler issue).
75 ## [2.7.3] - 2023-09-24
79 - Convert pool event emitter to event emitter async resource.
81 ## [2.7.2] - 2023-09-23
85 - Add source maps to npm package to ease debugging.
89 - Continuous benchmarking versus other worker pools: [https://poolifier.github.io/benchmark](https://poolifier.github.io/benchmark).
91 ## [2.7.1] - 2023-09-20
95 - Ensure worker message listener used one time are removed after usage.
97 ## [2.7.0] - 2023-09-19
101 - Fix task stealing related tasks queue options handling at runtime.
105 - Rename `listTaskFunctions()` to `listTaskFunctionNames()` in pool and worker API.
109 - Add `hasTaskFunction()`, `addTaskFunction()`, `removeTaskFunction()`, `setDefaultTaskFunction()` methods to pool API: [PR #1148](https://github.com/poolifier/poolifier/pull/1148).
110 - Stricter worker constructor arguments validation.
112 ## [2.6.45] - 2023-09-17
116 - Disable publication on GitHub packages registry on release until authentication issue is fixed.
120 - Add `startWorkers` to pool options to whether start the minimum number of workers at pool initialization or not.
121 - Add `start()` method to pool API to start the minimum number of workers.
122 - Add `taskStealing` and `tasksStealingOnPressure` to tasks queue options to whether enable task stealing or not and whether enable tasks stealing under back pressure or not.
123 - Continuous internal benchmarking: [https://poolifier.github.io/benchmark-results/dev/bench](https://poolifier.github.io/benchmark-results/dev/bench).
125 ## [2.6.44] - 2023-09-08
129 - Use a dedicated PAT to publish on GitHub packages registry.
133 - Publish on GitHub packages registry on release.
137 - Switch from rome to biome: [PR #1128](https://github.com/poolifier/poolifier/pull/1128).
139 ## [2.6.43] - 2023-09-08
143 - Publish on GitHub packages registry on release.
147 - Switch from rome to biome: [PR #1128](https://github.com/poolifier/poolifier/pull/1128).
149 ## [2.6.42] - 2023-09-06
153 - Optimize hot code paths implementation: avoid unnecessary branching, add and use optimized helpers (min, max), use reduce() array helper, ...
155 ## [2.6.41] - 2023-09-03
159 - Optimize worker choice strategies implementation.
161 ## [2.6.40] - 2023-09-01
165 - Do not pre-choose in WRR worker choice strategy to avoid bias.
166 - Avoid array out of bound in worker choice strategies after worker node removal.
168 ## [2.6.39] - 2023-08-30
172 - Fix race condition in worker choice strategies at worker node info querying while not yet initialized.
174 ## [2.6.38] - 2023-08-30
178 - Bundle typescript types declaration into one file.
182 - Improve interleaved weighted round robin worker choice strategy implementation.
184 ## [2.6.37] - 2023-08-28
188 - Ensure unused worker usage statistics are deleted at runtime.
192 - Rename worker choice strategy options `choiceRetries` to `retries`.
193 - Avoid unnecessary branching in worker choice strategies.
195 ## [2.6.36] - 2023-08-27
199 - Fix pool `execute()` arguments check.
203 - Make continuous tasks stealing algorithm less aggressive.
204 - Fine tune tasks stealing algorithm under back pressure.
206 ## [2.6.35] - 2023-08-25
210 - Don't account worker usage statistics for tasks that have failed.
211 - Fix pool information runtime and wait time median computation.
215 - Update simple moving average implementation to use a circular buffer.
216 - Update simple moving median implementation to use a circular buffer.
217 - Account for stolen tasks in worker usage statistics and pool information.
221 - Continuous tasks stealing algorithm.
223 ## [2.6.34] - 2023-08-24
227 - Avoid cascading tasks stealing under back pressure.
231 - Add fastpath to queued tasks rescheduling.
233 ## [2.6.33] - 2023-08-24
237 - Fix queued tasks rescheduling.
241 - Rename tasks queue options `queueMaxSize` to `size`.
245 - Task stealing scheduling algorithm if tasks queueing is enabled.
247 ## [2.6.32] - 2023-08-23
251 - Ensure no task can be executed when the pool is destroyed.
255 - Add `queueMaxSize` option to tasks queue options.
256 - Add O(1) deque implementation implemented with doubly linked list and use it for tasks queueing.
257 - Add tasks stealing algorithm when a worker node queue is back pressured if tasks queueing is enabled.
259 ## [2.6.31] - 2023-08-20
263 - Fix worker choice strategy retries mechanism in some edge cases.
267 - Make orthogonal worker choice strategies tasks distribution and created dynamic worker usage.
268 - Remove the experimental status of the `LEAST_ELU` worker choice strategy.
270 ## [2.6.30] - 2023-08-19
274 - Ensure pool event `backPressure` is emitted.
275 - Ensure pool event `full` is emitted only once.
276 - Ensure worker node cannot be instantiated without proper arguments.
278 ## [2.6.29] - 2023-08-18
282 - Fix race condition between readiness and task functions worker message handling at startup.
283 - Fix duplicate task function worker usage statistics computation per task function.
284 - Update task function worker usage statistics if and only if there's at least two different task functions.
285 - Fix race condition at task function worker usage executing task computation leading to negative value.
289 - Add back pressure detection on the worker node queue. Event `backPressure` is emitted when all worker node queues are full (worker node queue size >= poolMaxSize^2).
290 - Use back pressure detection in worker choice strategies.
291 - Add worker choice strategies retries mechanism if no worker is eligible.
293 ## [2.6.28] - 2023-08-16
297 - Ensure pool workers are properly initialized.
301 - HTTP server pool examples: express-cluster, express-hybrid.
305 - Remove now useless branching in worker hot code path.
307 ## [2.6.27] - 2023-08-15
311 - Add `KillHandler` type definition to exported types.
315 - Add `destroy` event to pool API.
317 ## [2.6.26] - 2023-08-15
321 - Add kill handler to worker options allowing to execute custom code when worker is killed.
322 - Add `listTaskFunctions()` method to pool API.
323 - SMTP client pool example: nodemailer.
325 ## [2.6.25] - 2023-08-13
329 - HTTP server pool examples: fastify-cluster, fastify-hybrid.
330 - WebSocket server pool examples: ws-cluster, ws-hybrid.
332 ## [2.6.24] - 2023-08-12
336 - Add array of transferable objects to the `execute()` method arguments.
337 - WebSocket server pool examples: ws-worker_threads.
339 ## [2.6.23] - 2023-08-11
343 - Fix pool busyness semantic when tasks queueing is enabled: the pool is busy when the number of executing tasks on each worker has reached the maximum tasks concurrency per worker.
347 - HTTP client pool examples: fetch, node-fetch and axios with multiple task functions.
348 - HTTP server pool examples: express-worker_threads, fastify-worker_threads.
350 ## [2.6.22] - 2023-08-10
354 - Add missing `types` field to package.json `exports`.
358 - Structure markdown documentation (PR #811).
360 ## [2.6.21] - 2023-08-03
364 - Improve code documentation.
365 - Code refactoring and cleanup for better maintainability and readability.
367 ## [2.6.20] - 2023-07-21
371 - Fix queued tasks redistribution on error task execution starvation.
372 - Ensure tasks queueing per worker condition is untangled from the pool busyness semantic.
376 - Drastically reduce lookups by worker in the worker nodes.
378 ## [2.6.19] - 2023-07-20
382 - Dedicated internal communication channel for worker_threads pools.
384 ## [2.6.18] - 2023-07-19
388 - Code refactoring and cleanup for better maintainability and readability. Bundle size is a bit smaller.
390 ## [2.6.17] - 2023-07-16
394 - Add `listTaskFunctions()` method to worker API.
396 ## [2.6.16] - 2023-07-12
400 - Fix pool startup detection.
401 - Fix worker task functions handling.
403 ## [2.6.15] - 2023-07-11
407 - Take into account worker node readiness in worker choice strategies.
409 ## [2.6.14] - 2023-07-10
413 - Fix task function statistics tracking.
415 ## [2.6.13] - 2023-07-10
419 - Add per task function statistics tracking.
420 - Add public methods to manipulate the worker task functions at runtime.
422 ## [2.6.12] - 2023-07-09
426 - Workaround import issue with `node:os` module in node 16.x.x.
428 ## [2.6.11] - 2023-07-09
432 - Fix pool readiness semantic.
434 ## [2.6.10] - 2023-07-08
438 - Ensure workers are not recreated on error at pool startup.
442 - Add `ready` and `strategy` fields to pool information.
443 - Add pool event `ready` to notify when the number of workers created in the pool has reached the maximum size expected and are ready.
444 - Add dynamic pool sizing checks.
446 ## [2.6.9] - 2023-07-07
450 - Recreate the right worker type on uncaught exception.
454 - Add minimum and maximum to internal measurement statistics.
455 - Add `runTime` and `waitTime` to pool information.
456 - Check worker inactive time only on dynamic worker.
458 ## [2.6.8] - 2023-07-03
462 - Brown paper bag release to fix version handling in pool information.
464 ## [2.6.7] - 2023-07-03
468 - Ensure worker queued tasks at error are reassigned to other pool workers.
472 - Add pool `utilization` ratio to pool information.
473 - Add `version` to pool information.
474 - Add worker information to worker nodes.
476 ## [2.6.6] - 2023-07-01
480 - Add safe helper `availableParallelism()` to help sizing the pool.
484 - Ensure message handler is only registered in worker.
486 ## [2.6.5] - 2023-06-27
490 - Cluster pools tasks execution are not working by using ESM files extension: https://github.com/poolifier/poolifier/issues/782
494 - Artificial version bump to 2.6.5 to workaround publication issue.
495 - Ensure cluster pool `destroy()` gracefully shutdowns worker's server.
496 - Ensure pool event is emitted before task error promise rejection.
497 - Fix queued tasks count computation.
501 - Remove unneeded worker_threads worker `MessageChannel` internal usage for IPC.
503 ## [2.6.4] - 2023-06-27
507 - Cluster pools tasks execution are not working by using ESM files extension: https://github.com/poolifier/poolifier/issues/782
511 - Ensure cluster pool `destroy()` gracefully shutdowns worker's server.
512 - Ensure pool event is emitted before task error promise rejection.
513 - Fix queued tasks count computation.
517 - Remove unneeded worker_threads worker `MessageChannel` internal usage for IPC.
519 ## [2.6.3] - 2023-06-19
523 - Ensure no tasks are queued when trying to soft kill a dynamic worker.
524 - Update strategies internals after statistics computation.
528 - Optimize O(1) queue implementation.
530 ## [2.6.2] - 2023-06-12
534 - Fix new worker use after creation in dynamic pool given the current worker choice strategy.
536 ## [2.6.1] - 2023-06-10
540 - Add worker choice strategy documentation: [README.md](./docs/worker-choice-strategies.md).
544 - Fix average statistics computation: ensure failed tasks are not accounted.
546 ## [2.6.0] - 2023-06-09
550 - Add `LEAST_ELU` worker choice strategy (experimental).
551 - Add tasks ELU instead of runtime support to `FAIR_SHARE` worker choice strategy.
555 - Refactor pool worker node usage internals.
556 - Breaking change: refactor worker choice strategy statistics requirements: the syntax of the worker choice strategy options has changed.
557 - Breaking change: pool information `info` property object fields have been renamed.
561 - Fix wait time accounting.
562 - Ensure worker choice strategy `LEAST_BUSY` accounts also tasks wait time.
563 - Ensure worker choice strategy `LEAST_USED` accounts also queued tasks.
565 ## [2.5.4] - 2023-06-07
569 - Add Event Loop Utilization (ELU) statistics to worker tasks usage.
573 - Compute statistics at the worker level only if needed.
574 - Add `worker_threads` options to thread pool options.
578 - Make the `LEAST_BUSY` strategy only relies on task runtime.
580 ## [2.5.3] - 2023-06-04
584 - Refine pool information content.
585 - Limit pool internals public exposure.
587 ## [2.5.2] - 2023-06-02
591 - Add `taskError` pool event for task execution error.
592 - Add pool information `info` property to pool.
593 - Emit pool information on `busy` and `full` pool events.
595 ## [2.5.1] - 2023-06-01
599 - Add pool option `restartWorkerOnError` to restart worker on uncaught error. Default to `true`.
600 - Add `error` pool event for uncaught worker error.
602 ## [2.5.0] - 2023-05-31
606 - Switch pool event emitter to `EventEmitterAsyncResource`.
607 - Add tasks wait time accounting in per worker tasks usage.
608 - Add interleaved weighted round robin `INTERLEAVED_WEIGHTED_ROUND_ROBIN` worker choice strategy (experimental).
612 - Renamed worker choice strategy `LESS_BUSY` to `LEAST_BUSY` and `LESS_USED` to `LEAST_USED`.
614 ## [2.4.14] - 2023-05-09
618 - Ensure no undefined task runtime can land in the tasks history.
619 - Fix median computation implementation once again.
623 - Unit tests for median and queue implementations.
625 ## [2.4.13] - 2023-05-08
629 - Fix worker choice strategy options validation.
630 - Fix fair share worker choice strategy internals update: ensure virtual task end timestamp is computed at task submission.
632 ## [2.4.12] - 2023-05-06
636 - Support multiple task functions per worker.
637 - Add custom worker weights support to worker choice strategies options.
641 - Use O(1) queue implementation for tasks queueing.
645 - Fix median computation implementation.
646 - Fix fair share worker choice strategy internals update.
648 ## [2.4.11] - 2023-04-23
652 - Optimize free worker finding in worker choice strategies.
654 ## [2.4.10] - 2023-04-15
658 - Fix typescript type definition for task function: ensure the input data is optional.
659 - Fix typescript type definition for pool execute(): ensure the input data is optional.
661 ## [2.4.9] - 2023-04-15
665 - Add tasks queue enablement runtime setter to pool.
666 - Add tasks queue options runtime setter to pool.
667 - Add worker choice strategy options runtime setter to pool.
671 - Remove the tasks queuing experimental status.
675 - Fix task function type definition and validation.
676 - Fix worker choice strategy options handling.
678 ## [2.4.8] - 2023-04-12
682 - Fix message between main worker and worker type definition for tasks.
683 - Fix code documentation.
685 ## [2.4.7] - 2023-04-11
689 - Add worker tasks queue options to pool options.
693 - Fix missing documentation.
695 ## [2.4.6] - 2023-04-10
699 - Ensure one task at a time is executed per worker with tasks queueing enabled.
700 - Properly count worker executing tasks with tasks queueing enabled.
702 ## [2.4.5] - 2023-04-09
706 - Use monotonic high resolution timer for worker tasks runtime.
707 - Add worker tasks median runtime to statistics.
708 - Add worker tasks queue (experimental).
710 ## [2.4.4] - 2023-04-07
714 - Add `PoolEvents` enumeration and `PoolEvent` type.
718 - Destroy worker only on alive check.
720 ## [2.4.3] - 2023-04-07
724 - Fix typedoc generation with inheritance.
726 ## [2.4.2] - 2023-04-06
730 - Add `full` event to dynamic pool.
731 - Keep worker choice strategy in memory for conditional reuse.
735 - Fix possible negative worker key at worker removal in worker choice strategies.
737 ## [2.4.1] - 2023-04-05
741 - Optimize worker choice strategy for dynamic pool.
745 - Ensure dynamic pool does not alter worker choice strategy expected behavior.
747 ## [2.4.0] - 2023-04-04
751 - Add `LESS_BUSY` worker choice strategy.
755 - Optimize worker storage in pool.
756 - Optimize worker alive status check.
757 - BREAKING CHANGE: Rename worker choice strategy `LESS_RECENTLY_USED` to `LESS_USED`.
758 - Optimize `LESS_USED` worker choice strategy.
759 - Update benchmark versus external threads pools.
760 - Optimize tasks usage statistics requirements for worker choice strategy.
764 - Ensure trimmable characters are checked at pool initialization.
765 - Fix message id integer overflow.
766 - Fix pool worker removal in worker choice strategy internals.
767 - Fix package publication with pnpm.
769 ## [2.4.0-3] - 2023-04-04
773 - Add `LESS_BUSY` worker choice strategy.
777 - Optimize worker storage in pool.
778 - Optimize worker alive status check.
779 - BREAKING CHANGE: Rename worker choice strategy `LESS_RECENTLY_USED` to `LESS_USED`.
780 - Optimize `LESS_USED` worker choice strategy.
781 - Update benchmark versus external threads pools.
785 - Ensure trimmable characters are checked at pool initialization.
786 - Fix message id integer overflow.
787 - Fix pool worker removal in worker choice strategy internals.
788 - Fix package publication with pnpm.
790 ## [2.4.0-2] - 2023-04-03
794 - Add `LESS_BUSY` worker choice strategy.
798 - Optimize worker storage in pool.
799 - Optimize worker alive status check.
800 - BREAKING CHANGE: Rename worker choice strategy `LESS_RECENTLY_USED` to `LESS_USED`.
801 - Optimize `LESS_USED` worker choice strategy.
805 - Ensure trimmable characters are checked at pool initialization.
806 - Fix message id integer overflow.
807 - Fix pool worker removal in worker choice strategy internals.
808 - Fix package publication with pnpm.
810 ## [2.4.0-1] - 2023-04-03
814 - Add `LESS_BUSY` worker choice strategy.
818 - Optimize worker storage in pool.
819 - Optimize worker alive status check.
820 - BREAKING CHANGE: Rename worker choice strategy `LESS_RECENTLY_USED` to `LESS_USED`.
821 - Optimize `LESS_USED` worker choice strategy.
825 - Ensure trimmable characters are checked at pool initialization.
826 - Fix message id integer overflow.
827 - Fix pool worker removal in worker choice strategy internals.
829 ## [2.4.0-0] - 2023-04-03
833 - Add `LESS_BUSY` worker choice strategy.
837 - Optimize worker storage in pool.
838 - Optimize worker alive status check.
839 - BREAKING CHANGE: Rename worker choice strategy `LESS_RECENTLY_USED` to `LESS_USED`.
840 - Optimize `LESS_USED` worker choice strategy.
844 - Ensure trimmable characters are checked at pool initialization.
845 - Fix message id integer overflow.
846 - Fix pool worker removal in worker choice strategy internals.
848 ## [2.3.10] - 2023-03-18
852 - Fix package.json `exports` syntax for ESM and CommonJS.
856 - Permit SemVer pre-release publication.
858 ## [2.3.10-2] - 2023-03-18
862 - Fix package.json `exports` syntax for ESM and CommonJS.
864 ## [2.3.10-1] - 2023-03-18
868 - Permit SemVer pre-release publication.
870 ## [2.3.10-0] - 2023-03-18
874 - Fix package.json `exports` syntax for ESM and CommonJS.
876 ## [2.3.9] - 2023-03-18
880 - Introduce ESM module support along with CommonJS one.
884 - Fix brown paper bag bug referencing the same object literal.
886 ## [2.3.8] - 2023-03-18
890 - Switch internal benchmarking code to benny.
891 - Switch to TypeScript 5.x.x.
892 - Switch rollup bundler plugins to core ones.
893 - Switch to TSDoc syntax.
894 - Enforce conventional commits.
898 - Fix random integer generator.
899 - Fix worker choice strategy pool type identification at initialization.
901 ## [2.3.7] - 2022-10-23
905 - Switch to open collective FOSS project funding platform.
906 - Switch to ts-standard linter configuration on TypeScript code.
910 - Fixed missing async on pool execute method.
911 - Fixed typing in TypeScript example.
912 - Fixed types in unit tests.
914 ## [2.3.6] - 2022-10-22
918 - Cleanup pool attributes and methods.
919 - Refine error types thrown.
923 - Fix continuous integration build on windows.
924 - Fix code coverage reporting by using c8 instead of nyc.
926 ## [2.3.5] - 2022-10-21
930 - Improve benchmarks: add IO intensive task workload, add task size option, integrate code into linter.
931 - Optimize tasks usage lookup implementation.
935 - Fix missed pool event emitter type export.
936 - Fix typedoc documentation generation.
938 ## [2.3.4] - 2022-10-17
942 - Fully automate release process with release-it.
946 - Optimize fair share task scheduling algorithm implementation.
947 - Update benchmark versus external pools results with latest version.
949 ## [2.3.3] - 2022-10-15
953 - Add support for [cluster settings](https://nodejs.org/api/cluster.html#cluster_cluster_settings) in cluster pool options.
955 ## [2.3.2] - 2022-10-14
959 - Optimize fair share worker selection strategy implementation.
963 - Fix WRR worker selection strategy: ensure the condition triggering the round robin can be fulfilled.
965 ## [2.3.1] - 2022-10-13
969 - Pool worker choice strategies:
970 - `WorkerChoiceStrategies.WEIGHTED_ROUND_ROBIN` strategy based on weighted round robin scheduling algorithm using tasks execution time for now.
971 - `WorkerChoiceStrategies.FAIR_SHARE` strategy based on fair share scheduling algorithm using tasks execution time for now.
973 ## [2.2.2] - 2022-10-09
977 - Fixed `README.md` file.
979 ## [2.2.1] - 2022-10-08
983 - Dynamic worker choice strategy change at runtime.
985 ## [2.2.0] - 2022-01-05
989 - Support only Node.js version 16.x.x for cluster pool: upstream cluster API have changed on that version.
991 ## [2.1.0] - 2021-08-29
995 - Add an optional pool option `messageHandler` to `PoolOptions<Worker>` for registering a message handler callback on each worker.
999 - `AbstractWorker` class `maxInactiveTime`, `killBehavior` and `async` attributes have been removed in favour of the same ones in the worker options `opts` public attribute.
1000 - `AbstractWorker` class `lastTask` attribute have been renamed to `lastTaskTimestamp`.
1001 - `AbstractWorker` class `interval` attribute have been renamed to `aliveInterval`.
1002 - `AbstractWorker` class cannot be instantiated without specifying the `mainWorker` argument referencing the main worker.
1004 ## [2.0.2] - 2021-05-12
1008 - Fix `busy` event emission on fixed pool type
1010 ## [2.0.1] - 2021-03-16
1014 - Check if pool options are properly set.
1015 - `busy` event is emitted on all pool types.
1017 ## [2.0.0] - 2021-03-01
1021 - Now a thread/process by default is not deleted when the task submitted take more time than maxInactiveTime configured (issue #70).
1023 ### Breaking Changes
1025 - `FullPool` event is now renamed to `busy`.
1026 - `maxInactiveTime` on `ThreadWorker` default behavior is now changed, if you want to keep the old behavior set `killBehavior` to `KillBehaviors.HARD`.
1027 _Find more details on our JSDoc._
1029 - `maxTasks` option on `FixedThreadPool` and `DynamicThreadPool` is now removed since is no more needed.
1031 - We changed some internal structures, but you shouldn't be too affected by them as these are internal changes.
1033 ### Pool options types declaration merge
1035 `FixedThreadPoolOptions` and `DynamicThreadPoolOptions` type declarations have been merged to `PoolOptions<Worker>`.
1037 #### New `export` strategy
1041 const DynamicThreadPool = require('poolifier/lib/dynamic')
1043 const { DynamicThreadPool } = require('poolifier/lib/dynamic')
1046 But you should always prefer just using
1049 const { DynamicThreadPool } = require('poolifier')
1052 #### New type definitions for input data and response
1054 For cluster worker and worker-thread pools, you can now only send and receive structured-cloneable data.
1055 _This is not a limitation by poolifier but Node.js._
1057 #### Public property replacements
1059 `numWorkers` property is now `numberOfWorkers`
1061 #### Internal (protected) properties and methods renaming
1063 These properties are not intended for end users
1065 - `id` => `nextMessageId`
1067 These methods are not intended for end users
1069 - `_chooseWorker` => `chooseWorker`
1070 - `_newWorker` => `createWorker`
1071 - `_execute` => `internalExecute`
1072 - `_chooseWorker` => `chooseWorker`
1073 - `_checkAlive` => `checkAlive`
1075 - `_runAsync` => `runAsync`
1077 ## [1.1.0] - 2020-05-21
1081 - ThreadWorker support async functions as option
1082 - Various external library patches
1084 ## [1.0.0] - 2020-01-24
1088 - FixedThreadPool implementation
1089 - DynamicThreadPool implementation
1090 - WorkerThread implementation to improve developer experience