@xmachines/play-react 1.0.0-beta.25 → 1.0.0-beta.27

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 (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +4 -4
  3. package/package.json +5 -5
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Mikael Karon
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -92,8 +92,8 @@ const machine = setup({
92
92
  context: {} as {
93
93
  isAuthenticated: boolean;
94
94
  username: string | null;
95
- routeParams: Record<string, string>;
96
- queryParams: Record<string, string>;
95
+ params: Record<string, string>;
96
+ query: Record<string, string>;
97
97
  },
98
98
  events: {} as
99
99
  | { type: "auth.login"; username: string }
@@ -104,7 +104,7 @@ const machine = setup({
104
104
  formatPlayRouteTransitions({
105
105
  id: "app",
106
106
  initial: "login",
107
- context: { isAuthenticated: false, username: null, routeParams: {}, queryParams: {} },
107
+ context: { isAuthenticated: false, username: null, params: {}, query: {} },
108
108
  states: {
109
109
  login: {
110
110
  id: "login",
@@ -301,7 +301,7 @@ When using `formatPlayRouteTransitions`, URL path parameters flow automatically
301
301
 
302
302
  ```ts
303
303
  // spec: { section: undefined, user: "alice" }
304
- // After play.route to /settings/profile → context.routeParams = { section: "profile" }
304
+ // After play.route to /settings/profile → context.params = { section: "profile" }
305
305
  // Component receives: { section: "profile", user: "alice" }
306
306
  ```
307
307
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmachines/play-react",
3
- "version": "1.0.0-beta.25",
3
+ "version": "1.0.0-beta.27",
4
4
  "description": "React renderer for XMachines Play architecture with signal-driven rendering",
5
5
  "keywords": [
6
6
  "actor",
@@ -45,9 +45,9 @@
45
45
  "prepublishOnly": "npm run build"
46
46
  },
47
47
  "dependencies": {
48
- "@xmachines/play": "1.0.0-beta.25",
49
- "@xmachines/play-actor": "1.0.0-beta.25",
50
- "@xmachines/play-signals": "1.0.0-beta.25"
48
+ "@xmachines/play": "1.0.0-beta.27",
49
+ "@xmachines/play-actor": "1.0.0-beta.27",
50
+ "@xmachines/play-signals": "1.0.0-beta.27"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@json-render/core": "^0.16.0",
@@ -58,7 +58,7 @@
58
58
  "@types/node": "^25.5.0",
59
59
  "@types/react": "^19.2.14",
60
60
  "@types/react-dom": "^19.2.3",
61
- "@xmachines/shared": "1.0.0-beta.25",
61
+ "@xmachines/shared": "1.0.0-beta.27",
62
62
  "@xstate/store": ">=3.17.0",
63
63
  "jsdom": "^29.0.1",
64
64
  "oxfmt": "^0.43.0",