@solidjs/signals 0.10.4 → 0.10.5

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/dist/dev.js CHANGED
@@ -729,7 +729,7 @@ function unlinkSubs(link) {
729
729
  dep._subs = nextSub;
730
730
  if (nextSub === null) {
731
731
  dep._unobserved?.();
732
- dep._fn && !dep._preventAutoDisposal && unobserved(dep);
732
+ dep._fn && !dep._preventAutoDisposal && !(dep._flags & REACTIVE_ZOMBIE) && unobserved(dep);
733
733
  }
734
734
  }
735
735
  return nextDep;
package/dist/node.cjs CHANGED
@@ -702,7 +702,7 @@ function unlinkSubs(e) {
702
702
  t.O = r;
703
703
  if (r === null) {
704
704
  t.xe?.();
705
- t.H && !t.ve && unobserved(t);
705
+ t.H && !t.ve && !(t.m & o) && unobserved(t);
706
706
  }
707
707
  }
708
708
  return n;
package/dist/prod.js CHANGED
@@ -701,7 +701,7 @@ function unlinkSubs(e) {
701
701
  t.I = i;
702
702
  if (i === null) {
703
703
  t.ge?.();
704
- t.L && !t.Ce && unobserved(t);
704
+ t.L && !t.Ce && !(t.S & REACTIVE_ZOMBIE) && unobserved(t);
705
705
  }
706
706
  }
707
707
  return n;
@@ -2,17 +2,17 @@ import { $REFRESH, type Computed, type Signal } from "../core/index.js";
2
2
  export type Store<T> = Readonly<T>;
3
3
  export type StoreSetter<T> = (fn: (state: T) => T | void) => void;
4
4
  /** Base options for store primitives. */
5
- export type StoreOptions = {
5
+ export interface StoreOptions {
6
6
  /** Debug name (dev mode only) */
7
7
  name?: string;
8
- };
8
+ }
9
9
  /** Options for derived/projected stores created with `createStore(fn)`, `createProjection`, or `createOptimisticStore(fn)`. */
10
- export type ProjectionOptions = StoreOptions & {
10
+ export interface ProjectionOptions extends StoreOptions {
11
11
  /** Key property name or function for reconciliation identity */
12
12
  key?: string | ((item: NonNullable<any>) => any);
13
13
  /** When true, reconciles all properties (not just tracked ones) */
14
14
  all?: boolean;
15
- };
15
+ }
16
16
  export type NoFn<T> = T extends Function ? never : T;
17
17
  type DataNode = Signal<any>;
18
18
  type DataNodes = Record<PropertyKey, DataNode>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidjs/signals",
3
- "version": "0.10.4",
3
+ "version": "0.10.5",
4
4
  "description": "SolidJS' standalone reactivity implementation",
5
5
  "author": "Ryan Carniato",
6
6
  "license": "MIT",