poolifier 2.3.6 → 2.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -6
- package/lib/index.d.ts +14 -902
- package/lib/index.js +1 -1
- package/lib/pools/abstract-pool.d.ts +219 -0
- package/lib/pools/cluster/dynamic.d.ts +30 -0
- package/lib/pools/cluster/fixed.d.ts +64 -0
- package/lib/pools/pool-internal.d.ts +85 -0
- package/lib/pools/pool-worker.d.ts +35 -0
- package/lib/pools/pool.d.ts +73 -0
- package/lib/pools/selection-strategies/abstract-worker-choice-strategy.d.ts +27 -0
- package/lib/pools/selection-strategies/dynamic-pool-worker-choice-strategy.d.ts +27 -0
- package/lib/pools/selection-strategies/fair-share-worker-choice-strategy.d.ts +29 -0
- package/lib/pools/selection-strategies/less-recently-used-worker-choice-strategy.d.ts +15 -0
- package/lib/pools/selection-strategies/round-robin-worker-choice-strategy.d.ts +19 -0
- package/lib/pools/selection-strategies/selection-strategies-types.d.ts +55 -0
- package/lib/pools/selection-strategies/selection-strategies-utils.d.ts +11 -0
- package/lib/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.d.ts +43 -0
- package/lib/pools/selection-strategies/worker-choice-strategy-context.d.ts +48 -0
- package/lib/pools/thread/dynamic.d.ts +31 -0
- package/lib/pools/thread/fixed.d.ts +48 -0
- package/lib/utility-types.d.ts +63 -0
- package/lib/utils.d.ts +8 -0
- package/lib/worker/abstract-worker.d.ts +86 -0
- package/lib/worker/cluster-worker.d.ts +32 -0
- package/lib/worker/thread-worker.d.ts +30 -0
- package/lib/worker/worker-options.d.ts +61 -0
- package/package.json +55 -37
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "poolifier",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.8",
|
|
4
4
|
"description": "A fast, easy to use Node.js Worker Thread Pool and Cluster Pool implementation",
|
|
5
|
+
"license": "MIT",
|
|
5
6
|
"main": "lib/index.js",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"prepare": "node prepare.js",
|
|
@@ -15,15 +16,28 @@
|
|
|
15
16
|
"test:debug": "npm run build && mocha --no-parallel --inspect 'tests/**/*.test.js'",
|
|
16
17
|
"coverage": "c8 report --reporter=lcov",
|
|
17
18
|
"coverage:html": "c8 report --reporter=html",
|
|
18
|
-
"format": "prettier --
|
|
19
|
+
"format": "prettier . --cache --write; ts-standard . --fix",
|
|
19
20
|
"lint": "eslint . --cache",
|
|
20
21
|
"lint:fix": "eslint . --cache --fix",
|
|
21
22
|
"lint:report": "eslint . --cache --format json --output-file reports/eslint.json",
|
|
22
23
|
"release": "release-it",
|
|
23
24
|
"typedoc": "typedoc",
|
|
24
|
-
"sonar:properties": "./updateSonarProps.sh",
|
|
25
25
|
"prepublishOnly": "npm run build:prod"
|
|
26
26
|
},
|
|
27
|
+
"ts-standard": {
|
|
28
|
+
"globals": [
|
|
29
|
+
"describe",
|
|
30
|
+
"it",
|
|
31
|
+
"before",
|
|
32
|
+
"after",
|
|
33
|
+
"beforeEach",
|
|
34
|
+
"afterEach"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=16.0.0",
|
|
39
|
+
"npm": ">=8.0.0"
|
|
40
|
+
},
|
|
27
41
|
"repository": {
|
|
28
42
|
"type": "git",
|
|
29
43
|
"url": "git+https://github.com/poolifier/poolifier.git"
|
|
@@ -56,7 +70,12 @@
|
|
|
56
70
|
"url": "https://github.com/jerome-benoit"
|
|
57
71
|
}
|
|
58
72
|
],
|
|
59
|
-
"
|
|
73
|
+
"funding": [
|
|
74
|
+
{
|
|
75
|
+
"type": "opencollective",
|
|
76
|
+
"url": "https://opencollective.com/poolifier"
|
|
77
|
+
}
|
|
78
|
+
],
|
|
60
79
|
"bugs": {
|
|
61
80
|
"url": "https://github.com/poolifier/poolifier/issues"
|
|
62
81
|
},
|
|
@@ -65,46 +84,45 @@
|
|
|
65
84
|
"lib"
|
|
66
85
|
],
|
|
67
86
|
"devDependencies": {
|
|
87
|
+
"@commitlint/cli": "^17.4.4",
|
|
88
|
+
"@commitlint/config-conventional": "^17.4.4",
|
|
89
|
+
"@release-it/bumper": "^4.0.2",
|
|
68
90
|
"@release-it/keep-a-changelog": "^3.1.0",
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
71
|
-
"@
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
91
|
+
"@rollup/plugin-terser": "^0.4.0",
|
|
92
|
+
"@rollup/plugin-typescript": "^11.0.0",
|
|
93
|
+
"@types/node": "^18.15.3",
|
|
94
|
+
"@typescript-eslint/eslint-plugin": "^5.55.0",
|
|
95
|
+
"@typescript-eslint/parser": "^5.55.0",
|
|
96
|
+
"benny": "^3.7.1",
|
|
97
|
+
"c8": "^7.13.0",
|
|
98
|
+
"eslint": "^8.36.0",
|
|
75
99
|
"eslint-config-standard": "^17.0.0",
|
|
76
|
-
"eslint-
|
|
77
|
-
"eslint-
|
|
78
|
-
"eslint-
|
|
79
|
-
"eslint-plugin-
|
|
80
|
-
"eslint-plugin-
|
|
81
|
-
"eslint-plugin-
|
|
100
|
+
"eslint-config-standard-with-typescript": "^34.0.1",
|
|
101
|
+
"eslint-define-config": "^1.16.0",
|
|
102
|
+
"eslint-import-resolver-typescript": "^3.5.3",
|
|
103
|
+
"eslint-plugin-import": "^2.27.5",
|
|
104
|
+
"eslint-plugin-jsdoc": "^40.0.3",
|
|
105
|
+
"eslint-plugin-n": "^15.6.1",
|
|
82
106
|
"eslint-plugin-promise": "^6.1.1",
|
|
83
|
-
"eslint-plugin-spellcheck": "^0.0.
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
107
|
+
"eslint-plugin-spellcheck": "^0.0.20",
|
|
108
|
+
"eslint-plugin-tsdoc": "^0.2.17",
|
|
109
|
+
"expect": "^29.5.0",
|
|
110
|
+
"husky": "^8.0.3",
|
|
111
|
+
"lint-staged": "^13.2.0",
|
|
87
112
|
"microtime": "^3.1.1",
|
|
88
|
-
"mocha": "^10.
|
|
113
|
+
"mocha": "^10.2.0",
|
|
89
114
|
"mochawesome": "^7.1.3",
|
|
90
|
-
"prettier": "^2.
|
|
91
|
-
"prettier-plugin-organize-imports": "^3.
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"rollup": "^3.2.3",
|
|
115
|
+
"prettier": "^2.8.4",
|
|
116
|
+
"prettier-plugin-organize-imports": "^3.2.2",
|
|
117
|
+
"release-it": "^15.9.0",
|
|
118
|
+
"rollup": "^3.19.1",
|
|
95
119
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
96
120
|
"rollup-plugin-command": "^1.1.3",
|
|
97
121
|
"rollup-plugin-delete": "^2.0.0",
|
|
98
|
-
"
|
|
99
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
100
|
-
"rollup-plugin-ts": "^3.0.2",
|
|
101
|
-
"sinon": "^14.0.1",
|
|
122
|
+
"sinon": "^15.0.2",
|
|
102
123
|
"source-map-support": "^0.5.21",
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
|
|
106
|
-
"engines": {
|
|
107
|
-
"node": ">=16.0.0",
|
|
108
|
-
"npm": ">=8.0.0"
|
|
124
|
+
"ts-standard": "^12.0.2",
|
|
125
|
+
"typedoc": "^0.23.27",
|
|
126
|
+
"typescript": "^5.0.2"
|
|
109
127
|
}
|
|
110
|
-
}
|
|
128
|
+
}
|