@adobe/helix-config 5.1.2 → 5.2.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 +14 -0
- package/package.json +1 -1
- package/src/config-view.js +11 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [5.2.0](https://github.com/adobe/helix-config/compare/v5.1.3...v5.2.0) (2025-04-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* disable branch check ([#263](https://github.com/adobe/helix-config/issues/263)) ([82584a9](https://github.com/adobe/helix-config/commit/82584a90dd2a1e186dd496b0b0e99221c71f35c8))
|
|
7
|
+
|
|
8
|
+
## [5.1.3](https://github.com/adobe/helix-config/compare/v5.1.2...v5.1.3) (2025-04-08)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* merge profile first before checking code property ([#261](https://github.com/adobe/helix-config/issues/261)) ([2a21431](https://github.com/adobe/helix-config/commit/2a21431f7e34a6cda96eb9f1356b1f964d3590d2))
|
|
14
|
+
|
|
1
15
|
## [5.1.2](https://github.com/adobe/helix-config/compare/v5.1.1...v5.1.2) (2025-04-07)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
package/src/config-view.js
CHANGED
|
@@ -298,13 +298,6 @@ async function resolveConfig(ctx, rso, scope) {
|
|
|
298
298
|
const site = new ConfigObject();
|
|
299
299
|
site.data = res.json();
|
|
300
300
|
|
|
301
|
-
const { code } = site.data;
|
|
302
|
-
if (rso.ref !== 'main') {
|
|
303
|
-
const res2 = await ctx.loader.dirExists(HELIX_CODE_BUS, `${code.owner}/${code.repo}/${rso.ref}`);
|
|
304
|
-
if (res2.status !== 200) {
|
|
305
|
-
return null;
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
301
|
site.updateLastModified(res.headers);
|
|
309
302
|
|
|
310
303
|
// always load default profile if available
|
|
@@ -315,6 +308,17 @@ async function resolveConfig(ctx, rso, scope) {
|
|
|
315
308
|
}
|
|
316
309
|
const profile = await loadProfile(ctx, rso, site.data.extends.profile);
|
|
317
310
|
site.merge(profile);
|
|
311
|
+
|
|
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
|
+
// }
|
|
321
|
+
|
|
318
322
|
const config = site.data;
|
|
319
323
|
if (scope === SCOPE_PIPELINE) {
|
|
320
324
|
config.metadata = {
|