@adobe/helix-shared-config 10.6.8 → 11.0.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,22 @@
1
+ # [@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
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * IndexConfig should not allow broken config ([#1001](https://github.com/adobe/helix-shared/issues/1001)) ([35f28d1](https://github.com/adobe/helix-shared/commit/35f28d1f16e501eebce848ca4b0d89701107f252))
7
+
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ * some indexing configurations will no longer be accepted
12
+
13
+ # [@adobe/helix-shared-config-v10.6.9](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-config-v10.6.8...@adobe/helix-shared-config-v10.6.9) (2024-09-24)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * **deps:** update dependency ignore to v6 ([#999](https://github.com/adobe/helix-shared/issues/999)) ([27ce8a9](https://github.com/adobe/helix-shared/commit/27ce8a9db4c2be8d5260d2475d2acb9b57c629f0))
19
+
1
20
  # [@adobe/helix-shared-config-v10.6.8](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-config-v10.6.7...@adobe/helix-shared-config-v10.6.8) (2024-09-07)
2
21
 
3
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-shared-config",
3
- "version": "10.6.8",
3
+ "version": "11.0.0",
4
4
  "description": "Shared modules of the Helix Project - config",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -44,7 +44,7 @@
44
44
  "ajv-formats": "3.0.1",
45
45
  "cookie": "0.6.0",
46
46
  "fs-extra": "11.2.0",
47
- "ignore": "5.3.2",
47
+ "ignore": "6.0.2",
48
48
  "lru-cache": "11.0.1",
49
49
  "object-hash": "3.0.0",
50
50
  "uri-js": "4.4.1",
@@ -193,4 +193,17 @@ export class IndexConfig extends SchemaDerivedConfig {
193
193
  this._version = this._cfg.version;
194
194
  return this;
195
195
  }
196
+
197
+ /**
198
+ * Validates the loaded configuration and coerces types and sets defaulst
199
+ */
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
+ }
208
+ }
196
209
  }