reactronic 0.24.117 → 0.24.118

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.
@@ -17,6 +17,6 @@ export { Transaction } from './core/Transaction.js';
17
17
  export { Monitor } from './core/Monitor.js';
18
18
  export { Journal } from './core/Journal.js';
19
19
  export { RxSystem, raw, obs, transactional, reactive, cached, transaction, unobs, sensitive, options } from './RxSystem.js';
20
- export { RxNode, Mode, Priority, BaseDriver, RxNodeVariable } from './tree/RxTree.js';
21
- export type { Delegate, SimpleDelegate, RxNodeDecl, RxNodeDriver, RxNodeContext } from './tree/RxTree.js';
20
+ export { RxNode, Mode, Priority, BaseDriver, RxNodeVariable } from './core/RxNode.js';
21
+ export type { Delegate, SimpleDelegate, RxNodeDecl, RxNodeDriver, RxNodeContext } from './core/RxNode.js';
22
22
  export { Clock } from './Clock.js';
@@ -13,5 +13,5 @@ export { Transaction } from './core/Transaction.js';
13
13
  export { Monitor } from './core/Monitor.js';
14
14
  export { Journal } from './core/Journal.js';
15
15
  export { RxSystem, raw, obs, transactional, reactive, cached, transaction, unobs, sensitive, options } from './RxSystem.js';
16
- export { RxNode, Mode, Priority, BaseDriver, RxNodeVariable } from './tree/RxTree.js';
16
+ export { RxNode, Mode, Priority, BaseDriver, RxNodeVariable } from './core/RxNode.js';
17
17
  export { Clock } from './Clock.js';
@@ -35,7 +35,7 @@ export declare abstract class RxNode<E = unknown> {
35
35
  static readonly longFrameDuration = 300;
36
36
  static currentUpdatePriority: Priority;
37
37
  static frameDuration: number;
38
- static declare<E = void>(driver: RxNodeDriver<E>, declaration?: RxNodeDecl<E>, preset?: RxNodeDecl<E>): RxNode<E>;
38
+ static acquire<E = void>(driver: RxNodeDriver<E>, declaration?: RxNodeDecl<E>, preset?: RxNodeDecl<E>): RxNode<E>;
39
39
  static get isFirstUpdate(): boolean;
40
40
  static get nodeStamp(): number;
41
41
  static triggerUpdate(node: RxNode<any>, triggers: unknown): void;
@@ -35,7 +35,7 @@ export var Priority;
35
35
  Priority[Priority["Background"] = 2] = "Background";
36
36
  })(Priority || (Priority = {}));
37
37
  export class RxNode {
38
- static declare(driver, declaration, preset) {
38
+ static acquire(driver, declaration, preset) {
39
39
  var _a;
40
40
  let result;
41
41
  if (declaration)
@@ -18,7 +18,7 @@ export function getCallerInfo(prefix) {
18
18
  const stack = error.stack || '';
19
19
  Error.stackTraceLimit = restore;
20
20
  const lines = stack.split('\n');
21
- let i = lines.findIndex(x => x.indexOf('.declare') >= 0);
21
+ let i = lines.findIndex(x => x.indexOf('.acquire') >= 0);
22
22
  i = i >= 0 ? i + 2 : 5;
23
23
  let caller = extractFunctionAndLocation(lines[i]);
24
24
  let location = caller;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reactronic",
3
- "version": "0.24.117",
3
+ "version": "0.24.118",
4
4
  "description": "Reactronic - Transactional Reactive State Management",
5
5
  "publisher": "Nezaboodka Software",
6
6
  "license": "Apache-2.0",