@solidjs/signals 0.4.4 → 0.4.6

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.
@@ -40,10 +40,10 @@ export interface SourceType {
40
40
  _observers: ObserverType[] | null;
41
41
  _unobserved?: () => void;
42
42
  _updateIfNecessary: () => void;
43
- _transition?: Transition;
44
- _cloned?: Computation;
45
43
  _stateFlags: Flags;
46
44
  _time: number;
45
+ _transition?: Transition;
46
+ _cloned?: Computation;
47
47
  }
48
48
  export interface ObserverType {
49
49
  _sources: SourceType[] | null;
@@ -51,6 +51,7 @@ export interface ObserverType {
51
51
  _handlerMask: Flags;
52
52
  _notifyFlags: (mask: Flags, newFlags: Flags) => void;
53
53
  _time: number;
54
+ _cloned?: Computation;
54
55
  }
55
56
  /**
56
57
  * Returns the current observer.
@@ -1,8 +1,9 @@
1
- import type { Computation, ObserverType } from "./core.js";
1
+ import type { Computation, SourceType } from "./core.js";
2
2
  import type { Effect } from "./effect.js";
3
3
  export declare let clock: number;
4
4
  export declare function incrementClock(): void;
5
5
  export declare let ActiveTransition: Transition | null;
6
+ export declare let Unobserved: SourceType[];
6
7
  export type QueueCallback = (type: number) => void;
7
8
  export interface IQueue {
8
9
  enqueue(type: number, fn: QueueCallback): void;
@@ -77,4 +78,3 @@ export declare class Transition implements IQueue {
77
78
  */
78
79
  export declare function transition(fn: (resume: (fn: () => any | Promise<any>) => void) => any | Promise<any>): void;
79
80
  export declare function cloneGraph(node: Computation): Computation;
80
- export declare function removeSourceObservers(node: ObserverType, index: number): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidjs/signals",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
4
4
  "description": "",
5
5
  "author": "Ryan Carniato",
6
6
  "license": "MIT",