Skip to content

Commit b7f610d

Browse files
authored
chore: merge #358 from refactor/worker-extraction
### Description refactor: worker extraction-
2 parents e4e4c20 + a0f6c0a commit b7f610d

File tree

22 files changed

+198
-27
lines changed

22 files changed

+198
-27
lines changed

.changeset/metal-chairs-confess.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@quick-threejs/utils": patch
3+
"@quick-threejs/worker": patch
4+
---
5+
6+
# 09-12-2025
7+
8+
## refactor: move worker out of utils

packages/reactive/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
},
4646
"dependencies": {
4747
"@quick-threejs/utils": "workspace:*",
48+
"@quick-threejs/worker": "workspace:*",
4849
"rxjs": "^7.8.1",
4950
"threads": "^1.7.0",
5051
"three": "^0.172.0",

packages/reactive/src/core/app/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import "reflect-metadata";
22

3-
import { type WorkerThreadModule } from "@quick-threejs/utils";
3+
import type { WorkerThreadModule } from "@quick-threejs/worker";
44
import { Observable } from "rxjs";
55
import { inject, scoped, Lifecycle } from "tsyringe";
66

packages/reactive/src/core/app/app.worker.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { ExposedWorkerThreadModule, Methods } from "@quick-threejs/utils";
1+
import type { Methods } from "@quick-threejs/utils";
2+
import type { ExposedWorkerThreadModule } from "@quick-threejs/worker";
23
import { container as parentContainer } from "tsyringe";
34
import { expose } from "threads/worker";
45
import type { WorkerFunction } from "threads/dist/types/worker";

packages/reactive/src/core/register/register.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { inject, Lifecycle, scoped } from "tsyringe";
2+
import { copyProperties } from "@quick-threejs/utils";
23
import {
3-
copyProperties,
44
createWorkerPool,
5-
WorkerPool
6-
} from "@quick-threejs/utils";
7-
import { WorkerThreadResolution } from "@quick-threejs/utils";
5+
type WorkerPool,
6+
type WorkerThreadResolution
7+
} from "@quick-threejs/worker";
88

99
import { KEYBOARD_EVENT_CODES, RegisterPropsBlueprint } from "../../common";
1010
import { ExposedAppModule } from "../app/app.worker";

pnpm-lock.yaml

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

shared/utils/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"module": "./dist/main.mjs",
1515
"types": "./dist/main.d.ts",
1616
"dependencies": {
17-
"threads": "^1.7.0",
1817
"three": "^0.172.0"
1918
},
2019
"devDependencies": {
@@ -23,7 +22,6 @@
2322
"@types/three": "^0.172.0"
2423
},
2524
"peerDependencies": {
26-
"threads": "^1.7.0",
2725
"three": "^0.172.0"
2826
}
2927
}

shared/utils/src/main.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
export * from "./proxy/";
22
export * from "./types/";
3-
export * from "./worker/";
43

54
export * from "./hardware";
65
export * from "./material";
76
export * from "./object";
8-
export * from "./tokens";
97
export * from "./type";
108
export * from "./url";

shared/utils/src/types/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
export * from "./object.type";
2-
export * from "./worker.type";

shared/utils/src/worker/index.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)