@adobe/helix-config 5.15.1 → 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 CHANGED
@@ -1,3 +1,10 @@
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
+
1
8
  ## [5.15.1](https://github.com/adobe/helix-config/compare/v5.15.0...v5.15.1) (2026-09-21)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-config",
3
- "version": "5.15.1",
3
+ "version": "5.15.2",
4
4
  "description": "Helix Config",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -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, partition) {
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,14 +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
- const metadata = {};
385
- if (partition !== 'live') {
386
- metadata.preview = await loadMetadata(ctx, config, 'preview');
387
- }
388
- if (partition !== 'preview') {
389
- metadata.live = await loadMetadata(ctx, config, 'live');
390
- }
391
- config.metadata = metadata;
382
+ config.metadata = {
383
+ preview: await loadMetadata(ctx, config, 'preview'),
384
+ live: await loadMetadata(ctx, config, 'live'),
385
+ };
392
386
  }
393
387
  if (scope === SCOPE_PIPELINE || scope === SCOPE_RAW) {
394
388
  if (!config.robots) {
@@ -650,7 +644,7 @@ function computeTrustedHosts(org, site, siteConfig) {
650
644
 
651
645
  export async function getConfigResponse(ctx, opts) {
652
646
  const {
653
- ref, site, org, scope, partition,
647
+ ref, site, org, scope,
654
648
  } = opts;
655
649
  if (!VALID_SCOPES.includes(scope)) {
656
650
  return new PipelineResponse('', {
@@ -664,7 +658,7 @@ export async function getConfigResponse(ctx, opts) {
664
658
  const rso = { ref, site, org };
665
659
  let siteConfig;
666
660
  try {
667
- siteConfig = await resolveConfig(ctx, rso, scope, partition);
661
+ siteConfig = await resolveConfig(ctx, rso, scope);
668
662
  } catch (e) {
669
663
  return new PipelineResponse('', {
670
664
  status: 502,
package/src/index.d.ts CHANGED
@@ -20,7 +20,6 @@ export declare class ConfigRequestOptions {
20
20
  org: string;
21
21
  site: string;
22
22
  ref: string;
23
- partition?: 'preview' | 'live';
24
23
  }
25
24
 
26
25
  export function getConfigResponse(ctx: ConfigContext, opts: ConfigRequestOptions): Promise<PipelineResponse>;