reactronic 0.93.25026 → 0.94.25028
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -32
- package/build/dist/source/Enums.d.ts +32 -0
- package/build/dist/source/Enums.js +37 -0
- package/build/dist/source/OperationEx.d.ts +7 -0
- package/build/dist/source/{ReactiveLoop.js → OperationEx.js} +8 -8
- package/build/dist/source/Options.d.ts +7 -27
- package/build/dist/source/Options.js +0 -24
- package/build/dist/source/Pipe.d.ts +2 -2
- package/build/dist/source/Pipe.js +2 -2
- package/build/dist/source/Ref.js +1 -1
- package/build/dist/source/{ReactiveSystem.d.ts → System.d.ts} +9 -10
- package/build/dist/source/{ReactiveSystem.js → System.js} +20 -15
- package/build/dist/source/api.d.ts +12 -10
- package/build/dist/source/api.js +10 -8
- package/build/dist/source/core/Changeset.d.ts +8 -7
- package/build/dist/source/core/Changeset.js +18 -18
- package/build/dist/source/core/Data.d.ts +6 -6
- package/build/dist/source/core/Data.js +2 -2
- package/build/dist/source/core/Indicator.d.ts +2 -2
- package/build/dist/source/core/Indicator.js +3 -3
- package/build/dist/source/core/Journal.d.ts +2 -2
- package/build/dist/source/core/Journal.js +7 -7
- package/build/dist/source/core/Meta.d.ts +1 -1
- package/build/dist/source/core/Meta.js +1 -1
- package/build/dist/source/core/Mvcc.d.ts +17 -16
- package/build/dist/source/core/Mvcc.js +30 -30
- package/build/dist/source/core/MvccArray.d.ts +3 -3
- package/build/dist/source/core/MvccArray.js +4 -4
- package/build/dist/source/core/MvccMap.d.ts +3 -3
- package/build/dist/source/core/MvccMap.js +4 -4
- package/build/dist/source/core/MvccMergeList.d.ts +2 -2
- package/build/dist/source/core/MvccMergeList.js +2 -2
- package/build/dist/source/core/Operation.d.ts +25 -25
- package/build/dist/source/core/Operation.js +205 -205
- package/build/dist/source/core/Transaction.d.ts +3 -3
- package/build/dist/source/core/Transaction.js +72 -72
- package/build/dist/source/core/Tree.d.ts +19 -0
- package/build/dist/source/core/Tree.js +99 -0
- package/build/dist/source/core/TreeNode.d.ts +124 -0
- package/build/dist/source/core/{ReactiveNode.js → TreeNode.js} +56 -163
- package/package.json +1 -1
- package/build/dist/source/ReactiveLoop.d.ts +0 -7
- package/build/dist/source/core/ReactiveNode.d.ts +0 -107
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { F } from "../util/Utils.js";
|
|
2
|
-
import {
|
|
3
|
-
import { FieldKey, ObjectHandle,
|
|
2
|
+
import { ReactiveOperation, ReactivityOptions } from "../Options.js";
|
|
3
|
+
import { FieldKey, ObjectHandle, ContentFootprint, OperationFootprint, Subscription, AbstractChangeset } from "./Data.js";
|
|
4
4
|
import { Transaction } from "./Transaction.js";
|
|
5
5
|
import { OptionsImpl } from "./Mvcc.js";
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class ReactiveOperationImpl implements ReactiveOperation<any> {
|
|
7
7
|
readonly ownerHandle: ObjectHandle;
|
|
8
8
|
readonly fieldKey: FieldKey;
|
|
9
|
-
configure(options: Partial<
|
|
10
|
-
get options():
|
|
9
|
+
configure(options: Partial<ReactivityOptions>): ReactivityOptions;
|
|
10
|
+
get options(): ReactivityOptions;
|
|
11
11
|
get nonreactive(): any;
|
|
12
12
|
get args(): ReadonlyArray<any>;
|
|
13
13
|
get result(): any;
|
|
@@ -17,10 +17,10 @@ export declare class OperationImpl implements Operation<any> {
|
|
|
17
17
|
markObsolete(): void;
|
|
18
18
|
pullLastResult(args?: any[]): any;
|
|
19
19
|
constructor(h: ObjectHandle, fk: FieldKey);
|
|
20
|
-
reuseOrRelaunch(weak: boolean, args: any[] | undefined):
|
|
21
|
-
static
|
|
22
|
-
static configureImpl(self:
|
|
23
|
-
static proceedWithinGivenLaunch<T>(
|
|
20
|
+
reuseOrRelaunch(weak: boolean, args: any[] | undefined): OperationFootprintImpl;
|
|
21
|
+
static manageReactiveOperation(method: F<any>): ReactiveOperation<any>;
|
|
22
|
+
static configureImpl(self: ReactiveOperationImpl | undefined, options: Partial<ReactivityOptions>): ReactivityOptions;
|
|
23
|
+
static proceedWithinGivenLaunch<T>(footprint: OperationFootprintImpl | undefined, func: F<T>, ...args: any[]): T;
|
|
24
24
|
static why(): string;
|
|
25
25
|
static briefWhy(): string;
|
|
26
26
|
static dependencies(): string[];
|
|
@@ -31,15 +31,15 @@ export declare class OperationImpl implements Operation<any> {
|
|
|
31
31
|
private relaunch;
|
|
32
32
|
private static markObsolete;
|
|
33
33
|
}
|
|
34
|
-
declare class
|
|
35
|
-
static current?:
|
|
36
|
-
static queuedReactions: Array<
|
|
37
|
-
static
|
|
34
|
+
declare class OperationFootprintImpl extends ContentFootprint implements OperationFootprint {
|
|
35
|
+
static current?: OperationFootprintImpl;
|
|
36
|
+
static queuedReactions: Array<OperationFootprint>;
|
|
37
|
+
static deferredReactions: Array<OperationFootprintImpl>;
|
|
38
38
|
readonly margin: number;
|
|
39
39
|
readonly transaction: Transaction;
|
|
40
|
-
readonly
|
|
40
|
+
readonly descriptor: ReactiveOperationImpl;
|
|
41
41
|
readonly changeset: AbstractChangeset;
|
|
42
|
-
|
|
42
|
+
observables: Map<ContentFootprint, Subscription> | undefined;
|
|
43
43
|
options: OptionsImpl;
|
|
44
44
|
cause: string | undefined;
|
|
45
45
|
args: any[];
|
|
@@ -48,22 +48,22 @@ declare class Launch extends FieldVersion implements Reaction {
|
|
|
48
48
|
started: number;
|
|
49
49
|
obsoleteDueTo: string | undefined;
|
|
50
50
|
obsoleteSince: number;
|
|
51
|
-
successor:
|
|
52
|
-
constructor(transaction: Transaction,
|
|
53
|
-
get
|
|
51
|
+
successor: OperationFootprintImpl | undefined;
|
|
52
|
+
constructor(transaction: Transaction, descriptor: ReactiveOperationImpl, changeset: AbstractChangeset, former: OperationFootprintImpl | OptionsImpl, clone: boolean);
|
|
53
|
+
get isComputed(): boolean;
|
|
54
54
|
hint(): string;
|
|
55
55
|
get order(): number;
|
|
56
56
|
get ["#this#"](): string;
|
|
57
|
-
clone(t: Transaction, cs: AbstractChangeset):
|
|
57
|
+
clone(t: Transaction, cs: AbstractChangeset): ContentFootprint;
|
|
58
58
|
why(): string;
|
|
59
59
|
briefWhy(): string;
|
|
60
60
|
dependencies(): string[];
|
|
61
61
|
wrap<T>(func: F<T>): F<T>;
|
|
62
62
|
proceed(proxy: any, args: any[] | undefined): void;
|
|
63
|
-
markObsoleteDueTo(
|
|
63
|
+
markObsoleteDueTo(footprint: ContentFootprint, fk: FieldKey, changeset: AbstractChangeset, h: ObjectHandle, outer: string, since: number, collector: OperationFootprint[]): void;
|
|
64
64
|
relaunchIfNotUpToDate(now: boolean, nothrow: boolean): void;
|
|
65
65
|
isNotUpToDate(): boolean;
|
|
66
|
-
reenterOver(head:
|
|
66
|
+
reenterOver(head: OperationFootprintImpl): this;
|
|
67
67
|
private static proceed;
|
|
68
68
|
private enter;
|
|
69
69
|
private leaveOrAsync;
|
|
@@ -71,7 +71,7 @@ declare class Launch extends FieldVersion implements Reaction {
|
|
|
71
71
|
private indicatorEnter;
|
|
72
72
|
private indicatorLeave;
|
|
73
73
|
private addToDeferredReactiveFunctions;
|
|
74
|
-
private static
|
|
74
|
+
private static processDeferredReactions;
|
|
75
75
|
private static markUsed;
|
|
76
76
|
private static markEdited;
|
|
77
77
|
private static tryResolveConflict;
|
|
@@ -79,12 +79,12 @@ declare class Launch extends FieldVersion implements Reaction {
|
|
|
79
79
|
private static revokeAllSubscriptions;
|
|
80
80
|
private static propagateFieldChangeThroughSubscriptions;
|
|
81
81
|
private static enqueueReactionsToRun;
|
|
82
|
-
private static
|
|
82
|
+
private static migrateContentFootprint;
|
|
83
83
|
private static processQueuedReactions;
|
|
84
|
-
private
|
|
84
|
+
private unsubscribeFromAllObservables;
|
|
85
85
|
private subscribeTo;
|
|
86
86
|
private static canSubscribeTo;
|
|
87
|
-
private static
|
|
87
|
+
private static createOperationDescriptor;
|
|
88
88
|
private static rememberOperationOptions;
|
|
89
89
|
static init(): void;
|
|
90
90
|
}
|