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).
10 ## [3.0.9] - 2023-11-26
14 - Remove all pool events listener at pool destroying.
15 - Remove all worker node events listener at worker node destroying.
16 - Fix worker node event emitter listeners handling memory leak at pool options runtime change.
18 ## [3.0.8] - 2023-11-25
22 - Ensure continuous tasks stealing on idle start at worker node idling
24 ## [3.0.7] - 2023-11-24
28 - Make continuous tasks stealing start at worker node idling.
30 ## [3.0.6] - 2023-11-24
34 - Ensure pool statuses are checked at initialization, `start()` or `destroy()`.
35 - Ensure pool `ready` event can be emitted after several `start()/destroy()` cycles.
37 ## [3.0.5] - 2023-10-27
41 - Ensure pool `ready` event can be emitted only once.
43 ## [3.0.4] - 2023-10-20
47 - Switch to Bencher for benchmarking: [https://bencher.dev/perf/poolifier](https://bencher.dev/perf/poolifier).
48 - Use builtin retry mechanism in worker choice strategies instead of custom one.
50 ## [3.0.3] - 2023-10-19
54 - Avoid null exception at sending message to worker.
55 - Avoid null exception at checking worker node readiness.
57 ## [3.0.2] - 2023-10-17
61 - 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).
63 ## [3.0.1] - 2023-10-16
67 - Workaround possible race condition at work nodes array element removal and querying. See issue [#1468](https://github.com/poolifier/poolifier/issues/1468).
71 - Switch the worker node eventing code to `EventTarget` API.
73 ## [3.0.0] - 2023-10-08
77 - Remove Node.js 16.x.x (EOL) support.
79 ## [2.7.5] - 2023-10-03
83 - Use `EventEmitterAsyncResource` type from `@types/node` for pool event emitter. TypeScript users will need to update to latest `@types/node` version.
85 ## [2.7.4] - 2023-09-25
89 - Fix source maps (bundler issue).
91 ## [2.7.3] - 2023-09-24
95 - Convert pool event emitter to event emitter async resource.
97 ## [2.7.2] - 2023-09-23
101 - Add source maps to npm package to ease debugging.
105 - Continuous benchmarking versus other worker pools: [https://poolifier.github.io/benchmark](https://poolifier.github.io/benchmark).
107 ## [2.7.1] - 2023-09-20
111 - Ensure worker message listener used one time are removed after usage.
113 ## [2.7.0] - 2023-09-19
117 - Fix task stealing related tasks queue options handling at runtime.
121 - Rename `listTaskFunctions()` to `listTaskFunctionNames()` in pool and worker API.
125 - Add `hasTaskFunction()`, `addTaskFunction()`, `removeTaskFunction()`, `setDefaultTaskFunction()` methods to pool API: [PR #1148](https://github.com/poolifier/poolifier/pull/1148).
126 - Stricter worker constructor arguments validation.
128 ## [2.6.45] - 2023-09-17
132 - Disable publication on GitHub packages registry on release until authentication issue is fixed.
136 - Add `startWorkers` to pool options to whether start the minimum number of workers at pool initialization or not.
137 - Add `start()` method to pool API to start the minimum number of workers.
138 - 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.
139 - Continuous internal benchmarking: [https://poolifier.github.io/benchmark-results/dev/bench](https://poolifier.github.io/benchmark-results/dev/bench).
141 ## [2.6.44] - 2023-09-08
145 - Use a dedicated PAT to publish on GitHub packages registry.
149 - Publish on GitHub packages registry on release.
153 - Switch from rome to biome: [PR #1128](https://github.com/poolifier/poolifier/pull/1128).
155 ## [2.6.43] - 2023-09-08
159 - Publish on GitHub packages registry on release.
163 - Switch from rome to biome: [PR #1128](https://github.com/poolifier/poolifier/pull/1128).
165 ## [2.6.42] - 2023-09-06
169 - Optimize hot code paths implementation: avoid unnecessary branching, add and use optimized helpers (min, max), use reduce() array helper, ...
171 ## [2.6.41] - 2023-09-03
175 - Optimize worker choice strategies implementation.
177 ## [2.6.40] - 2023-09-01
181 - Do not pre-choose in WRR worker choice strategy to avoid bias.
182 - Avoid array out of bound in worker choice strategies after worker node removal.
184 ## [2.6.39] - 2023-08-30
188 - Fix race condition in worker choice strategies at worker node info querying while not yet initialized.
190 ## [2.6.38] - 2023-08-30
194 - Bundle typescript types declaration into one file.
198 - Improve interleaved weighted round robin worker choice strategy implementation.
200 ## [2.6.37] - 2023-08-28
204 - Ensure unused worker usage statistics are deleted at runtime.
208 - Rename worker choice strategy options `choiceRetries` to `retries`.
209 - Avoid unnecessary branching in worker choice strategies.
211 ## [2.6.36] - 2023-08-27
215 - Fix pool `execute()` arguments check.
219 - Make continuous tasks stealing algorithm less aggressive.
220 - Fine tune tasks stealing algorithm under back pressure.
222 ## [2.6.35] - 2023-08-25
226 - Don't account worker usage statistics for tasks that have failed.
227 - Fix pool information runtime and wait time median computation.
231 - Update simple moving average implementation to use a circular buffer.
232 - Update simple moving median implementation to use a circular buffer.
233 - Account for stolen tasks in worker usage statistics and pool information.
237 - Continuous tasks stealing algorithm.
239 ## [2.6.34] - 2023-08-24
243 - Avoid cascading tasks stealing under back pressure.
247 - Add fastpath to queued tasks rescheduling.
249 ## [2.6.33] - 2023-08-24
253 - Fix queued tasks rescheduling.
257 - Rename tasks queue options `queueMaxSize` to `size`.
261 - Task stealing scheduling algorithm if tasks queueing is enabled.
263 ## [2.6.32] - 2023-08-23
267 - Ensure no task can be executed when the pool is destroyed.
271 - Add `queueMaxSize` option to tasks queue options.
272 - Add O(1) deque implementation implemented with doubly linked list and use it for tasks queueing.
273 - Add tasks stealing algorithm when a worker node queue is back pressured if tasks queueing is enabled.
275 ## [2.6.31] - 2023-08-20
279 - Fix worker choice strategy retries mechanism in some edge cases.
283 - Make orthogonal worker choice strategies tasks distribution and created dynamic worker usage.
284 - Remove the experimental status of the `LEAST_ELU` worker choice strategy.
286 ## [2.6.30] - 2023-08-19
290 - Ensure pool event `backPressure` is emitted.
291 - Ensure pool event `full` is emitted only once.
292 - Ensure worker node cannot be instantiated without proper arguments.
294 ## [2.6.29] - 2023-08-18
298 - Fix race condition between readiness and task functions worker message handling at startup.
299 - Fix duplicate task function worker usage statistics computation per task function.
300 - Update task function worker usage statistics if and only if there's at least two different task functions.
301 - Fix race condition at task function worker usage executing task computation leading to negative value.
305 - 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).
306 - Use back pressure detection in worker choice strategies.
307 - Add worker choice strategies retries mechanism if no worker is eligible.
309 ## [2.6.28] - 2023-08-16
313 - Ensure pool workers are properly initialized.
317 - HTTP server pool examples: express-cluster, express-hybrid.
321 - Remove now useless branching in worker hot code path.
323 ## [2.6.27] - 2023-08-15
327 - Add `KillHandler` type definition to exported types.
331 - Add `destroy` event to pool API.
333 ## [2.6.26] - 2023-08-15
337 - Add kill handler to worker options allowing to execute custom code when worker is killed.
338 - Add `listTaskFunctions()` method to pool API.
339 - SMTP client pool example: nodemailer.
341 ## [2.6.25] - 2023-08-13
345 - HTTP server pool examples: fastify-cluster, fastify-hybrid.
346 - WebSocket server pool examples: ws-cluster, ws-hybrid.
348 ## [2.6.24] - 2023-08-12
352 - Add array of transferable objects to the `execute()` method arguments.
353 - WebSocket server pool examples: ws-worker_threads.
355 ## [2.6.23] - 2023-08-11
359 - 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.
363 - HTTP client pool examples: fetch, node-fetch and axios with multiple task functions.
364 - HTTP server pool examples: express-worker_threads, fastify-worker_threads.
366 ## [2.6.22] - 2023-08-10
370 - Add missing `types` field to package.json `exports`.
374 - Structure markdown documentation (PR #811).
376 ## [2.6.21] - 2023-08-03
380 - Improve code documentation.
381 - Code refactoring and cleanup for better maintainability and readability.
383 ## [2.6.20] - 2023-07-21
387 - Fix queued tasks redistribution on error task execution starvation.
388 - Ensure tasks queueing per worker condition is untangled from the pool busyness semantic.
392 - Drastically reduce lookups by worker in the worker nodes.
394 ## [2.6.19] - 2023-07-20
398 - Dedicated internal communication channel for worker_threads pools.
400 ## [2.6.18] - 2023-07-19
404 - Code refactoring and cleanup for better maintainability and readability. Bundle size is a bit smaller.
406 ## [2.6.17] - 2023-07-16
410 - Add `listTaskFunctions()` method to worker API.
412 ## [2.6.16] - 2023-07-12
416 - Fix pool startup detection.
417 - Fix worker task functions handling.
419 ## [2.6.15] - 2023-07-11
423 - Take into account worker node readiness in worker choice strategies.
425 ## [2.6.14] - 2023-07-10
429 - Fix task function statistics tracking.
431 ## [2.6.13] - 2023-07-10
435 - Add per task function statistics tracking.
436 - Add public methods to manipulate the worker task functions at runtime.
438 ## [2.6.12] - 2023-07-09
442 - Workaround import issue with `node:os` module in node 16.x.x.
444 ## [2.6.11] - 2023-07-09
448 - Fix pool readiness semantic.
450 ## [2.6.10] - 2023-07-08
454 - Ensure workers are not recreated on error at pool startup.
458 - Add `ready` and `strategy` fields to pool information.
459 - Add pool event `ready` to notify when the number of workers created in the pool has reached the maximum size expected and are ready.
460 - Add dynamic pool sizing checks.
462 ## [2.6.9] - 2023-07-07
466 - Recreate the right worker type on uncaught exception.
470 - Add minimum and maximum to internal measurement statistics.
471 - Add `runTime` and `waitTime` to pool information.
472 - Check worker inactive time only on dynamic worker.
474 ## [2.6.8] - 2023-07-03
478 - Brown paper bag release to fix version handling in pool information.
480 ## [2.6.7] - 2023-07-03
484 - Ensure worker queued tasks at error are reassigned to other pool workers.
488 - Add pool `utilization` ratio to pool information.
489 - Add `version` to pool information.
490 - Add worker information to worker nodes.
492 ## [2.6.6] - 2023-07-01
496 - Add safe helper `availableParallelism()` to help sizing the pool.
500 - Ensure message handler is only registered in worker.
502 ## [2.6.5] - 2023-06-27
506 - Cluster pools tasks execution are not working by using ESM files extension: https://github.com/poolifier/poolifier/issues/782
510 - Artificial version bump to 2.6.5 to workaround publication issue.
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.4] - 2023-06-27
523 - Cluster pools tasks execution are not working by using ESM files extension: https://github.com/poolifier/poolifier/issues/782
527 - Ensure cluster pool `destroy()` gracefully shutdowns worker's server.
528 - Ensure pool event is emitted before task error promise rejection.
529 - Fix queued tasks count computation.
533 - Remove unneeded worker_threads worker `MessageChannel` internal usage for IPC.
535 ## [2.6.3] - 2023-06-19
539 - Ensure no tasks are queued when trying to soft kill a dynamic worker.
540 - Update strategies internals after statistics computation.
544 - Optimize O(1) queue implementation.
546 ## [2.6.2] - 2023-06-12
550 - Fix new worker use after creation in dynamic pool given the current worker choice strategy.
552 ## [2.6.1] - 2023-06-10
556 - Add worker choice strategy documentation: [README.md](./docs/worker-choice-strategies.md).
560 - Fix average statistics computation: ensure failed tasks are not accounted.
562 ## [2.6.0] - 2023-06-09
566 - Add `LEAST_ELU` worker choice strategy (experimental).
567 - Add tasks ELU instead of runtime support to `FAIR_SHARE` worker choice strategy.
571 - Refactor pool worker node usage internals.
572 - Breaking change: refactor worker choice strategy statistics requirements: the syntax of the worker choice strategy options has changed.
573 - Breaking change: pool information `info` property object fields have been renamed.
577 - Fix wait time accounting.
578 - Ensure worker choice strategy `LEAST_BUSY` accounts also tasks wait time.
579 - Ensure worker choice strategy `LEAST_USED` accounts also queued tasks.
581 ## [2.5.4] - 2023-06-07
585 - Add Event Loop Utilization (ELU) statistics to worker tasks usage.
589 - Compute statistics at the worker level only if needed.
590 - Add `worker_threads` options to thread pool options.
594 - Make the `LEAST_BUSY` strategy only relies on task runtime.
596 ## [2.5.3] - 2023-06-04
600 - Refine pool information content.
601 - Limit pool internals public exposure.
603 ## [2.5.2] - 2023-06-02
607 - Add `taskError` pool event for task execution error.
608 - Add pool information `info` property to pool.
609 - Emit pool information on `busy` and `full` pool events.
611 ## [2.5.1] - 2023-06-01
615 - Add pool option `restartWorkerOnError` to restart worker on uncaught error. Default to `true`.
616 - Add `error` pool event for uncaught worker error.
618 ## [2.5.0] - 2023-05-31
622 - Switch pool event emitter to `EventEmitterAsyncResource`.
623 - Add tasks wait time accounting in per worker tasks usage.
624 - Add interleaved weighted round robin `INTERLEAVED_WEIGHTED_ROUND_ROBIN` worker choice strategy (experimental).
628 - Renamed worker choice strategy `LESS_BUSY` to `LEAST_BUSY` and `LESS_USED` to `LEAST_USED`.
630 ## [2.4.14] - 2023-05-09
634 - Ensure no undefined task runtime can land in the tasks history.
635 - Fix median computation implementation once again.
639 - Unit tests for median and queue implementations.
641 ## [2.4.13] - 2023-05-08
645 - Fix worker choice strategy options validation.
646 - Fix fair share worker choice strategy internals update: ensure virtual task end timestamp is computed at task submission.
648 ## [2.4.12] - 2023-05-06
652 - Support multiple task functions per worker.
653 - Add custom worker weights support to worker choice strategies options.
657 - Use O(1) queue implementation for tasks queueing.
661 - Fix median computation implementation.
662 - Fix fair share worker choice strategy internals update.
664 ## [2.4.11] - 2023-04-23
668 - Optimize free worker finding in worker choice strategies.
670 ## [2.4.10] - 2023-04-15
674 - Fix typescript type definition for task function: ensure the input data is optional.
675 - Fix typescript type definition for pool execute(): ensure the input data is optional.
677 ## [2.4.9] - 2023-04-15
681 - Add tasks queue enablement runtime setter to pool.
682 - Add tasks queue options runtime setter to pool.
683 - Add worker choice strategy options runtime setter to pool.
687 - Remove the tasks queuing experimental status.
691 - Fix task function type definition and validation.
692 - Fix worker choice strategy options handling.
694 ## [2.4.8] - 2023-04-12
698 - Fix message between main worker and worker type definition for tasks.
699 - Fix code documentation.
701 ## [2.4.7] - 2023-04-11
705 - Add worker tasks queue options to pool options.
709 - Fix missing documentation.
711 ## [2.4.6] - 2023-04-10
715 - Ensure one task at a time is executed per worker with tasks queueing enabled.
716 - Properly count worker executing tasks with tasks queueing enabled.
718 ## [2.4.5] - 2023-04-09
722 - Use monotonic high resolution timer for worker tasks runtime.
723 - Add worker tasks median runtime to statistics.
724 - Add worker tasks queue (experimental).
726 ## [2.4.4] - 2023-04-07
730 - Add `PoolEvents` enumeration and `PoolEvent` type.
734 - Destroy worker only on alive check.
736 ## [2.4.3] - 2023-04-07
740 - Fix typedoc generation with inheritance.
742 ## [2.4.2] - 2023-04-06
746 - Add `full` event to dynamic pool.
747 - Keep worker choice strategy in memory for conditional reuse.
751 - Fix possible negative worker key at worker removal in worker choice strategies.
753 ## [2.4.1] - 2023-04-05
757 - Optimize worker choice strategy for dynamic pool.
761 - Ensure dynamic pool does not alter worker choice strategy expected behavior.
763 ## [2.4.0] - 2023-04-04
767 - Add `LESS_BUSY` worker choice strategy.
771 - Optimize worker storage in pool.
772 - Optimize worker alive status check.
773 - BREAKING CHANGE: Rename worker choice strategy `LESS_RECENTLY_USED` to `LESS_USED`.
774 - Optimize `LESS_USED` worker choice strategy.
775 - Update benchmark versus external threads pools.
776 - Optimize tasks usage statistics requirements for worker choice strategy.
780 - Ensure trimmable characters are checked at pool initialization.
781 - Fix message id integer overflow.
782 - Fix pool worker removal in worker choice strategy internals.
783 - Fix package publication with pnpm.
785 ## [2.4.0-3] - 2023-04-04
789 - Add `LESS_BUSY` worker choice strategy.
793 - Optimize worker storage in pool.
794 - Optimize worker alive status check.
795 - BREAKING CHANGE: Rename worker choice strategy `LESS_RECENTLY_USED` to `LESS_USED`.
796 - Optimize `LESS_USED` worker choice strategy.
797 - Update benchmark versus external threads pools.
801 - Ensure trimmable characters are checked at pool initialization.
802 - Fix message id integer overflow.
803 - Fix pool worker removal in worker choice strategy internals.
804 - Fix package publication with pnpm.
806 ## [2.4.0-2] - 2023-04-03
810 - Add `LESS_BUSY` worker choice strategy.
814 - Optimize worker storage in pool.
815 - Optimize worker alive status check.
816 - BREAKING CHANGE: Rename worker choice strategy `LESS_RECENTLY_USED` to `LESS_USED`.
817 - Optimize `LESS_USED` worker choice strategy.
821 - Ensure trimmable characters are checked at pool initialization.
822 - Fix message id integer overflow.
823 - Fix pool worker removal in worker choice strategy internals.
824 - Fix package publication with pnpm.
826 ## [2.4.0-1] - 2023-04-03
830 - Add `LESS_BUSY` worker choice strategy.
834 - Optimize worker storage in pool.
835 - Optimize worker alive status check.
836 - BREAKING CHANGE: Rename worker choice strategy `LESS_RECENTLY_USED` to `LESS_USED`.
837 - Optimize `LESS_USED` worker choice strategy.
841 - Ensure trimmable characters are checked at pool initialization.
842 - Fix message id integer overflow.
843 - Fix pool worker removal in worker choice strategy internals.
845 ## [2.4.0-0] - 2023-04-03
849 - Add `LESS_BUSY` worker choice strategy.
853 - Optimize worker storage in pool.
854 - Optimize worker alive status check.
855 - BREAKING CHANGE: Rename worker choice strategy `LESS_RECENTLY_USED` to `LESS_USED`.
856 - Optimize `LESS_USED` worker choice strategy.
860 - Ensure trimmable characters are checked at pool initialization.
861 - Fix message id integer overflow.
862 - Fix pool worker removal in worker choice strategy internals.
864 ## [2.3.10] - 2023-03-18
868 - Fix package.json `exports` syntax for ESM and CommonJS.
872 - Permit SemVer pre-release publication.
874 ## [2.3.10-2] - 2023-03-18
878 - Fix package.json `exports` syntax for ESM and CommonJS.
880 ## [2.3.10-1] - 2023-03-18
884 - Permit SemVer pre-release publication.
886 ## [2.3.10-0] - 2023-03-18
890 - Fix package.json `exports` syntax for ESM and CommonJS.
892 ## [2.3.9] - 2023-03-18
896 - Introduce ESM module support along with CommonJS one.
900 - Fix brown paper bag bug referencing the same object literal.
902 ## [2.3.8] - 2023-03-18
906 - Switch internal benchmarking code to benny.
907 - Switch to TypeScript 5.x.x.
908 - Switch rollup bundler plugins to core ones.
909 - Switch to TSDoc syntax.
910 - Enforce conventional commits.
914 - Fix random integer generator.
915 - Fix worker choice strategy pool type identification at initialization.
917 ## [2.3.7] - 2022-10-23
921 - Switch to open collective FOSS project funding platform.
922 - Switch to ts-standard linter configuration on TypeScript code.
926 - Fixed missing async on pool execute method.
927 - Fixed typing in TypeScript example.
928 - Fixed types in unit tests.
930 ## [2.3.6] - 2022-10-22
934 - Cleanup pool attributes and methods.
935 - Refine error types thrown.
939 - Fix continuous integration build on windows.
940 - Fix code coverage reporting by using c8 instead of nyc.
942 ## [2.3.5] - 2022-10-21
946 - Improve benchmarks: add IO intensive task workload, add task size option, integrate code into linter.
947 - Optimize tasks usage lookup implementation.
951 - Fix missed pool event emitter type export.
952 - Fix typedoc documentation generation.
954 ## [2.3.4] - 2022-10-17
958 - Fully automate release process with release-it.
962 - Optimize fair share task scheduling algorithm implementation.
963 - Update benchmark versus external pools results with latest version.
965 ## [2.3.3] - 2022-10-15
969 - Add support for [cluster settings](https://nodejs.org/api/cluster.html#cluster_cluster_settings) in cluster pool options.
971 ## [2.3.2] - 2022-10-14
975 - Optimize fair share worker selection strategy implementation.
979 - Fix WRR worker selection strategy: ensure the condition triggering the round robin can be fulfilled.
981 ## [2.3.1] - 2022-10-13
985 - Pool worker choice strategies:
986 - `WorkerChoiceStrategies.WEIGHTED_ROUND_ROBIN` strategy based on weighted round robin scheduling algorithm using tasks execution time for now.
987 - `WorkerChoiceStrategies.FAIR_SHARE` strategy based on fair share scheduling algorithm using tasks execution time for now.
989 ## [2.2.2] - 2022-10-09
993 - Fixed `README.md` file.
995 ## [2.2.1] - 2022-10-08
999 - Dynamic worker choice strategy change at runtime.
1001 ## [2.2.0] - 2022-01-05
1003 ### Breaking Changes
1005 - Support only Node.js version 16.x.x for cluster pool: upstream cluster API have changed on that version.
1007 ## [2.1.0] - 2021-08-29
1011 - Add an optional pool option `messageHandler` to `PoolOptions<Worker>` for registering a message handler callback on each worker.
1013 ### Breaking Changes
1015 - `AbstractWorker` class `maxInactiveTime`, `killBehavior` and `async` attributes have been removed in favour of the same ones in the worker options `opts` public attribute.
1016 - `AbstractWorker` class `lastTask` attribute have been renamed to `lastTaskTimestamp`.
1017 - `AbstractWorker` class `interval` attribute have been renamed to `aliveInterval`.
1018 - `AbstractWorker` class cannot be instantiated without specifying the `mainWorker` argument referencing the main worker.
1020 ## [2.0.2] - 2021-05-12
1024 - Fix `busy` event emission on fixed pool type
1026 ## [2.0.1] - 2021-03-16
1030 - Check if pool options are properly set.
1031 - `busy` event is emitted on all pool types.
1033 ## [2.0.0] - 2021-03-01
1037 - Now a thread/process by default is not deleted when the task submitted take more time than maxInactiveTime configured (issue #70).
1039 ### Breaking Changes
1041 - `FullPool` event is now renamed to `busy`.
1042 - `maxInactiveTime` on `ThreadWorker` default behavior is now changed, if you want to keep the old behavior set `killBehavior` to `KillBehaviors.HARD`.
1043 _Find more details on our JSDoc._
1045 - `maxTasks` option on `FixedThreadPool` and `DynamicThreadPool` is now removed since is no more needed.
1047 - We changed some internal structures, but you shouldn't be too affected by them as these are internal changes.
1049 ### Pool options types declaration merge
1051 `FixedThreadPoolOptions` and `DynamicThreadPoolOptions` type declarations have been merged to `PoolOptions<Worker>`.
1053 #### New `export` strategy
1057 const DynamicThreadPool = require('poolifier/lib/dynamic')
1059 const { DynamicThreadPool } = require('poolifier/lib/dynamic')
1062 But you should always prefer just using
1065 const { DynamicThreadPool } = require('poolifier')
1068 #### New type definitions for input data and response
1070 For cluster worker and worker-thread pools, you can now only send and receive structured-cloneable data.
1071 _This is not a limitation by poolifier but Node.js._
1073 #### Public property replacements
1075 `numWorkers` property is now `numberOfWorkers`
1077 #### Internal (protected) properties and methods renaming
1079 These properties are not intended for end users
1081 - `id` => `nextMessageId`
1083 These methods are not intended for end users
1085 - `_chooseWorker` => `chooseWorker`
1086 - `_newWorker` => `createWorker`
1087 - `_execute` => `internalExecute`
1088 - `_chooseWorker` => `chooseWorker`
1089 - `_checkAlive` => `checkAlive`
1091 - `_runAsync` => `runAsync`
1093 ## [1.1.0] - 2020-05-21
1097 - ThreadWorker support async functions as option
1098 - Various external library patches
1100 ## [1.0.0] - 2020-01-24
1104 - FixedThreadPool implementation
1105 - DynamicThreadPool implementation
1106 - WorkerThread implementation to improve developer experience