@tsdotnet/parallel 2.0.5 → 2.0.7
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/package.json +8 -8
- package/eslint.config.mjs +0 -37
- package/rollup.config.js +0 -56
- package/vitest.config.ts +0 -22
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsdotnet/parallel",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "A utility for automatically partitioning tasks (promises) and executing them in parallel using separate processes or web workers.",
|
|
5
5
|
"author": "electricessence",
|
|
6
6
|
"license": "MIT",
|
|
@@ -53,18 +53,18 @@
|
|
|
53
53
|
"eslint": "^9.34.0",
|
|
54
54
|
"jsdom": "^26.1.0",
|
|
55
55
|
"rimraf": "^6.0.1",
|
|
56
|
-
"rollup": "^4.48.
|
|
57
|
-
"typedoc": "^0.28.
|
|
56
|
+
"rollup": "^4.48.1",
|
|
57
|
+
"typedoc": "^0.28.11",
|
|
58
58
|
"typescript": "^5.9.2",
|
|
59
|
-
"typescript-eslint": "^8.
|
|
59
|
+
"typescript-eslint": "^8.41.0",
|
|
60
60
|
"vitest": "^3.2.4"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@tsdotnet/disposable": "^2.0.1",
|
|
64
|
-
"@tsdotnet/object-pool": "^2.0.
|
|
65
|
-
"@tsdotnet/promises": "^2.0.
|
|
66
|
-
"@tsdotnet/stopwatch": "^2.0.
|
|
67
|
-
"@tsdotnet/threading": "^2.0.
|
|
64
|
+
"@tsdotnet/object-pool": "^2.0.2",
|
|
65
|
+
"@tsdotnet/promises": "^2.0.11",
|
|
66
|
+
"@tsdotnet/stopwatch": "^2.0.8",
|
|
67
|
+
"@tsdotnet/threading": "^2.0.13",
|
|
68
68
|
"tslib": "^2.8.1"
|
|
69
69
|
},
|
|
70
70
|
"pnpm": {
|
package/eslint.config.mjs
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import eslint from '@eslint/js';
|
|
2
|
-
import tseslint from 'typescript-eslint';
|
|
3
|
-
|
|
4
|
-
export default tseslint.config(
|
|
5
|
-
eslint.configs.recommended,
|
|
6
|
-
...tseslint.configs.recommended,
|
|
7
|
-
{
|
|
8
|
-
rules: {
|
|
9
|
-
"semi": ["warn", "always"],
|
|
10
|
-
"indent": ["warn", "tab", { "SwitchCase": 1 }],
|
|
11
|
-
"@typescript-eslint/no-explicit-any": "off",
|
|
12
|
-
"@typescript-eslint/no-namespace": "off",
|
|
13
|
-
"@typescript-eslint/no-unused-vars": "off",
|
|
14
|
-
// Disable all the problematic rules identified in the lint output
|
|
15
|
-
"@typescript-eslint/ban-types": "off",
|
|
16
|
-
"@typescript-eslint/no-this-alias": "off",
|
|
17
|
-
"@typescript-eslint/no-var-requires": "off",
|
|
18
|
-
"@typescript-eslint/no-require-imports": "off",
|
|
19
|
-
"@typescript-eslint/no-unsafe-function-type": "off",
|
|
20
|
-
"@typescript-eslint/no-unused-expressions": "off",
|
|
21
|
-
"prefer-const": "off"
|
|
22
|
-
},
|
|
23
|
-
files: ['src/**/*.ts'],
|
|
24
|
-
languageOptions: {
|
|
25
|
-
ecmaVersion: 2022,
|
|
26
|
-
sourceType: 'module',
|
|
27
|
-
globals: {
|
|
28
|
-
console: 'readonly',
|
|
29
|
-
process: 'readonly'
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
// Disable unused eslint-disable directive warnings
|
|
33
|
-
linterOptions: {
|
|
34
|
-
reportUnusedDisableDirectives: false
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
);
|
package/rollup.config.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'rollup';
|
|
2
|
-
import typescript from '@rollup/plugin-typescript';
|
|
3
|
-
import { readFileSync } from 'node:fs';
|
|
4
|
-
|
|
5
|
-
const pkg = JSON.parse(readFileSync(new URL('./package.json', import.meta.url)));
|
|
6
|
-
|
|
7
|
-
export default defineConfig([
|
|
8
|
-
// Main Parallel entry point
|
|
9
|
-
{
|
|
10
|
-
input: 'src/Parallel.ts',
|
|
11
|
-
output: {
|
|
12
|
-
dir: 'dist/esm',
|
|
13
|
-
format: 'es',
|
|
14
|
-
preserveModules: true,
|
|
15
|
-
preserveModulesRoot: 'src',
|
|
16
|
-
entryFileNames: '[name].js',
|
|
17
|
-
sourcemap: true
|
|
18
|
-
},
|
|
19
|
-
external: [
|
|
20
|
-
/^node:/,
|
|
21
|
-
...Object.keys(pkg.dependencies || {}),
|
|
22
|
-
...Object.keys(pkg.peerDependencies || {})
|
|
23
|
-
],
|
|
24
|
-
plugins: [
|
|
25
|
-
typescript({
|
|
26
|
-
tsconfig: './tsconfig.esm.json',
|
|
27
|
-
declaration: false,
|
|
28
|
-
declarationMap: false,
|
|
29
|
-
sourceMap: true,
|
|
30
|
-
removeComments: true
|
|
31
|
-
})
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
// eval.js worker script - standalone
|
|
35
|
-
{
|
|
36
|
-
input: 'src/eval.ts',
|
|
37
|
-
output: {
|
|
38
|
-
file: 'dist/esm/eval.js',
|
|
39
|
-
format: 'es',
|
|
40
|
-
sourcemap: true
|
|
41
|
-
},
|
|
42
|
-
plugins: [
|
|
43
|
-
typescript({
|
|
44
|
-
tsconfig: './tsconfig.esm.json',
|
|
45
|
-
declaration: false,
|
|
46
|
-
declarationMap: false,
|
|
47
|
-
sourceMap: true,
|
|
48
|
-
removeComments: true
|
|
49
|
-
})
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
]);
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
package/vitest.config.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'vitest/config';
|
|
2
|
-
|
|
3
|
-
export default defineConfig({
|
|
4
|
-
test: {
|
|
5
|
-
globals: true,
|
|
6
|
-
environment: 'jsdom', // Changed from 'node' to provide browser-like globals
|
|
7
|
-
coverage: {
|
|
8
|
-
enabled: true,
|
|
9
|
-
reporter: ['text'],
|
|
10
|
-
include: ['src/**/*.ts'],
|
|
11
|
-
exclude: ['src/**/*.d.ts'],
|
|
12
|
-
thresholds: {
|
|
13
|
-
global: {
|
|
14
|
-
branches: 80,
|
|
15
|
-
functions: 80,
|
|
16
|
-
lines: 80,
|
|
17
|
-
statements: 80
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
});
|