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.0.0/),
6 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8 ## [2.0.0] - not released yet
12 - Now a thread/process by default is not deleted when the task submitted take more time than maxInactiveTime configured (issue #70).
16 - `FullPool` event is now renamed to `busy`.
17 - `maxInactiveTime` on `ThreadWorker` default behavior is now changed, if you want to keep the old behavior set `killBehavior` to `KillBehaviors.HARD`.
18 _Find more details on our JSDoc._
20 - `maxTasks` option on `FixedThreadPool` and `DynamicThreadPool` is now removed since is no more needed.
22 - We changed some internal structures, but you shouldn't be too affected by them as these are internal changes.
24 ### Pool options types declaration merge
26 `FixedThreadPoolOptions` and `DynamicThreadPoolOptions` type declarations have been merged to `PoolOptions<Worker>`.
28 #### New `export` strategy
32 const DynamicThreadPool = require('poolifier/lib/dynamic')
34 const { DynamicThreadPool } = require('poolifier/lib/dynamic')
37 But you should always prefer just using
40 const { DynamicThreadPool } = require('poolifier')
43 #### New type definitions for input data and response
45 For cluster worker and worker-thread pools, you can now only send and receive serializable data.
46 _This is not a limitation by poolifier but NodeJS._
48 #### Public property replacements
50 `numWorkers` property is now `numberOfWorkers`
52 #### Internal (protected) properties and methods renaming
54 These properties are not intended for end users
56 - `id` => `nextMessageId`
58 These methods are not intended for end users
60 - `_chooseWorker` => `chooseWorker`
61 - `_newWorker` => `createWorker`
62 - `_execute` => `internalExecute`
63 - `_chooseWorker` => `chooseWorker`
64 - `_checkAlive` => `checkAlive`
66 - `_runAsync` => `runAsync`
68 ## [1.1.0] - 2020-21-05
72 - ThreadWorker support async functions as option
73 - Various external library patches
75 ## [1.0.0] - 2020-24-01
79 - FixedThreadPool implementation
80 - DynamicThreadPool implementation
81 - WorkerThread implementation to improve developer experience