@xmachines/play-xstate 1.0.0-beta.50 → 1.0.0-beta.52

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/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  > XState v5 adapter for the XMachines Play Architecture — bind state machines to the actor base with signal-driven reactivity and router integration.
6
6
 
7
7
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
8
- [![Version](https://img.shields.io/badge/version-1.0.0--beta.46-blue)](https://www.npmjs.com/package/@xmachines/play-xstate)
8
+ [![Version](https://img.shields.io/badge/version-1.0.0--beta.51-blue)](https://www.npmjs.com/package/@xmachines/play-xstate)
9
9
 
10
10
  Part of the [XMachines Play](../../README.md) monorepo.
11
11
 
@@ -17,7 +17,7 @@ Part of the [XMachines Play](../../README.md) monorepo.
17
17
  npm install @xmachines/play-xstate xstate
18
18
  ```
19
19
 
20
- `xstate ^5.30.0` is a peer dependency and must be installed alongside this package.
20
+ `xstate ^5.31.0` is a peer dependency and must be installed alongside this package.
21
21
 
22
22
  ---
23
23
 
@@ -249,7 +249,9 @@ import type {
249
249
  ComposedGuard, // Return type of composeGuards / composeGuardsOr / negateGuard
250
250
  RouteMachineConfig, // Minimal machine config accepted by formatPlayRouteTransitions
251
251
  RouteStateNode, // Single state node shape used during route crawling
252
- RouteContext, // Context shape expected by buildRouteUrl ({ params?, query? })
252
+ RouteContext, // Context shape expected by buildRouteUrl ({ params?, query?, basePath?, hash? })
253
+ RouteObject, // Route metadata object shape: { path: string }
254
+ RouteMetadata, // Union: string | RouteObject
253
255
  } from "@xmachines/play-xstate";
254
256
  ```
255
257
 
package/dist/index.d.ts CHANGED
@@ -16,6 +16,5 @@ export type { PlayerConfig, PlayerOptions, PlayerFactory, PlayerFactoryResumeOpt
16
16
  export { composeGuards, composeGuardsOr, negateGuard, hasContext, eventMatches, contextFieldMatches, } from "./guards/index.js";
17
17
  export type { Guard, GuardArray, ComposedGuard } from "./guards/index.js";
18
18
  export { deriveRoute, isAbsoluteRoute, buildRouteUrl, formatPlayRouteTransitions, } from "./routing/index.js";
19
- export type { RouteMachineConfig, RouteStateNode } from "./routing/index.js";
20
- export type { RouteContext } from "./routing/types.js";
19
+ export type { RouteMachineConfig, RouteStateNode, RouteContext, RouteObject, RouteMetadata, } from "./routing/index.js";
21
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,YAAY,EACX,YAAY,EACZ,aAAa,EACb,aAAa,EACb,0BAA0B,GAC1B,MAAM,YAAY,CAAC;AAGpB,OAAO,EACN,aAAa,EACb,eAAe,EACf,WAAW,EACX,UAAU,EACV,YAAY,EACZ,mBAAmB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAG1E,OAAO,EACN,WAAW,EACX,eAAe,EACf,aAAa,EACb,0BAA0B,GAC1B,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC7E,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,YAAY,EACX,YAAY,EACZ,aAAa,EACb,aAAa,EACb,0BAA0B,GAC1B,MAAM,YAAY,CAAC;AAGpB,OAAO,EACN,aAAa,EACb,eAAe,EACf,WAAW,EACX,UAAU,EACV,YAAY,EACZ,mBAAmB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAG1E,OAAO,EACN,WAAW,EACX,eAAe,EACf,aAAa,EACb,0BAA0B,GAC1B,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACX,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,WAAW,EACX,aAAa,GACb,MAAM,oBAAoB,CAAC"}
@@ -10,5 +10,5 @@ export { deriveRoute, isAbsoluteRoute } from "./derive-route.js";
10
10
  export { buildRouteUrl } from "./build-url.js";
11
11
  export { formatPlayRouteTransitions } from "./format-play-route-transitions.js";
12
12
  export type { RouteMachineConfig, RouteStateNode } from "./format-play-route-transitions.js";
13
- export type { RouteContext } from "./types.js";
13
+ export type { RouteContext, RouteObject, RouteMetadata } from "./types.js";
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/routing/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,YAAY,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAC7F,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/routing/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,YAAY,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAC7F,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmachines/play-xstate",
3
- "version": "1.0.0-beta.50",
3
+ "version": "1.0.0-beta.52",
4
4
  "description": "XState v5 adapter for Play Architecture",
5
5
  "keywords": [
6
6
  "actor-model",
@@ -43,13 +43,13 @@
43
43
  "prepublishOnly": "npm run build"
44
44
  },
45
45
  "dependencies": {
46
- "@xmachines/play": "1.0.0-beta.50",
47
- "@xmachines/play-actor": "1.0.0-beta.50",
48
- "@xmachines/play-signals": "1.0.0-beta.50",
46
+ "@xmachines/play": "1.0.0-beta.52",
47
+ "@xmachines/play-actor": "1.0.0-beta.52",
48
+ "@xmachines/play-signals": "1.0.0-beta.52",
49
49
  "dequal": "^2.0.3"
50
50
  },
51
51
  "devDependencies": {
52
- "@xmachines/shared": "1.0.0-beta.50",
52
+ "@xmachines/shared": "1.0.0-beta.52",
53
53
  "oxfmt": "^0.47.0",
54
54
  "oxlint": "^1.62.0",
55
55
  "typescript": "^5.9.3 || ^6.0.3",
@@ -59,5 +59,8 @@
59
59
  "peerDependencies": {
60
60
  "xstate": "^5.31.0"
61
61
  },
62
+ "engines": {
63
+ "node": ">=22.0.0"
64
+ },
62
65
  "_devDependencies_note": "xstate appears in both peerDependencies and devDependencies intentionally. devDependencies provides workspace resolution for local builds, tests, and typechecking. peerDependencies declares the consumer version constraint. Both are pinned to ^5.30.0 to prevent drift."
63
66
  }