@adobe/helix-config-storage 2.12.1 → 2.13.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
+ # [2.13.0](https://github.com/adobe/helix-config-storage/compare/v2.12.1...v2.13.0) (2026-03-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update adobe fixes ([#238](https://github.com/adobe/helix-config-storage/issues/238)) ([26e0272](https://github.com/adobe/helix-config-storage/commit/26e027295815a110d75f3a7f4156bc2327ef1f18))
7
+ * no property path duplication in error messages ([#236](https://github.com/adobe/helix-config-storage/issues/236)) ([ef03daa](https://github.com/adobe/helix-config-storage/commit/ef03daaf6da6b72a815ed23096f288d36dbdf589))
8
+
9
+
10
+ ### Features
11
+
12
+ * add ajv-errors with human-readable error messages for CDN not-patterns ([#234](https://github.com/adobe/helix-config-storage/issues/234)) ([e8ecf44](https://github.com/adobe/helix-config-storage/commit/e8ecf446aac87d420d2f125636ea7eedb04ccca1))
13
+ * allow empty string as prod host in cdn-prod schemas ([#235](https://github.com/adobe/helix-config-storage/issues/235)) ([9772b7a](https://github.com/adobe/helix-config-storage/commit/9772b7ac1556b49325ce7a64fcb967705582aba9))
14
+
1
15
  ## [2.12.1](https://github.com/adobe/helix-config-storage/compare/v2.12.0...v2.12.1) (2026-03-13)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-config-storage",
3
- "version": "2.12.1",
3
+ "version": "2.13.0",
4
4
  "description": "Helix Config Storage",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -36,18 +36,18 @@
36
36
  "reporter-options": "configFile=.mocha-multi.json"
37
37
  },
38
38
  "devDependencies": {
39
- "@adobe/eslint-config-helix": "3.0.21",
39
+ "@adobe/eslint-config-helix": "3.0.23",
40
40
  "@eslint/config-helpers": "0.5.2",
41
41
  "@semantic-release/changelog": "6.0.3",
42
42
  "@semantic-release/git": "10.0.1",
43
- "@semantic-release/npm": "13.1.4",
43
+ "@semantic-release/npm": "13.1.5",
44
44
  "ajv-cli": "5.0.0",
45
45
  "c8": "11.0.0",
46
46
  "eslint": "9.4.0",
47
47
  "husky": "9.1.7",
48
48
  "json-schema-to-typescript": "15.0.4",
49
49
  "junit-report-builder": "5.1.1",
50
- "lint-staged": "16.2.7",
50
+ "lint-staged": "16.3.1",
51
51
  "mocha": "11.7.5",
52
52
  "mocha-multi-reporters": "1.5.1",
53
53
  "mocha-suppress-logs": "0.6.0",
@@ -63,11 +63,12 @@
63
63
  "@adobe/fetch": "^4.2.0",
64
64
  "@adobe/helix-shared-config": "^11.1.4",
65
65
  "@adobe/helix-shared-git": "^3.0.18",
66
- "@adobe/helix-shared-process-queue": "3.1.5",
66
+ "@adobe/helix-shared-process-queue": "3.1.6",
67
67
  "@adobe/helix-shared-storage": "^1.4.0",
68
68
  "@adobe/helix-shared-string": "^2.1.0",
69
69
  "@adobe/helix-shared-utils": "^3.0.2",
70
70
  "ajv": "8.18.0",
71
+ "ajv-errors": "3.0.0",
71
72
  "ajv-formats": "3.0.1",
72
73
  "jose": "6.1.3"
73
74
  }
@@ -10,6 +10,7 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
  import Ajv2019 from 'ajv/dist/2019.js';
13
+ import ajvErrors from 'ajv-errors';
13
14
  import ajvFormats from 'ajv-formats';
14
15
  import { ValidationError } from './ValidationError.js';
15
16
 
@@ -114,6 +115,7 @@ export async function validate(config, type) {
114
115
  strict: false,
115
116
  });
116
117
  ajvFormats(ajv);
118
+ ajvErrors(ajv);
117
119
 
118
120
  ajv.addSchema(SCHEMAS);
119
121
  const res = ajv.validate(schema, config);
@@ -12,10 +12,12 @@
12
12
  "host": {
13
13
  "description": "production host",
14
14
  "type": "string",
15
- "pattern": "^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.){1,3}[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$",
15
+ "pattern": "^$|^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.){1,3}[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$",
16
16
  "not": {
17
- "pattern": ".*--.*--.*\\.aem\\.(live|page|reviews|network)$",
18
- "description": "AEM endpoints not allowed"
17
+ "pattern": ".*--.*--.*\\.aem\\.(live|page|reviews|network)$"
18
+ },
19
+ "errorMessage": {
20
+ "not": "AEM endpoints not allowed"
19
21
  }
20
22
  },
21
23
  "route": {
@@ -12,10 +12,12 @@
12
12
  "host": {
13
13
  "description": "production host",
14
14
  "type": "string",
15
- "pattern": "^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.){1,3}[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$",
15
+ "pattern": "^$|^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.){1,3}[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$",
16
16
  "not": {
17
- "pattern": ".*--.*--.*\\.aem\\.(live|page|reviews|network)$",
18
- "description": "AEM endpoints not allowed"
17
+ "pattern": ".*--.*--.*\\.aem\\.(live|page|reviews|network)$"
18
+ },
19
+ "errorMessage": {
20
+ "not": "AEM endpoints not allowed"
19
21
  }
20
22
  },
21
23
  "route": {
@@ -12,10 +12,12 @@
12
12
  "host": {
13
13
  "description": "production host",
14
14
  "type": "string",
15
- "pattern": "^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.){1,3}[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$",
15
+ "pattern": "^$|^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.){1,3}[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$",
16
16
  "not": {
17
- "pattern": ".*--.*--.*\\.aem\\.(live|page|reviews|network)$",
18
- "description": "AEM endpoints not allowed"
17
+ "pattern": ".*--.*--.*\\.aem\\.(live|page|reviews|network)$"
18
+ },
19
+ "errorMessage": {
20
+ "not": "AEM endpoints not allowed"
19
21
  }
20
22
  },
21
23
  "route": {
@@ -13,10 +13,12 @@
13
13
  "host": {
14
14
  "description": "production host",
15
15
  "type": "string",
16
- "pattern": "^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.){1,3}[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$",
16
+ "pattern": "^$|^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.){1,3}[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$",
17
17
  "not": {
18
- "pattern": ".*--.*--.*\\.aem\\.(live|page|reviews|network)$",
19
- "description": "AEM endpoints not allowed"
18
+ "pattern": ".*--.*--.*\\.aem\\.(live|page|reviews|network)$"
19
+ },
20
+ "errorMessage": {
21
+ "not": "AEM endpoints not allowed"
20
22
  }
21
23
  },
22
24
  "route": {
@@ -12,10 +12,12 @@
12
12
  "host": {
13
13
  "description": "production host",
14
14
  "type": "string",
15
- "pattern": "^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.){1,3}[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$",
15
+ "pattern": "^$|^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.){1,3}[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$",
16
16
  "not": {
17
- "pattern": ".*--.*--.*\\.aem\\.(live|page|reviews|network)$",
18
- "description": "AEM endpoints not allowed"
17
+ "pattern": ".*--.*--.*\\.aem\\.(live|page|reviews|network)$"
18
+ },
19
+ "errorMessage": {
20
+ "not": "AEM endpoints not allowed"
19
21
  }
20
22
  },
21
23
  "envId": {
@@ -31,8 +31,10 @@
31
31
  "type": "string",
32
32
  "pattern": "^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.){1,3}[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$",
33
33
  "not": {
34
- "pattern": ".*--.*--.*\\.aem\\.(live|page|reviews|network)$",
35
- "description": "AEM endpoints not allowed"
34
+ "pattern": ".*--.*--.*\\.aem\\.(live|page|reviews|network)$"
35
+ },
36
+ "errorMessage": {
37
+ "not": "AEM endpoints not allowed"
36
38
  }
37
39
  }
38
40
  },
@@ -53,8 +55,10 @@
53
55
  ],
54
56
  "type": "string",
55
57
  "not": {
56
- "pattern": ".*--.*--.*\\.aem\\.(live|page|reviews|network)$",
57
- "description": "AEM endpoints not allowed"
58
+ "pattern": ".*--.*--.*\\.aem\\.(live|page|reviews|network)$"
59
+ },
60
+ "errorMessage": {
61
+ "not": "AEM endpoints not allowed"
58
62
  }
59
63
  }
60
64
  },
@@ -73,8 +77,10 @@
73
77
  ],
74
78
  "type": "string",
75
79
  "not": {
76
- "pattern": ".*--.*--.*\\.aem\\.(live|page|reviews|network)$",
77
- "description": "AEM endpoints not allowed"
80
+ "pattern": ".*--.*--.*\\.aem\\.(live|page|reviews|network)$"
81
+ },
82
+ "errorMessage": {
83
+ "not": "AEM endpoints not allowed"
78
84
  }
79
85
  }
80
86
  },
@@ -93,8 +99,10 @@
93
99
  ],
94
100
  "type": "string",
95
101
  "not": {
96
- "pattern": ".*--.*--.*\\.aem\\.(live|page|reviews|network)$",
97
- "description": "AEM endpoints not allowed"
102
+ "pattern": ".*--.*--.*\\.aem\\.(live|page|reviews|network)$"
103
+ },
104
+ "errorMessage": {
105
+ "not": "AEM endpoints not allowed"
98
106
  }
99
107
  }
100
108
  },
@@ -1,5 +1,5 @@
1
1
  # the need the proper file order to compile the schemas.
2
- npx ajv-cli --spec=draft2019 -c ajv-formats compile \
2
+ npx ajv-cli --all-errors --spec=draft2019 -c ajv-formats -c ajv-errors compile \
3
3
  -s src/schemas/common.schema.json \
4
4
  -s src/schemas/access-admin.schema.json \
5
5
  -s src/schemas/access-site.schema.json \