reactronic 0.24.104 → 0.24.107

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 CHANGED
@@ -198,7 +198,7 @@ class Component<P> extends React.Component<P> {
198
198
  } // ensureUpToDate is subscribed to render
199
199
 
200
200
  shouldComponentUpdate(): boolean {
201
- return !Rx.getController(this.render).isUpToDate
201
+ return !RxSystem.getController(this.render).isUpToDate
202
202
  }
203
203
 
204
204
  componentDidMount(): void {
@@ -206,7 +206,7 @@ class Component<P> extends React.Component<P> {
206
206
  }
207
207
 
208
208
  componentWillUnmount(): void {
209
- Transaction.run(null, Rx.dispose, this)
209
+ Transaction.run(null, RxSystem.dispose, this)
210
210
  }
211
211
  }
212
212
  ```
@@ -18,7 +18,7 @@ export declare abstract class RxNode<T = any> {
18
18
  abstract readonly declaration: Readonly<RxNodeDecl<T>>;
19
19
  abstract readonly level: number;
20
20
  abstract readonly owner: RxNode;
21
- abstract readonly element: T;
21
+ abstract element: T;
22
22
  abstract readonly host: RxNode;
23
23
  abstract readonly children: MergeListReader<RxNode>;
24
24
  abstract readonly slot: MergedItem<RxNode<T>> | undefined;
@@ -458,7 +458,6 @@ function updateNow(slot) {
458
458
  try {
459
459
  node.stamp++;
460
460
  node.numerator = 0;
461
- el.prepareForUpdate();
462
461
  node.children.beginMerge();
463
462
  const driver = node.driver;
464
463
  result = driver.update(el);
@@ -16,7 +16,7 @@ export { Changeset } from './impl/Changeset.js';
16
16
  export { Transaction } from './impl/Transaction.js';
17
17
  export { Monitor } from './impl/Monitor.js';
18
18
  export { Journal } from './impl/Journal.js';
19
- export { RxSystem as Rx, raw, obs, transactional, reactive, cached, transaction, unobs, sensitive, options } from './RxSystem.js';
19
+ export { RxSystem, raw, obs, transactional, reactive, cached, transaction, unobs, sensitive, options } from './RxSystem.js';
20
20
  export { Mode, Priority } from './RxNode.js';
21
21
  export type { Delegate, SimpleDelegate, RxNode, RxNodeDecl, RxNodeDriver, RxNodeContext } from './RxNode.js';
22
22
  export { RxTree, BaseDriver, RxNodeVariable } from './RxTree.js';
@@ -12,7 +12,7 @@ export { Changeset } from './impl/Changeset.js';
12
12
  export { Transaction } from './impl/Transaction.js';
13
13
  export { Monitor } from './impl/Monitor.js';
14
14
  export { Journal } from './impl/Journal.js';
15
- export { RxSystem as Rx, raw, obs, transactional, reactive, cached, transaction, unobs, sensitive, options } from './RxSystem.js';
15
+ export { RxSystem, raw, obs, transactional, reactive, cached, transaction, unobs, sensitive, options } from './RxSystem.js';
16
16
  export { Mode, Priority } from './RxNode.js';
17
17
  export { RxTree, BaseDriver, RxNodeVariable } from './RxTree.js';
18
18
  export { Clock } from './Clock.js';
@@ -97,7 +97,7 @@ export class ReactionImpl {
97
97
  }
98
98
  static dependencies() {
99
99
  const l = Launch.current;
100
- return l ? l.dependencies() : ['Rx.dependencies should be called from inside of reactive method'];
100
+ return l ? l.dependencies() : ['RxSystem.dependencies should be called from inside of reactive method'];
101
101
  }
102
102
  peek(args) {
103
103
  const ctx = Changeset.current();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reactronic",
3
- "version": "0.24.104",
3
+ "version": "0.24.107",
4
4
  "description": "Reactronic - Transactional Reactive State Management",
5
5
  "publisher": "Nezaboodka Software",
6
6
  "license": "Apache-2.0",