@camstack/server 1.2.720 → 1.2.722

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/CHANGELOG.md CHANGED
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.2.722] - 2026-11-01
11
+
12
+ ### Changed
13
+
14
+ - Rebuilt against updated dependencies.
15
+
16
+ ## [1.2.721] - 2026-11-01
17
+
18
+ ### Changed
19
+
20
+ - Addons loaded in the hub process take the active server's packages ahead of an older copy left by the image (benchmark failed to load on 1.2.720).
21
+
10
22
  ## [1.2.720] - 2026-11-01
11
23
 
12
24
  ### Changed
@@ -35,6 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.frameworkNodePaths = frameworkNodePaths;
37
37
  exports.isActiveFrameworkRoot = isActiveFrameworkRoot;
38
+ exports.composeNodePath = composeNodePath;
38
39
  const path = __importStar(require("node:path"));
39
40
  /**
40
41
  * The framework's node_modules path to prepend to NODE_PATH so the CJS hub
@@ -60,3 +61,14 @@ function isActiveFrameworkRoot(activeRoot, exists) {
60
61
  return false;
61
62
  return exists(path.join(activeRoot, 'node_modules', '@camstack', 'server', 'system', 'package.json'));
62
63
  }
64
+ /**
65
+ * NODE_PATH with the active closure's paths FIRST. CJS tries NODE_PATH entries
66
+ * in order, so an inherited entry (an image's `/data/framework/node_modules`)
67
+ * placed ahead would serve its stale `@camstack/types` to every hub-loaded
68
+ * addon — benchmark failed on .50 with `customAction is not a function`.
69
+ * Duplicates keep their first position.
70
+ */
71
+ function composeNodePath(inherited, preferred, sep) {
72
+ const inheritedEntries = (inherited ?? '').split(sep).filter((p) => p.length > 0);
73
+ return [...new Set([...preferred, ...inheritedEntries])].join(sep);
74
+ }
package/dist/launcher.js CHANGED
@@ -519,9 +519,7 @@ async function launch() {
519
519
  }
520
520
  if (extraNodePaths.length > 0) {
521
521
  const sep = process.platform === 'win32' ? ';' : ':';
522
- process.env['NODE_PATH'] = process.env['NODE_PATH']
523
- ? `${process.env['NODE_PATH']}${sep}${extraNodePaths.join(sep)}`
524
- : extraNodePaths.join(sep);
522
+ process.env['NODE_PATH'] = (0, framework_nodepath_js_1.composeNodePath)(process.env['NODE_PATH'], extraNodePaths, sep);
525
523
  // Re-init Node's module path cache so the change takes effect for
526
524
  // subsequent require()/import() calls. Without this the resolver
527
525
  // already cached the empty list at startup.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/server",
3
- "version": "1.2.720",
3
+ "version": "1.2.722",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -65,7 +65,20 @@
65
65
  "@camstack/addon-agent-ui"
66
66
  ],
67
67
  "requires": {
68
- "addons": {},
68
+ "addons": {
69
+ "@camstack/addon-admin-ui": ">=1.2.543",
70
+ "@camstack/addon-pipeline-orchestrator": ">=1.2.649",
71
+ "@camstack/addon-provider-dreame": ">=0.2.163",
72
+ "@camstack/addon-provider-dreo": ">=0.2.153",
73
+ "@camstack/addon-provider-ecowitt": ">=0.2.154",
74
+ "@camstack/addon-provider-enpal": ">=0.1.7",
75
+ "@camstack/addon-provider-homematic": ">=1.2.175",
76
+ "@camstack/addon-provider-petkit": ">=0.2.158",
77
+ "@camstack/addon-provider-rademacher": ">=0.2.156",
78
+ "@camstack/addon-provider-unifi": ">=0.2.153",
79
+ "@camstack/addon-provider-unraid": ">=0.2.154",
80
+ "@camstack/addon-provider-velux": ">=0.2.153"
81
+ },
69
82
  "wrapper": {
70
83
  "desktop": ">=0.0.1",
71
84
  "image": ">=0.0.1"
@@ -73,18 +86,18 @@
73
86
  }
74
87
  },
75
88
  "dependencies": {
76
- "@camstack/addon-admin-ui": "1.2.542",
89
+ "@camstack/addon-admin-ui": "1.2.543",
77
90
  "@camstack/addon-agent-ui": "1.2.307",
78
91
  "@camstack/addon-auth": "1.2.175",
79
92
  "@camstack/addon-benchmark": "1.2.305",
80
93
  "@camstack/addon-decoder-nodeav": "1.2.145",
81
94
  "@camstack/addon-notifiers": "1.2.626",
82
95
  "@camstack/addon-pipeline": "1.2.637",
83
- "@camstack/addon-pipeline-orchestrator": "1.2.648",
96
+ "@camstack/addon-pipeline-orchestrator": "1.2.649",
84
97
  "@camstack/addon-post-analysis": "1.2.657",
85
98
  "@camstack/develop": "0.1.43",
86
99
  "@camstack/sdk": "1.2.155",
87
- "@camstack/types": "1.2.463",
100
+ "@camstack/types": "1.2.464",
88
101
  "@camstack/ui-library": "1.2.365",
89
102
  "@fastify/compress": "^9.0.0",
90
103
  "@fastify/cookie": "^11.0.2",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/server",
3
- "version": "1.2.720",
3
+ "version": "1.2.722",
4
4
  "description": "CamStack builtins — shipped inside @camstack/server (generated, do not edit)",
5
5
  "license": "MIT",
6
6
  "camstack": {