@cplieger/reactive 2.1.3-dev.1 → 2.2.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/jsr.json +1 -1
- package/package.json +4 -6
- package/src/signal.ts +3 -5
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cplieger/reactive",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"exports": {
|
|
@@ -21,16 +21,14 @@
|
|
|
21
21
|
"@stryker-mutator/typescript-checker": "10.0.0",
|
|
22
22
|
"@stryker-mutator/vitest-runner": "10.0.0",
|
|
23
23
|
"@typescript/native": "npm:typescript@7.0.2",
|
|
24
|
-
"@vitest/browser": "5.0.3",
|
|
25
24
|
"@vitest/browser-playwright": "5.0.3",
|
|
26
|
-
"@vitest/coverage-v8": "5.0.3",
|
|
27
25
|
"eslint": "10.12.0",
|
|
28
26
|
"fast-check": "4.10.2",
|
|
29
|
-
"knip": "6.
|
|
30
|
-
"playwright": "1.
|
|
27
|
+
"knip": "6.40.0",
|
|
28
|
+
"playwright": "1.64.0",
|
|
31
29
|
"prettier": "3.9.9",
|
|
32
30
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
33
|
-
"typescript-eslint": "8.71.
|
|
31
|
+
"typescript-eslint": "8.71.1",
|
|
34
32
|
"vitest": "5.0.3"
|
|
35
33
|
},
|
|
36
34
|
"overrides": {
|
package/src/signal.ts
CHANGED
|
@@ -682,9 +682,8 @@ export function untracked<T>(fn: () => T): T {
|
|
|
682
682
|
* This exists because the two-tier shape `createCollection` and `bindList` are
|
|
683
683
|
* built on produces it: a scope reads per-entity values through `signalFor`,
|
|
684
684
|
* so it must depend on the structure signal separately to re-run when the id
|
|
685
|
-
* set changes, and that dependency has no value the body wants.
|
|
686
|
-
*
|
|
687
|
-
* are accepted so a per-key lookup that may miss (`signalFor(id)`,
|
|
685
|
+
* set changes, and that dependency has no value the body wants. `undefined`
|
|
686
|
+
* entries are accepted so a per-key lookup that may miss (`signalFor(id)`,
|
|
688
687
|
* `SignalMap.get(id)`) can be passed straight in.
|
|
689
688
|
*
|
|
690
689
|
* Not a substitute for `on()`, which declares an exhaustive dependency list
|
|
@@ -698,8 +697,7 @@ export function touch(
|
|
|
698
697
|
}
|
|
699
698
|
}
|
|
700
699
|
|
|
701
|
-
//
|
|
702
|
-
// deliberately unused, and returning it is what keeps that legible.
|
|
700
|
+
// deadset:ignore DS1803 -- returning the value keeps the tracking read from being a discarded expression; typescript-eslint rejects void on a property read
|
|
703
701
|
function readForDependency(sig: Signal<unknown> | ReadonlySignal<unknown> | undefined): unknown {
|
|
704
702
|
return sig?.value;
|
|
705
703
|
}
|