Add eslint-plugin-spellcheck (#139)
[poolifier.git] / CHANGELOG.md
CommitLineData
522eea03 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
fa0f5b28
S
8## [2.0.0] - not released yet
9
10### Breaking Changes
11
12We changed some internal structures, but you shouldn't be too affected by them as these are internal changes.
13
14#### New `export` strategy
15
16```js
17// Before
777b7824 18const DynamicThreadPool = require('poolifier/lib/dynamic')
fa0f5b28 19// After
777b7824 20const { DynamicThreadPool } = require('poolifier/lib/dynamic')
fa0f5b28
S
21```
22
23But you should always prefer just using
24
25```js
777b7824 26const { DynamicThreadPool } = require('poolifier')
fa0f5b28
S
27```
28
d3c8a1a8
S
29#### New type definitions for input data and response
30
31For cluster and thread pools, you can now only send and receive serializable `JSON` data.
32_This is not a limitation by poolifier but NodeJS._
33
5c5a1fb7
S
34#### Public properties renaming
35
36- Thread Pool's `numWorkers` is now `numberOfWorkers`
37
777b7824 38#### Internal (protected) methods renaming
fa0f5b28
S
39
40Those methods are not intended to be used from final users
41
42- `_chooseWorker` => `chooseWorker`
43- `_newWorker` => `newWorker`
44- `_execute` => `internalExecute`
45- `_chooseWorker` => `chooseWorker`
46- `_checkAlive` => `checkAlive`
47- `_run` => `run`
48- `_runAsync` => `runAsync`
49
0312f71a
APA
50## [1.1.0] - 2020-21-05
51
52### Added
53
54- ThreadWorker support async functions as option
cf9aa6c3 55- Various external library patches
0312f71a 56
522eea03 57## [1.0.0] - 2020-24-01
58
59### Added
60
61- FixedThreadPool implementation
62- DynamicThreadPool implementation
0312f71a 63- WorkerThread implementation to improve developer experience