@xylabs/threads 3.6.12 → 4.0.1
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/observable.d.ts +1 -1
- package/package.json +6 -5
- package/register.d.ts +1 -1
- package/src/index.ts +1 -1
- package/src/master/implementation.browser.ts +1 -1
- package/src/master/implementation.node.ts +1 -1
- package/src/master/index.ts +1 -1
- package/src/master/invocation-proxy.ts +1 -1
- package/src/master/pool.ts +1 -1
- package/src/master/spawn.ts +1 -1
- package/src/master/thread.ts +1 -1
- package/src/serializers.ts +1 -1
- package/src/worker/implementation.browser.ts +1 -1
- package/src/worker/implementation.tiny-worker.ts +1 -1
- package/src/worker/implementation.ts +1 -1
- package/src/worker/implementation.worker_threads.ts +1 -1
- package/src/worker/index.ts +1 -1
- package/test/lib/index.ts +1 -0
- package/test/observable-promise.test.ts +1 -1
- package/test/observable.test.ts +1 -1
- package/test/pool.test.ts +2 -2
- package/test/serialization.test.ts +1 -1
- package/test/spawn.chromium.mocha.ts +1 -1
- package/test/spawn.test.ts +1 -1
- package/test/transferables.test.ts +1 -1
- package/test/workers/minmax.ts +1 -1
- package/test/workers/serialization.ts +1 -1
- package/test-tooling/webpack/app-with-inlined-worker.ts +1 -1
- package/worker.d.ts +1 -1
package/observable.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// eslint-disable-next-line import/no-internal-modules
|
|
1
|
+
// eslint-disable-next-line import-x/no-internal-modules
|
|
2
2
|
export * from './dist/observable'
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xylabs/threads",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "Web workers & worker threads as simple as a function call",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/esm/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
8
9
|
"scripts": {
|
|
9
10
|
"package-compile": "yarn build",
|
|
10
11
|
"clean": "rimraf ./dist ./dist-esm",
|
|
@@ -40,7 +41,7 @@
|
|
|
40
41
|
"./observable": {
|
|
41
42
|
"types": "./dist/observable.d.ts",
|
|
42
43
|
"require": "./dist/observable.js",
|
|
43
|
-
"import": "./dist/esm
|
|
44
|
+
"import": "./dist/esm/observable.js",
|
|
44
45
|
"default": "./dist/esm/observable.js"
|
|
45
46
|
},
|
|
46
47
|
"./register": {
|
|
@@ -95,13 +96,13 @@
|
|
|
95
96
|
"@types/chai": "^4.3.17",
|
|
96
97
|
"@types/debug": "^4.1.12",
|
|
97
98
|
"@types/execa": "^2.0.0",
|
|
98
|
-
"@types/node": "^22.
|
|
99
|
+
"@types/node": "^22.2.0",
|
|
99
100
|
"@types/webpack": "^5.28.5",
|
|
100
101
|
"ava": "^6.1.3",
|
|
101
102
|
"chai": "^5.1.1",
|
|
102
103
|
"cross-env": "^7.0.3",
|
|
103
104
|
"execa": "^9.3.0",
|
|
104
|
-
"mocha": "^10.7.
|
|
105
|
+
"mocha": "^10.7.3",
|
|
105
106
|
"puppet-run": "^0.11.4",
|
|
106
107
|
"puppet-run-plugin-mocha": "^0.1.1",
|
|
107
108
|
"raw-loader": "^4.0.2",
|
|
@@ -112,7 +113,7 @@
|
|
|
112
113
|
"ts-loader": "^9.5.1",
|
|
113
114
|
"ts-node": "^10.9.2",
|
|
114
115
|
"typescript": "^5.5.4",
|
|
115
|
-
"undici-types": "^6.19.
|
|
116
|
+
"undici-types": "^6.19.6",
|
|
116
117
|
"wavy": "^1.0.4",
|
|
117
118
|
"webpack": "^5.93.0",
|
|
118
119
|
"worker-plugin": "^5.0.1"
|
package/register.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// eslint-disable-next-line import/no-internal-modules
|
|
1
|
+
// eslint-disable-next-line import-x/no-internal-modules
|
|
2
2
|
export * from './dist/master/register'
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2
|
-
/* eslint-disable import/no-internal-modules */
|
|
2
|
+
/* eslint-disable import-x/no-internal-modules */
|
|
3
3
|
/* eslint-disable unicorn/no-process-exit */
|
|
4
4
|
/* eslint-disable unicorn/prefer-logical-operator-over-ternary */
|
|
5
5
|
/* eslint-disable unicorn/prefer-regexp-test */
|
package/src/master/index.ts
CHANGED
package/src/master/pool.ts
CHANGED
package/src/master/spawn.ts
CHANGED
package/src/master/thread.ts
CHANGED
package/src/serializers.ts
CHANGED
package/src/worker/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* eslint-disable import/no-internal-modules */
|
|
1
|
+
/* eslint-disable import-x/no-internal-modules */
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-floating-promises */
|
|
4
4
|
import isSomeObservable from 'is-observable-2-1-0'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './serialization.js'
|
package/test/observable.test.ts
CHANGED
package/test/pool.test.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/* eslint-disable import/no-internal-modules */
|
|
1
|
+
/* eslint-disable import-x/no-internal-modules */
|
|
2
2
|
|
|
3
3
|
/* eslint-disable require-await */
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5
5
|
|
|
6
|
-
// eslint-disable import/no-internal-modules
|
|
6
|
+
// eslint-disable import-x/no-internal-modules
|
|
7
7
|
import test from 'ava'
|
|
8
8
|
|
|
9
9
|
import { Pool, spawn, Worker } from '../src/index'
|
package/test/spawn.test.ts
CHANGED
package/test/workers/minmax.ts
CHANGED
package/worker.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* eslint-disable import/no-internal-modules */
|
|
1
|
+
/* eslint-disable import-x/no-internal-modules */
|
|
2
2
|
export * from './dist/worker/index'
|