@adobe/helix-config 5.9.1 → 5.9.3
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/.nycrc.json +3 -3
- package/CHANGELOG.md +14 -0
- package/package.json +5 -5
- package/src/config-legacy.js +3 -1
- package/src/config-merge.js +1 -0
- package/src/config-view.js +2 -2
package/.nycrc.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [5.9.3](https://github.com/adobe/helix-config/compare/v5.9.2...v5.9.3) (2026-03-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* read helix-config from main ([#360](https://github.com/adobe/helix-config/issues/360)) ([0f976ae](https://github.com/adobe/helix-config/commit/0f976aedd9ea70facc09268e2293caefe32a059a))
|
|
7
|
+
|
|
8
|
+
## [5.9.2](https://github.com/adobe/helix-config/compare/v5.9.1...v5.9.2) (2026-02-17)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* load default profile for helix4 ([#357](https://github.com/adobe/helix-config/issues/357)) ([25ad079](https://github.com/adobe/helix-config/commit/25ad07978e8a1e328e19dc964fb97b087ea9b910))
|
|
14
|
+
|
|
1
15
|
## [5.9.1](https://github.com/adobe/helix-config/compare/v5.9.0...v5.9.1) (2026-01-07)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-config",
|
|
3
|
-
"version": "5.9.
|
|
3
|
+
"version": "5.9.3",
|
|
4
4
|
"description": "Helix Config",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"reporter-options": "configFile=.mocha-multi.json"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@adobe/eslint-config-helix": "3.0.
|
|
39
|
-
"@eslint/config-helpers": "0.5.
|
|
38
|
+
"@adobe/eslint-config-helix": "3.0.21",
|
|
39
|
+
"@eslint/config-helpers": "0.5.2",
|
|
40
40
|
"@semantic-release/changelog": "6.0.3",
|
|
41
41
|
"@semantic-release/git": "10.0.1",
|
|
42
|
-
"@semantic-release/npm": "13.1.
|
|
42
|
+
"@semantic-release/npm": "13.1.4",
|
|
43
43
|
"c8": "10.1.3",
|
|
44
44
|
"eslint": "9.4.0",
|
|
45
45
|
"husky": "9.1.7",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"mocha": "11.7.5",
|
|
49
49
|
"mocha-multi-reporters": "1.5.1",
|
|
50
50
|
"mocha-suppress-logs": "0.6.0",
|
|
51
|
-
"semantic-release": "25.0.
|
|
51
|
+
"semantic-release": "25.0.3"
|
|
52
52
|
},
|
|
53
53
|
"lint-staged": {
|
|
54
54
|
"*.js": "eslint",
|
package/src/config-legacy.js
CHANGED
|
@@ -26,7 +26,7 @@ const HELIX_CODE_BUS = 'helix-code-bus';
|
|
|
26
26
|
* @returns {Promise<ConfigObject|null>} the helix-config or {@code null} if optional and not found.
|
|
27
27
|
*/
|
|
28
28
|
async function fetchHelixConfig(ctx, rso) {
|
|
29
|
-
const key = `${rso.org}/${rso.site}
|
|
29
|
+
const key = `${rso.org}/${rso.site}/main/helix-config.json`;
|
|
30
30
|
const res = await ctx.loader.getObject(HELIX_CODE_BUS, key);
|
|
31
31
|
if (!res.body) {
|
|
32
32
|
return null;
|
|
@@ -194,6 +194,8 @@ export async function resolveLegacyConfig(ctx, rso, scope) {
|
|
|
194
194
|
config.robots = await fetchRobotsTxt(ctx, rso.org, rso.site);
|
|
195
195
|
if (!config.robots.txt) {
|
|
196
196
|
delete config.robots;
|
|
197
|
+
} else {
|
|
198
|
+
cfg.updateLastModified(config.robots);
|
|
197
199
|
}
|
|
198
200
|
}
|
|
199
201
|
if ((scope === SCOPE_ADMIN || scope === SCOPE_RAW) && configAllPreview?.config?.data?.metadata) {
|
package/src/config-merge.js
CHANGED
package/src/config-view.js
CHANGED
|
@@ -304,8 +304,8 @@ async function resolveConfig(ctx, rso, scope) {
|
|
|
304
304
|
if (config) {
|
|
305
305
|
ctx.timer?.update('profile');
|
|
306
306
|
const profile = await loadProfile(ctx, rso, 'default');
|
|
307
|
-
config.
|
|
308
|
-
config.data.
|
|
307
|
+
config.merge(profile);
|
|
308
|
+
config.data.legacy = true;
|
|
309
309
|
}
|
|
310
310
|
return config;
|
|
311
311
|
}
|