@adobe/spacecat-shared-data-access 2.9.0 → 2.9.1

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
+ # [@adobe/spacecat-shared-data-access-v2.9.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.9.0...@adobe/spacecat-shared-data-access-v2.9.1) (2025-02-26)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * import-schema backwards compatibility ([#630](https://github.com/adobe/spacecat-shared/issues/630)) ([9ef74bf](https://github.com/adobe/spacecat-shared/commit/9ef74bfc89b0ccb9d27d34e5a10eef182b9ee527)), closes [#626](https://github.com/adobe/spacecat-shared/issues/626)
7
+
1
8
  # [@adobe/spacecat-shared-data-access-v2.9.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.8.4...@adobe/spacecat-shared-data-access-v2.9.0) (2025-02-25)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-data-access",
3
- "version": "2.9.0",
3
+ "version": "2.9.1",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -30,7 +30,8 @@ export const IMPORT_SOURCES = {
30
30
  const IMPORT_BASE_KEYS = {
31
31
  destinations: Joi.array().items(Joi.string().valid(IMPORT_DESTINATIONS.DEFAULT)).required(),
32
32
  sources: Joi.array().items(Joi.string().valid(...Object.values(IMPORT_SOURCES))).required(),
33
- enabled: Joi.boolean().required().default(true),
33
+ // not required for now due backward compatibility
34
+ enabled: Joi.boolean().default(true),
34
35
  };
35
36
 
36
37
  export const IMPORT_TYPE_SCHEMAS = {
@@ -118,7 +119,7 @@ export function validateConfiguration(config) {
118
119
  const { error, value } = configSchema.validate(config);
119
120
 
120
121
  if (error) {
121
- throw new Error(`Configuration validation error: ${error.message}`);
122
+ throw new Error(`Configuration validation error: ${error.message}`, { cause: error });
122
123
  }
123
124
 
124
125
  return value; // Validated and sanitized configuration