@adobe/helix-config 4.8.3 → 4.9.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [4.9.0](https://github.com/adobe/helix-config/compare/v4.8.4...v4.9.0) (2024-12-09)
2
+
3
+
4
+ ### Features
5
+
6
+ * return legacy config for admin scope ([#222](https://github.com/adobe/helix-config/issues/222)) ([0d6b092](https://github.com/adobe/helix-config/commit/0d6b09286a8d13568a9c4d6f07eb32139aed397f))
7
+
8
+ ## [4.8.4](https://github.com/adobe/helix-config/compare/v4.8.3...v4.8.4) (2024-12-07)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update dependency @adobe/fetch to v4.1.11 ([#221](https://github.com/adobe/helix-config/issues/221)) ([43cccbe](https://github.com/adobe/helix-config/commit/43cccbe3a3a865df7df65d9c08fc4ca6e90e05e3))
14
+
1
15
  ## [4.8.3](https://github.com/adobe/helix-config/compare/v4.8.2...v4.8.3) (2024-12-05)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-config",
3
- "version": "4.8.3",
3
+ "version": "4.9.0",
4
4
  "description": "Helix Config",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -55,7 +55,7 @@
55
55
  "*.cjs": "eslint"
56
56
  },
57
57
  "dependencies": {
58
- "@adobe/fetch": "4.1.10",
58
+ "@adobe/fetch": "4.1.11",
59
59
  "@adobe/helix-shared-config": "11.0.11",
60
60
  "@adobe/helix-shared-utils": "3.0.2"
61
61
  }
@@ -237,16 +237,12 @@ async function resolveConfig(ctx, rso, scope) {
237
237
  const key = `orgs/${rso.org}/sites/${rso.site}.json`;
238
238
  const res = await ctx.loader.getObject(HELIX_CONFIG_BUS, key);
239
239
  if (!res.body) {
240
- if (scope !== SCOPE_ADMIN) {
241
- const config = await resolveLegacyConfig(ctx, rso, scope);
242
- if (config) {
243
- const profile = await loadProfile(ctx, rso, 'default');
244
- config.data.tokens = profile?.data.tokens || {};
245
- }
246
- return config;
247
- } else {
248
- return null;
240
+ const config = await resolveLegacyConfig(ctx, rso, scope);
241
+ if (config) {
242
+ const profile = await loadProfile(ctx, rso, 'default');
243
+ config.data.tokens = profile?.data.tokens || {};
249
244
  }
245
+ return config;
250
246
  }
251
247
  const site = new ConfigObject();
252
248
  site.data = res.json();