@octanejs/three 0.1.5 → 0.1.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/three",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -46,12 +46,12 @@
46
46
  "./intrinsics/jsx-runtime": "./src/intrinsics.ts"
47
47
  },
48
48
  "dependencies": {
49
- "zustand": "^5.0.0"
49
+ "zustand": "^5.0.14"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@types/three": ">=0.156.0",
53
53
  "three": ">=0.156.0",
54
- "octane": "0.1.12"
54
+ "octane": "0.1.13"
55
55
  },
56
56
  "peerDependenciesMeta": {
57
57
  "@types/three": {
@@ -60,22 +60,22 @@
60
60
  },
61
61
  "devDependencies": {
62
62
  "@react-three/fiber": "9.6.1",
63
- "@rsbuild/core": "^2.1.5",
64
- "@rspack/core": "^2.1.3",
65
- "@tsrx/react": "^0.2.44",
63
+ "@rsbuild/core": "^2.1.6",
64
+ "@rspack/core": "^2.1.4",
65
+ "@tsrx/react": "^0.2.46",
66
66
  "@types/three": "0.172.0",
67
67
  "esbuild": "^0.28.1",
68
- "playwright": "^1.61.0",
69
- "react": "^19.2.0",
70
- "react-dom": "^19.2.0",
68
+ "playwright": "^1.61.1",
69
+ "react": "^19.2.7",
70
+ "react-dom": "^19.2.7",
71
71
  "three": "0.172.0",
72
72
  "typescript": "^5.9.3",
73
- "vite": "^8.0.16",
74
- "vitest": "^4.1.9",
75
- "@octanejs/rsbuild-plugin": "0.1.7",
76
- "@octanejs/rspack-plugin": "0.1.7",
77
- "@octanejs/vite-plugin": "0.1.12",
78
- "octane": "0.1.12"
73
+ "vite": "^8.1.5",
74
+ "vitest": "^4.1.10",
75
+ "@octanejs/rsbuild-plugin": "0.1.8",
76
+ "@octanejs/rspack-plugin": "0.1.8",
77
+ "@octanejs/vite-plugin": "0.1.13",
78
+ "octane": "0.1.13"
79
79
  },
80
80
  "scripts": {
81
81
  "test": "pnpm upstream:check && vitest run --root ../.. --project three",
@@ -48,9 +48,7 @@ export type AttachType<T = unknown> = Attach<T>;
48
48
  export type ThreeKey = string | number | symbol | bigint;
49
49
 
50
50
  export type ThreeRef<T> =
51
- | ((value: T | null) => void | (() => void))
52
- | { current: T | null }
53
- | readonly ThreeRef<T>[];
51
+ ((value: T | null) => void | (() => void)) | { current: T | null } | readonly ThreeRef<T>[];
54
52
 
55
53
  export interface ThreeInstanceProps<T = unknown> {
56
54
  attach?: Attach<T>;
@@ -95,8 +93,7 @@ export interface VectorRepresentation extends MathRepresentation {
95
93
 
96
94
  export type MathTypes = MathRepresentation | THREE.Euler | THREE.Color;
97
95
  type MutableOrReadonlyParameters<T extends (...args: any[]) => any> =
98
- | Parameters<T>
99
- | Readonly<Parameters<T>>;
96
+ Parameters<T> | Readonly<Parameters<T>>;
100
97
 
101
98
  export type MathType<T extends MathTypes> = T extends THREE.Color
102
99
  ? Args<typeof THREE.Color> | THREE.ColorRepresentation
package/src/core/props.ts CHANGED
@@ -32,14 +32,7 @@ export interface ApplyThreePropsOptions {
32
32
  }
33
33
 
34
34
  type PropertyApplication =
35
- | 'skip'
36
- | 'layers'
37
- | 'color'
38
- | 'copy'
39
- | 'array'
40
- | 'number'
41
- | 'uniforms'
42
- | 'assign';
35
+ 'skip' | 'layers' | 'color' | 'copy' | 'array' | 'number' | 'uniforms' | 'assign';
43
36
 
44
37
  interface PropertyBehaviorReader {
45
38
  readonly target: (key: 'set' | 'copy' | 'constructor' | 'fromArray' | 'setScalar') => unknown;
@@ -29,8 +29,7 @@ export interface DOMRegionBinding {
29
29
 
30
30
  export function createDOMRegionBinding(): DOMRegionBinding {
31
31
  const createRoot = Reflect.get(Octane, 'createRoot') as
32
- | typeof import('octane').createRoot
33
- | undefined;
32
+ typeof import('octane').createRoot | undefined;
34
33
  if (typeof createRoot !== 'function' || typeof document === 'undefined') {
35
34
  throw new Error('@octanejs/three: DOMRegion is client-only and requires a DOM root.');
36
35
  }