mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2025-04-04 08:21:04 +00:00
fix(deps): Use published threads package (#369)
Use published threads package
This commit is contained in:
parent
f9abc6419c
commit
a605d757f9
@ -25,7 +25,7 @@
|
|||||||
"@fluencelabs/avm": "0.52.0",
|
"@fluencelabs/avm": "0.52.0",
|
||||||
"@fluencelabs/marine-js": "0.7.2",
|
"@fluencelabs/marine-js": "0.7.2",
|
||||||
"@fluencelabs/marine-worker": "workspace:*",
|
"@fluencelabs/marine-worker": "workspace:*",
|
||||||
"threads": "fluencelabs/threads.js#b00a5342380b0278d3ae56dcfb170effb3cad7cd"
|
"@fluencelabs/threads": "^2.0.0"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "Fluence Labs",
|
"author": "Fluence Labs",
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Worker } from "threads/master";
|
import { Worker } from "@fluencelabs/threads/master";
|
||||||
|
|
||||||
export type VersionedPackage = { name: string; version: string };
|
export type VersionedPackage = { name: string; version: string };
|
||||||
export type GetWorker = (
|
export type GetWorker = (
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { BlobWorker } from "threads/master";
|
import { BlobWorker } from "@fluencelabs/threads/master";
|
||||||
|
|
||||||
import { fetchResource } from "../fetchers/browser.js";
|
import { fetchResource } from "../fetchers/browser.js";
|
||||||
import type { GetWorker, VersionedPackage } from "../types.js";
|
import type { GetWorker, VersionedPackage } from "../types.js";
|
||||||
|
@ -18,7 +18,7 @@ import { createRequire } from "module";
|
|||||||
import { dirname, relative } from "path";
|
import { dirname, relative } from "path";
|
||||||
import { fileURLToPath } from "url";
|
import { fileURLToPath } from "url";
|
||||||
|
|
||||||
import { Worker } from "threads/master";
|
import { Worker } from "@fluencelabs/threads/master";
|
||||||
|
|
||||||
import type { GetWorker, VersionedPackage } from "../types.js";
|
import type { GetWorker, VersionedPackage } from "../types.js";
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
"libp2p": "0.46.6",
|
"libp2p": "0.46.6",
|
||||||
"multiformats": "11.0.1",
|
"multiformats": "11.0.1",
|
||||||
"rxjs": "7.5.5",
|
"rxjs": "7.5.5",
|
||||||
"threads": "fluencelabs/threads.js#b00a5342380b0278d3ae56dcfb170effb3cad7cd",
|
"@fluencelabs/threads": "^2.0.0",
|
||||||
"ts-pattern": "3.3.3",
|
"ts-pattern": "3.3.3",
|
||||||
"uint8arrays": "4.0.3",
|
"uint8arrays": "4.0.3",
|
||||||
"uuid": "8.3.2",
|
"uuid": "8.3.2",
|
||||||
|
@ -19,7 +19,10 @@ import fs from "fs";
|
|||||||
import { createRequire } from "module";
|
import { createRequire } from "module";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
|
|
||||||
import { Worker, type Worker as WorkerImplementation } from "threads/master";
|
import {
|
||||||
|
Worker,
|
||||||
|
type Worker as WorkerImplementation,
|
||||||
|
} from "@fluencelabs/threads/master";
|
||||||
|
|
||||||
import { LazyLoader } from "../interfaces.js";
|
import { LazyLoader } from "../interfaces.js";
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ import {
|
|||||||
RunParameters,
|
RunParameters,
|
||||||
} from "@fluencelabs/avm";
|
} from "@fluencelabs/avm";
|
||||||
import { JSONObject, JSONValue, JSONArray } from "@fluencelabs/interfaces";
|
import { JSONObject, JSONValue, JSONArray } from "@fluencelabs/interfaces";
|
||||||
import type { Worker as WorkerImplementation } from "threads/master";
|
import type { Worker as WorkerImplementation } from "@fluencelabs/threads/master";
|
||||||
|
|
||||||
import { IStartable, CallParameters } from "../util/commonTypes.js";
|
import { IStartable, CallParameters } from "../util/commonTypes.js";
|
||||||
|
|
||||||
|
@ -14,7 +14,10 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Worker, type Worker as WorkerImplementation } from "threads/master";
|
import {
|
||||||
|
Worker,
|
||||||
|
type Worker as WorkerImplementation,
|
||||||
|
} from "@fluencelabs/threads/master";
|
||||||
|
|
||||||
import { LazyLoader } from "../interfaces.js";
|
import { LazyLoader } from "../interfaces.js";
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ import type {
|
|||||||
} from "@fluencelabs/marine-js/dist/types";
|
} from "@fluencelabs/marine-js/dist/types";
|
||||||
import { LogFunction, logLevelToEnv } from "@fluencelabs/marine-js/dist/types";
|
import { LogFunction, logLevelToEnv } from "@fluencelabs/marine-js/dist/types";
|
||||||
import type { MarineBackgroundInterface } from "@fluencelabs/marine-worker";
|
import type { MarineBackgroundInterface } from "@fluencelabs/marine-worker";
|
||||||
import { ModuleThread, Thread, spawn } from "threads/master";
|
import { ModuleThread, Thread, spawn } from "@fluencelabs/threads/master";
|
||||||
|
|
||||||
import { MarineLogger, marineLogger } from "../../util/logger.js";
|
import { MarineLogger, marineLogger } from "../../util/logger.js";
|
||||||
import { IMarineHost, IWasmLoader, IWorkerLoader } from "../interfaces.js";
|
import { IMarineHost, IWasmLoader, IWorkerLoader } from "../interfaces.js";
|
||||||
|
@ -26,6 +26,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fluencelabs/marine-js": "0.7.2",
|
"@fluencelabs/marine-js": "0.7.2",
|
||||||
"observable-fns": "0.6.1",
|
"observable-fns": "0.6.1",
|
||||||
"threads": "fluencelabs/threads.js#b00a5342380b0278d3ae56dcfb170effb3cad7cd"
|
"@fluencelabs/threads": "^2.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,8 +27,8 @@ import type {
|
|||||||
LogMessage,
|
LogMessage,
|
||||||
} from "@fluencelabs/marine-js/dist/types";
|
} from "@fluencelabs/marine-js/dist/types";
|
||||||
import { JSONValue } from "@fluencelabs/marine-js/dist/types";
|
import { JSONValue } from "@fluencelabs/marine-js/dist/types";
|
||||||
|
import { expose } from "@fluencelabs/threads/worker";
|
||||||
import { Observable, Subject } from "observable-fns";
|
import { Observable, Subject } from "observable-fns";
|
||||||
import { expose } from "threads/worker";
|
|
||||||
|
|
||||||
const createSimpleModuleDescriptor = (
|
const createSimpleModuleDescriptor = (
|
||||||
name: string,
|
name: string,
|
||||||
|
47
pnpm-lock.yaml
generated
47
pnpm-lock.yaml
generated
@ -214,6 +214,9 @@ importers:
|
|||||||
'@fluencelabs/marine-worker':
|
'@fluencelabs/marine-worker':
|
||||||
specifier: 0.4.0
|
specifier: 0.4.0
|
||||||
version: link:../marine-worker
|
version: link:../marine-worker
|
||||||
|
'@fluencelabs/threads':
|
||||||
|
specifier: ^2.0.0
|
||||||
|
version: 2.0.0
|
||||||
'@libp2p/crypto':
|
'@libp2p/crypto':
|
||||||
specifier: 2.0.3
|
specifier: 2.0.3
|
||||||
version: 2.0.3
|
version: 2.0.3
|
||||||
@ -268,9 +271,6 @@ importers:
|
|||||||
rxjs:
|
rxjs:
|
||||||
specifier: 7.5.5
|
specifier: 7.5.5
|
||||||
version: 7.5.5
|
version: 7.5.5
|
||||||
threads:
|
|
||||||
specifier: fluencelabs/threads.js#b00a5342380b0278d3ae56dcfb170effb3cad7cd
|
|
||||||
version: github.com/fluencelabs/threads.js/b00a5342380b0278d3ae56dcfb170effb3cad7cd
|
|
||||||
ts-pattern:
|
ts-pattern:
|
||||||
specifier: 3.3.3
|
specifier: 3.3.3
|
||||||
version: 3.3.3
|
version: 3.3.3
|
||||||
@ -329,21 +329,21 @@ importers:
|
|||||||
'@fluencelabs/marine-worker':
|
'@fluencelabs/marine-worker':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../marine-worker
|
version: link:../marine-worker
|
||||||
threads:
|
'@fluencelabs/threads':
|
||||||
specifier: fluencelabs/threads.js#b00a5342380b0278d3ae56dcfb170effb3cad7cd
|
specifier: ^2.0.0
|
||||||
version: github.com/fluencelabs/threads.js/b00a5342380b0278d3ae56dcfb170effb3cad7cd
|
version: 2.0.0
|
||||||
|
|
||||||
packages/core/marine-worker:
|
packages/core/marine-worker:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@fluencelabs/marine-js':
|
'@fluencelabs/marine-js':
|
||||||
specifier: 0.7.2
|
specifier: 0.7.2
|
||||||
version: 0.7.2
|
version: 0.7.2
|
||||||
|
'@fluencelabs/threads':
|
||||||
|
specifier: ^2.0.0
|
||||||
|
version: 2.0.0
|
||||||
observable-fns:
|
observable-fns:
|
||||||
specifier: 0.6.1
|
specifier: 0.6.1
|
||||||
version: 0.6.1
|
version: 0.6.1
|
||||||
threads:
|
|
||||||
specifier: fluencelabs/threads.js#b00a5342380b0278d3ae56dcfb170effb3cad7cd
|
|
||||||
version: github.com/fluencelabs/threads.js/b00a5342380b0278d3ae56dcfb170effb3cad7cd
|
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@rollup/plugin-inject':
|
'@rollup/plugin-inject':
|
||||||
specifier: 5.0.3
|
specifier: 5.0.3
|
||||||
@ -4043,6 +4043,19 @@ packages:
|
|||||||
resolution: {integrity: sha512-QFbknWwALLUWMzpWkFt34McuwTz9xwQuiPP1zXqhPqVZ1J6g8F3gwHHtzgHFW5Z7WrRmwsL+IQtFJy8YZubhDw==}
|
resolution: {integrity: sha512-QFbknWwALLUWMzpWkFt34McuwTz9xwQuiPP1zXqhPqVZ1J6g8F3gwHHtzgHFW5Z7WrRmwsL+IQtFJy8YZubhDw==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/@fluencelabs/threads@2.0.0:
|
||||||
|
resolution: {integrity: sha512-dgYpZg55OcEmop1U3G2bFKEJXg2avjXWYfWsdPlkSbHOHguaRifvr5bgwIYTg1wxoPGcn0jegcjKKwrY0qrV+g==}
|
||||||
|
dependencies:
|
||||||
|
callsites: 3.1.0
|
||||||
|
debug: 4.3.4(supports-color@8.1.1)
|
||||||
|
is-observable: 2.1.0
|
||||||
|
observable-fns: 0.6.1
|
||||||
|
optionalDependencies:
|
||||||
|
tiny-worker: 2.3.0
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- supports-color
|
||||||
|
dev: false
|
||||||
|
|
||||||
/@fluencelabs/trust-graph@0.4.1:
|
/@fluencelabs/trust-graph@0.4.1:
|
||||||
resolution: {integrity: sha512-V/6ts4q/Y0uKMS6orVpPyxfdd99YFMkm9wN9U2IFtlBUWNsQZG369FK9qEizwsSRCqTchMHYs8Vh4wgZ2uRfuQ==}
|
resolution: {integrity: sha512-V/6ts4q/Y0uKMS6orVpPyxfdd99YFMkm9wN9U2IFtlBUWNsQZG369FK9qEizwsSRCqTchMHYs8Vh4wgZ2uRfuQ==}
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -21018,19 +21031,3 @@ packages:
|
|||||||
/zod@3.22.4:
|
/zod@3.22.4:
|
||||||
resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==}
|
resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
github.com/fluencelabs/threads.js/b00a5342380b0278d3ae56dcfb170effb3cad7cd:
|
|
||||||
resolution: {tarball: https://codeload.github.com/fluencelabs/threads.js/tar.gz/b00a5342380b0278d3ae56dcfb170effb3cad7cd}
|
|
||||||
name: threads
|
|
||||||
version: 1.7.0
|
|
||||||
requiresBuild: true
|
|
||||||
dependencies:
|
|
||||||
callsites: 3.1.0
|
|
||||||
debug: 4.3.4(supports-color@8.1.1)
|
|
||||||
is-observable: 2.1.0
|
|
||||||
observable-fns: 0.6.1
|
|
||||||
optionalDependencies:
|
|
||||||
tiny-worker: 2.3.0
|
|
||||||
transitivePeerDependencies:
|
|
||||||
- supports-color
|
|
||||||
dev: false
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user