@adobe/helix-config-storage 3.0.0 → 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 +14 -0
- package/package.json +5 -5
- package/src/config-store.js +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
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
|
+
|
|
8
|
+
## [3.0.1](https://github.com/adobe/helix-config-storage/compare/v3.0.0...v3.0.1) (2026-05-12)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update external fixes ([#257](https://github.com/adobe/helix-config-storage/issues/257)) ([2d11e50](https://github.com/adobe/helix-config-storage/commit/2d11e50735eded3564b242d720e4901a9fe8838c))
|
|
14
|
+
|
|
1
15
|
# [3.0.0](https://github.com/adobe/helix-config-storage/compare/v2.14.1...v3.0.0) (2026-05-06)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-config-storage",
|
|
3
|
-
"version": "3.
|
|
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.
|
|
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.
|
|
54
|
+
"nock": "14.0.14",
|
|
55
55
|
"semantic-release": "25.0.3",
|
|
56
56
|
"xml2js": "0.6.2"
|
|
57
57
|
},
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
"@adobe/helix-shared-storage": "^2.0.0",
|
|
68
68
|
"@adobe/helix-shared-string": "^2.1.0",
|
|
69
69
|
"@adobe/helix-shared-utils": "^3.0.2",
|
|
70
|
-
"ajv": "8.
|
|
70
|
+
"ajv": "8.20.0",
|
|
71
71
|
"ajv-errors": "3.0.0",
|
|
72
72
|
"ajv-formats": "3.0.1",
|
|
73
|
-
"jose": "6.2.
|
|
73
|
+
"jose": "6.2.3"
|
|
74
74
|
}
|
|
75
75
|
}
|
package/src/config-store.js
CHANGED
|
@@ -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)) {
|