alien-signals
Advanced tools
Comparing version 0.4.7 to 0.4.8
{ | ||
"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
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
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
54593
1683