Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More →
Socket
Sign inDemoInstall
Socket

@maverick-js/signals

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maverick-js/signals - npm Package Compare versions

Comparing version 5.6.5 to 5.7.0

dist/dev/chunks/chunk-ABCDPNOY.js

2

dist/dev/index.js

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡ïļ by Socket Inc