@adobe/helix-config 5.15.0 → 5.15.2
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 +14 -0
- package/package.json +1 -1
- package/src/config-view.js +7 -12
- package/src/index.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [5.15.2](https://github.com/adobe/helix-config/compare/v5.15.1...v5.15.2) (2026-09-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* revert config-view changes to v5.14.0 state ([#413](https://github.com/adobe/helix-config/issues/413)) ([a59fc14](https://github.com/adobe/helix-config/commit/a59fc141603db4f713051b5a14fa456620293bb4)), closes [#410](https://github.com/adobe/helix-config/issues/410) [#412](https://github.com/adobe/helix-config/issues/412)
|
|
7
|
+
|
|
8
|
+
## [5.15.1](https://github.com/adobe/helix-config/compare/v5.15.0...v5.15.1) (2026-09-21)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **config-view:** apply all configured metadata sources ([#412](https://github.com/adobe/helix-config/issues/412)) ([f8f5800](https://github.com/adobe/helix-config/commit/f8f580019465577a307104c1b4e2b660d6b23bb3))
|
|
14
|
+
|
|
1
15
|
# [5.15.0](https://github.com/adobe/helix-config/compare/v5.14.0...v5.15.0) (2026-09-18)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
package/src/config-view.js
CHANGED
|
@@ -337,11 +337,9 @@ async function loadProfile(ctx, rso, name) {
|
|
|
337
337
|
* @param ctx
|
|
338
338
|
* @param {RSO} rso
|
|
339
339
|
* @param {string} scope
|
|
340
|
-
* @param {string} [partition] the partition to restrict to. if omitted or invalid,
|
|
341
|
-
* all partitions are returned.
|
|
342
340
|
* @return {Promise<ConfigObject|null>}
|
|
343
341
|
*/
|
|
344
|
-
async function resolveConfig(ctx, rso, scope
|
|
342
|
+
async function resolveConfig(ctx, rso, scope) {
|
|
345
343
|
// try to load site config from config-bus
|
|
346
344
|
const key = `orgs/${rso.org}/sites/${rso.site}.json`;
|
|
347
345
|
ctx.timer?.update('load-config');
|
|
@@ -381,13 +379,10 @@ async function resolveConfig(ctx, rso, scope, partition) {
|
|
|
381
379
|
const config = site.data;
|
|
382
380
|
if (scope === SCOPE_PIPELINE) {
|
|
383
381
|
ctx.timer?.update('metadata');
|
|
384
|
-
config.metadata = {
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
}
|
|
388
|
-
if (partition !== 'preview') {
|
|
389
|
-
config.metadata.live = await loadMetadata(ctx, config, 'live');
|
|
390
|
-
}
|
|
382
|
+
config.metadata = {
|
|
383
|
+
preview: await loadMetadata(ctx, config, 'preview'),
|
|
384
|
+
live: await loadMetadata(ctx, config, 'live'),
|
|
385
|
+
};
|
|
391
386
|
}
|
|
392
387
|
if (scope === SCOPE_PIPELINE || scope === SCOPE_RAW) {
|
|
393
388
|
if (!config.robots) {
|
|
@@ -649,7 +644,7 @@ function computeTrustedHosts(org, site, siteConfig) {
|
|
|
649
644
|
|
|
650
645
|
export async function getConfigResponse(ctx, opts) {
|
|
651
646
|
const {
|
|
652
|
-
ref, site, org, scope,
|
|
647
|
+
ref, site, org, scope,
|
|
653
648
|
} = opts;
|
|
654
649
|
if (!VALID_SCOPES.includes(scope)) {
|
|
655
650
|
return new PipelineResponse('', {
|
|
@@ -663,7 +658,7 @@ export async function getConfigResponse(ctx, opts) {
|
|
|
663
658
|
const rso = { ref, site, org };
|
|
664
659
|
let siteConfig;
|
|
665
660
|
try {
|
|
666
|
-
siteConfig = await resolveConfig(ctx, rso, scope
|
|
661
|
+
siteConfig = await resolveConfig(ctx, rso, scope);
|
|
667
662
|
} catch (e) {
|
|
668
663
|
return new PipelineResponse('', {
|
|
669
664
|
status: 502,
|
package/src/index.d.ts
CHANGED