@adobe/helix-config-storage 3.0.1 → 3.1.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,10 @@
1
+ # [3.1.0](https://github.com/adobe/helix-config-storage/compare/v3.0.1...v3.1.0) (2026-05-19)
2
+
3
+
4
+ ### Features
5
+
6
+ * **config:** reject site creation if main--site--org exceeds 63 characters ([#262](https://github.com/adobe/helix-config-storage/issues/262)) ([36d97e0](https://github.com/adobe/helix-config-storage/commit/36d97e0be36b8369f460ebd9d70dff25c226efbe))
7
+
1
8
  ## [3.0.1](https://github.com/adobe/helix-config-storage/compare/v3.0.0...v3.0.1) (2026-05-12)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-config-storage",
3
- "version": "3.0.1",
3
+ "version": "3.1.0",
4
4
  "description": "Helix Config Storage",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -36,7 +36,7 @@
36
36
  "reporter-options": "configFile=.mocha-multi.json"
37
37
  },
38
38
  "devDependencies": {
39
- "@adobe/eslint-config-helix": "3.0.26",
39
+ "@adobe/eslint-config-helix": "3.0.27",
40
40
  "@eslint/config-helpers": "0.5.5",
41
41
  "@semantic-release/changelog": "6.0.3",
42
42
  "@semantic-release/git": "10.0.1",
@@ -51,7 +51,7 @@
51
51
  "mocha": "11.7.5",
52
52
  "mocha-multi-reporters": "1.5.1",
53
53
  "mocha-suppress-logs": "0.6.0",
54
- "nock": "14.0.13",
54
+ "nock": "14.0.14",
55
55
  "semantic-release": "25.0.3",
56
56
  "xml2js": "0.6.2"
57
57
  },
@@ -348,6 +348,12 @@ export class ConfigStore {
348
348
  if (relPath) {
349
349
  throw new StatusCodeError(409, 'create not supported on substructures.');
350
350
  }
351
+ if (this.type === 'sites') {
352
+ const domainLabelLength = `main--${this.name}--${this.org}`.length;
353
+ if (domainLabelLength > 63) {
354
+ throw new StatusCodeError(409, `main--site--org length exceeds maximum of 63 characters: ${domainLabelLength}`);
355
+ }
356
+ }
351
357
  const storage = HelixStorage.fromContext(ctx).configBus();
352
358
 
353
359
  if (await storage.head(this.key)) {