Skip to content

Commit 2b28b0d

Browse files
committed
Merge branch 'main' into pr/r04423/144
2 parents ee508cb + 4c0de9a commit 2b28b0d

33 files changed

+1168
-2038
lines changed

benches/apps/boids/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"@types/react": "catalog:",
2525
"@types/react-dom": "catalog:",
2626
"@types/three": "catalog:",
27-
"@vitejs/plugin-react": "^4.2.1",
28-
"@vitejs/plugin-react-swc": "^3.5.0",
27+
"@vitejs/plugin-react": "^4.7.0",
28+
"@vitejs/plugin-react-swc": "^3.11.0",
2929
"vite": "catalog:"
3030
}
3131
}

benches/apps/n-body-react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"@types/react": "catalog:",
2525
"@types/react-dom": "catalog:",
2626
"@types/three": "catalog:",
27-
"@vitejs/plugin-react": "^4.2.1",
28-
"@vitejs/plugin-react-swc": "^3.5.0",
27+
"@vitejs/plugin-react": "^4.7.0",
28+
"@vitejs/plugin-react-swc": "^3.11.0",
2929
"vite": "catalog:"
3030
}
3131
}

benches/apps/n-body/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ schedule.add(init, { tag: 'init' });
6161
schedule.build();
6262

6363
// Add Three resources to the world
64-
export const Three = trait({ renderer, camera, scene });
64+
export const Three = trait(() => ({ renderer, camera, scene }));
6565
world.add(Three);
6666

6767
// Init stats

benches/apps/n-body/src/systems/cleanupRepulsors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function cleanupBodies({ world }: { world: World }) {
1010
const instanceEntity = world.queryFirst(InstancedMesh);
1111
if (instanceEntity === undefined) return;
1212

13-
const instancedMesh = instanceEntity.get(InstancedMesh)!.object;
13+
const instancedMesh = instanceEntity.get(InstancedMesh)!;
1414

1515
world.query(Removed(Repulse, Position)).forEach((e) => {
1616
instancedMesh.setMatrixAt(e.id(), zeroScaleMatrix);

benches/apps/n-body/src/systems/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function init({ world }: { world: World }) {
2121
for (let i = 0; i < instancedMesh.count; i++) instancedMesh.setMatrixAt(i, zeroScaleMatrix);
2222

2323
scene.add(instancedMesh);
24-
world.spawn(InstancedMesh({ object: instancedMesh }));
24+
world.spawn(InstancedMesh(instancedMesh));
2525

2626
// Compile Three shaders.
2727
renderer.compile(scene, camera);

benches/apps/n-body/src/systems/syncThreeObjects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const syncThreeObjects = ({ world }: { world: World }) => {
1212
const instanceEnt = world.queryFirst(InstancedMesh);
1313
if (instanceEnt === undefined) return;
1414

15-
const instancedMesh = instanceEnt.get(InstancedMesh)!.object;
15+
const instancedMesh = instanceEnt.get(InstancedMesh)!;
1616

1717
world.query(Position, Circle, Color).updateEach(([position, circle, color], entity) => {
1818
dummy.position.set(position.x, position.y, 0);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { trait } from 'koota';
22
import type * as THREE from 'three';
33

4-
export const InstancedMesh = trait({ object: null! as THREE.InstancedMesh });
4+
export const InstancedMesh = trait(() => null! as THREE.InstancedMesh);

benches/apps/revade/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"@types/react": "catalog:",
2525
"@types/react-dom": "catalog:",
2626
"@types/three": "catalog:",
27-
"@vitejs/plugin-react": "^4.2.1",
28-
"@vitejs/plugin-react-swc": "^3.5.0",
27+
"@vitejs/plugin-react": "^4.7.0",
28+
"@vitejs/plugin-react-swc": "^3.11.0",
2929
"vite": "catalog:"
3030
}
3131
}

benches/sims/bench-tools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type": "module",
77
"main": "./src/index.ts",
88
"dependencies": {
9-
"web-worker": "^1.3.0"
9+
"web-worker": "^1.5.0"
1010
},
1111
"devDependencies": {
1212
"@config/typescript": "workspace:*"

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
"lint": "pnpm -r lint"
1313
},
1414
"devDependencies": {
15-
"@types/node": ">=24.0.1",
16-
"oxlint": "^1.0.0",
17-
"typescript": "latest",
18-
"tsx": "latest"
15+
"@types/node": "^24.1.0",
16+
"oxlint": "^1.8.0",
17+
"tsx": "latest",
18+
"typescript": "latest"
1919
},
2020
"engines": {
2121
"node": ">=24.2.0",

0 commit comments

Comments
 (0)