create-threenative 0.2.20 → 0.2.22

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.
@@ -7,7 +7,13 @@ export interface IRacerProgress {
7
7
  readonly position: Vector3;
8
8
  }
9
9
 
10
- export interface IRankedRacer extends IRacerProgress {
10
+ /**
11
+ * A ranked row is game state, so it holds plain values only: hot reload throws on a class
12
+ * instance, and a `position: Vector3` here reloaded the whole page on every edit.
13
+ */
14
+ export interface IRankedRacer {
15
+ readonly id: string;
16
+ readonly lap: number;
11
17
  readonly place: number;
12
18
  readonly routeProgress: number;
13
19
  }
@@ -15,7 +21,6 @@ export interface IRankedRacer extends IRacerProgress {
15
21
  export interface IRankedRacerScratch {
16
22
  id: string;
17
23
  lap: number;
18
- position: Vector3;
19
24
  place: number;
20
25
  routeProgress: number;
21
26
  }
@@ -58,7 +63,7 @@ export function rankRacers(
58
63
  ): readonly IRankedRacer[] {
59
64
  if (buffer.length > racers.length) buffer.length = racers.length;
60
65
  for (let index = buffer.length; index < racers.length; index += 1) {
61
- buffer.push({ id: "", lap: 0, position: new Vector3(), place: 0, routeProgress: 0 });
66
+ buffer.push({ id: "", lap: 0, place: 0, routeProgress: 0 });
62
67
  }
63
68
  for (let index = 0; index < racers.length; index += 1) {
64
69
  const racer = racers[index];
@@ -67,7 +72,6 @@ export function rankRacers(
67
72
  if (ranked === undefined) throw new Error("Racing ranking buffer slot is missing.");
68
73
  ranked.id = racer.id;
69
74
  ranked.lap = racer.lap;
70
- ranked.position = racer.position;
71
75
  ranked.routeProgress = routeProgress(route, racer.position, racer.lap, target);
72
76
  ranked.place = 0;
73
77
  }
@@ -18,8 +18,8 @@
18
18
  "format:check": "biome format src"
19
19
  },
20
20
  "dependencies": {
21
- "@threenative/core": ">=0.3.15",
22
- "@threenative/ui": ">=0.3.15",
21
+ "@threenative/core": ">=0.3.17",
22
+ "@threenative/ui": ">=0.3.17",
23
23
  "react": "19.2.0",
24
24
  "react-dom": "19.2.0",
25
25
  "react-reconciler": "0.33.0",
@@ -27,13 +27,13 @@
27
27
  },
28
28
  "devDependencies": {
29
29
  "@tailwindcss/vite": "4.3.3",
30
- "@threenative/assets": ">=0.3.16",
31
- "@threenative/playtest": ">=0.3.15",
30
+ "@threenative/assets": ">=0.3.18",
31
+ "@threenative/playtest": ">=0.3.17",
32
32
  "@types/react": "19.2.0",
33
33
  "@types/react-dom": "19.2.0",
34
34
  "@types/three": "0.187.0",
35
35
  "@vitejs/plugin-react": "6.0.5",
36
- "create-threenative": "0.2.20",
36
+ "create-threenative": "0.2.22",
37
37
  "esbuild": "0.27.0",
38
38
  "playwright": "1.62.1",
39
39
  "tailwindcss": "4.3.3",
@@ -45,7 +45,7 @@
45
45
  "eslint": "10.13.0"
46
46
  },
47
47
  "optionalDependencies": {
48
- "@threenative/runtime-native": ">=0.3.15"
48
+ "@threenative/runtime-native": ">=0.3.17"
49
49
  },
50
50
  "overrides": {
51
51
  "sharp": ">=0.35.4",
@@ -19,8 +19,8 @@
19
19
  "format:check": "biome format src"
20
20
  },
21
21
  "dependencies": {
22
- "@threenative/core": ">=0.3.15",
23
- "@threenative/ui": ">=0.3.15",
22
+ "@threenative/core": ">=0.3.17",
23
+ "@threenative/ui": ">=0.3.17",
24
24
  "react": "19.2.0",
25
25
  "react-dom": "19.2.0",
26
26
  "three": "0.187.0"
@@ -28,13 +28,13 @@
28
28
  "devDependencies": {
29
29
  "@gltf-transform/cli": "4.4.2",
30
30
  "@tailwindcss/vite": "4.3.3",
31
- "@threenative/assets": ">=0.3.16",
32
- "@threenative/playtest": ">=0.3.15",
31
+ "@threenative/assets": ">=0.3.18",
32
+ "@threenative/playtest": ">=0.3.17",
33
33
  "@types/react": "19.2.0",
34
34
  "@types/react-dom": "19.2.0",
35
35
  "@types/three": "0.187.0",
36
36
  "@vitejs/plugin-react": "6.0.5",
37
- "create-threenative": "0.2.20",
37
+ "create-threenative": "0.2.22",
38
38
  "esbuild": "0.27.0",
39
39
  "playwright": "1.62.1",
40
40
  "tailwindcss": "4.3.3",
@@ -44,7 +44,7 @@
44
44
  "eslint": "10.13.0"
45
45
  },
46
46
  "optionalDependencies": {
47
- "@threenative/runtime-native": ">=0.3.15"
47
+ "@threenative/runtime-native": ">=0.3.17"
48
48
  },
49
49
  "overrides": {
50
50
  "sharp": ">=0.35.4",
@@ -18,9 +18,9 @@
18
18
  "format:check": "biome format src"
19
19
  },
20
20
  "dependencies": {
21
- "@threenative/core": ">=0.3.15",
22
- "@threenative/physics": ">=0.3.15",
23
- "@threenative/ui": ">=0.3.15",
21
+ "@threenative/core": ">=0.3.17",
22
+ "@threenative/physics": ">=0.3.17",
23
+ "@threenative/ui": ">=0.3.17",
24
24
  "react": "19.2.0",
25
25
  "react-dom": "19.2.0",
26
26
  "three": "0.187.0"
@@ -28,13 +28,13 @@
28
28
  "devDependencies": {
29
29
  "@gltf-transform/cli": "4.4.2",
30
30
  "@tailwindcss/vite": "4.3.3",
31
- "@threenative/assets": ">=0.3.16",
32
- "@threenative/playtest": ">=0.3.15",
31
+ "@threenative/assets": ">=0.3.18",
32
+ "@threenative/playtest": ">=0.3.17",
33
33
  "@types/react": "19.2.0",
34
34
  "@types/react-dom": "19.2.0",
35
35
  "@types/three": "0.187.0",
36
36
  "@vitejs/plugin-react": "6.0.5",
37
- "create-threenative": "0.2.20",
37
+ "create-threenative": "0.2.22",
38
38
  "esbuild": "0.27.0",
39
39
  "playwright": "1.62.1",
40
40
  "tailwindcss": "4.3.3",
@@ -44,7 +44,7 @@
44
44
  "eslint": "10.13.0"
45
45
  },
46
46
  "optionalDependencies": {
47
- "@threenative/runtime-native": ">=0.3.15"
47
+ "@threenative/runtime-native": ">=0.3.17"
48
48
  },
49
49
  "overrides": {
50
50
  "sharp": ">=0.35.4",
@@ -19,9 +19,9 @@
19
19
  "format:check": "biome format src"
20
20
  },
21
21
  "dependencies": {
22
- "@threenative/core": ">=0.3.15",
23
- "@threenative/physics": ">=0.3.15",
24
- "@threenative/ui": ">=0.3.15",
22
+ "@threenative/core": ">=0.3.17",
23
+ "@threenative/physics": ">=0.3.17",
24
+ "@threenative/ui": ">=0.3.17",
25
25
  "react": "19.2.0",
26
26
  "react-dom": "19.2.0",
27
27
  "react-reconciler": "0.33.0",
@@ -29,13 +29,13 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@tailwindcss/vite": "4.3.3",
32
- "@threenative/assets": ">=0.3.16",
33
- "@threenative/playtest": ">=0.3.15",
32
+ "@threenative/assets": ">=0.3.18",
33
+ "@threenative/playtest": ">=0.3.17",
34
34
  "@types/react": "19.2.0",
35
35
  "@types/react-dom": "19.2.0",
36
36
  "@types/three": "0.187.0",
37
37
  "@vitejs/plugin-react": "6.0.5",
38
- "create-threenative": "0.2.20",
38
+ "create-threenative": "0.2.22",
39
39
  "esbuild": "0.27.0",
40
40
  "playwright": "1.62.1",
41
41
  "tailwindcss": "4.3.3",
@@ -46,7 +46,7 @@
46
46
  "eslint": "10.13.0"
47
47
  },
48
48
  "optionalDependencies": {
49
- "@threenative/runtime-native": ">=0.3.15"
49
+ "@threenative/runtime-native": ">=0.3.17"
50
50
  },
51
51
  "overrides": {
52
52
  "sharp": ">=0.35.4",
@@ -19,9 +19,9 @@
19
19
  "format:check": "biome format src"
20
20
  },
21
21
  "dependencies": {
22
- "@threenative/core": ">=0.3.15",
23
- "@threenative/physics": ">=0.3.15",
24
- "@threenative/ui": ">=0.3.15",
22
+ "@threenative/core": ">=0.3.17",
23
+ "@threenative/physics": ">=0.3.17",
24
+ "@threenative/ui": ">=0.3.17",
25
25
  "react": "19.2.0",
26
26
  "react-dom": "19.2.0",
27
27
  "three": "0.187.0"
@@ -30,12 +30,12 @@
30
30
  "@tailwindcss/vite": "4.3.3",
31
31
  "@types/three": "0.187.0",
32
32
  "@vitejs/plugin-react": "6.0.5",
33
- "@threenative/assets": ">=0.3.16",
34
- "@threenative/playtest": ">=0.3.15",
33
+ "@threenative/assets": ">=0.3.18",
34
+ "@threenative/playtest": ">=0.3.17",
35
35
  "@types/react": "19.2.0",
36
36
  "@types/react-dom": "19.2.0",
37
37
  "playwright": "1.62.1",
38
- "create-threenative": "0.2.20",
38
+ "create-threenative": "0.2.22",
39
39
  "esbuild": "0.27.0",
40
40
  "tailwindcss": "4.3.3",
41
41
  "typescript": "7.0.2",
@@ -45,7 +45,7 @@
45
45
  "eslint": "10.13.0"
46
46
  },
47
47
  "optionalDependencies": {
48
- "@threenative/runtime-native": ">=0.3.15"
48
+ "@threenative/runtime-native": ">=0.3.17"
49
49
  },
50
50
  "overrides": {
51
51
  "sharp": ">=0.35.4",
@@ -19,9 +19,9 @@
19
19
  "format:check": "biome format src"
20
20
  },
21
21
  "dependencies": {
22
- "@threenative/core": ">=0.3.15",
23
- "@threenative/physics": ">=0.3.15",
24
- "@threenative/ui": ">=0.3.15",
22
+ "@threenative/core": ">=0.3.17",
23
+ "@threenative/physics": ">=0.3.17",
24
+ "@threenative/ui": ">=0.3.17",
25
25
  "react": "19.2.0",
26
26
  "react-dom": "19.2.0",
27
27
  "react-reconciler": "0.33.0",
@@ -29,13 +29,13 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@tailwindcss/vite": "4.3.3",
32
- "@threenative/assets": ">=0.3.16",
33
- "@threenative/playtest": ">=0.3.15",
32
+ "@threenative/assets": ">=0.3.18",
33
+ "@threenative/playtest": ">=0.3.17",
34
34
  "@types/react": "19.2.0",
35
35
  "@types/react-dom": "19.2.0",
36
36
  "@types/three": "0.187.0",
37
37
  "@vitejs/plugin-react": "6.0.5",
38
- "create-threenative": "0.2.20",
38
+ "create-threenative": "0.2.22",
39
39
  "esbuild": "0.27.0",
40
40
  "playwright": "1.62.1",
41
41
  "tailwindcss": "4.3.3",
@@ -46,7 +46,7 @@
46
46
  "eslint": "10.13.0"
47
47
  },
48
48
  "optionalDependencies": {
49
- "@threenative/runtime-native": ">=0.3.15"
49
+ "@threenative/runtime-native": ">=0.3.17"
50
50
  },
51
51
  "overrides": {
52
52
  "sharp": ">=0.35.4",
@@ -20,9 +20,9 @@
20
20
  "format:check": "biome format src"
21
21
  },
22
22
  "dependencies": {
23
- "@threenative/core": ">=0.3.15",
24
- "@threenative/physics": ">=0.3.15",
25
- "@threenative/ui": ">=0.3.15",
23
+ "@threenative/core": ">=0.3.17",
24
+ "@threenative/physics": ">=0.3.17",
25
+ "@threenative/ui": ">=0.3.17",
26
26
  "react": "19.2.0",
27
27
  "react-dom": "19.2.0",
28
28
  "react-reconciler": "0.33.0",
@@ -30,13 +30,13 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@tailwindcss/vite": "4.3.3",
33
- "@threenative/assets": ">=0.3.16",
34
- "@threenative/playtest": ">=0.3.15",
33
+ "@threenative/assets": ">=0.3.18",
34
+ "@threenative/playtest": ">=0.3.17",
35
35
  "@types/react": "19.2.0",
36
36
  "@types/react-dom": "19.2.0",
37
37
  "@types/three": "0.187.0",
38
38
  "@vitejs/plugin-react": "6.0.5",
39
- "create-threenative": "0.2.20",
39
+ "create-threenative": "0.2.22",
40
40
  "esbuild": "0.27.0",
41
41
  "playwright": "1.62.1",
42
42
  "tailwindcss": "4.3.3",
@@ -47,7 +47,7 @@
47
47
  "eslint": "10.13.0"
48
48
  },
49
49
  "optionalDependencies": {
50
- "@threenative/runtime-native": ">=0.3.15"
50
+ "@threenative/runtime-native": ">=0.3.17"
51
51
  },
52
52
  "overrides": {
53
53
  "sharp": ">=0.35.4",
@@ -18,9 +18,9 @@
18
18
  "format:check": "biome format src"
19
19
  },
20
20
  "dependencies": {
21
- "@threenative/core": ">=0.3.15",
22
- "@threenative/physics": ">=0.3.15",
23
- "@threenative/ui": ">=0.3.15",
21
+ "@threenative/core": ">=0.3.17",
22
+ "@threenative/physics": ">=0.3.17",
23
+ "@threenative/ui": ">=0.3.17",
24
24
  "react": "19.2.0",
25
25
  "react-dom": "19.2.0",
26
26
  "three": "0.187.0"
@@ -28,13 +28,13 @@
28
28
  "devDependencies": {
29
29
  "@gltf-transform/cli": "4.4.2",
30
30
  "@tailwindcss/vite": "4.3.3",
31
- "@threenative/assets": ">=0.3.16",
32
- "@threenative/playtest": ">=0.3.15",
31
+ "@threenative/assets": ">=0.3.18",
32
+ "@threenative/playtest": ">=0.3.17",
33
33
  "@types/react": "19.2.0",
34
34
  "@types/react-dom": "19.2.0",
35
35
  "@types/three": "0.187.0",
36
36
  "@vitejs/plugin-react": "6.0.5",
37
- "create-threenative": "0.2.20",
37
+ "create-threenative": "0.2.22",
38
38
  "esbuild": "0.27.0",
39
39
  "playwright": "1.62.1",
40
40
  "tailwindcss": "4.3.3",
@@ -44,7 +44,7 @@
44
44
  "eslint": "10.13.0"
45
45
  },
46
46
  "optionalDependencies": {
47
- "@threenative/runtime-native": ">=0.3.15"
47
+ "@threenative/runtime-native": ">=0.3.17"
48
48
  },
49
49
  "overrides": {
50
50
  "sharp": ">=0.35.4",