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 is not deleted when the task submitted take more time than maxInactiveTime configured (issue #70)
16 We changed some internal structures, but you shouldn't be too affected by them as these are internal changes.
18 #### New `export` strategy
22 const DynamicThreadPool = require('poolifier/lib/dynamic')
24 const { DynamicThreadPool } = require('poolifier/lib/dynamic')
27 But you should always prefer just using
30 const { DynamicThreadPool } = require('poolifier')
33 #### New type definitions for input data and response
35 For cluster and thread pools, you can now only send and receive serializable `JSON` data.
36 _This is not a limitation by poolifier but NodeJS._
38 #### Public properties renaming
40 - Thread Pool's `numWorkers` is now `numberOfWorkers`
41 - Thread Pool's `nextWorker` is now `nextWorkerIndex`
43 #### Internal (protected) properties and methods renaming
45 These properties are not intended for end users
47 - `id` => `nextMessageId`
49 These methods are not intended for end users
51 - `_chooseWorker` => `chooseWorker`
52 - `_newWorker` => `createWorker`
53 - `_execute` => `internalExecute`
54 - `_chooseWorker` => `chooseWorker`
55 - `_checkAlive` => `checkAlive`
57 - `_runAsync` => `runAsync`
59 ## [1.1.0] - 2020-21-05
63 - ThreadWorker support async functions as option
64 - Various external library patches
66 ## [1.0.0] - 2020-24-01
70 - FixedThreadPool implementation
71 - DynamicThreadPool implementation
72 - WorkerThread implementation to improve developer experience