Rename functions and methods to not use prefix underscore (#86)
[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
18const DynamicThreadPool = require("poolifier/lib/dynamic");
19// After
20const { DynamicThreadPool } = require("poolifier/lib/dynamic");
21```
22
23But you should always prefer just using
24
25```js
26const { DynamicThreadPool } = require("poolifier");
27```
28
29#### Internal (protected) methods has renamed
30
31Those methods are not intended to be used from final users
32
33- `_chooseWorker` => `chooseWorker`
34- `_newWorker` => `newWorker`
35- `_execute` => `internalExecute`
36- `_chooseWorker` => `chooseWorker`
37- `_checkAlive` => `checkAlive`
38- `_run` => `run`
39- `_runAsync` => `runAsync`
40
0312f71a
APA
41## [1.1.0] - 2020-21-05
42
43### Added
44
45- ThreadWorker support async functions as option
cf9aa6c3 46- Various external library patches
0312f71a 47
522eea03 48## [1.0.0] - 2020-24-01
49
50### Added
51
52- FixedThreadPool implementation
53- DynamicThreadPool implementation
0312f71a 54- WorkerThread implementation to improve developer experience