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.9.4 to 5.10.0

dist/dev/chunks/chunk-GFKJ6O53.js

2

dist/dev/index.js

@@ -1,1 +0,1 @@

export { SCOPE, computed, createComputation, createScope, effect, getContext, getScope, isFunction, isNotEqual, isReadSignal, isWriteSignal, onDispose, onError, peek, readonly, root, scoped, setContext, signal, tick, untrack } from './chunks/chunk-FL5XB3CA.js';
export { SCOPE, computed, createComputation, createScope, effect, getContext, getScope, isFunction, isNotEqual, isReadSignal, isWriteSignal, onDispose, onError, peek, readonly, root, scoped, setContext, signal, tick, untrack } from './chunks/chunk-GFKJ6O53.js';

@@ -1,2 +0,2 @@

import { effect, write, onDispose, read, isNotEqual, createComputation, createScope, scoped, dispose, compute } from './chunks/chunk-FL5XB3CA.js';
import { effect, write, onDispose, read, isNotEqual, createComputation, createScope, scoped, dispose, compute } from './chunks/chunk-GFKJ6O53.js';

@@ -3,0 +3,0 @@ // src/selector.ts

@@ -1,1 +0,1 @@

export { SCOPE, computed, createComputation, createScope, effect, getContext, getScope, isFunction, isNotEqual, isReadSignal, isWriteSignal, onDispose, onError, peek, readonly, root, scoped, setContext, signal, tick, untrack } from './chunks/chunk-MUVTVDFO.js';
export { SCOPE, computed, createComputation, createScope, effect, getContext, getScope, isFunction, isNotEqual, isReadSignal, isWriteSignal, onDispose, onError, peek, readonly, root, scoped, setContext, signal, tick, untrack } from './chunks/chunk-YJEUSFFQ.js';

@@ -1,2 +0,2 @@

import { effect, write, onDispose, read, isNotEqual, createComputation, createScope, scoped, dispose, compute } from './chunks/chunk-MUVTVDFO.js';
import { effect, write, onDispose, read, isNotEqual, createComputation, createScope, scoped, dispose, compute } from './chunks/chunk-YJEUSFFQ.js';

@@ -16,3 +16,3 @@ // src/selector.ts

nodes.set(key, node = new Selector(key, key === currentKey, nodes));
node.r += 1;
node.s += 1;
onDispose(node);

@@ -25,5 +25,5 @@ return read.bind(node);

0;
this.u = key;
this.k = initialValue;
this.r = 0;
this.v = key;
this.l = initialValue;
this.s = 0;
this.c = nodes;

@@ -33,7 +33,7 @@ this.d = null;

