@signaltree/enterprise 10.5.0 → 11.0.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.
@@ -11,8 +11,8 @@ function enterprise(options = {}) {
11
11
  const ensureEngine = () => {
12
12
  if (!updateEngine) {
13
13
  pathIndex = new PathIndex();
14
- pathIndex.buildFromTree(signalTree.state);
15
- updateEngine = new OptimizedUpdateEngine(signalTree.state);
14
+ pathIndex.buildFromTree(signalTree.$);
15
+ updateEngine = new OptimizedUpdateEngine(signalTree.$);
16
16
  }
17
17
  return updateEngine;
18
18
  };
@@ -26,13 +26,13 @@ function enterprise(options = {}) {
26
26
  };
27
27
  const runOptimized = (updates, opts) => {
28
28
  const engine = ensureEngine();
29
- const result = engine.update(signalTree.state, updates, opts);
29
+ const result = engine.update(signalTree.$, updates, opts);
30
30
  if (result.changed && pathIndex) {
31
31
  if (result.changedPaths.length) {
32
- pathIndex.incrementalUpdate(signalTree.state, result.changedPaths);
32
+ pathIndex.incrementalUpdate(signalTree.$, result.changedPaths);
33
33
  } else {
34
34
  pathIndex.clear();
35
- pathIndex.buildFromTree(signalTree.state);
35
+ pathIndex.buildFromTree(signalTree.$);
36
36
  }
37
37
  }
38
38
  notifyListeners(result.changedPaths);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signaltree/enterprise",
3
- "version": "10.5.0",
3
+ "version": "11.0.0",
4
4
  "description": "Enterprise optimizations for SignalTree reactive JSON. Diff-based updates, bulk operations, and advanced change tracking for large-scale applications.",
5
5
  "license": "BSL-1.1",
6
6
  "type": "module",
@@ -68,7 +68,7 @@
68
68
  },
69
69
  "peerDependencies": {
70
70
  "@angular/core": "^20.0.0 || ^21.0.0",
71
- "@signaltree/core": "workspace:*",
71
+ "@signaltree/core": "^11.0.0",
72
72
  "tslib": "^2.0.0"
73
73
  },
74
74
  "peerDependenciesMeta": {},