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

alien-signals

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alien-signals - npm Package Compare versions

Comparing version 0.4.7 to 0.4.8

2

package.json
{
"name": "alien-signals",
"version": "0.4.7",
"version": "0.4.8",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "The lightest signal library.",

@@ -16,5 +16,5 @@ <p align="center">

The goal of `alien-signals` is to create a push-pull model based signal library with the lowest overhead.
The goal of `alien-signals` is to create a ~~push-pull~~ [push-pull-push model](https://github.com/stackblitz/alien-signals/pull/19) based signal library with the lowest overhead.
We have set the following scheduling logic constraints:
We have set the following constraints in scheduling logic:

@@ -21,0 +21,0 @@ 1. No dynamic object fields

@@ -15,3 +15,3 @@ import { IComputed, Link, SubscriberFlags } from './system.js';

get(): T;
update(): T;
update(): boolean;
}

@@ -6,6 +6,5 @@ export interface IEffect extends Subscriber {

export interface IComputed extends Dependency, Subscriber {
update(): any;
update(): boolean;
}
export interface Dependency {
currentValue?: any;
subs: Link | undefined;

@@ -23,3 +22,2 @@ subsTail: Link | undefined;

sub: Subscriber | IComputed | (Dependency & IEffect) | IEffect;
value: any;
prevSub: Link | undefined;

@@ -32,4 +30,4 @@ nextSub: Link | undefined;

Tracking = 1,
CanPropagate = 2,
RunInnerEffects = 4,
Recursed = 2,
InnerEffectsPending = 4,
ToCheckDirty = 8,

@@ -42,4 +40,6 @@ Dirty = 16

export declare function propagate(subs: Link): void;
export declare function shallowPropagate(link: Link): void;
export declare function isValidLink(subLink: Link, sub: Subscriber): boolean;
export declare function checkDirty(link: Link): boolean;
export declare function startTrack(sub: Subscriber): void;
export declare function endTrack(sub: Subscriber): void;

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