Implementation for killBehavior based on the last feedbacks
[poolifier.git] / CHANGELOG.md
... / ...
CommitLineData
1# Changelog
2
3All notable changes to this project will be documented in this file.
4
5The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
8## [2.0.0] - not released yet
9
10### Bug fixes
11
12- Now a thread/process is not deleted when the task submitted take more time than maxInactiveTime configured (issue #70)
13
14### Breaking Changes
15
16We changed some internal structures, but you shouldn't be too affected by them as these are internal changes.
17
18#### New `export` strategy
19
20```js
21// Before
22const DynamicThreadPool = require('poolifier/lib/dynamic')
23// After
24const { DynamicThreadPool } = require('poolifier/lib/dynamic')
25```
26
27But you should always prefer just using
28
29```js
30const { DynamicThreadPool } = require('poolifier')
31```
32
33#### New type definitions for input data and response
34
35For cluster and thread pools, you can now only send and receive serializable `JSON` data.
36_This is not a limitation by poolifier but NodeJS._
37
38#### Public properties renaming
39
40- Thread Pool's `numWorkers` is now `numberOfWorkers`
41- Thread Pool's `nextWorker` is now `nextWorkerIndex`
42
43#### Internal (protected) properties and methods renaming
44
45These properties are not intended for end users
46
47- `id` => `nextMessageId`
48
49These methods are not intended for end users
50
51- `_chooseWorker` => `chooseWorker`
52- `_newWorker` => `createWorker`
53- `_execute` => `internalExecute`
54- `_chooseWorker` => `chooseWorker`
55- `_checkAlive` => `checkAlive`
56- `_run` => `run`
57- `_runAsync` => `runAsync`
58
59## [1.1.0] - 2020-21-05
60
61### Added
62
63- ThreadWorker support async functions as option
64- Various external library patches
65
66## [1.0.0] - 2020-24-01
67
68### Added
69
70- FixedThreadPool implementation
71- DynamicThreadPool implementation
72- WorkerThread implementation to improve developer experience