@xmachines/play-signals 3.0.0 → 4.0.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/README.md +2 -24
- package/package.json +14 -10
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
TC39 Signals polyfill for XMachines. It gives the Play Architecture fine-grained reactive state primitives. The primitives propagate state without a glitch and without a subscription.
|
|
4
4
|
|
|
5
|
-
[](https://opensource.org/licenses/MIT) [](https://opensource.org/licenses/MIT) [](https://www.npmjs.com/package/@xmachines/play-signals)
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -124,31 +124,9 @@ person.set({ name: "Alice", age: 30 });
|
|
|
124
124
|
| `WatcherNotify` | type | The callback signature of the `Signal.subtle.Watcher` notify function |
|
|
125
125
|
| `Cleanup` | type | The release that `watchSignal` returns, re-exported from `@xmachines/play` |
|
|
126
126
|
|
|
127
|
-
## Testing
|
|
128
|
-
|
|
129
|
-
Run tests for this package in isolation:
|
|
130
|
-
|
|
131
|
-
```bash
|
|
132
|
-
# From this package directory
|
|
133
|
-
pnpm test
|
|
134
|
-
|
|
135
|
-
# Watch mode
|
|
136
|
-
pnpm test -- --watch
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
From the monorepo root:
|
|
140
|
-
|
|
141
|
-
```bash
|
|
142
|
-
# Run tests for this package
|
|
143
|
-
pnpm --filter @xmachines/play-signals test
|
|
144
|
-
|
|
145
|
-
# Run with coverage (lines ≥ 90 %, functions ≥ 90 %, branches ≥ 85 %, statements ≥ 90 %)
|
|
146
|
-
pnpm run test:coverage
|
|
147
|
-
```
|
|
148
|
-
|
|
149
127
|
## Requirements
|
|
150
128
|
|
|
151
|
-
- **Node.js** `>=
|
|
129
|
+
- **Node.js** `>= 24.0.0`
|
|
152
130
|
- **TypeScript** `5.7+` (for a consumer that uses TypeScript)
|
|
153
131
|
|
|
154
132
|
## License
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xmachines/play-signals",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "TC39 Signals polyfill for XMachines - Fine-grained reactive state primitives",
|
|
6
6
|
"keywords": [
|
|
@@ -43,24 +43,28 @@
|
|
|
43
43
|
"test": "vitest",
|
|
44
44
|
"test:coverage": "vitest run --coverage",
|
|
45
45
|
"lint": "oxlint .",
|
|
46
|
+
"lint:security": "node ../../scripts/semgrep-scan.mjs",
|
|
46
47
|
"lint:fix": "oxlint --fix .",
|
|
47
48
|
"format": "oxfmt .",
|
|
48
49
|
"format:check": "oxfmt --check ."
|
|
49
50
|
},
|
|
50
51
|
"dependencies": {
|
|
51
|
-
"@xmachines/play": "3.0.0",
|
|
52
52
|
"signal-polyfill": "^0.2.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@testing-library/jest-dom": "^
|
|
56
|
-
"@types/node": "^26.2
|
|
57
|
-
"@vitest/browser-playwright": "^
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
55
|
+
"@testing-library/jest-dom": "^7.0.1",
|
|
56
|
+
"@types/node": "^26.6.2",
|
|
57
|
+
"@vitest/browser-playwright": "^5.0.1",
|
|
58
|
+
"@xmachines/play": "4.0.0",
|
|
59
|
+
"oxfmt": "^0.68.0",
|
|
60
|
+
"oxlint": "^1.83.0",
|
|
61
|
+
"vite": "^8.3.0",
|
|
62
|
+
"vitest": "^5.0.1"
|
|
63
|
+
},
|
|
64
|
+
"peerDependencies": {
|
|
65
|
+
"@xmachines/play": "4.0.0"
|
|
62
66
|
},
|
|
63
67
|
"engines": {
|
|
64
|
-
"node": ">=
|
|
68
|
+
"node": ">=24.0.0"
|
|
65
69
|
}
|
|
66
70
|
}
|