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 #### New `export` strategy
25 const DynamicThreadPool = require('poolifier/lib/dynamic')
27 const { DynamicThreadPool } = require('poolifier/lib/dynamic')
30 But you should always prefer just using
33 const { DynamicThreadPool } = require('poolifier')
36 #### New type definitions for input data and response
38 For cluster worker and worker-thread pools, you can now only send and receive serializable `JSON` data.
39 _This is not a limitation by poolifier but NodeJS._
41 #### Public property replacements
43 `numWorkers` property is now `numberOfWorkers`
44 `nextWorker` property is now `nextWorkerIndex`
46 #### Internal (protected) properties and methods renaming
48 These properties are not intended for end users
50 - `id` => `nextMessageId`
52 These methods are not intended for end users
54 - `_chooseWorker` => `chooseWorker`
55 - `_newWorker` => `createWorker`
56 - `_execute` => `internalExecute`
57 - `_chooseWorker` => `chooseWorker`
58 - `_checkAlive` => `checkAlive`
60 - `_runAsync` => `runAsync`
62 ## [1.1.0] - 2020-21-05
66 - ThreadWorker support async functions as option
67 - Various external library patches
69 ## [1.0.0] - 2020-24-01
73 - FixedThreadPool implementation
74 - DynamicThreadPool implementation
75 - WorkerThread implementation to improve developer experience