@solidjs/signals
Advanced tools
@@ -27,8 +27,14 @@ import { $REFRESH } from "./constants.js"; | ||
| /** | ||
| * Returns the current value stored inside the given compute function without triggering any | ||
| * dependencies. Use `untrack` if you want to also disable owner tracking. | ||
| * When set to a component name string, any reactive read that is not inside a nested tracking | ||
| * scope will log a dev-mode warning. Managed automatically by `untrack(fn, strictReadLabel)`. | ||
| */ | ||
| export declare let strictRead: string | false; | ||
| export declare function setStrictRead(v: string | false): string | false; | ||
| export declare function untrack<T>(fn: () => T): T; | ||
| /** | ||
| * Executes `fn` without tracking reactive dependencies. | ||
| * | ||
| * Pass a `strictReadLabel` string to enable strict-read warnings: any reactive read inside `fn` | ||
| * that is not inside a nested tracking scope will log a warning in dev mode. | ||
| */ | ||
| export declare function untrack<T>(fn: () => T, strictReadLabel?: string | false): T; | ||
| export declare function read<T>(el: Signal<T> | Computed<T>): T; | ||
@@ -35,0 +41,0 @@ export declare function setSignal<T>(el: Signal<T> | Computed<T>, v: T | ((prev: T) => T)): T; |
| export { ContextNotFoundError, NoOwnerError, NotReadyError } from "./error.js"; | ||
| export { isEqual, untrack, runWithOwner, computed, signal, read, setSignal, optimisticSignal, optimisticComputed, isPending, latest, refresh, isRefreshing, staleValues, setSnapshotCapture, markSnapshotScope, releaseSnapshotScope, clearSnapshots, setStrictRead } from "./core.js"; | ||
| export { isEqual, untrack, runWithOwner, computed, signal, read, setSignal, optimisticSignal, optimisticComputed, isPending, latest, refresh, isRefreshing, staleValues, setSnapshotCapture, markSnapshotScope, releaseSnapshotScope, clearSnapshots, } from "./core.js"; | ||
| export { createOwner, createRoot, dispose, getNextChildId, getObserver, getOwner, isDisposed, onCleanup, peekNextChildId } from "./owner.js"; | ||
@@ -9,3 +9,3 @@ export { createContext, getContext, setContext, type Context, type ContextRecord } from "./context.js"; | ||
| export { action } from "./action.js"; | ||
| export { flush, Queue, GlobalQueue, trackOptimisticStore, type IQueue, type QueueCallback } from "./scheduler.js"; | ||
| export { flush, Queue, GlobalQueue, trackOptimisticStore, setOnUnhandledAsync, type IQueue, type QueueCallback } from "./scheduler.js"; | ||
| export * from "./constants.js"; |
@@ -11,2 +11,3 @@ import { type Heap } from "./heap.js"; | ||
| export declare let projectionWriteActive: boolean; | ||
| export declare function setOnUnhandledAsync(fn: (() => void) | null): void; | ||
| export declare function setProjectionWriteActive(value: boolean): void; | ||
@@ -13,0 +14,0 @@ export type QueueCallback = (type: number) => void; |
@@ -1,2 +0,2 @@ | ||
| export { ContextNotFoundError, NoOwnerError, NotReadyError, action, createContext, createOwner, createRoot, runWithOwner, flush, getNextChildId, peekNextChildId, getContext, setContext, getOwner, onCleanup, isDisposed, getObserver, isEqual, untrack, isPending, latest, isRefreshing, refresh, SUPPORTS_PROXY, setSnapshotCapture, markSnapshotScope, releaseSnapshotScope, clearSnapshots, setStrictRead } from "./core/index.js"; | ||
| export { $REFRESH, ContextNotFoundError, NoOwnerError, NotReadyError, action, createContext, createOwner, createRoot, runWithOwner, flush, getNextChildId, peekNextChildId, getContext, setContext, getOwner, onCleanup, isDisposed, getObserver, isEqual, untrack, isPending, latest, isRefreshing, refresh, SUPPORTS_PROXY, setSnapshotCapture, markSnapshotScope, releaseSnapshotScope, clearSnapshots, setOnUnhandledAsync, } from "./core/index.js"; | ||
| export type { Owner, Context, ContextRecord, IQueue } from "./core/index.js"; | ||
@@ -3,0 +3,0 @@ export * from "./signals.js"; |
+1
-1
| { | ||
| "name": "@solidjs/signals", | ||
| "version": "0.11.3", | ||
| "version": "0.12.0", | ||
| "description": "SolidJS' standalone reactivity implementation", | ||
@@ -5,0 +5,0 @@ "author": "Ryan Carniato", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
297408
0.34%9861
0.24%