@adobe/helix-shared-config 11.0.0 → 11.0.2

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
+ # [@adobe/helix-shared-config-v11.0.2](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-config-v11.0.1...@adobe/helix-shared-config-v11.0.2) (2024-10-05)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update external fixes ([e99f045](https://github.com/adobe/helix-shared/commit/e99f045045d3d051fc96bc884c9d8e56a2276b6a))
7
+
8
+ # [@adobe/helix-shared-config-v11.0.1](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-config-v11.0.0...@adobe/helix-shared-config-v11.0.1) (2024-09-26)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * do not throw but provide errors ([#1002](https://github.com/adobe/helix-shared/issues/1002)) ([3cdd7ca](https://github.com/adobe/helix-shared/commit/3cdd7ca125dd30c69317494fe068b79dbcc980e0))
14
+
1
15
  # [@adobe/helix-shared-config-v11.0.0](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-config-v10.6.9...@adobe/helix-shared-config-v11.0.0) (2024-09-25)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-shared-config",
3
- "version": "11.0.0",
3
+ "version": "11.0.2",
4
4
  "description": "Shared modules of the Helix Project - config",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -42,7 +42,7 @@
42
42
  "@adobe/helix-shared-utils": "^2.1.0",
43
43
  "ajv": "8.17.1",
44
44
  "ajv-formats": "3.0.1",
45
- "cookie": "0.6.0",
45
+ "cookie": "0.7.1",
46
46
  "fs-extra": "11.2.0",
47
47
  "ignore": "6.0.2",
48
48
  "lru-cache": "11.0.1",
@@ -195,15 +195,11 @@ export class IndexConfig extends SchemaDerivedConfig {
195
195
  }
196
196
 
197
197
  /**
198
- * Validates the loaded configuration and coerces types and sets defaulst
198
+ * Return errors encountered in parsing.
199
+ *
200
+ * @returns {String[]} parsing errors
199
201
  */
200
- async validate() {
201
- await super.validate();
202
-
203
- if (this._document?.errors?.length) {
204
- const detail = this._document.errors.map(({ message }) => (message)).join('\n');
205
- throw new Error(`Invalid index configuration:
206
- ${detail}`);
207
- }
202
+ getErrors() {
203
+ return this._document?.errors ?? [];
208
204
  }
209
205
  }