@xmachines/play-signals 1.0.0-beta.9 → 1.1.0

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/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
@@ -1,29 +1,80 @@
1
1
  # @xmachines/play-signals
2
2
 
3
- **Canonical Signals substrate for XMachines with Stage 1 API isolation**
3
+ TC39 Signals polyfill for XMachines — fine-grained reactive state primitives that enable glitch-free, subscription-free state propagation in the Play Architecture.
4
4
 
5
- `@xmachines/play-signals` re-exports `Signal` from `signal-polyfill` as the single import boundary for XMachines packages.
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
+ [![Version](https://img.shields.io/badge/version-1.1.0-blue)](https://www.npmjs.com/package/@xmachines/play-signals)
6
7
 
7
- ## Why This Package Exists
8
-
9
- - Keep the raw `Signal` API as the canonical substrate surface.
10
- - Isolate Stage 1 proposal churn behind one package boundary.
11
- - Preserve Play invariants: Signal-only reactivity, passive infrastructure, and event-only mutation paths.
12
-
13
- This package does not add business behavior to signals. Adapters and renderers observe signals and forward events; they do not mutate business state directly.
8
+ Part of the [xmachines-js monorepo](../../README.md).
14
9
 
15
10
  ## Installation
16
11
 
17
12
  ```bash
18
- npm install @xmachines/play-signals
13
+ pnpm add @xmachines/play-signals
19
14
  ```
20
15
 
21
- ## Current Exports
16
+ ## Overview
17
+
18
+ This package wraps the [`signal-polyfill`](https://github.com/nicolo-ribaudo/tc39-proposal-signals-polyfill) reference implementation of the [TC39 Signals proposal](https://github.com/tc39/proposal-signals) (Stage 1). It re-exports the full `Signal` namespace and adds a memory-safe `watchSignal` utility, isolating the rest of the codebase from potential Stage 1 API churn.
19
+
20
+ **All signal imports in the XMachines ecosystem should come from this package**, not directly from `signal-polyfill`, so that polyfill version bumps or API adaptations can be made in one place.
22
21
 
23
- - `Signal` (re-export from `signal-polyfill`)
24
- - Type exports from `src/types.ts`: `SignalState`, `SignalComputed`, `SignalWatcher`, `SignalOptions`, `ComputedOptions`, `WatcherNotify`
22
+ ## Usage
25
23
 
26
- ## Quick Start
24
+ ### `Signal.State` — writable reactive state
25
+
26
+ ```typescript
27
+ import { Signal } from "@xmachines/play-signals";
28
+
29
+ const count = new Signal.State(0);
30
+
31
+ console.log(count.get()); // 0
32
+ count.set(5);
33
+ console.log(count.get()); // 5
34
+ ```
35
+
36
+ ### `Signal.Computed` — lazy memoized derived values
37
+
38
+ ```typescript
39
+ import { Signal } from "@xmachines/play-signals";
40
+
41
+ const count = new Signal.State(0);
42
+ const doubled = new Signal.Computed(() => count.get() * 2);
43
+
44
+ console.log(doubled.get()); // 0 (computed on first access)
45
+ count.set(5);
46
+ console.log(doubled.get()); // 10 (recomputed because dependency changed)
47
+ console.log(doubled.get()); // 10 (memoized — no recomputation)
48
+ ```
49
+
50
+ Computations automatically track every signal accessed inside them. Dynamic branching is fully supported — only signals read in the _current_ execution path are tracked as dependencies.
51
+
52
+ ### `watchSignal` — memory-safe one-shot effect
53
+
54
+ Use `watchSignal` to subscribe to a `Signal.State` or `Signal.Computed` and receive its value after each change. Updates are coalesced into a single microtask per synchronous batch.
55
+
56
+ ```typescript
57
+ import { Signal, watchSignal } from "@xmachines/play-signals";
58
+
59
+ const count = new Signal.State(0);
60
+
61
+ const cleanup = watchSignal(count, (value) => {
62
+ console.log("count changed:", value);
63
+ });
64
+
65
+ count.set(1); // → logs "count changed: 1" (via microtask)
66
+ count.set(2); // coalesced with any rapid synchronous changes
67
+ count.set(3); // → logs "count changed: 3" once
68
+
69
+ // Stop watching
70
+ cleanup();
71
+ ```
72
+
73
+ The returned cleanup function is idempotent — calling it multiple times is safe and will not throw.
74
+
75
+ ### `Signal.subtle.Watcher` — low-level multi-signal observation
76
+
77
+ For advanced use cases such as framework integrations, the full `Signal.subtle.Watcher` API is available:
27
78
 
28
79
  ```typescript
29
80
  import { Signal } from "@xmachines/play-signals";
@@ -34,79 +85,74 @@ const doubled = new Signal.Computed(() => count.get() * 2);
34
85
  const watcher = new Signal.subtle.Watcher(() => {
35
86
  queueMicrotask(() => {
36
87
  const pending = watcher.getPending();
37
- for (const signal of pending) {
38
- signal.get();
39
- }
40
- watcher.watch(...pending);
88
+ console.log("signals changed:", pending.length);
89
+ watcher.watch(...pending); // re-arm for future changes
41
90
  });
42
91
  });
43
92
 
93
+ watcher.watch(count);
44
94
  watcher.watch(doubled);
45
- doubled.get();
46
-
47
- count.set(2);
48
-
49
- const dispose = () => {
50
- watcher.unwatch(doubled);
51
- };
52
95
 
53
- void dispose;
96
+ count.set(5); // schedules microtask notification
54
97
  ```
55
98
 
56
- ## Canonical Watcher Lifecycle
57
-
58
- Use one lifecycle pattern everywhere (React, Vue, Solid, router bridges, helper wrappers):
59
-
60
- 1. `notify` callback runs.
61
- 2. Schedule work with `queueMicrotask`.
62
- 3. Drain `watcher.getPending()`.
63
- 4. Perform reads/effects.
64
- 5. Re-arm watcher with `watch()` or `watch(...signals)`.
99
+ ### Custom equality
65
100
 
66
- Watcher notifications are one-shot. If you do not re-arm, you will miss future updates.
101
+ Both `Signal.State` and `Signal.Computed` accept an `equals` option to control when dependents are notified:
67
102
 
68
- ## Cleanup Contract
103
+ ```typescript
104
+ import { Signal } from "@xmachines/play-signals";
105
+ import type { SignalOptions } from "@xmachines/play-signals";
69
106
 
70
- Always dispose explicitly. Do not rely on GC-only cleanup guidance.
107
+ const options: SignalOptions<{ name: string; age: number }> = {
108
+ equals: (a, b) => a.name === b.name && a.age === b.age,
109
+ };
71
110
 
72
- - If you called `watch(...)`, call `unwatch(...)` in teardown.
73
- - Framework lifecycles (`useEffect` cleanup, `onUnmounted`, `onCleanup`) must unwatch.
74
- - Bridge lifecycles (`disconnect`, `dispose`) must unwatch and unsubscribe.
111
+ const person = new Signal.State({ name: "Alice", age: 30 }, options);
112
+ // Setting structurally identical value will not notify dependents
113
+ person.set({ name: "Alice", age: 30 });
114
+ ```
75
115
 
76
- ## Optional Helper Direction
116
+ ## API Summary
77
117
 
78
- Raw `Signal` remains canonical. Helper APIs are optional, additive guidance for consistency:
118
+ | Export | Kind | Description |
119
+ | ------------------------------ | --------- | ------------------------------------------------------------------------------------------------------ |
120
+ | `Signal` | namespace | Full TC39 Signals namespace (`State`, `Computed`, `subtle.Watcher`) re-exported from `signal-polyfill` |
121
+ | `watchSignal(signal, onValue)` | function | Memory-safe subscription helper; returns a cleanup function |
122
+ | `SignalState<T>` | interface | Shape of `Signal.State<T>` (`.get()`, `.set()`) |
123
+ | `SignalComputed<T>` | interface | Shape of `Signal.Computed<T>` (`.get()`) |
124
+ | `SignalWatcher` | interface | Shape of `Signal.subtle.Watcher` (`.watch()`, `.unwatch()`, `.getPending()`) |
125
+ | `SignalOptions<T>` | interface | Options bag for `Signal.State` constructor (`equals?`) |
126
+ | `ComputedOptions<T>` | interface | Options bag for `Signal.Computed` constructor (`equals?`) |
127
+ | `WatcherNotify` | type | Callback signature for `Signal.subtle.Watcher` notify function |
79
128
 
80
- - `watchSignals(signals, onChange, options)`
81
- - `createSignalEffect(effect, options)`
82
- - `toSubscribable(signal, options)`
129
+ ## Testing
83
130
 
84
- These helpers are intended to codify lifecycle-safe watcher scheduling and deterministic teardown. They do not replace direct `Signal` usage.
131
+ Run tests for this package in isolation:
85
132
 
86
- ## API Surface
133
+ ```bash
134
+ # From this package directory
135
+ pnpm test
87
136
 
88
- - `Signal.State<T>`: writable signal state (`get`, `set`)
89
- - `Signal.Computed<T>`: lazy memoized derivations
90
- - `Signal.subtle.Watcher`: low-level watcher (`watch`, `unwatch`, `getPending`)
137
+ # Watch mode
138
+ pnpm test -- --watch
139
+ ```
91
140
 
92
- Complete generated API docs: [docs/api/@xmachines/play-signals](../../docs/api/@xmachines/play-signals)
141
+ From the monorepo root:
93
142
 
94
- ## Architecture Notes
143
+ ```bash
144
+ # Run tests for this package
145
+ pnpm --filter @xmachines/play-signals test
95
146
 
96
- - **Signal-Only Reactivity (INV-05):** Signals are the reactive substrate.
97
- - **Passive Infrastructure (INV-04):** Adapters and frameworks only observe/forward.
98
- - **Actor Authority (INV-01):** Business validity and transitions stay in actors.
99
- - **Event-only mutation path:** Signals are not a business mutation channel.
147
+ # Run with coverage (lines ≥ 90 %, functions ≥ 90 %, branches ≥ 85 %, statements ≥ 90 %)
148
+ pnpm run test:coverage
149
+ ```
100
150
 
101
- ## Resources
151
+ ## Requirements
102
152
 
103
- - [TC39 Signals Proposal](https://github.com/tc39/proposal-signals)
104
- - [signal-polyfill](https://github.com/proposal-signals/signal-polyfill)
105
- - [RFC Play v1](https://gitlab.com/xmachin-es/rfc/-/blob/main/src/play-v1.md)
153
+ - **Node.js** `>= 22.0.0`
154
+ - **TypeScript** `5.7+` (for consumers using TypeScript)
106
155
 
107
156
  ## License
108
157
 
109
- Copyright (c) 2016 [Mikael Karon](mailto:mikael@karon.se). All rights reserved.
110
-
111
- This work is licensed under the terms of the MIT license.
112
- For a copy, see <https://opensource.org/licenses/MIT>.
158
+ MIT — see [LICENSE](LICENSE).
package/dist/index.d.ts CHANGED
@@ -32,7 +32,7 @@
32
32
  * count.set(5); // Logs: Count: 5 Doubled: 10
33
33
  * ```
34
34
  *
35
- * @see {@link https://gitlab.com/xmachin-es/rfc/-/blob/main/src/play-v1.md | RFC Play v1 - Invariant INV-05}
35
+ * @see [Play RFC](../../docs/rfc/play.md) - Invariant INV-05
36
36
  * @see {@link https://github.com/tc39/proposal-signals | TC39 Signals Proposal}
37
37
  *
38
38
  * @remarks
@@ -46,5 +46,6 @@
46
46
  * consuming packages. This architectural decision protects against Stage 1 API churn.
47
47
  */
48
48
  export { Signal } from "signal-polyfill";
49
+ export { watchSignal } from "./watch-signal.js";
49
50
  export type { SignalState, SignalComputed, SignalWatcher, SignalOptions, ComputedOptions, WatcherNotify, } from "./types.js";
50
51
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAGzC,YAAY,EACX,WAAW,EACX,cAAc,EACd,aAAa,EACb,aAAa,EACb,eAAe,EACf,aAAa,GACb,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGhD,YAAY,EACX,WAAW,EACX,cAAc,EACd,aAAa,EACb,aAAa,EACb,eAAe,EACf,aAAa,GACb,MAAM,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@
32
32
  * count.set(5); // Logs: Count: 5 Doubled: 10
33
33
  * ```
34
34
  *
35
- * @see {@link https://gitlab.com/xmachin-es/rfc/-/blob/main/src/play-v1.md | RFC Play v1 - Invariant INV-05}
35
+ * @see [Play RFC](../../docs/rfc/play.md) - Invariant INV-05
36
36
  * @see {@link https://github.com/tc39/proposal-signals | TC39 Signals Proposal}
37
37
  *
38
38
  * @remarks
@@ -47,4 +47,5 @@
47
47
  */
48
48
  // Re-export complete Signal namespace from official polyfill
49
49
  export { Signal } from "signal-polyfill";
50
+ export { watchSignal } from "./watch-signal.js";
50
51
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,6DAA6D;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,6DAA6D;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { Signal } from "signal-polyfill";
2
+ /**
3
+ * Subscribe to a single signal using the canonical one-shot watcher lifecycle.
4
+ *
5
+ * The callback runs from a queued microtask after pending notifications are
6
+ * drained, then the watcher re-arms itself so future updates are not missed.
7
+ * The returned cleanup keeps teardown idempotent by tolerating already-detached
8
+ * watchers.
9
+ *
10
+ * **Memory safety (Phase 29):**
11
+ * - `disposed` flag prevents post-cleanup callback execution: if cleanup is
12
+ * called before a pending microtask fires, the microtask returns early.
13
+ * - `needsEnqueue` guard dedups rapid synchronous signal changes: only one
14
+ * microtask is ever queued per batch of synchronous mutations.
15
+ *
16
+ * @param signal - A `Signal.State` or `Signal.Computed` to subscribe to.
17
+ * @param onValue - Called with the current signal value after each change.
18
+ * @returns A cleanup function that unregisters the watcher.
19
+ */
20
+ export declare function watchSignal<T>(signal: Signal.State<T> | Signal.Computed<T>, onValue: (value: T) => void): () => void;
21
+ //# sourceMappingURL=watch-signal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"watch-signal.d.ts","sourceRoot":"","sources":["../src/watch-signal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAC5B,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,EAC5C,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,GACzB,MAAM,IAAI,CA0BZ"}
@@ -0,0 +1,47 @@
1
+ import { Signal } from "signal-polyfill";
2
+ /**
3
+ * Subscribe to a single signal using the canonical one-shot watcher lifecycle.
4
+ *
5
+ * The callback runs from a queued microtask after pending notifications are
6
+ * drained, then the watcher re-arms itself so future updates are not missed.
7
+ * The returned cleanup keeps teardown idempotent by tolerating already-detached
8
+ * watchers.
9
+ *
10
+ * **Memory safety (Phase 29):**
11
+ * - `disposed` flag prevents post-cleanup callback execution: if cleanup is
12
+ * called before a pending microtask fires, the microtask returns early.
13
+ * - `needsEnqueue` guard dedups rapid synchronous signal changes: only one
14
+ * microtask is ever queued per batch of synchronous mutations.
15
+ *
16
+ * @param signal - A `Signal.State` or `Signal.Computed` to subscribe to.
17
+ * @param onValue - Called with the current signal value after each change.
18
+ * @returns A cleanup function that unregisters the watcher.
19
+ */
20
+ export function watchSignal(signal, onValue) {
21
+ let disposed = false;
22
+ let needsEnqueue = true;
23
+ const watcher = new Signal.subtle.Watcher(() => {
24
+ if (disposed || !needsEnqueue)
25
+ return;
26
+ needsEnqueue = false;
27
+ queueMicrotask(() => {
28
+ if (disposed)
29
+ return;
30
+ needsEnqueue = true;
31
+ watcher.getPending();
32
+ onValue(signal.get());
33
+ watcher.watch(signal);
34
+ });
35
+ });
36
+ watcher.watch(signal);
37
+ return () => {
38
+ disposed = true;
39
+ try {
40
+ watcher.unwatch(signal);
41
+ }
42
+ catch {
43
+ // Ignore detached watcher errors to keep cleanup idempotent.
44
+ }
45
+ };
46
+ }
47
+ //# sourceMappingURL=watch-signal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"watch-signal.js","sourceRoot":"","sources":["../src/watch-signal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,WAAW,CAC1B,MAA4C,EAC5C,OAA2B;IAE3B,IAAI,QAAQ,GAAG,KAAK,CAAC;IACrB,IAAI,YAAY,GAAG,IAAI,CAAC;IAExB,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE;QAC9C,IAAI,QAAQ,IAAI,CAAC,YAAY;YAAE,OAAO;QACtC,YAAY,GAAG,KAAK,CAAC;QACrB,cAAc,CAAC,GAAG,EAAE;YACnB,IAAI,QAAQ;gBAAE,OAAO;YACrB,YAAY,GAAG,IAAI,CAAC;YACpB,OAAO,CAAC,UAAU,EAAE,CAAC;YACrB,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC;YACtB,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACvB,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAEtB,OAAO,GAAG,EAAE;QACX,QAAQ,GAAG,IAAI,CAAC;QAChB,IAAI,CAAC;YACJ,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACzB,CAAC;QAAC,MAAM,CAAC;YACR,6DAA6D;QAC9D,CAAC;IACF,CAAC,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmachines/play-signals",
3
- "version": "1.0.0-beta.9",
3
+ "version": "1.1.0",
4
4
  "private": false,
5
5
  "description": "TC39 Signals polyfill for XMachines - Fine-grained reactive state primitives",
6
6
  "keywords": [
@@ -10,14 +10,23 @@
10
10
  "tc39",
11
11
  "xmachines"
12
12
  ],
13
+ "homepage": "https://gitlab.com/xmachin-es/xmachines-js/tree/main/packages/play-signals",
13
14
  "license": "MIT",
14
15
  "author": "XMachines Contributors",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+ssh://git@gitlab.com/xmachin-es/xmachines-js.git",
19
+ "directory": "packages/play-signals"
20
+ },
15
21
  "files": [
16
22
  "dist",
17
23
  "README.md",
18
24
  "LICENSE"
19
25
  ],
20
26
  "type": "module",
27
+ "sideEffects": false,
28
+ "main": "./dist/index.js",
29
+ "types": "./dist/index.d.ts",
21
30
  "exports": {
22
31
  ".": {
23
32
  "types": "./dist/index.d.ts",
@@ -29,22 +38,23 @@
29
38
  },
30
39
  "scripts": {
31
40
  "build": "tsc --build",
32
- "clean": "rm -rf dist *.tsbuildinfo node_modules/.vite node_modules/.vite-temp",
33
- "typecheck": "tsc --noEmit",
41
+ "clean": "rm -rf dist *.tsbuildinfo coverage .vitest-attachments test/browser/__screenshots__ node_modules/.svelte2tsx-* node_modules/.vite*",
34
42
  "test": "vitest",
35
43
  "lint": "oxlint .",
36
44
  "lint:fix": "oxlint --fix .",
37
45
  "format": "oxfmt .",
38
- "format:check": "oxfmt --check .",
39
- "prepublishOnly": "npm run build"
46
+ "format:check": "oxfmt --check ."
40
47
  },
41
48
  "dependencies": {
42
49
  "signal-polyfill": "^0.2.2"
43
50
  },
44
51
  "devDependencies": {
45
- "@types/node": "^25.5.0",
46
- "@xmachines/shared": "1.0.0-beta.9",
47
- "vitest": "^4.1.0"
52
+ "@testing-library/jest-dom": "^6.9.1",
53
+ "@types/node": "^26.2.0",
54
+ "@vitest/browser-playwright": "^4.1.10",
55
+ "oxfmt": "^0.64.0",
56
+ "oxlint": "^1.79.0",
57
+ "vitest": "^4.1.11"
48
58
  },
49
59
  "engines": {
50
60
  "node": ">=22.0.0"