reactronic 0.93.25026 → 0.94.25027

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.
Files changed (43) hide show
  1. package/README.md +32 -32
  2. package/build/dist/source/Enums.d.ts +32 -0
  3. package/build/dist/source/Enums.js +37 -0
  4. package/build/dist/source/OperationEx.d.ts +7 -0
  5. package/build/dist/source/{ReactiveLoop.js → OperationEx.js} +8 -8
  6. package/build/dist/source/Options.d.ts +7 -27
  7. package/build/dist/source/Options.js +0 -24
  8. package/build/dist/source/Pipe.d.ts +2 -2
  9. package/build/dist/source/Pipe.js +2 -2
  10. package/build/dist/source/Ref.js +1 -1
  11. package/build/dist/source/{ReactiveSystem.d.ts → System.d.ts} +9 -10
  12. package/build/dist/source/{ReactiveSystem.js → System.js} +20 -15
  13. package/build/dist/source/api.d.ts +12 -10
  14. package/build/dist/source/api.js +10 -8
  15. package/build/dist/source/core/Changeset.d.ts +8 -7
  16. package/build/dist/source/core/Changeset.js +18 -18
  17. package/build/dist/source/core/Data.d.ts +6 -6
  18. package/build/dist/source/core/Data.js +2 -2
  19. package/build/dist/source/core/Indicator.d.ts +2 -2
  20. package/build/dist/source/core/Indicator.js +3 -3
  21. package/build/dist/source/core/Journal.d.ts +2 -2
  22. package/build/dist/source/core/Journal.js +7 -7
  23. package/build/dist/source/core/Meta.d.ts +1 -1
  24. package/build/dist/source/core/Meta.js +1 -1
  25. package/build/dist/source/core/Mvcc.d.ts +17 -16
  26. package/build/dist/source/core/Mvcc.js +30 -30
  27. package/build/dist/source/core/MvccArray.d.ts +3 -3
  28. package/build/dist/source/core/MvccArray.js +4 -4
  29. package/build/dist/source/core/MvccMap.d.ts +3 -3
  30. package/build/dist/source/core/MvccMap.js +4 -4
  31. package/build/dist/source/core/MvccMergeList.d.ts +2 -2
  32. package/build/dist/source/core/MvccMergeList.js +2 -2
  33. package/build/dist/source/core/Operation.d.ts +25 -25
  34. package/build/dist/source/core/Operation.js +205 -205
  35. package/build/dist/source/core/Transaction.d.ts +3 -3
  36. package/build/dist/source/core/Transaction.js +72 -72
  37. package/build/dist/source/core/Tree.d.ts +26 -0
  38. package/build/dist/source/core/Tree.js +120 -0
  39. package/build/dist/source/core/TreeNode.d.ts +117 -0
  40. package/build/dist/source/core/{ReactiveNode.js → TreeNode.js} +49 -177
  41. package/package.json +1 -1
  42. package/build/dist/source/ReactiveLoop.d.ts +0 -7
  43. package/build/dist/source/core/ReactiveNode.d.ts +0 -107
@@ -1,13 +1,13 @@
1
1
  import { F } from "../util/Utils.js";
2
- import { Operation, MemberOptions } from "../Options.js";
3
- import { FieldKey, ObjectHandle, FieldVersion, Reaction, Subscription, AbstractChangeset } from "./Data.js";
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 OperationImpl implements Operation<any> {
6
+ export declare class ReactiveOperationImpl implements ReactiveOperation<any> {
7
7
  readonly ownerHandle: ObjectHandle;
8
8
  readonly fieldKey: FieldKey;
9
- configure(options: Partial<MemberOptions>): MemberOptions;
10
- get options(): MemberOptions;
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): Launch;
21
- static getControllerOf(method: F<any>): Operation<any>;
22
- static configureImpl(self: OperationImpl | undefined, options: Partial<MemberOptions>): MemberOptions;
23
- static proceedWithinGivenLaunch<T>(launch: Launch | undefined, func: F<T>, ...args: any[]): 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 Launch extends FieldVersion implements Reaction {
35
- static current?: Launch;
36
- static queuedReactions: Array<Reaction>;
37
- static deferredReactiveOperations: Array<Launch>;
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 operation: OperationImpl;
40
+ readonly descriptor: ReactiveOperationImpl;
41
41
  readonly changeset: AbstractChangeset;
42
- triggers: Map<FieldVersion, Subscription> | undefined;
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: Launch | undefined;
52
- constructor(transaction: Transaction, operation: OperationImpl, changeset: AbstractChangeset, former: Launch | OptionsImpl, clone: boolean);
53
- get isLaunch(): boolean;
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): FieldVersion;
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(trigger: FieldVersion, fk: FieldKey, changeset: AbstractChangeset, h: ObjectHandle, outer: string, since: number, collector: Reaction[]): void;
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: Launch): this;
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 processDeferredReactiveFunctions;
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 migrateFieldVersion;
82
+ private static migrateContentFootprint;
83
83
  private static processQueuedReactions;
84
- private unsubscribeFromAllTriggers;
84
+ private unsubscribeFromAllObservables;
85
85
  private subscribeTo;
86
86
  private static canSubscribeTo;
87
- private static createOperation;
87
+ private static createOperationDescriptor;
88
88
  private static rememberOperationOptions;
89
89
  static init(): void;
90
90
  }