@sqlrooms/room-store 0.24.0 → 0.24.2

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.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -21,7 +21,7 @@ The `RoomState` is the object that defines the shape of the store. It has two ma
21
21
 
22
22
  ### Slices
23
23
 
24
- A slice is a piece of the room's state and its associated actions. You can create your own slices to add custom functionality to your room. The framework provides `createRoomSlice` to create the base slice with core room functionality. You combine this with your own slices inside the `createRoomStore` composer function.
24
+ A slice is a piece of the room's state and its associated actions. You can create your own slices to add custom functionality to your room. The framework provides `createRoomShellSlice` to create the base slice with core room functionality. You combine this with your own slices inside the `createRoomStore` composer function.
25
25
 
26
26
  ## Basic Usage
27
27
 
@@ -30,7 +30,7 @@ Here's an example of how to create a room store with a custom feature slice.
30
30
  ```typescript
31
31
  import {
32
32
  createRoomStore,
33
- createRoomSlice,
33
+ createRoomShellSlice,
34
34
  RoomState,
35
35
  } from '@sqlrooms/room-store';
36
36
  import {BaseRoomConfig} from '@sqlrooms/room-config';
@@ -65,7 +65,7 @@ export const {roomStore, useRoomStore} = createRoomStore<
65
65
  MyRoomConfig,
66
66
  MyRoomState
67
67
  >((set, get, store) => ({
68
- ...createRoomSlice<MyRoomConfig>({
68
+ ...createRoomShellSlice<MyRoomConfig>({
69
69
  config: {
70
70
  // You can provide initial values for your config here
71
71
  title: 'My First Room',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sqlrooms/room-store",
3
- "version": "0.24.0",
3
+ "version": "0.24.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "module": "dist/index.js",
@@ -18,9 +18,9 @@
18
18
  "access": "public"
19
19
  },
20
20
  "dependencies": {
21
- "@sqlrooms/room-config": "0.24.0",
21
+ "@sqlrooms/room-config": "0.24.2",
22
22
  "immer": "^10.1.1",
23
- "zod": "^3.25.57",
23
+ "zod": "^3.25.73",
24
24
  "zustand": "^5.0.5"
25
25
  },
26
26
  "peerDependencies": {
@@ -33,5 +33,5 @@
33
33
  "typecheck": "tsc --noEmit",
34
34
  "typedoc": "typedoc"
35
35
  },
36
- "gitHead": "0333218cee4486dc99c692499c251e8e2cf9b0bc"
36
+ "gitHead": "1fd8260c61f7d02a5c8d821bd14c3dd036058a4a"
37
37
  }