@adobe/helix-config 5.1.3 → 5.3.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
+ # [5.3.0](https://github.com/adobe/helix-config/compare/v5.2.0...v5.3.0) (2025-04-10)
2
+
3
+
4
+ ### Features
5
+
6
+ * add repo _head surrogate key for all scopes ([#264](https://github.com/adobe/helix-config/issues/264)) ([1a85c22](https://github.com/adobe/helix-config/commit/1a85c228aa4d4489f42d5edf5b8095097ec7362f))
7
+
8
+ # [5.2.0](https://github.com/adobe/helix-config/compare/v5.1.3...v5.2.0) (2025-04-09)
9
+
10
+
11
+ ### Features
12
+
13
+ * disable branch check ([#263](https://github.com/adobe/helix-config/issues/263)) ([82584a9](https://github.com/adobe/helix-config/commit/82584a90dd2a1e186dd496b0b0e99221c71f35c8))
14
+
1
15
  ## [5.1.3](https://github.com/adobe/helix-config/compare/v5.1.2...v5.1.3) (2025-04-08)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-config",
3
- "version": "5.1.3",
3
+ "version": "5.3.0",
4
4
  "description": "Helix Config",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -309,13 +309,15 @@ async function resolveConfig(ctx, rso, scope) {
309
309
  const profile = await loadProfile(ctx, rso, site.data.extends.profile);
310
310
  site.merge(profile);
311
311
 
312
- if (rso.ref !== 'main') {
313
- const { code } = site.data;
314
- const res2 = await ctx.loader.dirExists(HELIX_CODE_BUS, `${code.owner}/${code.repo}/${rso.ref}`);
315
- if (res2.status !== 200) {
316
- return null;
317
- }
318
- }
312
+ // disabled for now, until cache invalidation works properly for new branches
313
+ // if (rso.ref !== 'main') {
314
+ // const { code } = site.data;
315
+ // eslint-disable-next-line max-len
316
+ // const res2 = await ctx.loader.dirExists(HELIX_CODE_BUS, `${code.owner}/${code.repo}/${rso.ref}`);
317
+ // if (res2.status !== 200) {
318
+ // return null;
319
+ // }
320
+ // }
319
321
 
320
322
  const config = site.data;
321
323
  if (scope === SCOPE_PIPELINE) {
@@ -344,7 +346,7 @@ async function getSurrogateKey(opts, config) {
344
346
  ];
345
347
  if (site) {
346
348
  keys.push(await computeSurrogateKey(`${site}--${org}_config.json`));
347
- if (config?.code?.owner && config?.code?.repo && opts.scope === SCOPE_PIPELINE) {
349
+ if (config?.code?.owner && config?.code?.repo) {
348
350
  keys.push(`${opts.ref}--${config.code.repo}--${config.code.owner}_head`);
349
351
  }
350
352
  }