Skip to content

Commit 6c3d307

Browse files
ci(changesets): version packages (#24)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 95e4a7c commit 6c3d307

File tree

3 files changed

+34
-33
lines changed

3 files changed

+34
-33
lines changed

.changeset/goofy-zebras-hope.md

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

packages/rdk/CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
11
# @omnidotdev/rdk
22

3+
## 0.3.0
4+
5+
### Minor Changes
6+
7+
- [#22](https://github.com/omnidotdev/rdk/pull/22) [`95e4a7c`](https://github.com/omnidotdev/rdk/commit/95e4a7c0bc7b528320d6695436d8b098c305aa27) Thanks [@coopbri](https://github.com/coopbri)! - Migrated the RDK state manager from React Context to Zustand for better performance, flexibility, and access outside of React contexts.
8+
9+
**Breaking Changes:**
10+
11+
- Replaced `XRContext` and `useXR` hook with Zustand store (`useXRStore`)
12+
- Renamed types
13+
- `XRBackend``Backend`
14+
- `XRContextValue``ContextValue`
15+
16+
**New Library Exports:**
17+
18+
- `useXRStore`: Main Zustand store hook for full state access
19+
- `getXRStore`: Non-React access to store state
20+
- `subscribeToXRStore`: Non-React subscription to store changes
21+
- `XRStore`, `XRStoreState`, `XRStoreActions`: TypeScript types
22+
23+
**Migration Guide:**
24+
25+
Replace `useXR()` with direct store selectors:
26+
27+
- `useXR().camera``useXRStore((state) => state.camera)`
28+
- `useXR().backends``useXRStore((state) => state.backends)`
29+
- Full store access: `useXRStore()` or `useXRStore(selector)`
30+
31+
Replace types:
32+
33+
- `XRBackend``Backend`
34+
- `XRContextValue``ContextValue`
35+
336
## 0.2.2
437

538
### Patch Changes

packages/rdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@omnidotdev/rdk",
33
"description": "AR.js with react-three-fiber",
4-
"version": "0.2.2",
4+
"version": "0.3.0",
55
"license": "MIT",
66
"type": "module",
77
"main": "build/index.js",

0 commit comments

Comments
 (0)