X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=CHANGELOG.md;h=9a7d9427dc16e3b226afb26fa368870555981285;hb=401c5b67e7e795d87a59f5d8a1b4da6e97837cd5;hp=cf61e7816c3cb4fb5ae3efd4904e5f1b3fe6da1a;hpb=87a12b1289a70e4b26f2ea40ba3cbfc2ad4d97ea;p=poolifier.git diff --git a/CHANGELOG.md b/CHANGELOG.md index cf61e781..9a7d9427 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,44 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.0.0] - not released yet + +### Breaking Changes + +We changed some internal structures, but you shouldn't be too affected by them as these are internal changes. + +#### New `export` strategy + +```js +// Before +const DynamicThreadPool = require('poolifier/lib/dynamic') +// After +const { DynamicThreadPool } = require('poolifier/lib/dynamic') +``` + +But you should always prefer just using + +```js +const { DynamicThreadPool } = require('poolifier') +``` + +#### New type definitions for input data and response + +For cluster and thread pools, you can now only send and receive serializable `JSON` data. +_This is not a limitation by poolifier but NodeJS._ + +#### Internal (protected) methods renaming + +Those methods are not intended to be used from final users + +- `_chooseWorker` => `chooseWorker` +- `_newWorker` => `newWorker` +- `_execute` => `internalExecute` +- `_chooseWorker` => `chooseWorker` +- `_checkAlive` => `checkAlive` +- `_run` => `run` +- `_runAsync` => `runAsync` + ## [1.1.0] - 2020-21-05 ### Added