@xmachines/play-solid-router 1.0.0-beta.51 → 1.0.0-beta.53
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 +75 -9
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/play-router-provider.d.ts +6 -7
- package/dist/play-router-provider.d.ts.map +1 -1
- package/dist/play-router-provider.jsx.map +1 -1
- package/dist/solid-router-bridge.d.ts +2 -3
- package/dist/solid-router-bridge.d.ts.map +1 -1
- package/dist/solid-router-bridge.js.map +1 -1
- package/package.json +10 -7
package/README.md
CHANGED
|
@@ -18,6 +18,10 @@ npm install @xmachines/play-solid-router
|
|
|
18
18
|
npm install solid-js @solidjs/router xstate
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
+
- `solid-js` `^1.8.0`
|
|
22
|
+
- `@solidjs/router` `^0.16.1`
|
|
23
|
+
- `xstate` `^5.31.0`
|
|
24
|
+
|
|
21
25
|
## Quick Start
|
|
22
26
|
|
|
23
27
|
```tsx
|
|
@@ -44,7 +48,7 @@ const Layout: ParentComponent = () => {
|
|
|
44
48
|
actor={actor}
|
|
45
49
|
routeMap={routeMap}
|
|
46
50
|
router={{ navigate, location, params }}
|
|
47
|
-
renderer={(a) => <MyApp actor={a} />}
|
|
51
|
+
renderer={(a, router) => <MyApp actor={a} />}
|
|
48
52
|
/>
|
|
49
53
|
);
|
|
50
54
|
};
|
|
@@ -61,7 +65,7 @@ export default function App() {
|
|
|
61
65
|
A SolidJS component that wires a `PlayerActor` to Solid Router. It creates and connects a `SolidRouterBridge` on mount and disconnects it via `onCleanup` on unmount.
|
|
62
66
|
|
|
63
67
|
```tsx
|
|
64
|
-
interface PlayRouterProviderProps<TActor extends
|
|
68
|
+
interface PlayRouterProviderProps<TActor extends PlayActor> {
|
|
65
69
|
/** The actor to sync with Solid Router. */
|
|
66
70
|
actor: TActor;
|
|
67
71
|
/** Bidirectional route map for state ID ↔ URL path lookups. */
|
|
@@ -131,13 +135,58 @@ const routeMap = new RouteMap([
|
|
|
131
135
|
|
|
132
136
|
### Types
|
|
133
137
|
|
|
134
|
-
| Export | Description
|
|
135
|
-
| ------------------------- |
|
|
136
|
-
| `
|
|
137
|
-
| `
|
|
138
|
-
| `
|
|
139
|
-
| `
|
|
140
|
-
| `
|
|
138
|
+
| Export | Description |
|
|
139
|
+
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
140
|
+
| `PlayActor` | `AbstractActor & Routable & Viewable` — canonical actor shape from `@xmachines/play-router`. Required by `PlayRouterProvider`, which renders the current view spec in addition to synchronizing routes. |
|
|
141
|
+
| `RoutableActor` | Deprecated alias for `PlayActor`. Use `PlayActor` from `@xmachines/play-router` in new code. |
|
|
142
|
+
| `AbstractActor` | Re-exported from `@xmachines/play-actor` for convenience when typing renderer callbacks. |
|
|
143
|
+
| `SolidRouterHooks` | Shape of the `router` prop: `{ navigate, location, params }` |
|
|
144
|
+
| `PlayRouterProviderProps` | Full props interface for `PlayRouterProvider` |
|
|
145
|
+
| `PlayRouteEvent` | Event type sent to the actor on URL change (`play.route`) |
|
|
146
|
+
| `RouterBridge` | Interface implemented by `SolidRouterBridge` |
|
|
147
|
+
| `RouteMapOptions` | Options bag for `RouteMap` construction. Re-exported from `@xmachines/play-router`. |
|
|
148
|
+
|
|
149
|
+
## Usage Patterns
|
|
150
|
+
|
|
151
|
+
### Protected Routes and Guards
|
|
152
|
+
|
|
153
|
+
Auth guards live entirely inside the state machine, preventing flashes of unauthorized content:
|
|
154
|
+
|
|
155
|
+
```ts
|
|
156
|
+
const machineConfig = {
|
|
157
|
+
states: {
|
|
158
|
+
dashboard: {
|
|
159
|
+
meta: { route: "/dashboard" },
|
|
160
|
+
always: {
|
|
161
|
+
guard: ({ context }) => !context.isAuthenticated,
|
|
162
|
+
target: "login",
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
};
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
When a user navigates to `/dashboard` while unauthenticated:
|
|
170
|
+
|
|
171
|
+
1. Solid Router updates the URL.
|
|
172
|
+
2. Bridge intercepts and sends `play.route` to the actor.
|
|
173
|
+
3. Actor evaluates the guard — denies transition, moves to `login` instead.
|
|
174
|
+
4. Bridge observes new actor route (`/login`) via TC39 Signal.
|
|
175
|
+
5. Bridge calls `navigate("/login")`.
|
|
176
|
+
|
|
177
|
+
### Dynamic Routes with Parameters
|
|
178
|
+
|
|
179
|
+
```ts
|
|
180
|
+
const routeMap = new RouteMap([
|
|
181
|
+
{ stateId: "#post", path: "/users/:userId/posts/:postId" },
|
|
182
|
+
{ stateId: "#settings", path: "/settings/:section?" },
|
|
183
|
+
]);
|
|
184
|
+
|
|
185
|
+
// Params are extracted from Solid's useParams() and forwarded in the play.route event:
|
|
186
|
+
// { type: "play.route", to: "#post", params: { userId: "123", postId: "456" }, query: {} }
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
Path parameters are extracted from Solid's reactive `useParams()` proxy — no URLPattern polyfill is needed for parameterized routes.
|
|
141
190
|
|
|
142
191
|
## Testing
|
|
143
192
|
|
|
@@ -151,8 +200,25 @@ npm test -w packages/play-solid-router
|
|
|
151
200
|
npm test
|
|
152
201
|
```
|
|
153
202
|
|
|
203
|
+
**Browser tests** (`test/browser/**/*.browser.test.ts`) run against real Chromium via Playwright, covering async sequencing that jsdom cannot faithfully reproduce:
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
npx vitest --config vitest.browser.config.ts --project play-solid-router-browser
|
|
207
|
+
```
|
|
208
|
+
|
|
154
209
|
Coverage thresholds: **80%** lines, functions, branches, and statements.
|
|
155
210
|
|
|
211
|
+
## Related Packages
|
|
212
|
+
|
|
213
|
+
- [@xmachines/play-router](../play-router/README.md) — core router primitives and `RouterBridgeBase`
|
|
214
|
+
- [@xmachines/play-tanstack-solid-router](../play-tanstack-solid-router/README.md) — TanStack Solid Router adapter
|
|
215
|
+
- [@xmachines/play-solid](../play-solid/README.md) — SolidJS view renderer
|
|
216
|
+
- [@xmachines/play-xstate](../play-xstate/README.md) — XState v5 player factory
|
|
217
|
+
|
|
218
|
+
## Learn More
|
|
219
|
+
|
|
220
|
+
- [Demo](examples/demo/README.md)
|
|
221
|
+
|
|
156
222
|
## License
|
|
157
223
|
|
|
158
224
|
MIT — see [LICENSE](LICENSE).
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export { SolidRouterBridge } from "./solid-router-bridge.js";
|
|
7
7
|
export { PlayRouterProvider } from "./play-router-provider.js";
|
|
8
|
-
export type { PlayRouterProviderProps,
|
|
8
|
+
export type { PlayRouterProviderProps, PlayActor, RoutableActor, // @deprecated — use PlayActor from @xmachines/play-router
|
|
9
|
+
SolidRouterHooks, } from "./play-router-provider.js";
|
|
9
10
|
export { RouteMap, createRouteMap, type RouteMapping, type RouteMapOptions, } from "@xmachines/play-router";
|
|
10
11
|
export type { PlayRouteEvent, RouterBridge } from "./types.js";
|
|
11
12
|
export type { AbstractActor } from "@xmachines/play-actor";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,YAAY,EACX,uBAAuB,EACvB,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,YAAY,EACX,uBAAuB,EACvB,SAAS,EACT,aAAa,EAAE,0DAA0D;AACzE,gBAAgB,GAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACN,QAAQ,EACR,cAAc,EACd,KAAK,YAAY,EACjB,KAAK,eAAe,GACpB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/D,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAO/D,OAAO,EACN,QAAQ,EACR,cAAc,GAGd,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { type JSX } from "solid-js";
|
|
2
2
|
import type { Navigator, Location, Params } from "@solidjs/router";
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export type RoutableActor = AbstractActor<AnyActorLogic> & Routable & Viewable;
|
|
3
|
+
import type { RouteMap, PlayActor } from "@xmachines/play-router";
|
|
4
|
+
export type { PlayActor };
|
|
5
|
+
/** @deprecated Use `PlayActor` from `@xmachines/play-router`. Will be removed in the next major version. */
|
|
6
|
+
export type RoutableActor = PlayActor;
|
|
8
7
|
/**
|
|
9
8
|
* The three Solid Router hook results that `PlayRouterProvider` and `SolidRouterBridge`
|
|
10
9
|
* require. Pass these directly from your component's hook calls:
|
|
@@ -26,7 +25,7 @@ export type SolidRouterHooks = {
|
|
|
26
25
|
location: Location;
|
|
27
26
|
params: Params;
|
|
28
27
|
};
|
|
29
|
-
export interface PlayRouterProviderProps<TActor extends
|
|
28
|
+
export interface PlayRouterProviderProps<TActor extends PlayActor = PlayActor> {
|
|
30
29
|
/** The actor to sync with Solid Router. */
|
|
31
30
|
actor: TActor;
|
|
32
31
|
/** Bidirectional route map for state ID ↔ URL path lookups. */
|
|
@@ -68,5 +67,5 @@ export interface PlayRouterProviderProps<TActor extends RoutableActor = Routable
|
|
|
68
67
|
* }
|
|
69
68
|
* ```
|
|
70
69
|
*/
|
|
71
|
-
export declare function PlayRouterProvider<TActor extends
|
|
70
|
+
export declare function PlayRouterProvider<TActor extends PlayActor>(props: PlayRouterProviderProps<TActor>): any;
|
|
72
71
|
//# sourceMappingURL=play-router-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"play-router-provider.d.ts","sourceRoot":"","sources":["../src/play-router-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"play-router-provider.d.ts","sourceRoot":"","sources":["../src/play-router-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEnE,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAElE,YAAY,EAAE,SAAS,EAAE,CAAC;AAE1B,4GAA4G;AAC5G,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC;AAEtC;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,WAAW,uBAAuB,CAAC,MAAM,SAAS,SAAS,GAAG,SAAS;IAC5E,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,gBAAgB,CAAC;IACzB,kFAAkF;IAClF,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,KAAK,GAAG,CAAC,OAAO,CAAC;CACnE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,SAAS,SAAS,EAC1D,KAAK,EAAE,uBAAuB,CAAC,MAAM,CAAC,OAgBtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"play-router-provider.jsx","sourceRoot":"","sources":["../src/play-router-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAY,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"play-router-provider.jsx","sourceRoot":"","sources":["../src/play-router-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAY,MAAM,UAAU,CAAC;AAE/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AA6C7D;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,UAAU,kBAAkB,CACjC,KAAsC;IAEtC,MAAM,MAAM,GAAG,IAAI,iBAAiB,CACnC,KAAK,CAAC,MAAM,CAAC,QAAQ,EACrB,KAAK,CAAC,MAAM,CAAC,QAAQ,EACrB,KAAK,CAAC,MAAM,CAAC,MAAM,EACnB,KAAK,CAAC,KAAK,EACX,KAAK,CAAC,QAAQ,CACd,CAAC;IACF,MAAM,CAAC,OAAO,EAAE,CAAC;IAEjB,SAAS,CAAC,GAAG,EAAE;QACd,MAAM,CAAC,UAAU,EAAE,CAAC;IACrB,CAAC,CAAC,CAAC;IAEH,OAAO,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC;AACzD,CAAC"}
|
|
@@ -35,8 +35,7 @@
|
|
|
35
35
|
import type { Navigator, Params } from "@solidjs/router";
|
|
36
36
|
import { RouterBridgeBase } from "@xmachines/play-router";
|
|
37
37
|
import type { LocationLike } from "@xmachines/play-router";
|
|
38
|
-
import type {
|
|
39
|
-
import type { AnyActorLogic } from "xstate";
|
|
38
|
+
import type { RoutableActor } from "@xmachines/play-router";
|
|
40
39
|
import type { RouteMap } from "@xmachines/play-router";
|
|
41
40
|
/**
|
|
42
41
|
* SolidJS Router integration bridge extending RouterBridgeBase
|
|
@@ -70,7 +69,7 @@ export declare class SolidRouterBridge extends RouterBridgeBase {
|
|
|
70
69
|
* @param actor - XMachines actor instance
|
|
71
70
|
* @param routeMap - Bidirectional state ID ↔ path mapping
|
|
72
71
|
*/
|
|
73
|
-
constructor(solidNavigate: Navigator, location: LocationLike, params: Params, actor:
|
|
72
|
+
constructor(solidNavigate: Navigator, location: LocationLike, params: Params, actor: RoutableActor, routeMap: RouteMap);
|
|
74
73
|
/**
|
|
75
74
|
* Extract path parameters using Solid's pre-parsed `useParams()` values.
|
|
76
75
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solid-router-bridge.d.ts","sourceRoot":"","sources":["../src/solid-router-bridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D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;;;;;;;;OAUG;IACH,SAAS,CAAC,kBAAkB,IAAI,IAAI;IAepC;;;;;;OAMG;IACH,SAAS,CAAC,oBAAoB,IAAI,IAAI;IAKtC;;;;;;;OAOG;IACH,OAAO,IAAI,IAAI;CAGf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solid-router-bridge.js","sourceRoot":"","sources":["../src/solid-router-bridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAExD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"solid-router-bridge.js","sourceRoot":"","sources":["../src/solid-router-bridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAExD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAK1D;;;;;;;;;;GAUG;AACH,MAAM,OAAO,iBAAkB,SAAQ,gBAAgB;IAsBpC;IACA;IAtBV,oBAAoB,GAAwB,IAAI,CAAC;IAEzD;;;OAGG;IACc,WAAW,CAAS;IAErC;;;;;;;;;;;OAWG;IACH,YACkB,aAAwB,EACxB,QAAsB,EACvC,MAAc,EACd,KAAoB,EACpB,QAAkB;QAElB,KAAK,CAAC,KAAK,EAAE;YACZ,gBAAgB,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,CAAC;YACnE,gBAAgB,EAAE,CAAC,EAAU,EAAE,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC;SAC/D,CAAC,CAAC;QATc,kBAAa,GAAb,aAAa,CAAW;QACxB,aAAQ,GAAR,QAAQ,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AE,MAAM,CAAC,CAAC;YAC5C,CAAC,CACD,CACD,CAAC;YACF,OAAO,OAAO,CAAC;QAChB,CAAC,CAAC,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACO,oBAAoB;QAC7B,IAAI,CAAC,oBAAoB,EAAE,EAAE,CAAC;QAC9B,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAClC,CAAC;IAED;;;;;;;OAOG;IACH,OAAO;QACN,IAAI,CAAC,UAAU,EAAE,CAAC;IACnB,CAAC;CACD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xmachines/play-solid-router",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.53",
|
|
4
4
|
"description": "SolidJS Router adapter for XMachines Universal Player Architecture",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "XMachines Contributors",
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
"prepublishOnly": "npm run build"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@xmachines/play": "1.0.0-beta.
|
|
41
|
-
"@xmachines/play-actor": "1.0.0-beta.
|
|
42
|
-
"@xmachines/play-router": "1.0.0-beta.
|
|
43
|
-
"@xmachines/play-signals": "1.0.0-beta.
|
|
40
|
+
"@xmachines/play": "1.0.0-beta.53",
|
|
41
|
+
"@xmachines/play-actor": "1.0.0-beta.53",
|
|
42
|
+
"@xmachines/play-router": "1.0.0-beta.53",
|
|
43
|
+
"@xmachines/play-signals": "1.0.0-beta.53"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@solidjs/router": "^0.16.1",
|
|
47
47
|
"@solidjs/testing-library": "^0.8.10",
|
|
48
|
-
"@xmachines/play-xstate": "1.0.0-beta.
|
|
49
|
-
"@xmachines/shared": "1.0.0-beta.
|
|
48
|
+
"@xmachines/play-xstate": "1.0.0-beta.53",
|
|
49
|
+
"@xmachines/shared": "1.0.0-beta.53",
|
|
50
50
|
"jsdom": "^29.1.0",
|
|
51
51
|
"oxfmt": "^0.47.0",
|
|
52
52
|
"oxlint": "^1.62.0",
|
|
@@ -59,5 +59,8 @@
|
|
|
59
59
|
"@solidjs/router": "^0.16.1",
|
|
60
60
|
"solid-js": "^1.8.0",
|
|
61
61
|
"xstate": "^5.31.0"
|
|
62
|
+
},
|
|
63
|
+
"engines": {
|
|
64
|
+
"node": ">=22.0.0"
|
|
62
65
|
}
|
|
63
66
|
}
|