@solidjs/signals 0.8.0 → 0.8.2
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 +49 -15
- package/dist/node.cjs +436 -402
- package/dist/prod.js +436 -402
- package/dist/types/boundaries.d.ts +1 -0
- package/dist/types/core/index.d.ts +1 -1
- package/dist/types/core/scheduler.d.ts +11 -2
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ export declare class CollectionQueue extends Queue {
|
|
|
7
7
|
_collectionType: number;
|
|
8
8
|
_nodes: Set<Effect<any>>;
|
|
9
9
|
_disabled: Signal<boolean>;
|
|
10
|
+
_initialized: boolean;
|
|
10
11
|
constructor(type: number);
|
|
11
12
|
run(type: number): void;
|
|
12
13
|
notify(node: Effect<any>, type: number, flags: number): boolean;
|
|
@@ -2,5 +2,5 @@ export { ContextNotFoundError, NoOwnerError, NotReadyError } from "./error.js";
|
|
|
2
2
|
export { createContext, getContext, setContext, type Context, type ContextRecord } from "./context.js";
|
|
3
3
|
export { getObserver, isEqual, untrack, getOwner, runWithOwner, createOwner, createRoot, computed, signal, asyncComputed, read, setSignal, onCleanup, getNextChildId, isPending, pending, staleValues, type Owner, type Computed, type Root, type Signal, type SignalOptions } from "./core.js";
|
|
4
4
|
export { effect, type Effect } from "./effect.js";
|
|
5
|
-
export { flush, Queue, type IQueue } from "./scheduler.js";
|
|
5
|
+
export { flush, Queue, type IQueue, type QueueCallback } from "./scheduler.js";
|
|
6
6
|
export * from "./constants.js";
|
|
@@ -3,16 +3,20 @@ import { type Heap } from "./heap.js";
|
|
|
3
3
|
export declare let clock: number;
|
|
4
4
|
export declare let activeTransition: Transition | null;
|
|
5
5
|
export declare let unobserved: Signal<unknown>[];
|
|
6
|
+
export type QueueCallback = (type: number) => void;
|
|
7
|
+
type QueueStub = {
|
|
8
|
+
_queues: [QueueCallback[], QueueCallback[]];
|
|
9
|
+
_children: QueueStub[];
|
|
10
|
+
};
|
|
6
11
|
export interface Transition {
|
|
7
12
|
time: number;
|
|
8
13
|
asyncNodes: Computed<any>[];
|
|
9
14
|
pendingNodes: Signal<any>[];
|
|
10
|
-
|
|
15
|
+
queueStash: QueueStub;
|
|
11
16
|
}
|
|
12
17
|
export declare function schedule(): void;
|
|
13
18
|
export declare const dirtyQueue: Heap;
|
|
14
19
|
export declare const zombieQueue: Heap;
|
|
15
|
-
export type QueueCallback = (type: number) => void;
|
|
16
20
|
export interface IQueue {
|
|
17
21
|
enqueue(type: number, fn: QueueCallback): void;
|
|
18
22
|
run(type: number): boolean | void;
|
|
@@ -20,6 +24,8 @@ export interface IQueue {
|
|
|
20
24
|
removeChild(child: IQueue): void;
|
|
21
25
|
created: number;
|
|
22
26
|
notify(node: Computed<any>, mask: number, flags: number): boolean;
|
|
27
|
+
stashQueues(stub: QueueStub): void;
|
|
28
|
+
restoreQueues(stub: QueueStub): void;
|
|
23
29
|
_parent: IQueue | null;
|
|
24
30
|
}
|
|
25
31
|
export declare class Queue implements IQueue {
|
|
@@ -32,6 +38,8 @@ export declare class Queue implements IQueue {
|
|
|
32
38
|
notify(node: Computed<any>, mask: number, flags: number): boolean;
|
|
33
39
|
run(type: number): void;
|
|
34
40
|
enqueue(type: number, fn: QueueCallback): void;
|
|
41
|
+
stashQueues(stub: QueueStub): void;
|
|
42
|
+
restoreQueues(stub: QueueStub): void;
|
|
35
43
|
}
|
|
36
44
|
export declare class GlobalQueue extends Queue {
|
|
37
45
|
_running: boolean;
|
|
@@ -49,3 +57,4 @@ export declare const globalQueue: GlobalQueue;
|
|
|
49
57
|
*/
|
|
50
58
|
export declare function flush(): void;
|
|
51
59
|
export declare function transitionComplete(transition: Transition): boolean;
|
|
60
|
+
export {};
|