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 HARD ( Find more details on our JSDoc ).
18 - We changed some internal structures, but you shouldn't be too affected by them as these are internal changes.
20 #### New `export` strategy
24 const DynamicThreadPool = require('poolifier/lib/dynamic')
26 const { DynamicThreadPool } = require('poolifier/lib/dynamic')
29 But you should always prefer just using
32 const { DynamicThreadPool } = require('poolifier')
35 #### New type definitions for input data and response
37 For cluster and thread pools, you can now only send and receive serializable `JSON` data.
38 _This is not a limitation by poolifier but NodeJS._
40 #### Public properties renaming
42 - Thread Pool's `numWorkers` is now `numberOfWorkers`
43 - Thread Pool's `nextWorker` is now `nextWorkerIndex`
45 #### Internal (protected) properties and methods renaming
47 These properties are not intended for end users
49 - `id` => `nextMessageId`
51 These methods are not intended for end users
53 - `_chooseWorker` => `chooseWorker`
54 - `_newWorker` => `createWorker`
55 - `_execute` => `internalExecute`
56 - `_chooseWorker` => `chooseWorker`
57 - `_checkAlive` => `checkAlive`
59 - `_runAsync` => `runAsync`
61 ## [1.1.0] - 2020-21-05
65 - ThreadWorker support async functions as option
66 - Various external library patches
68 ## [1.0.0] - 2020-24-01
72 - FixedThreadPool implementation
73 - DynamicThreadPool implementation
74 - WorkerThread implementation to improve developer experience