Socket
Book a DemoSign in
Socket

@solidjs/signals

Package Overview
Dependencies
Maintainers
2
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solidjs/signals - npm Package Compare versions

Comparing version
0.11.3
to
0.12.0
+9
-3
dist/types/core/core.d.ts

@@ -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";

{
"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