var SelectorProto = Selector.prototype;
SelectorProto.q = isNotEqual;
SelectorProto.r = isNotEqual;
SelectorProto.call = function() {
this.r -= 1;
if (!this.r) {
this.c.delete(this.u);
this.s -= 1;
if (!this.s) {
this.c.delete(this.v);
this.c = null;

@@ -49,7 +49,7 @@ }

updateMap.bind({
n: createScope(),
o: createScope(),
h: 0,
s: list,
t: list,
g: [],
o: map,
p: map,
f: [],

@@ -63,7 +63,7 @@ c: []

function updateMap() {
let i = 0, newItems = this.s() || [], mapper = () => this.o(read.bind(this.c[i]), i);
let i = 0, newItems = this.t() || [], mapper = () => this.p(read.bind(this.c[i]), i);
scoped(() => {
if (newItems.length === 0) {
if (this.h !== 0) {
dispose.call(this.n, false);
dispose.call(this.o, false);
this.g = [];

@@ -92,3 +92,3 @@ this.f = [];

this.f = this.f.slice(0, this.h);
}, this.n);
}, this.o);
return this.f;

@@ -101,7 +101,7 @@ }

updateKeyedMap.bind({
n: createScope(),
o: createScope(),
h: 0,
s: list,
t: list,
g: [],
o: map,
p: map,
f: [],

@@ -115,8 +115,8 @@ c: []

function updateKeyedMap() {
const newItems = this.s() || [], indexed = this.o.length > 1;
const newItems = this.t() || [], indexed = this.p.length > 1;
scoped(() => {
let newLen = newItems.length, i, j, mapper = indexed ? () => this.o(newItems[j], read.bind(this.c[j])) : () => this.o(newItems[j]);
let newLen = newItems.length, i, j, mapper = indexed ? () => this.p(newItems[j], read.bind(this.c[j])) : () => this.p(newItems[j]);
if (newLen === 0) {
if (this.h !== 0) {
dispose.call(this.n, false);
dispose.call(this.o, false);
this.c = [];

@@ -181,3 +181,3 @@ this.g = [];

}
}, this.n);
}, this.o);
return this.f;

@@ -184,0 +184,0 @@ }

@@ -1,1 +0,1 @@

export { SCOPE, computed, createComputation, createScope, effect, getContext, getScope, isFunction, isNotEqual, isReadSignal, isWriteSignal, onDispose, onError, peek, readonly, root, scoped, setContext, signal, tick, untrack } from './chunks/chunk-K4TRMH57.js';
export { SCOPE, computed, createComputation, createScope, effect, getContext, getScope, isFunction, isNotEqual, isReadSignal, isWriteSignal, onDispose, onError, peek, readonly, root, scoped, setContext, signal, tick, untrack } from './chunks/chunk-T2JYM7F2.js';

@@ -1,2 +0,2 @@

import { effect, write, onDispose, read, isNotEqual, createComputation, createScope, scoped, dispose, compute } from './chunks/chunk-K4TRMH57.js';
import { effect, write, onDispose, read, isNotEqual, createComputation, createScope, scoped, dispose, compute } from './chunks/chunk-T2JYM7F2.js';

@@ -16,3 +16,3 @@ // src/selector.ts

nodes.set(key, node = new Selector(key, key === currentKey, nodes));
node.r += 1;
node.s += 1;
onDispose(node);

@@ -25,5 +25,5 @@ return read.bind(node);

0;
this.u = key;
this.k = initialValue;
this.r = 0;
this.v = key;
this.l = initialValue;
this.s = 0;
this.c = nodes;

@@ -33,7 +33,7 @@ this.d = null;

var SelectorProto = Selector.prototype;
SelectorProto.q = isNotEqual;
SelectorProto.r = isNotEqual;
SelectorProto.call = function() {
this.r -= 1;
if (!this.r) {
this.c.delete(this.u);
this.s -= 1;
if (!this.s) {
this.c.delete(this.v);
this.c = null;

@@ -49,7 +49,7 @@ }

updateMap.bind({
n: createScope(),
o: createScope(),
h: 0,
s: list,
t: list,
g: [],
o: map,
p: map,
f: [],

@@ -63,7 +63,7 @@ c: []

function updateMap() {
let i = 0, newItems = this.s() || [], mapper = () => this.o(read.bind(this.c[i]), i);
let i = 0, newItems = this.t() || [], mapper = () => this.p(read.bind(this.c[i]), i);
scoped(() => {
if (newItems.length === 0) {
if (this.h !== 0) {
dispose.call(this.n, false);
dispose.call(this.o, false);
this.g = [];

@@ -92,3 +92,3 @@ this.f = [];

this.f = this.f.slice(0, this.h);
}, this.n);
}, this.o);
return this.f;

@@ -101,7 +101,7 @@ }

updateKeyedMap.bind({
n: createScope(),
o: createScope(),
h: 0,
s: list,
t: list,
g: [],
o: map,
p: map,
f: [],

@@ -115,8 +115,8 @@ c: []

function updateKeyedMap() {
const newItems = this.s() || [], indexed = this.o.length > 1;
const newItems = this.t() || [], indexed = this.p.length > 1;
scoped(() => {
let newLen = newItems.length, i, j, mapper = indexed ? () => this.o(newItems[j], read.bind(this.c[j])) : () => this.o(newItems[j]);
let newLen = newItems.length, i, j, mapper = indexed ? () => this.p(newItems[j], read.bind(this.c[j])) : () => this.p(newItems[j]);
if (newLen === 0) {
if (this.h !== 0) {
dispose.call(this.n, false);
dispose.call(this.o, false);
this.c = [];

@@ -181,3 +181,3 @@ this.g = [];

}
}, this.n);
}, this.o);
return this.f;

@@ -184,0 +184,0 @@ }

@@ -55,2 +55,4 @@ import type { SCOPE } from './symbols';

/** @internal */
_handlers: ErrorHandler<any>[] | null;
/** @internal */
_disposal: Disposable | Disposable[] | null;

@@ -79,1 +81,4 @@ append(scope: Scope): void;

export type ContextRecord = Record<string | symbol, unknown>;
export interface ErrorHandler<T = Error> {
(error: T): void;
}

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "5.9.4",
"version": "5.10.0",
"type": "module",

@@ -8,0 +8,0 @@ "types": "dist/types/index.d.ts",

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