@solidjs/signals 0.8.0 → 0.8.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.
@@ -1,5 +1,5 @@
1
1
  import { Queue, type Computed, type Effect } from "./core/index.js";
2
- import type { Signal } from "./core/index.js";
2
+ import type { QueueCallback, Signal } from "./core/index.js";
3
3
  export interface BoundaryComputed<T> extends Computed<T> {
4
4
  _propagationMask: number;
5
5
  }
@@ -7,8 +7,10 @@ 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;
13
+ enqueue(type: number, fn: QueueCallback): void;
12
14
  notify(node: Effect<any>, type: number, flags: number): boolean;
13
15
  }
14
16
  export declare enum BoundaryMode {
@@ -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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidjs/signals",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "",
5
5
  "author": "Ryan Carniato",
6
6
  "license": "MIT",