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 - `maxInactiveTime` default behavior is now changed, if you want to keep the old behavior set `killBehavior` to `KillBehaviors.HARD`.
17 _Find more details on our JSDoc._
19 - We changed some internal structures, but you shouldn't be too affected by them as these are internal changes.
21 ### Pool options types declaration merge
23 `FixedThreadPoolOptions` and `DynamicThreadPoolOptions` type declarations have been merged to `PoolOptions<Worker>`.
25 #### New `export` strategy
29 const DynamicThreadPool = require('poolifier/lib/dynamic')
31 const { DynamicThreadPool } = require('poolifier/lib/dynamic')
34 But you should always prefer just using
37 const { DynamicThreadPool } = require('poolifier')
40 #### New type definitions for input data and response
42 For cluster worker and worker-thread pools, you can now only send and receive serializable data.
43 _This is not a limitation by poolifier but NodeJS._
45 #### Public property replacements
47 `numWorkers` property is now `numberOfWorkers`
48 `nextWorker` property is now `nextWorkerIndex`
50 #### Internal (protected) properties and methods renaming
52 These properties are not intended for end users
54 - `id` => `nextMessageId`
56 These methods are not intended for end users
58 - `_chooseWorker` => `chooseWorker`
59 - `_newWorker` => `createWorker`
60 - `_execute` => `internalExecute`
61 - `_chooseWorker` => `chooseWorker`
62 - `_checkAlive` => `checkAlive`
64 - `_runAsync` => `runAsync`
66 ## [1.1.0] - 2020-21-05
70 - ThreadWorker support async functions as option
71 - Various external library patches
73 ## [1.0.0] - 2020-24-01
77 - FixedThreadPool implementation
78 - DynamicThreadPool implementation
79 - WorkerThread implementation to improve developer experience