@lukekaalim/act-three 8.0.0 → 8.0.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @lukekaalim/act-three
2
2
 
3
+ ## 8.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 4168a3d: Lie about the ReadOnly nature of a Ref passes to an element to avoid obscure type issues
8
+
3
9
  ## 8.0.0
4
10
 
5
11
  ### Major Changes
package/elements.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as three from "three";
2
- import { Ref } from "@lukekaalim/act";
2
+ import { ReadonlyRef, Ref } from "@lukekaalim/act";
3
3
  import { createPrimitiveRegistry } from "@lukekaalim/act-backstage";
4
4
  import { setProps } from "./props";
5
5
 
@@ -31,7 +31,7 @@ export type PropsFromClass<T extends three.Object3D> = {
31
31
  //onAdded?: (self: T) => void,
32
32
  //onRemoved?: (self: T) => void,
33
33
 
34
- ref?: Ref<null | T>
34
+ ref?: ReadonlyRef<null | T>
35
35
  }
36
36
  & (T extends three.Mesh | three.Points | three.Line ? DrawableProps : {})
37
37
  & (T extends three.Sprite ? SpriteProps : {})
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@lukekaalim/act-three",
3
3
  "main": "index.ts",
4
4
  "type": "module",
5
- "version": "8.0.0",
5
+ "version": "8.0.1",
6
6
  "dependencies": {
7
7
  "@lukekaalim/act": "^4.3.0",
8
8
  "@lukekaalim/act-backstage": "^3.2.0",