@o3r/components 11.5.0-prerelease.44 → 11.5.0-prerelease.46

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.
@@ -1 +1 @@
1
- {"version":3,"file":"config-metadata-comparison.helper.d.ts","sourceRoot":"","sources":["../../../../builders/metadata-check/helpers/config-metadata-comparison.helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,mBAAmB;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AA6BD;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,kBAAkB,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,CAI5H,CAAC"}
1
+ {"version":3,"file":"config-metadata-comparison.helper.d.ts","sourceRoot":"","sources":["../../../../builders/metadata-check/helpers/config-metadata-comparison.helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,mBAAmB;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AA8BD;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,kBAAkB,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,CAK5H,CAAC"}
@@ -18,8 +18,8 @@ const getConfigurationArray = (content) => content.flatMap((config) => config.pr
18
18
  ? config.properties.map((prop) => ({ ...config, properties: [prop] }))
19
19
  : [config]);
20
20
  const getConfigurationPropertyName = (config) => `${config.library}#${config.name}` + (config.properties.length ? ` ${config.properties[0].name}` : '');
21
- const isMigrationConfigurationDataMatch = (config, migrationData, metadataType) => metadataType === 'CONFIG' &&
22
- migrationData.libraryName === config.library
21
+ const isRelevantContentType = (contentType) => contentType === 'CONFIG';
22
+ const isMigrationConfigurationDataMatch = (config, migrationData) => migrationData.libraryName === config.library
23
23
  && (!migrationData.configName || migrationData.configName === config.name)
24
24
  && (!migrationData.propertyName || config.properties[0]?.name === migrationData.propertyName);
25
25
  /**
@@ -28,6 +28,7 @@ const isMigrationConfigurationDataMatch = (config, migrationData, metadataType)
28
28
  exports.configMetadataComparator = {
29
29
  getArray: getConfigurationArray,
30
30
  getIdentifier: getConfigurationPropertyName,
31
+ isRelevantContentType,
31
32
  isMigrationDataMatch: isMigrationConfigurationDataMatch
32
33
  };
33
34
  //# sourceMappingURL=config-metadata-comparison.helper.js.map
@@ -26,6 +26,11 @@
26
26
  "description": "Are breaking changes allowed.",
27
27
  "default": false
28
28
  },
29
+ "shouldCheckUnusedMigrationData": {
30
+ "type": "boolean",
31
+ "description": "Whether to throw an error in case of a migration item that is not used during metadata checks",
32
+ "default": false
33
+ },
29
34
  "packageManager": {
30
35
  "type": "string",
31
36
  "description": "Override of the package manager, otherwise it will be computed from the project setup."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/components",
3
- "version": "11.5.0-prerelease.44",
3
+ "version": "11.5.0-prerelease.46",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -45,16 +45,16 @@
45
45
  "@ngrx/effects": "~18.0.0",
46
46
  "@ngrx/entity": "~18.0.0",
47
47
  "@ngrx/store": "~18.0.0",
48
- "@o3r/analytics": "^11.5.0-prerelease.44",
49
- "@o3r/configuration": "^11.5.0-prerelease.44",
50
- "@o3r/core": "^11.5.0-prerelease.44",
51
- "@o3r/dynamic-content": "^11.5.0-prerelease.44",
52
- "@o3r/extractors": "^11.5.0-prerelease.44",
53
- "@o3r/localization": "^11.5.0-prerelease.44",
54
- "@o3r/logger": "^11.5.0-prerelease.44",
55
- "@o3r/rules-engine": "^11.5.0-prerelease.44",
56
- "@o3r/schematics": "^11.5.0-prerelease.44",
57
- "@o3r/testing": "^11.5.0-prerelease.44",
48
+ "@o3r/analytics": "^11.5.0-prerelease.46",
49
+ "@o3r/configuration": "^11.5.0-prerelease.46",
50
+ "@o3r/core": "^11.5.0-prerelease.46",
51
+ "@o3r/dynamic-content": "^11.5.0-prerelease.46",
52
+ "@o3r/extractors": "^11.5.0-prerelease.46",
53
+ "@o3r/localization": "^11.5.0-prerelease.46",
54
+ "@o3r/logger": "^11.5.0-prerelease.46",
55
+ "@o3r/rules-engine": "^11.5.0-prerelease.46",
56
+ "@o3r/schematics": "^11.5.0-prerelease.46",
57
+ "@o3r/testing": "^11.5.0-prerelease.46",
58
58
  "@schematics/angular": "~18.2.0",
59
59
  "@yarnpkg/cli": "^4.0.0",
60
60
  "@yarnpkg/core": "^4.1.1",