@maverick-js/signals
Advanced tools
Comparing version 5.6.5 to 5.7.0
@@ -1,1 +0,1 @@ | ||
export { SCOPE, computed, effect, getContext, getScope, isFunction, isNotEqual, isReadSignal, isWriteSignal, onDispose, onError, peek, readonly, root, scoped, setContext, signal, tick, untrack } from './chunks/chunk-LCACZ65R.js'; | ||
export { SCOPE, computed, effect, getContext, getScope, isFunction, isNotEqual, isReadSignal, isWriteSignal, onDispose, onError, peek, readonly, root, scoped, setContext, signal, tick, untrack } from './chunks/chunk-ABCDPNOY.js'; |
@@ -1,2 +0,2 @@ | ||
import { effect, write, onDispose, read, isNotEqual, createComputation, createScope, scoped, dispose, compute } from './chunks/chunk-LCACZ65R.js'; | ||
import { effect, write, onDispose, read, isNotEqual, createComputation, createScope, scoped, dispose, compute } from './chunks/chunk-ABCDPNOY.js'; | ||
@@ -3,0 +3,0 @@ // src/selector.ts |
@@ -1,1 +0,1 @@ | ||
export { SCOPE, computed, effect, getContext, getScope, isFunction, isNotEqual, isReadSignal, isWriteSignal, onDispose, onError, peek, readonly, root, scoped, setContext, signal, tick, untrack } from './chunks/chunk-IWWNKX5N.js'; | ||
export { SCOPE, computed, effect, getContext, getScope, isFunction, isNotEqual, isReadSignal, isWriteSignal, onDispose, onError, peek, readonly, root, scoped, setContext, signal, tick, untrack } from './chunks/chunk-DQUSPEAV.js'; |
@@ -1,2 +0,2 @@ | ||
import { effect, write, onDispose, read, isNotEqual, createComputation, createScope, scoped, dispose, compute } from './chunks/chunk-IWWNKX5N.js'; | ||
import { effect, write, onDispose, read, isNotEqual, createComputation, createScope, scoped, dispose, compute } from './chunks/chunk-DQUSPEAV.js'; | ||
@@ -3,0 +3,0 @@ // src/selector.ts |
@@ -1,1 +0,1 @@ | ||
export { SCOPE, computed, effect, getContext, getScope, isFunction, isNotEqual, isReadSignal, isWriteSignal, onDispose, onError, peek, readonly, root, scoped, setContext, signal, tick, untrack } from './chunks/chunk-O32V2YYU.js'; | ||
export { SCOPE, computed, effect, getContext, getScope, isFunction, isNotEqual, isReadSignal, isWriteSignal, onDispose, onError, peek, readonly, root, scoped, setContext, signal, tick, untrack } from './chunks/chunk-LCJZBPJV.js'; |
@@ -1,2 +0,2 @@ | ||
import { effect, write, onDispose, read, isNotEqual, createComputation, createScope, scoped, dispose, compute } from './chunks/chunk-O32V2YYU.js'; | ||
import { effect, write, onDispose, read, isNotEqual, createComputation, createScope, scoped, dispose, compute } from './chunks/chunk-LCJZBPJV.js'; | ||
@@ -3,0 +3,0 @@ // src/selector.ts |
import type { SCOPE } from './symbols'; | ||
export interface Computation<T = any> extends Scope { | ||
id?: string | undefined; | ||
/** @internal */ | ||
_scoped: boolean; | ||
/** @internal */ | ||
_init: boolean; | ||
/** @internal */ | ||
_value: T; | ||
/** @internal */ | ||
_sources: Computation[] | null; | ||
/** @internal */ | ||
_observers: Computation[] | null; | ||
/** @internal */ | ||
_compute: (() => T) | null; | ||
/** @internal */ | ||
_changed: (prev: T, next: T) => boolean; | ||
@@ -38,8 +45,15 @@ /** read */ | ||
[SCOPE]: Scope | null; | ||
/** @internal */ | ||
_state: number; | ||
/** @internal */ | ||
_compute: unknown; | ||
/** @internal */ | ||
_prevSibling: Scope | null; | ||
/** @internal */ | ||
_nextSibling: Scope | null; | ||
/** @internal */ | ||
_context: ContextRecord | null; | ||
/** @internal */ | ||
_disposal: Disposable | Disposable[] | null; | ||
append(scope: Scope): void; | ||
} | ||
@@ -46,0 +60,0 @@ export interface Dispose { |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "5.6.5", | ||
"version": "5.7.0", | ||
"type": "module", | ||
@@ -8,0 +8,0 @@ "types": "dist/types/index.d.ts", |
@@ -254,4 +254,4 @@ # Signals | ||
Returns the current value stored inside the given compute function without triggering any | ||
dependencies. Use [`untrack`](#untrack) if you want to also disable scope tracking. | ||
Returns the current value stored inside the given compute function whilst disabling observer tracking, i.e. | ||
without triggering any dependencies. Use [`untrack`](#untrack) if you want to also disable scope tracking. | ||
@@ -471,2 +471,3 @@ ```js | ||
isReadSignal(() => {}); | ||
isReadSignal(signal(10)); | ||
isReadSignal(computed(() => 10)); | ||
@@ -473,0 +474,0 @@ isReadSignal(readonly(signal(10))); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
96477
2652
675
1