@solidjs/signals
Advanced tools
| import { type OptimisticLane } from "./lanes.js"; | ||
| import type { Computed } from "./types.js"; | ||
| export declare function settlePendingSource(el: Computed<any>): void; | ||
| export declare function handleAsync<T>(el: Computed<T>, result: T | PromiseLike<T> | AsyncIterable<T>, setter?: (value: T) => void): T; | ||
| export declare function clearStatus(el: Computed<any>): void; | ||
| export declare function clearStatus(el: Computed<any>, clearUninitialized?: boolean): void; | ||
| export declare function notifyStatus(el: Computed<any>, status: number, error: any, blockStatus?: boolean, lane?: OptimisticLane): void; |
| import type { Computed, NodeOptions, Owner } from "./types.js"; | ||
| export declare let leafEffectActive: boolean; | ||
| export interface Effect<T> extends Computed<T>, Owner { | ||
@@ -28,4 +27,5 @@ _effectFn: (val: T, prev: T | undefined) => void | (() => void); | ||
| * Internal tracked effect - bypasses heap, goes directly to effect queue. | ||
| * Children forbidden (__DEV__ throws). Uses stale reads. | ||
| * Runs as a leaf owner: child primitives and onCleanup are forbidden (__DEV__ throws). | ||
| * Uses stale reads. | ||
| */ | ||
| export declare function trackedEffect(fn: () => void | (() => void), options?: NodeOptions<any>): void; |
@@ -37,2 +37,6 @@ import { type QueueCallback, type Transition } from "./scheduler.js"; | ||
| }): OptimisticLane | undefined; | ||
| export declare function resolveTransition(el: { | ||
| _optimisticLane?: OptimisticLane; | ||
| _transition?: Transition | null; | ||
| }): Transition | null | undefined; | ||
| /** | ||
@@ -39,0 +43,0 @@ * Check if a node has an active optimistic override. |
@@ -14,2 +14,3 @@ import { type Heap } from "./heap.js"; | ||
| export declare function enforceLoadingBoundary(enabled: boolean): void; | ||
| export declare function shouldReadStashedOptimisticValue(node: Signal<any>): boolean; | ||
| export declare function setProjectionWriteActive(value: boolean): void; | ||
@@ -32,2 +33,4 @@ export type QueueCallback = (type: number) => void; | ||
| export declare function schedule(): void; | ||
| export declare function addTransitionBlocker(node: Computed<any>): void; | ||
| export declare function removeTransitionBlocker(node: Computed<any>): void; | ||
| export interface IQueue { | ||
@@ -34,0 +37,0 @@ enqueue(type: number, fn: QueueCallback): void; |
@@ -52,2 +52,3 @@ import type { NOT_PENDING } from "./constants.js"; | ||
| _transparent?: boolean; | ||
| _childrenForbidden?: boolean; | ||
| _snapshotScope?: boolean; | ||
@@ -69,2 +70,5 @@ _disposal: Disposable | Disposable[] | null; | ||
| _inSnapshotScope?: boolean; | ||
| _blocked?: boolean; | ||
| _pendingSource?: Computed<any>; | ||
| _pendingSources?: Set<Computed<any>>; | ||
| _error?: unknown; | ||
@@ -71,0 +75,0 @@ _statusFlags: number; |
+1
-1
| { | ||
| "name": "@solidjs/signals", | ||
| "version": "0.13.3", | ||
| "version": "0.13.4", | ||
| "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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
319116
5.29%10568
5.44%