@solidjs/signals 0.10.7 → 0.10.8

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.
@@ -27,6 +27,8 @@ export declare function isEqual<T>(a: T, b: T): boolean;
27
27
  * Returns the current value stored inside the given compute function without triggering any
28
28
  * dependencies. Use `untrack` if you want to also disable owner tracking.
29
29
  */
30
+ export declare let strictRead: string | false;
31
+ export declare function setStrictRead(v: string | false): string | false;
30
32
  export declare function untrack<T>(fn: () => T): T;
31
33
  export declare function read<T>(el: Signal<T> | Computed<T>): T;
32
34
  export declare function setSignal<T>(el: Signal<T> | Computed<T>, v: T | ((prev: T) => T)): T;
@@ -1,5 +1,5 @@
1
1
  export { ContextNotFoundError, NoOwnerError, NotReadyError } from "./error.js";
2
- export { isEqual, untrack, runWithOwner, computed, signal, read, setSignal, optimisticSignal, optimisticComputed, isPending, pending, refresh, isRefreshing, staleValues, setSnapshotCapture, markSnapshotScope, releaseSnapshotScope, clearSnapshots } from "./core.js";
2
+ export { isEqual, untrack, runWithOwner, computed, signal, read, setSignal, optimisticSignal, optimisticComputed, isPending, pending, refresh, isRefreshing, staleValues, setSnapshotCapture, markSnapshotScope, releaseSnapshotScope, clearSnapshots, setStrictRead } from "./core.js";
3
3
  export { createOwner, createRoot, dispose, getNextChildId, getObserver, getOwner, isDisposed, onCleanup, peekNextChildId } from "./owner.js";
4
4
  export { createContext, getContext, setContext, type Context, type ContextRecord } from "./context.js";
5
5
  export { handleAsync } from "./async.js";
@@ -1,4 +1,4 @@
1
- export { ContextNotFoundError, NoOwnerError, NotReadyError, action, createContext, createOwner, createRoot, runWithOwner, flush, getNextChildId, peekNextChildId, getContext, setContext, getOwner, onCleanup, isDisposed, getObserver, isEqual, untrack, isPending, pending, isRefreshing, refresh, SUPPORTS_PROXY, setSnapshotCapture, markSnapshotScope, releaseSnapshotScope, clearSnapshots } from "./core/index.js";
1
+ export { ContextNotFoundError, NoOwnerError, NotReadyError, action, createContext, createOwner, createRoot, runWithOwner, flush, getNextChildId, peekNextChildId, getContext, setContext, getOwner, onCleanup, isDisposed, getObserver, isEqual, untrack, isPending, pending, isRefreshing, refresh, SUPPORTS_PROXY, setSnapshotCapture, markSnapshotScope, releaseSnapshotScope, clearSnapshots, setStrictRead } from "./core/index.js";
2
2
  export type { Owner, Context, ContextRecord, IQueue } from "./core/index.js";
3
3
  export * from "./signals.js";
4
4
  export { mapArray, repeat, type Maybe } from "./map.js";
@@ -10,6 +10,7 @@ export type Maybe<T> = T | void | null | undefined | false;
10
10
  export declare function mapArray<Item, MappedItem>(list: Accessor<Maybe<readonly Item[]>>, map: (value: Accessor<Item>, index: Accessor<number>) => MappedItem, options?: {
11
11
  keyed?: boolean | ((item: Item) => any);
12
12
  fallback?: Accessor<any>;
13
+ name?: string;
13
14
  }): Accessor<MappedItem[]>;
14
15
  /**
15
16
  * Reactively repeats a callback function the count provided - underlying helper for the `<Repeat>` control flow
@@ -19,4 +20,5 @@ export declare function mapArray<Item, MappedItem>(list: Accessor<Maybe<readonly
19
20
  export declare function repeat(count: Accessor<number>, map: (index: number) => any, options?: {
20
21
  from?: Accessor<number | undefined>;
21
22
  fallback?: Accessor<any>;
23
+ name?: string;
22
24
  }): Accessor<any[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidjs/signals",
3
- "version": "0.10.7",
3
+ "version": "0.10.8",
4
4
  "description": "SolidJS' standalone reactivity implementation",
5
5
  "author": "Ryan Carniato",
6
6
  "license": "MIT",