@jay-framework/reactive 0.12.0 → 0.14.0

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 (2) hide show
  1. package/dist/tracing.js +10 -16
  2. package/package.json +2 -2
package/dist/tracing.js CHANGED
@@ -1,22 +1,16 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => {
4
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
- return value;
6
- };
7
1
  import { Reactive, MeasureOfChange, setMkReactive } from "./index.js";
8
2
  class ReactiveTracer {
9
3
  constructor(flushToConsole = false) {
10
- __publicField(this, "log", []);
11
- __publicField(this, "getStates", []);
12
- __publicField(this, "setStates", []);
13
- __publicField(this, "scheduledReactions", []);
14
- __publicField(this, "inReaction", -1);
15
- __publicField(this, "batches", []);
16
- __publicField(this, "reactionLogPosition", []);
17
- __publicField(this, "ident", "");
18
- __publicField(this, "settingSignalFromBatch", "");
19
4
  this.flushToConsole = flushToConsole;
5
+ this.log = [];
6
+ this.getStates = [];
7
+ this.setStates = [];
8
+ this.scheduledReactions = [];
9
+ this.inReaction = -1;
10
+ this.batches = [];
11
+ this.reactionLogPosition = [];
12
+ this.ident = "";
13
+ this.settingSignalFromBatch = "";
20
14
  }
21
15
  logGetState(name) {
22
16
  if (this.inReaction > -1)
@@ -126,9 +120,9 @@ function formatReactionName(num) {
126
120
  class ReactiveWithTracking extends Reactive {
127
121
  constructor(name, reactiveTracer) {
128
122
  super();
129
- __publicField(this, "stateIndex", 1);
130
123
  this.name = name;
131
124
  this.reactiveTracer = reactiveTracer;
125
+ this.stateIndex = 1;
132
126
  }
133
127
  createSignal(value, measureOfChange = MeasureOfChange.FULL) {
134
128
  const stateName = this.name + this.stateIndex++;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jay-framework/reactive",
3
- "version": "0.12.0",
3
+ "version": "0.14.0",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "test:watch": "vitest"
25
25
  },
26
26
  "devDependencies": {
27
- "@jay-framework/dev-environment": "^0.12.0",
27
+ "@jay-framework/dev-environment": "^0.14.0",
28
28
  "@types/node": "^20.11.5",
29
29
  "rimraf": "^5.0.5",
30
30
  "tsup": "^8.0.1",