@cplieger/reactive 2.1.3-dev.1 → 2.2.0-dev.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cplieger/reactive",
3
- "version": "2.1.3-dev.1",
3
+ "version": "2.2.0-dev.1",
4
4
  "license": "Apache-2.0",
5
5
  "exports": {
6
6
  ".": "./src/index.ts"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cplieger/reactive",
3
- "version": "2.1.3-dev.1",
3
+ "version": "2.2.0-dev.1",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -21,9 +21,7 @@
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
27
  "knip": "6.39.0",
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. Spelling it as
686
- * a discarded expression left the intent to a comment, and `undefined` entries
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
- // Named so the read is a call rather than a discarded expression: the value is
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
  }