| 1 | # Changelog |
| 2 | |
| 3 | All notable changes to this project will be documented in this file. |
| 4 | |
| 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). |
| 7 | |
| 8 | ## [2.0.0] - not released yet |
| 9 | |
| 10 | ### Breaking Changes |
| 11 | |
| 12 | We 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 |
| 18 | const DynamicThreadPool = require('poolifier/lib/dynamic') |
| 19 | // After |
| 20 | const { DynamicThreadPool } = require('poolifier/lib/dynamic') |
| 21 | ``` |
| 22 | |
| 23 | But you should always prefer just using |
| 24 | |
| 25 | ```js |
| 26 | const { DynamicThreadPool } = require('poolifier') |
| 27 | ``` |
| 28 | |
| 29 | #### New type definitions for input data and response |
| 30 | |
| 31 | For 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 | |
| 34 | #### Internal (protected) methods renaming |
| 35 | |
| 36 | Those methods are not intended to be used from final users |
| 37 | |
| 38 | - `_chooseWorker` => `chooseWorker` |
| 39 | - `_newWorker` => `newWorker` |
| 40 | - `_execute` => `internalExecute` |
| 41 | - `_chooseWorker` => `chooseWorker` |
| 42 | - `_checkAlive` => `checkAlive` |
| 43 | - `_run` => `run` |
| 44 | - `_runAsync` => `runAsync` |
| 45 | |
| 46 | ## [1.1.0] - 2020-21-05 |
| 47 | |
| 48 | ### Added |
| 49 | |
| 50 | - ThreadWorker support async functions as option |
| 51 | - Various external library patches |
| 52 | |
| 53 | ## [1.0.0] - 2020-24-01 |
| 54 | |
| 55 | ### Added |
| 56 | |
| 57 | - FixedThreadPool implementation |
| 58 | - DynamicThreadPool implementation |
| 59 | - WorkerThread implementation to improve developer experience |