docs: add links to benchmarks README.md
[poolifier.git] / CHANGELOG.md
... / ...
CommitLineData
1# Changelog
2
3All notable changes to this project will be documented in this file.
4
5The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
8## [Unreleased]
9
10### Changed
11
12- Disable publication on GitHub packages registry on release until authentication issue is fixed.
13
14### Added
15
16- Continuous internal benchmarking.
17
18## [2.6.44] - 2023-09-08
19
20### Fixed
21
22- Use a dedicated PAT to publish on GitHub packages registry.
23
24### Added
25
26- Publish on GitHub packages registry on release.
27
28### Changed
29
30- Switch from rome to biome: [PR #1128](https://github.com/poolifier/poolifier/pull/1128).
31
32## [2.6.43] - 2023-09-08
33
34### Added
35
36- Publish on GitHub packages registry on release.
37
38### Changed
39
40- Switch from rome to biome: [PR #1128](https://github.com/poolifier/poolifier/pull/1128).
41
42## [2.6.42] - 2023-09-06
43
44### Changed
45
46- Optimize hot code paths implementation: avoid unnecessary branching, add and use optimized helpers (min, max), use reduce() array helper, ...
47
48## [2.6.41] - 2023-09-03
49
50### Changed
51
52- Optimize worker choice strategies implementation.
53
54## [2.6.40] - 2023-09-01
55
56### Fixed
57
58- Do not pre-choose in WRR worker choice strategy to avoid bias.
59- Avoid array out of bound in worker choice strategies after worker node removal.
60
61## [2.6.39] - 2023-08-30
62
63### Fixed
64
65- Fix race condition in worker choice strategies at worker node info querying while not yet initialized.
66
67## [2.6.38] - 2023-08-30
68
69### Added
70
71- Bundle typescript types declaration into one file.
72
73### Changed
74
75- Improve interleaved weighted round robin worker choice strategy implementation.
76
77## [2.6.37] - 2023-08-28
78
79### Fixed
80
81- Ensure unused worker usage statistics are deleted at runtime.
82
83### Changed
84
85- Rename worker choice strategy options `choiceRetries` to `retries`.
86- Avoid unnecessary branching in worker choice strategies.
87
88## [2.6.36] - 2023-08-27
89
90### Fixed
91
92- Fix pool `execute()` arguments check.
93
94### Changed
95
96- Make continuous tasks stealing algorithm less aggressive.
97- Fine tune tasks stealing algorithm under back pressure.
98
99## [2.6.35] - 2023-08-25
100
101### Fixed
102
103- Don't account worker usage statistics for tasks that have failed.
104- Fix pool information runtime and wait time median computation.
105
106### Changed
107
108- Update simple moving average implementation to use a circular buffer.
109- Update simple moving median implementation to use a circular buffer.
110- Account for stolen tasks in worker usage statistics and pool information.
111
112### Added
113
114- Continuous tasks stealing algorithm.
115
116## [2.6.34] - 2023-08-24
117
118### Fixes
119
120- Avoid cascading tasks stealing under back pressure.
121
122### Changed
123
124- Add fastpath to queued tasks rescheduling.
125
126## [2.6.33] - 2023-08-24
127
128### Fixed
129
130- Fix queued tasks rescheduling.
131
132### Changed
133
134- Rename tasks queue options `queueMaxSize` to `size`.
135
136### Added
137
138- Task stealing scheduling algorithm if tasks queueing is enabled.
139
140## [2.6.32] - 2023-08-23
141
142### Fixed
143
144- Ensure no task can be executed when the pool is destroyed.
145
146### Added
147
148- Add `queueMaxSize` option to tasks queue options.
149- Add O(1) deque implementation implemented with doubly linked list and use it for tasks queueing.
150- Add tasks stealing algorithm when a worker node queue is back pressured if tasks queueing is enabled.
151
152## [2.6.31] - 2023-08-20
153
154### Fixed
155
156- Fix worker choice strategy retries mechanism in some edge cases.
157
158### Changed
159
160- Make orthogonal worker choice strategies tasks distribution and created dynamic worker usage.
161- Remove the experimental status of the `LEAST_ELU` worker choice strategy.
162
163## [2.6.30] - 2023-08-19
164
165### Fixed
166
167- Ensure pool event `backPressure` is emitted.
168- Ensure pool event `full` is emitted only once.
169- Ensure worker node cannot be instantiated without proper arguments.
170
171## [2.6.29] - 2023-08-18
172
173### Fixed
174
175- Fix race condition between ready and task functions worker message handling at startup.
176- Fix duplicate task function worker usage statistics computation per task function.
177- Update task function worker usage statistics if and only if there's at least two different task functions.
178- Fix race condition at task function worker usage executing task computation leading to negative value.
179
180### Added
181
182- 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).
183- Use back pressure detection in worker choice strategies.
184- Add worker choice strategies retries mechanism if no worker is eligible.
185
186## [2.6.28] - 2023-08-16
187
188### Fixed
189
190- Ensure pool workers are properly initialized.
191
192### Added
193
194- HTTP server pool examples: express-cluster, express-hybrid.
195
196### Changed
197
198- Remove now useless branching in worker hot code path.
199
200## [2.6.27] - 2023-08-15
201
202### Fixed
203
204- Add `KillHandler` type definition to exported types.
205
206### Added
207
208- Add `destroy` event to pool API.
209
210## [2.6.26] - 2023-08-15
211
212### Added
213
214- Add kill handler to worker options allowing to execute custom code when worker is killed.
215- Add `listTaskFunctions()` method to pool API.
216- SMTP client pool example: nodemailer.
217
218## [2.6.25] - 2023-08-13
219
220### Added
221
222- HTTP server pool examples: fastify-cluster, fastify-hybrid.
223- WebSocket server pool examples: ws-cluster, ws-hybrid.
224
225## [2.6.24] - 2023-08-12
226
227### Added
228
229- Add array of transferable objects to the `execute()` method arguments.
230- WebSocket server pool examples: ws-worker_threads.
231
232## [2.6.23] - 2023-08-11
233
234### Fixed
235
236- 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.
237
238### Added
239
240- HTTP client pool examples: fetch, node-fetch and axios with multiple task functions.
241- HTTP server pool examples: express-worker_threads, fastify-worker_threads.
242
243## [2.6.22] - 2023-08-10
244
245### Fixed
246
247- Add missing `types` field to package.json `exports`.
248
249### Changed
250
251- Structure markdown documentation (PR #811).
252
253## [2.6.21] - 2023-08-03
254
255### Changed
256
257- Improve code documentation.
258- Code refactoring and cleanup for better maintainability and readability.
259
260## [2.6.20] - 2023-07-21
261
262### Fixed
263
264- Fix queued tasks redistribution on error task execution starvation.
265- Ensure tasks queueing per worker condition is untangled from the pool busyness semantic.
266
267### Changed
268
269- Drastically reduce lookups by worker in the worker nodes.
270
271## [2.6.19] - 2023-07-20
272
273### Added
274
275- Dedicated internal communication channel for worker_threads pools.
276
277## [2.6.18] - 2023-07-19
278
279### Changed
280
281- Code refactoring and cleanup for better maintainability and readability. Bundle size is a bit smaller.
282
283## [2.6.17] - 2023-07-16
284
285### Added
286
287- Add `listTaskFunctions()` method to worker API.
288
289## [2.6.16] - 2023-07-12
290
291### Fixed
292
293- Fix pool startup detection.
294- Fix worker task functions handling.
295
296## [2.6.15] - 2023-07-11
297
298### Added
299
300- Take into account worker node readiness in worker choice strategies.
301
302## [2.6.14] - 2023-07-10
303
304### Fixed
305
306- Fix task function statistics tracking.
307
308## [2.6.13] - 2023-07-10
309
310### Added
311
312- Add per task function statistics tracking.
313- Add public methods to manipulate the worker task functions at runtime.
314
315## [2.6.12] - 2023-07-09
316
317### Fixed
318
319- Workaround import issue with `node:os` module in node 16.x.x.
320
321## [2.6.11] - 2023-07-09
322
323### Fixed
324
325- Fix pool readiness semantic.
326
327## [2.6.10] - 2023-07-08
328
329### Fixed
330
331- Ensure workers are not recreated on error at pool startup.
332
333### Added
334
335- Add `ready` and `strategy` fields to pool information.
336- Add pool event `ready` to notify when the number of workers created in the pool has reached the maximum size expected and are ready.
337- Add dynamic pool sizing checks.
338
339## [2.6.9] - 2023-07-07
340
341### Fixed
342
343- Recreate the right worker type on uncaught exception.
344
345### Added
346
347- Add minimum and maximum to internal measurement statistics.
348- Add `runTime` and `waitTime` to pool information.
349- Check worker inactive time only on dynamic worker.
350
351## [2.6.8] - 2023-07-03
352
353### Fixed
354
355- Brown paper bag release to fix version handling in pool information.
356
357## [2.6.7] - 2023-07-03
358
359### Fixed
360
361- Ensure worker queued tasks at error are reassigned to other pool workers.
362
363### Added
364
365- Add pool `utilization` ratio to pool information.
366- Add `version` to pool information.
367- Add worker information to worker nodes.
368
369## [2.6.6] - 2023-07-01
370
371### Added
372
373- Add safe helper `availableParallelism()` to help sizing the pool.
374
375### Fixed
376
377- Ensure message handler is only registered in worker.
378
379## [2.6.5] - 2023-06-27
380
381### Known issues
382
383- Cluster pools tasks execution are not working by using ESM files extension: https://github.com/poolifier/poolifier/issues/782
384
385### Fixed
386
387- Artificial version bump to 2.6.5 to workaround publication issue.
388- Ensure cluster pool `destroy()` gracefully shutdowns worker's server.
389- Ensure pool event is emitted before task error promise rejection.
390- Fix queued tasks count computation.
391
392### Removed
393
394- Remove unneeded worker_threads worker `MessageChannel` internal usage for IPC.
395
396## [2.6.4] - 2023-06-27
397
398### Known issues
399
400- Cluster pools tasks execution are not working by using ESM files extension: https://github.com/poolifier/poolifier/issues/782
401
402### Fixed
403
404- Ensure cluster pool `destroy()` gracefully shutdowns worker's server.
405- Ensure pool event is emitted before task error promise rejection.
406- Fix queued tasks count computation.
407
408### Removed
409
410- Remove unneeded worker_threads worker `MessageChannel` internal usage for IPC.
411
412## [2.6.3] - 2023-06-19
413
414### Fixed
415
416- Ensure no tasks are queued when trying to soft kill a dynamic worker.
417- Update strategies internals after statistics computation.
418
419### Changed
420
421- Optimize O(1) queue implementation.
422
423## [2.6.2] - 2023-06-12
424
425### Fixed
426
427- Fix new worker use after creation in dynamic pool given the current worker choice strategy.
428
429## [2.6.1] - 2023-06-10
430
431### Added
432
433- Add worker choice strategy documentation: [README.md](./docs/worker-choice-strategies.md).
434
435### Fixed
436
437- Fix average statistics computation: ensure failed tasks are not accounted.
438
439## [2.6.0] - 2023-06-09
440
441### Added
442
443- Add `LEAST_ELU` worker choice strategy (experimental).
444- Add tasks ELU instead of runtime support to `FAIR_SHARE` worker choice strategy.
445
446### Changed
447
448- Refactor pool worker node usage internals.
449- Breaking change: refactor worker choice strategy statistics requirements: the syntax of the worker choice strategy options has changed.
450- Breaking change: pool information `info` property object fields have been renamed.
451
452### Fixed
453
454- Fix wait time accounting.
455- Ensure worker choice strategy `LEAST_BUSY` accounts also tasks wait time.
456- Ensure worker choice strategy `LEAST_USED` accounts also queued tasks.
457
458## [2.5.4] - 2023-06-07
459
460### Added
461
462- Add Event Loop Utilization (ELU) statistics to worker tasks usage.
463
464### Changed
465
466- Compute statistics at the worker level only if needed.
467- Add `worker_threads` options to thread pool options.
468
469### Fixed
470
471- Make the `LEAST_BUSY` strategy only relies on task runtime.
472
473## [2.5.3] - 2023-06-04
474
475### Changed
476
477- Refine pool information content.
478- Limit pool internals public exposure.
479
480## [2.5.2] - 2023-06-02
481
482### Added
483
484- Add `taskError` pool event for task execution error.
485- Add pool information `info` property to pool.
486- Emit pool information on `busy` and `full` pool events.
487
488## [2.5.1] - 2023-06-01
489
490### Added
491
492- Add pool option `restartWorkerOnError` to restart worker on uncaught error. Default to `true`.
493- Add `error` pool event for uncaught worker error.
494
495## [2.5.0] - 2023-05-31
496
497### Added
498
499- Switch pool event emitter to `EventEmitterAsyncResource`.
500- Add tasks wait time accounting in per worker tasks usage.
501- Add interleaved weighted round robin `INTERLEAVED_WEIGHTED_ROUND_ROBIN` worker choice strategy (experimental).
502
503### Changed
504
505- Renamed worker choice strategy `LESS_BUSY` to `LEAST_BUSY` and `LESS_USED` to `LEAST_USED`.
506
507## [2.4.14] - 2023-05-09
508
509### Fixed
510
511- Ensure no undefined task runtime can land in the tasks history.
512- Fix median computation implementation once again.
513
514### Added
515
516- Unit tests for median and queue implementations.
517
518## [2.4.13] - 2023-05-08
519
520### Fixed
521
522- Fix worker choice strategy options validation.
523- Fix fair share worker choice strategy internals update: ensure virtual task end timestamp is computed at task submission.
524
525## [2.4.12] - 2023-05-06
526
527### Added
528
529- Support multiple task functions per worker.
530- Add custom worker weights support to worker choice strategies options.
531
532### Changed
533
534- Use O(1) queue implementation for tasks queueing.
535
536### Fixed
537
538- Fix median computation implementation.
539- Fix fair share worker choice strategy internals update.
540
541## [2.4.11] - 2023-04-23
542
543### Changed
544
545- Optimize free worker finding in worker choice strategies.
546
547## [2.4.10] - 2023-04-15
548
549### Fixed
550
551- Fix typescript type definition for task function: ensure the input data is optional.
552- Fix typescript type definition for pool execute(): ensure the input data is optional.
553
554## [2.4.9] - 2023-04-15
555
556### Added
557
558- Add tasks queue enablement runtime setter to pool.
559- Add tasks queue options runtime setter to pool.
560- Add worker choice strategy options runtime setter to pool.
561
562### Changed
563
564- Remove the tasks queuing experimental status.
565
566### Fixed
567
568- Fix task function type definition and validation.
569- Fix worker choice strategy options handling.
570
571## [2.4.8] - 2023-04-12
572
573### Fixed
574
575- Fix message between main worker and worker type definition for tasks.
576- Fix code documentation.
577
578## [2.4.7] - 2023-04-11
579
580### Added
581
582- Add worker tasks queue options to pool options.
583
584### Fixed
585
586- Fix missing documentation.
587
588## [2.4.6] - 2023-04-10
589
590### Fixed
591
592- Ensure one task at a time is executed per worker with tasks queueing enabled.
593- Properly count worker executing tasks with tasks queueing enabled.
594
595## [2.4.5] - 2023-04-09
596
597### Added
598
599- Use monotonic high resolution timer for worker tasks runtime.
600- Add worker tasks median runtime to statistics.
601- Add worker tasks queue (experimental).
602
603## [2.4.4] - 2023-04-07
604
605### Added
606
607- Add `PoolEvents` enumeration and `PoolEvent` type.
608
609### Fixed
610
611- Destroy worker only on alive check.
612
613## [2.4.3] - 2023-04-07
614
615### Fixed
616
617- Fix typedoc generation with inheritance.
618
619## [2.4.2] - 2023-04-06
620
621### Added
622
623- Add `full` event to dynamic pool.
624- Keep worker choice strategy in memory for conditional reuse.
625
626### Fixed
627
628- Fix possible negative worker key at worker removal in worker choice strategies.
629
630## [2.4.1] - 2023-04-05
631
632### Changed
633
634- Optimize worker choice strategy for dynamic pool.
635
636### Fixed
637
638- Ensure dynamic pool does not alter worker choice strategy expected behavior.
639
640## [2.4.0] - 2023-04-04
641
642### Added
643
644- Add `LESS_BUSY` worker choice strategy.
645
646### Changed
647
648- Optimize worker storage in pool.
649- Optimize worker alive status check.
650- BREAKING CHANGE: Rename worker choice strategy `LESS_RECENTLY_USED` to `LESS_USED`.
651- Optimize `LESS_USED` worker choice strategy.
652- Update benchmarks versus external threads pools.
653- Optimize tasks usage statistics requirements for worker choice strategy.
654
655### Fixed
656
657- Ensure trimmable characters are checked at pool initialization.
658- Fix message id integer overflow.
659- Fix pool worker removal in worker choice strategy internals.
660- Fix package publication with pnpm.
661
662## [2.4.0-3] - 2023-04-04
663
664### Added
665
666- Add `LESS_BUSY` worker choice strategy.
667
668### Changed
669
670- Optimize worker storage in pool.
671- Optimize worker alive status check.
672- BREAKING CHANGE: Rename worker choice strategy `LESS_RECENTLY_USED` to `LESS_USED`.
673- Optimize `LESS_USED` worker choice strategy.
674- Update benchmarks versus external threads pools.
675
676### Fixed
677
678- Ensure trimmable characters are checked at pool initialization.
679- Fix message id integer overflow.
680- Fix pool worker removal in worker choice strategy internals.
681- Fix package publication with pnpm.
682
683## [2.4.0-2] - 2023-04-03
684
685### Added
686
687- Add `LESS_BUSY` worker choice strategy.
688
689### Changed
690
691- Optimize worker storage in pool.
692- Optimize worker alive status check.
693- BREAKING CHANGE: Rename worker choice strategy `LESS_RECENTLY_USED` to `LESS_USED`.
694- Optimize `LESS_USED` worker choice strategy.
695
696### Fixed
697
698- Ensure trimmable characters are checked at pool initialization.
699- Fix message id integer overflow.
700- Fix pool worker removal in worker choice strategy internals.
701- Fix package publication with pnpm.
702
703## [2.4.0-1] - 2023-04-03
704
705### Added
706
707- Add `LESS_BUSY` worker choice strategy.
708
709### Changed
710
711- Optimize worker storage in pool.
712- Optimize worker alive status check.
713- BREAKING CHANGE: Rename worker choice strategy `LESS_RECENTLY_USED` to `LESS_USED`.
714- Optimize `LESS_USED` worker choice strategy.
715
716### Fixed
717
718- Ensure trimmable characters are checked at pool initialization.
719- Fix message id integer overflow.
720- Fix pool worker removal in worker choice strategy internals.
721
722## [2.4.0-0] - 2023-04-03
723
724### Added
725
726- Add `LESS_BUSY` worker choice strategy.
727
728### Changed
729
730- Optimize worker storage in pool.
731- Optimize worker alive status check.
732- BREAKING CHANGE: Rename worker choice strategy `LESS_RECENTLY_USED` to `LESS_USED`.
733- Optimize `LESS_USED` worker choice strategy.
734
735### Fixed
736
737- Ensure trimmable characters are checked at pool initialization.
738- Fix message id integer overflow.
739- Fix pool worker removal in worker choice strategy internals.
740
741## [2.3.10] - 2023-03-18
742
743### Fixed
744
745- Fix package.json `exports` syntax for ESM and CommonJS.
746
747### Changed
748
749- Permit SemVer pre-release publication.
750
751## [2.3.10-2] - 2023-03-18
752
753### Fixed
754
755- Fix package.json `exports` syntax for ESM and CommonJS.
756
757## [2.3.10-1] - 2023-03-18
758
759### Changed
760
761- Permit SemVer pre-release publication.
762
763## [2.3.10-0] - 2023-03-18
764
765### Fixed
766
767- Fix package.json `exports` syntax for ESM and CommonJS.
768
769## [2.3.9] - 2023-03-18
770
771### Changed
772
773- Introduce ESM module support along with CommonJS one.
774
775### Fixed
776
777- Fix brown paper bag bug referencing the same object literal.
778
779## [2.3.8] - 2023-03-18
780
781### Changed
782
783- Switch internal benchmarking code to benny.
784- Switch to TypeScript 5.x.x.
785- Switch rollup bundler plugins to core ones.
786- Switch to TSDoc syntax.
787- Enforce conventional commits.
788
789### Fixed
790
791- Fix random integer generator.
792- Fix worker choice strategy pool type identification at initialization.
793
794## [2.3.7] - 2022-10-23
795
796### Changed
797
798- Switch to open collective FOSS project funding platform.
799- Switch to ts-standard linter configuration on TypeScript code.
800
801### Fixed
802
803- Fixed missing async on pool execute method.
804- Fixed typing in TypeScript example.
805- Fixed types in unit tests.
806
807## [2.3.6] - 2022-10-22
808
809### Changed
810
811- Cleanup pool attributes and methods.
812- Refine error types thrown.
813
814### Fixed
815
816- Fix continuous integration build on windows.
817- Fix code coverage reporting by using c8 instead of nyc.
818
819## [2.3.5] - 2022-10-21
820
821### Changed
822
823- Improve benchmarks: add IO intensive task workload, add task size option, integrate code into linter.
824- Optimize tasks usage lookup implementation.
825
826### Fixed
827
828- Fix missed pool event emitter type export.
829- Fix typedoc documentation generation.
830
831## [2.3.4] - 2022-10-17
832
833### Added
834
835- Fully automate release process with release-it.
836
837### Changed
838
839- Optimize fair share task scheduling algorithm implementation.
840- Update benchmarks versus external pools results with latest version.
841
842## [2.3.3] - 2022-10-15
843
844### Added
845
846- Add support for [cluster settings](https://nodejs.org/api/cluster.html#cluster_cluster_settings) in cluster pool options.
847
848## [2.3.2] - 2022-10-14
849
850### Changed
851
852- Optimize fair share worker selection strategy implementation.
853
854### Fixed
855
856- Fix WRR worker selection strategy: ensure the condition triggering the round robin can be fulfilled.
857
858## [2.3.1] - 2022-10-13
859
860### Added
861
862- Pool worker choice strategies:
863 - `WorkerChoiceStrategies.WEIGHTED_ROUND_ROBIN` strategy based on weighted round robin scheduling algorithm using tasks execution time for now.
864 - `WorkerChoiceStrategies.FAIR_SHARE` strategy based on fair share scheduling algorithm using tasks execution time for now.
865
866## [2.2.2] - 2022-10-09
867
868### Fixed
869
870- Fixed `README.md` file.
871
872## [2.2.1] - 2022-10-08
873
874### Added
875
876- Dynamic worker choice strategy change at runtime.
877
878## [2.2.0] - 2022-01-05
879
880### Breaking Changes
881
882- Support only Node.js version 16.x.x for cluster pool: upstream cluster API have changed on that version.
883
884## [2.1.0] - 2021-08-29
885
886### Added
887
888- Add an optional pool option `messageHandler` to `PoolOptions<Worker>` for registering a message handler callback on each worker.
889
890### Breaking Changes
891
892- `AbstractWorker` class `maxInactiveTime`, `killBehavior` and `async` attributes have been removed in favour of the same ones in the worker options `opts` public attribute.
893- `AbstractWorker` class `lastTask` attribute have been renamed to `lastTaskTimestamp`.
894- `AbstractWorker` class `interval` attribute have been renamed to `aliveInterval`.
895- `AbstractWorker` class cannot be instantiated without specifying the `mainWorker` argument referencing the main worker.
896
897## [2.0.2] - 2021-05-12
898
899### Bug fixes
900
901- Fix `busy` event emission on fixed pool type
902
903## [2.0.1] - 2021-03-16
904
905### Bug fixes
906
907- Check if pool options are properly set.
908- `busy` event is emitted on all pool types.
909
910## [2.0.0] - 2021-03-01
911
912### Bug fixes
913
914- Now a thread/process by default is not deleted when the task submitted take more time than maxInactiveTime configured (issue #70).
915
916### Breaking Changes
917
918- `FullPool` event is now renamed to `busy`.
919- `maxInactiveTime` on `ThreadWorker` default behavior is now changed, if you want to keep the old behavior set `killBehavior` to `KillBehaviors.HARD`.
920 _Find more details on our JSDoc._
921
922- `maxTasks` option on `FixedThreadPool` and `DynamicThreadPool` is now removed since is no more needed.
923
924- We changed some internal structures, but you shouldn't be too affected by them as these are internal changes.
925
926### Pool options types declaration merge
927
928`FixedThreadPoolOptions` and `DynamicThreadPoolOptions` type declarations have been merged to `PoolOptions<Worker>`.
929
930#### New `export` strategy
931
932```js
933// Before
934const DynamicThreadPool = require('poolifier/lib/dynamic')
935// After
936const { DynamicThreadPool } = require('poolifier/lib/dynamic')
937```
938
939But you should always prefer just using
940
941```js
942const { DynamicThreadPool } = require('poolifier')
943```
944
945#### New type definitions for input data and response
946
947For cluster worker and worker-thread pools, you can now only send and receive structured-cloneable data.
948_This is not a limitation by poolifier but Node.js._
949
950#### Public property replacements
951
952`numWorkers` property is now `numberOfWorkers`
953
954#### Internal (protected) properties and methods renaming
955
956These properties are not intended for end users
957
958- `id` => `nextMessageId`
959
960These methods are not intended for end users
961
962- `_chooseWorker` => `chooseWorker`
963- `_newWorker` => `createWorker`
964- `_execute` => `internalExecute`
965- `_chooseWorker` => `chooseWorker`
966- `_checkAlive` => `checkAlive`
967- `_run` => `run`
968- `_runAsync` => `runAsync`
969
970## [1.1.0] - 2020-05-21
971
972### Added
973
974- ThreadWorker support async functions as option
975- Various external library patches
976
977## [1.0.0] - 2020-01-24
978
979### Added
980
981- FixedThreadPool implementation
982- DynamicThreadPool implementation
983- WorkerThread implementation to improve developer experience