poolifier.git
3 years agoBump @types/node from 14.14.33 to 14.14.34 (#269)
dependabot-preview[bot] [Fri, 12 Mar 2021 17:57:48 +0000 (18:57 +0100)] 
Bump @types/node from 14.14.33 to 14.14.34 (#269)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.33 to 14.14.34.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
3 years agoBump rollup from 2.41.1 to 2.41.2 (#270)
dependabot-preview[bot] [Fri, 12 Mar 2021 17:49:58 +0000 (18:49 +0100)] 
Bump rollup from 2.41.1 to 2.41.2 (#270)

Bumps [rollup](https://github.com/rollup/rollup) from 2.41.1 to 2.41.2.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.41.1...v2.41.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
3 years agoBump mocha from 8.3.1 to 8.3.2 (#268)
dependabot-preview[bot] [Fri, 12 Mar 2021 17:30:55 +0000 (18:30 +0100)] 
Bump mocha from 8.3.1 to 8.3.2 (#268)

Bumps [mocha](https://github.com/mochajs/mocha) from 8.3.1 to 8.3.2.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v8.3.1...v8.3.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
3 years agoBump rollup from 2.41.0 to 2.41.1 (#267)
dependabot-preview[bot] [Thu, 11 Mar 2021 11:01:19 +0000 (12:01 +0100)] 
Bump rollup from 2.41.0 to 2.41.1 (#267)

Bumps [rollup](https://github.com/rollup/rollup) from 2.41.0 to 2.41.1.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.41.0...v2.41.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
3 years agoBump @types/node from 14.14.32 to 14.14.33 (#265)
dependabot-preview[bot] [Tue, 9 Mar 2021 22:20:53 +0000 (23:20 +0100)] 
Bump @types/node from 14.14.32 to 14.14.33 (#265)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.32 to 14.14.33.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
3 years agoAdd workerpool to external pools benchmark (#263)
Jérôme Benoit [Tue, 9 Mar 2021 09:36:41 +0000 (10:36 +0100)] 
Add workerpool to external pools benchmark (#263)

3 years agoAdd two tests to assess worker options. (#260)
Jérôme Benoit [Tue, 9 Mar 2021 09:32:35 +0000 (10:32 +0100)] 
Add two tests to assess worker options. (#260)

3 years agoBump rollup from 2.40.0 to 2.41.0 (#264)
dependabot-preview[bot] [Tue, 9 Mar 2021 08:35:13 +0000 (09:35 +0100)] 
Bump rollup from 2.40.0 to 2.41.0 (#264)

Bumps [rollup](https://github.com/rollup/rollup) from 2.40.0 to 2.41.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.40.0...v2.41.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
3 years agoBump @typescript-eslint/parser from 4.16.1 to 4.17.0 (#261)
dependabot-preview[bot] [Mon, 8 Mar 2021 20:53:28 +0000 (21:53 +0100)] 
Bump @typescript-eslint/parser from 4.16.1 to 4.17.0 (#261)

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
3 years agoBump @typescript-eslint/eslint-plugin from 4.16.1 to 4.17.0 (#262)
dependabot-preview[bot] [Mon, 8 Mar 2021 20:46:33 +0000 (21:46 +0100)] 
Bump @typescript-eslint/eslint-plugin from 4.16.1 to 4.17.0 (#262)

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.16.1 to 4.17.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.17.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
3 years agoFix strategy handling in pool options (#259)
Jérôme Benoit [Sun, 7 Mar 2021 21:45:27 +0000 (22:45 +0100)] 
Fix strategy handling in pool options (#259)

And increase coverage a bit.

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
3 years agoBenchmarks and tests code cleanups. (#257)
Jérôme Benoit [Sun, 7 Mar 2021 18:28:25 +0000 (19:28 +0100)] 
Benchmarks and tests code cleanups. (#257)

Co-authored-by: Shinigami <chrissi92@hotmail.de>
3 years agoBump @types/node from 14.14.31 to 14.14.32 (#258)
dependabot-preview[bot] [Sun, 7 Mar 2021 10:26:20 +0000 (11:26 +0100)] 
Bump @types/node from 14.14.31 to 14.14.32 (#258)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.31 to 14.14.32.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
3 years agoPool busy event emitting on all pool types (#241)
Jérôme Benoit [Sat, 6 Mar 2021 20:08:08 +0000 (21:08 +0100)] 
Pool busy event emitting on all pool types (#241)

Co-authored-by: Shinigami <chrissi92@hotmail.de>
Co-authored-by: Shinigami92 <chrissi92@hotmail.de>
3 years agoAdd benchmark for quick select algorithm evaluation. (#255)
Jérôme Benoit [Sat, 6 Mar 2021 19:22:31 +0000 (20:22 +0100)] 
Add benchmark for quick select algorithm evaluation. (#255)

3 years agoBump typedoc from 0.20.29 to 0.20.30 (#256)
dependabot-preview[bot] [Sat, 6 Mar 2021 16:43:34 +0000 (17:43 +0100)] 
Bump typedoc from 0.20.29 to 0.20.30 (#256)

Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.20.29 to 0.20.30.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.20.29...v0.20.30)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
3 years agoBump mocha from 8.3.0 to 8.3.1 (#254)
dependabot-preview[bot] [Sat, 6 Mar 2021 09:08:08 +0000 (10:08 +0100)] 
Bump mocha from 8.3.0 to 8.3.1 (#254)

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
3 years agoBump typescript from 4.2.2 to 4.2.3 (#253)
dependabot-preview[bot] [Fri, 5 Mar 2021 11:50:37 +0000 (12:50 +0100)] 
Bump typescript from 4.2.2 to 4.2.3 (#253)

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.2.2 to 4.2.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
3 years agoUpdate eslint TS plugin to 4.16.1 (#249)
Jérôme Benoit [Thu, 4 Mar 2021 19:04:57 +0000 (20:04 +0100)] 
Update eslint TS plugin to 4.16.1 (#249)

Co-authored-by: Alessandro Pio Ardizio <alessandroardizio94@gmail.com>
3 years agoBump @typescript-eslint/eslint-plugin from 4.15.2 to 4.16.1 (#251)
dependabot-preview[bot] [Thu, 4 Mar 2021 08:46:14 +0000 (09:46 +0100)] 
Bump @typescript-eslint/eslint-plugin from 4.15.2 to 4.16.1 (#251)

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.15.2 to 4.16.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.16.1/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Alessandro Pio Ardizio <alessandroardizio94@gmail.com>
3 years agoBump typedoc from 0.20.28 to 0.20.29 (#252)
dependabot-preview[bot] [Thu, 4 Mar 2021 08:35:13 +0000 (09:35 +0100)] 
Bump typedoc from 0.20.28 to 0.20.29 (#252)

Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.20.28 to 0.20.29.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.20.28...v0.20.29)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
3 years agoGenerate TypeDoc via workflow (#246)
Shinigami [Mon, 1 Mar 2021 17:47:44 +0000 (18:47 +0100)] 
Generate TypeDoc via workflow (#246)

3 years agobench versions update
aardizio [Mon, 1 Mar 2021 17:32:28 +0000 (18:32 +0100)] 
bench versions update

3 years agoUpdate README.md v2.0.0
Alessandro Pio Ardizio [Mon, 1 Mar 2021 14:31:54 +0000 (15:31 +0100)] 
Update README.md

3 years agoPackage lock to 2.0.0 and removing other full keywords
aardizio [Mon, 1 Mar 2021 10:03:14 +0000 (11:03 +0100)] 
Package lock to 2.0.0 and removing other full keywords

3 years agoUpdate package.json
Alessandro Pio Ardizio [Mon, 1 Mar 2021 09:43:48 +0000 (10:43 +0100)] 
Update package.json

3 years agoUpdate CHANGELOG.md
Alessandro Pio Ardizio [Mon, 1 Mar 2021 09:41:31 +0000 (10:41 +0100)] 
Update CHANGELOG.md

3 years agoBump eslint from 7.20.0 to 7.21.0 (#244)
dependabot-preview[bot] [Sun, 28 Feb 2021 19:40:32 +0000 (20:40 +0100)] 
Bump eslint from 7.20.0 to 7.21.0 (#244)

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
3 years agoRename FullPool event to busy, update benchmarks
aardizio [Sat, 27 Feb 2021 13:38:04 +0000 (14:38 +0100)] 
Rename FullPool event to  busy, update benchmarks

3 years agoBump rollup from 2.39.1 to 2.40.0 (#242)
dependabot-preview[bot] [Fri, 26 Feb 2021 15:20:54 +0000 (16:20 +0100)] 
Bump rollup from 2.39.1 to 2.40.0 (#242)

Bumps [rollup](https://github.com/rollup/rollup) from 2.39.1 to 2.40.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.39.1...v2.40.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
3 years agoUpdate PULL_REQUEST_TEMPLATE.md
Alessandro Pio Ardizio [Thu, 25 Feb 2021 15:39:24 +0000 (16:39 +0100)] 
Update PULL_REQUEST_TEMPLATE.md

3 years agoSet theme jekyll-theme-hacker
Alessandro Pio Ardizio [Wed, 24 Feb 2021 22:11:03 +0000 (23:11 +0100)] 
Set theme jekyll-theme-hacker

3 years agoIntegrate typedoc to generate code documentation. (#236)
Jérôme Benoit [Wed, 24 Feb 2021 21:59:22 +0000 (22:59 +0100)] 
Integrate typedoc to generate code documentation. (#236)

3 years agoGeneral guidance documentation (#233)
Alessandro Pio Ardizio [Wed, 24 Feb 2021 19:10:09 +0000 (20:10 +0100)] 
General guidance documentation (#233)

Co-authored-by: Shinigami <chrissi92@hotmail.de>
Co-authored-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Co-authored-by: Jérôme Benoit <jerome.benoit@sap.com>
3 years agoCleanup (#239)
Shinigami [Wed, 24 Feb 2021 17:21:29 +0000 (18:21 +0100)] 
Cleanup (#239)

3 years agoUntangle pool abstract class from worker strategy selection (#234)
Jérôme Benoit [Wed, 24 Feb 2021 16:47:05 +0000 (17:47 +0100)] 
Untangle pool abstract class from worker strategy selection (#234)

Co-authored-by: Shinigami <chrissi92@hotmail.de>
3 years agoCreate SECURITY.md
Alessandro Pio Ardizio [Wed, 24 Feb 2021 11:19:41 +0000 (12:19 +0100)] 
Create SECURITY.md

3 years agoBump typescript from 4.1.5 to 4.2.2 (#235)
dependabot-preview[bot] [Wed, 24 Feb 2021 07:56:51 +0000 (08:56 +0100)] 
Bump typescript from 4.1.5 to 4.2.2 (#235)

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.1.5 to 4.2.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
3 years agoThreadjs benchmarks (#230)
Alessandro Pio Ardizio [Tue, 23 Feb 2021 13:51:38 +0000 (14:51 +0100)] 
Threadjs benchmarks (#230)

* Add threadjs to our benchmarks and re-run

* documentation

* Center support button

* Center support button

* Center support button

3 years agoUse the current node.js LTS version for publication. (#228)
Jérôme Benoit [Tue, 23 Feb 2021 13:37:40 +0000 (14:37 +0100)] 
Use the current node.js LTS version for publication. (#228)

3 years agoBump eslint-plugin-jsdoc from 32.1.1 to 32.2.0 (#229)
dependabot-preview[bot] [Tue, 23 Feb 2021 13:03:54 +0000 (14:03 +0100)] 
Bump eslint-plugin-jsdoc from 32.1.1 to 32.2.0 (#229)

Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) from 32.1.1 to 32.2.0.
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v32.1.1...v32.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Alessandro Pio Ardizio <alessandroardizio94@gmail.com>
3 years agoCoverage increased (#226)
Alessandro Pio Ardizio [Tue, 23 Feb 2021 11:45:38 +0000 (12:45 +0100)] 
Coverage increased (#226)

* Coverage increased

* Few changes

Co-authored-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
3 years agoBump rollup from 2.39.0 to 2.39.1 (#224)
dependabot-preview[bot] [Tue, 23 Feb 2021 10:16:06 +0000 (11:16 +0100)] 
Bump rollup from 2.39.0 to 2.39.1 (#224)

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
3 years agoBump eslint-plugin-jsdoc from 32.1.0 to 32.1.1 (#223)
dependabot-preview[bot] [Tue, 23 Feb 2021 10:07:43 +0000 (11:07 +0100)] 
Bump eslint-plugin-jsdoc from 32.1.0 to 32.1.1 (#223)

Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) from 32.1.0 to 32.1.1.
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v32.1.0...v32.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
3 years agoCleanups on bechmarking and strategies code: (#227)
Jérôme Benoit [Tue, 23 Feb 2021 09:38:00 +0000 (10:38 +0100)] 
Cleanups on bechmarking and strategies code: (#227)

+ Factor out common code
+ Renaming
+ Add benchmarking on strategies
+ Add microtime to improve benchmark time resolution

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
3 years agoRemoved max tasks (#225)
Alessandro Pio Ardizio [Tue, 23 Feb 2021 08:33:46 +0000 (09:33 +0100)] 
Removed max tasks (#225)

* Removed max tasks

* Coverage on abstract pool default

* Remove default option from the abstract pool since the default is already specified in any child class

* Fix missing default opts

* Few small changes

* Remove default from abstract pool constructor JSDoc

Co-authored-by: Shinigami <chrissi92@hotmail.de>
3 years agoImprove worker selection strategies coverage. (#220)
Jérôme Benoit [Mon, 22 Feb 2021 18:48:46 +0000 (19:48 +0100)] 
Improve worker selection strategies coverage. (#220)

* Improve worker selection strategies coverage.

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* Dedupe packages.

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
3 years agoBump @typescript-eslint/eslint-plugin from 4.15.1 to 4.15.2 (#221)
dependabot-preview[bot] [Mon, 22 Feb 2021 18:36:58 +0000 (19:36 +0100)] 
Bump @typescript-eslint/eslint-plugin from 4.15.1 to 4.15.2 (#221)

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.15.1 to 4.15.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.15.2/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
3 years agoBump @typescript-eslint/parser from 4.15.1 to 4.15.2 (#219)
dependabot-preview[bot] [Mon, 22 Feb 2021 18:17:26 +0000 (19:17 +0100)] 
Bump @typescript-eslint/parser from 4.15.1 to 4.15.2 (#219)

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.15.1 to 4.15.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.15.2/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
3 years agoCheck that a pool have a minimum number of workers (#213)
Jérôme Benoit [Mon, 22 Feb 2021 18:02:10 +0000 (19:02 +0100)] 
Check that a pool have a minimum number of workers (#213)

* Check that a pool have at least one worker,

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* Specify return type on checkNumberOfWorkers

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* Fix dynamic pool handling and add unit tests.

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* Add more sanity checks to numberOfWorkers.

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* Increase branches coverage.

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* Renable skipped test on cluster worker.

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* Remove wrong comment.

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* Try to increase coverage by alternating fixed pool type.

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* Address review comments.

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* Sync package-lock.json

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* Remove debug log.

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* Fix tests (#218)

* Fix the unit test for the number of workers.

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* Cleanups.

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Co-authored-by: Shinigami <chrissi92@hotmail.de>
3 years agoNew bench execution and sleep between a test and another
aardizio [Mon, 22 Feb 2021 17:40:22 +0000 (18:40 +0100)] 
New bench execution and sleep between a test and another

3 years agoDoc enhancement
aardizio [Mon, 22 Feb 2021 15:41:29 +0000 (16:41 +0100)] 
Doc enhancement

3 years agoDoc enhancement
aardizio [Mon, 22 Feb 2021 15:40:15 +0000 (16:40 +0100)] 
Doc enhancement

3 years agoDoc enhancement
aardizio [Mon, 22 Feb 2021 15:38:14 +0000 (16:38 +0100)] 
Doc enhancement

3 years agoDoc enhancement
aardizio [Mon, 22 Feb 2021 15:37:37 +0000 (16:37 +0100)] 
Doc enhancement

3 years agoDoc enhancement
aardizio [Mon, 22 Feb 2021 15:36:50 +0000 (16:36 +0100)] 
Doc enhancement

3 years agoEnhancement on main readme
aardizio [Mon, 22 Feb 2021 15:35:32 +0000 (16:35 +0100)] 
Enhancement on main readme

3 years agoAdditional details on benchmarks
aardizio [Mon, 22 Feb 2021 15:18:05 +0000 (16:18 +0100)] 
Additional details on benchmarks

3 years agoImprovement on benchmarks
aardizio [Mon, 22 Feb 2021 15:13:01 +0000 (16:13 +0100)] 
Improvement on benchmarks

3 years agoBump to beta 7 version v2.0.0-beta.7
aardizio [Mon, 22 Feb 2021 10:36:33 +0000 (11:36 +0100)] 
Bump to beta 7 version

3 years agoCoverage increased (#217)
Alessandro Pio Ardizio [Mon, 22 Feb 2021 10:28:22 +0000 (11:28 +0100)] 
Coverage increased (#217)

3 years agoBenchmarks and performance enhancements (#209)
Alessandro Pio Ardizio [Mon, 22 Feb 2021 09:38:23 +0000 (10:38 +0100)] 
Benchmarks and performance enhancements (#209)

* Benchmarks and performance enhancements

* Removed general Function type

* Remove unknownn work around

* Clean

* Clean up old benchs, exclude benchmark folder from eslint

* Clean up

* Revert "Clean up"

This reverts commit 31271d7f75392f04490a135a86b07e9480375505.

* Revert "Clean up old benchs, exclude benchmark folder from eslint"

This reverts commit 9467624c5713768cd44a545a48454a836d1af1b4.

* Clean up for real

* Clean up and dts for benchmarks

* Run npm lint

* Clean up benchmark eslint warnings and errors

* Exclude no missing require in some bench files

* Exclude no missing require in some bench files

* Remove sonar code smells

* Don't be overjoyed in readme

* Improve interface definition

* Use published poolifier

* Rename

* Ignore lint for benchmarks/versus-external-pools

* Remove eslint-disable from benchmark files

* Enhancement performance is now applied to both cluster and thread pools

* Improve documentation

* Unregister worker listener is no more needed

* Update README.md

* Improve readme

* Add content to readme

* Update benchmarks/README.md

Co-authored-by: Shinigami92 <chrissi92@hotmail.de>
3 years agoEnsure we always clean up resources in ut. (#214)
Jérôme Benoit [Sun, 21 Feb 2021 14:15:07 +0000 (15:15 +0100)] 
Ensure we always clean up resources in ut. (#214)

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
3 years agoExtract selection strategies to classes (#176)
Shinigami [Sun, 21 Feb 2021 14:01:33 +0000 (15:01 +0100)] 
Extract selection strategies to classes (#176)

Co-authored-by: Shinigami92 <chrissi92@hotmail.de>
Co-authored-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
3 years agoBump eslint-plugin-jsdoc from 32.0.2 to 32.1.0 (#212)
dependabot-preview[bot] [Sun, 21 Feb 2021 09:27:48 +0000 (10:27 +0100)] 
Bump eslint-plugin-jsdoc from 32.0.2 to 32.1.0 (#212)

Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) from 32.0.2 to 32.1.0.
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v32.0.2...v32.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
3 years agoOnly analyse code on main workflow (#208)
Shinigami [Sat, 20 Feb 2021 19:47:45 +0000 (20:47 +0100)] 
Only analyse code on main workflow (#208)

3 years agoPublish betas with beta tag (#204)
Shinigami [Sat, 20 Feb 2021 16:18:24 +0000 (17:18 +0100)] 
Publish betas with beta tag (#204)

3 years agoConfigure dependabot (#207)
Shinigami [Sat, 20 Feb 2021 16:15:45 +0000 (17:15 +0100)] 
Configure dependabot (#207)

3 years agoDocument the breaking change merge of pool options types declaration (#205)
Jérôme Benoit [Sat, 20 Feb 2021 16:08:48 +0000 (17:08 +0100)] 
Document the breaking change merge of pool options types declaration (#205)

Co-authored-by: Shinigami <chrissi92@hotmail.de>
Co-authored-by: Alessandro Pio Ardizio <alessandroardizio94@gmail.com>
3 years agoUpdate dependencies. (#206)
Jérôme Benoit [Sat, 20 Feb 2021 13:21:07 +0000 (14:21 +0100)] 
Update dependencies. (#206)

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
3 years agoUpdate package.json v2.0.0-beta.6
Alessandro Pio Ardizio [Fri, 19 Feb 2021 18:07:13 +0000 (19:07 +0100)] 
Update package.json

3 years agoProperly name and separate each steps at publication. (#199)
Jérôme Benoit [Fri, 19 Feb 2021 17:07:07 +0000 (18:07 +0100)] 
Properly name and separate each steps at publication. (#199)

3 years agoJSONValue can not be used by custom defined interfaces (#201)
Jérôme Benoit [Fri, 19 Feb 2021 16:57:47 +0000 (17:57 +0100)] 
JSONValue can not be used by custom defined interfaces (#201)

Co-authored-by: Shinigami92 <chrissi92@hotmail.de>
3 years agoFix usage of prepublishOnly (#202)
Shinigami [Fri, 19 Feb 2021 16:53:15 +0000 (17:53 +0100)] 
Fix usage of prepublishOnly (#202)

Co-authored-by: Jérôme Benoit <jerome.benoit@sap.com>
3 years agoFix logo squashing (#203)
Shinigami [Fri, 19 Feb 2021 16:13:16 +0000 (17:13 +0100)] 
Fix logo squashing (#203)

Use 34% image size

3 years agoMerge pull request #200 from pioardi/deps
Jérôme Benoit [Fri, 19 Feb 2021 13:07:12 +0000 (14:07 +0100)] 
Merge pull request #200 from pioardi/deps

Update dependencies to latest.

3 years agoUpdate dependencies to latest.
Jérôme Benoit [Fri, 19 Feb 2021 11:34:55 +0000 (12:34 +0100)] 
Update dependencies to latest.

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
3 years agoTake change from jerome v2.0.0-beta.5
aardizio [Fri, 19 Feb 2021 08:54:23 +0000 (09:54 +0100)] 
Take change from jerome

3 years agoMerge branch 'master' of https://github.com/pioardi/node-pool
aardizio [Fri, 19 Feb 2021 08:50:56 +0000 (09:50 +0100)] 
Merge branch 'master' of https://github.com/pioardi/node-pool

3 years agoMerge pull request #193 from pioardi/deps
Jérôme Benoit [Fri, 19 Feb 2021 08:50:49 +0000 (09:50 +0100)] 
Merge pull request #193 from pioardi/deps

Update dependencies

3 years agoAdd publish step into one job
aardizio [Fri, 19 Feb 2021 08:50:47 +0000 (09:50 +0100)] 
Add publish step into one job

3 years agoUpdate dependencies
Jérôme Benoit [Thu, 18 Feb 2021 21:47:58 +0000 (22:47 +0100)] 
Update dependencies

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
3 years agoUpdate package.json v2.0.0-beta.4
Alessandro Pio Ardizio [Thu, 18 Feb 2021 20:40:39 +0000 (21:40 +0100)] 
Update package.json

3 years agoCI: always lint after build. (#192) v2.0.0-beta.2 v2.0.0-beta.3
Jérôme Benoit [Thu, 18 Feb 2021 20:10:54 +0000 (21:10 +0100)] 
CI: always lint after build. (#192)

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
3 years agoUpdate package.json
Alessandro Pio Ardizio [Thu, 18 Feb 2021 19:37:48 +0000 (20:37 +0100)] 
Update package.json

3 years agoMerge pull request #189 from pioardi/ut
Jérôme Benoit [Thu, 18 Feb 2021 18:16:29 +0000 (19:16 +0100)] 
Merge pull request #189 from pioardi/ut

Use a configuration file for mocha ut

3 years agoUse a configuration file for mocha ut
Jérôme Benoit [Thu, 18 Feb 2021 16:21:36 +0000 (17:21 +0100)] 
Use a configuration file for mocha ut

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
3 years agoFix EPIPE when run unit tests (#187)
Alessandro Pio Ardizio [Thu, 18 Feb 2021 16:03:47 +0000 (17:03 +0100)] 
Fix EPIPE when run unit tests (#187)

* Try to remove the --exit

* Revert "Fix EPIPE on shutdown"

This reverts commit 4dc274761ce688172117009d1b306077d321f461.

* Graceful shutdown during unit tests

* Readd exit since that was not the solution

* Capital letters on comments

* Destroy all pools in after (#188)

Co-authored-by: Shinigami <chrissi92@hotmail.de>
3 years agoFix EPIPE on shutdown
aardizio [Thu, 18 Feb 2021 13:21:23 +0000 (14:21 +0100)] 
Fix EPIPE on shutdown

3 years agoMerge pull request #186 from pioardi/documentation
Jérôme Benoit [Thu, 18 Feb 2021 12:56:11 +0000 (13:56 +0100)] 
Merge pull request #186 from pioardi/documentation

3 years agoREADME.md: Small refinements
Jérôme Benoit [Thu, 18 Feb 2021 11:44:36 +0000 (12:44 +0100)] 
README.md: Small refinements

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
3 years agoMake the documentation less worker-threads centric. (#183)
Jérôme Benoit [Thu, 18 Feb 2021 11:37:14 +0000 (12:37 +0100)] 
Make the documentation less worker-threads centric. (#183)

Co-authored-by: Shinigami <chrissi92@hotmail.de>
3 years agoFix sonar code smells (#184)
Alessandro Pio Ardizio [Thu, 18 Feb 2021 10:00:39 +0000 (11:00 +0100)] 
Fix sonar code smells (#184)

* Fix sonar code smells

* Add coverage thresholds

* Coverage thresholds

* Update src/pools/abstract-pool.ts

Co-authored-by: Shinigami <chrissi92@hotmail.de>
* Update src/pools/abstract-pool.ts

Co-authored-by: Shinigami <chrissi92@hotmail.de>
* Update src/worker/abstract-worker.ts

Co-authored-by: Shinigami <chrissi92@hotmail.de>
* Update src/worker/abstract-worker.ts

Co-authored-by: Shinigami <chrissi92@hotmail.de>
Co-authored-by: Shinigami <chrissi92@hotmail.de>
3 years agoFactor out worker tasks number in/de-crement. (#182)
Jérôme Benoit [Wed, 17 Feb 2021 20:57:30 +0000 (21:57 +0100)] 
Factor out worker tasks number in/de-crement. (#182)

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
3 years agoIssue 160 ci unit test (#181)
Alessandro Pio Ardizio [Wed, 17 Feb 2021 19:13:21 +0000 (20:13 +0100)] 
Issue 160 ci unit test (#181)

* Fix issue 160

* Keep comments

* Keep comments

3 years agoUpdate CHANGELOG.md (#178)
Shinigami [Wed, 17 Feb 2021 11:19:28 +0000 (12:19 +0100)] 
Update CHANGELOG.md (#178)

3 years agoUpdate CHANGELOG.md
Alessandro Pio Ardizio [Wed, 17 Feb 2021 10:43:27 +0000 (11:43 +0100)] 
Update CHANGELOG.md

3 years agoTests enhancement (#172)
Alessandro Pio Ardizio [Wed, 17 Feb 2021 09:54:49 +0000 (10:54 +0100)] 
Tests enhancement (#172)

* Increase coverage and remove deprecated methods

* Add utility test function instead of use setTimeout to wait workers scale down

* Decrease a little bit the required nyc percentages

* Add a TestUtils class.

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* More sleep usage.

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* Run npm format.

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* Remove deprecated methods and update changelog, increase require coverage

* Check coverage change

Co-authored-by: Jérôme Benoit <jerome.benoit@sap.com>
3 years agoImprove jsdoc comments (#175)
Shinigami [Wed, 17 Feb 2021 07:58:12 +0000 (08:58 +0100)] 
Improve jsdoc comments (#175)

* Improve jsdoc comments

* Update eslint-plugin-jsdoc

3 years agoFix JSDoc (#171)
Shinigami [Tue, 16 Feb 2021 17:45:14 +0000 (18:45 +0100)] 
Fix JSDoc (#171)