@o3r/core 14.0.0-next.7 → 14.0.0-next.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/core",
3
- "version": "14.0.0-next.7",
3
+ "version": "14.0.0-next.8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,12 +38,12 @@
38
38
  "@ngrx/entity": "^20.0.0",
39
39
  "@ngrx/store": "^20.0.0",
40
40
  "@nx/angular": "~21.6.0",
41
- "@o3r/telemetry": "~14.0.0-next.7",
41
+ "@o3r/telemetry": "~14.0.0-next.8",
42
42
  "@schematics/angular": "^20.0.0",
43
43
  "chokidar": "^4.0.3",
44
44
  "globby": "^11.1.0",
45
45
  "rxjs": "^7.8.1",
46
- "type-fest": "^4.30.1",
46
+ "type-fest": "^5.3.1",
47
47
  "typescript": "^5.9.0"
48
48
  },
49
49
  "peerDependenciesMeta": {
@@ -76,7 +76,7 @@
76
76
  }
77
77
  },
78
78
  "dependencies": {
79
- "@o3r/schematics": "~14.0.0-next.7",
79
+ "@o3r/schematics": "~14.0.0-next.8",
80
80
  "tslib": "^2.6.2",
81
81
  "uuid": "^11.0.5"
82
82
  },
@@ -88,7 +88,7 @@
88
88
  "@ngrx/store": "~20.1.0",
89
89
  "@ngrx/store-devtools": "~20.1.0",
90
90
  "@nx/eslint-plugin": "~21.6.0",
91
- "@o3r/store-sync": "~14.0.0-next.7",
91
+ "@o3r/store-sync": "~14.0.0-next.8",
92
92
  "@stylistic/eslint-plugin": "~5.6.0",
93
93
  "@types/jest": "~30.0.0",
94
94
  "@typescript-eslint/eslint-plugin": "~8.47.0",
@@ -101,9 +101,9 @@
101
101
  "eslint-plugin-import": "~2.32.0",
102
102
  "eslint-plugin-import-newlines": "~1.4.0",
103
103
  "eslint-plugin-jest": "~29.1.0",
104
- "eslint-plugin-jsdoc": "~54.7.0",
104
+ "eslint-plugin-jsdoc": "~61.5.0",
105
105
  "eslint-plugin-prefer-arrow": "~1.2.3",
106
- "eslint-plugin-unicorn": "~60.0.0",
106
+ "eslint-plugin-unicorn": "~62.0.0",
107
107
  "eslint-plugin-unused-imports": "~4.3.0",
108
108
  "globals": "^16.0.0",
109
109
  "jest": "~30.2.0",
@@ -14,8 +14,9 @@ function convertToO3rComponentFn(options) {
14
14
  const updateComponentFile = (tree) => {
15
15
  const sourceFile = ts.createSourceFile(options.path, tree.readText(options.path), ts.ScriptTarget.ES2020, true);
16
16
  const recorder = tree.beginUpdate(options.path);
17
- const changes = [];
18
- changes.push((0, ast_utils_1.insertImport)(sourceFile, options.path, 'O3rComponent', '@o3r/core'));
17
+ const changes = [
18
+ (0, ast_utils_1.insertImport)(sourceFile, options.path, 'O3rComponent', '@o3r/core')
19
+ ];
19
20
  const ngComponentDeclaration = sourceFile.statements.find((s) => ts.isClassDeclaration(s) && (0, schematics_2.isNgClassComponent)(s));
20
21
  if (!ngComponentDeclaration) {
21
22
  throw new schematics_2.O3rCliError(`No Angular component found in ${options.path}.`);
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/store/entity-async/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAQL,IAAI,EAKL,MAAM,4BAA4B,CAAC;AAuFpC;;;GAGG;AACH,eAAO,MAAM,0BAA0B,wBAAqD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/store/entity-async/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAQL,IAAI,EAKL,MAAM,4BAA4B,CAAC;AAsFpC;;;GAGG;AACH,eAAO,MAAM,0BAA0B,wBAAqD,CAAC"}
@@ -40,26 +40,28 @@ function ngGenerateEntityAsyncStoreFn(options) {
40
40
  currentStoreIndex = currentStoreIndexBuffer ? currentStoreIndexBuffer.toString() : '';
41
41
  tree.delete(barrelPath);
42
42
  }
43
- const rules = [];
44
- rules.push((0, schematics_1.mergeWith)((0, schematics_1.apply)(commonTemplates, [
45
- (0, schematics_1.template)({
46
- ...core_1.strings,
47
- ...options,
48
- ...formattedProperties,
49
- currentStoreIndex
50
- }),
51
- (0, schematics_1.renameTemplateFiles)(),
52
- (0, schematics_1.move)(`${destination}/${core_1.strings.dasherize(options.storeName)}`)
53
- ]), schematics_1.MergeStrategy.Overwrite), (0, schematics_1.mergeWith)((0, schematics_1.apply)(asyncEntityTemplates, [
54
- (0, schematics_1.template)({
55
- ...core_1.strings,
56
- ...options,
57
- ...formattedProperties,
58
- currentStoreIndex
59
- }),
60
- (0, schematics_1.renameTemplateFiles)(),
61
- (0, schematics_1.move)(`${destination}/${core_1.strings.dasherize(options.storeName)}`)
62
- ]), schematics_1.MergeStrategy.Overwrite));
43
+ const rules = [
44
+ (0, schematics_1.mergeWith)((0, schematics_1.apply)(commonTemplates, [
45
+ (0, schematics_1.template)({
46
+ ...core_1.strings,
47
+ ...options,
48
+ ...formattedProperties,
49
+ currentStoreIndex
50
+ }),
51
+ (0, schematics_1.renameTemplateFiles)(),
52
+ (0, schematics_1.move)(`${destination}/${core_1.strings.dasherize(options.storeName)}`)
53
+ ]), schematics_1.MergeStrategy.Overwrite),
54
+ (0, schematics_1.mergeWith)((0, schematics_1.apply)(asyncEntityTemplates, [
55
+ (0, schematics_1.template)({
56
+ ...core_1.strings,
57
+ ...options,
58
+ ...formattedProperties,
59
+ currentStoreIndex
60
+ }),
61
+ (0, schematics_1.renameTemplateFiles)(),
62
+ (0, schematics_1.move)(`${destination}/${core_1.strings.dasherize(options.storeName)}`)
63
+ ]), schematics_1.MergeStrategy.Overwrite)
64
+ ];
63
65
  if ((0, schematics_2.moduleHasSubEntryPoints)(tree, destination)) {
64
66
  (0, schematics_2.writeSubEntryPointPackageJson)(tree, destination, core_1.strings.dasherize(options.storeName));
65
67
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/store/entity-sync/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAQL,IAAI,EAKL,MAAM,4BAA4B,CAAC;AAwFpC;;;GAGG;AACH,eAAO,MAAM,yBAAyB,wBAAoD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/store/entity-sync/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAQL,IAAI,EAKL,MAAM,4BAA4B,CAAC;AAuFpC;;;GAGG;AACH,eAAO,MAAM,yBAAyB,wBAAoD,CAAC"}
@@ -40,26 +40,28 @@ function ngGenerateEntitySyncStoreFn(options) {
40
40
  currentStoreIndex = currentStoreIndexBuffer ? currentStoreIndexBuffer.toString() : '';
41
41
  tree.delete(barrelPath);
42
42
  }
43
- const rules = [];
44
- rules.push((0, schematics_1.mergeWith)((0, schematics_1.apply)(commonTemplates, [
45
- (0, schematics_1.template)({
46
- ...core_1.strings,
47
- ...options,
48
- ...formattedProperties,
49
- currentStoreIndex
50
- }),
51
- (0, schematics_1.renameTemplateFiles)(),
52
- (0, schematics_1.move)(`${destination}/${core_1.strings.dasherize(options.storeName)}`)
53
- ]), schematics_1.MergeStrategy.Overwrite), (0, schematics_1.mergeWith)((0, schematics_1.apply)(syncEntityTemplates, [
54
- (0, schematics_1.template)({
55
- ...core_1.strings,
56
- ...options,
57
- ...formattedProperties,
58
- currentStoreIndex
59
- }),
60
- (0, schematics_1.renameTemplateFiles)(),
61
- (0, schematics_1.move)(`${destination}/${core_1.strings.dasherize(options.storeName)}`)
62
- ]), schematics_1.MergeStrategy.Overwrite));
43
+ const rules = [
44
+ (0, schematics_1.mergeWith)((0, schematics_1.apply)(commonTemplates, [
45
+ (0, schematics_1.template)({
46
+ ...core_1.strings,
47
+ ...options,
48
+ ...formattedProperties,
49
+ currentStoreIndex
50
+ }),
51
+ (0, schematics_1.renameTemplateFiles)(),
52
+ (0, schematics_1.move)(`${destination}/${core_1.strings.dasherize(options.storeName)}`)
53
+ ]), schematics_1.MergeStrategy.Overwrite),
54
+ (0, schematics_1.mergeWith)((0, schematics_1.apply)(syncEntityTemplates, [
55
+ (0, schematics_1.template)({
56
+ ...core_1.strings,
57
+ ...options,
58
+ ...formattedProperties,
59
+ currentStoreIndex
60
+ }),
61
+ (0, schematics_1.renameTemplateFiles)(),
62
+ (0, schematics_1.move)(`${destination}/${core_1.strings.dasherize(options.storeName)}`)
63
+ ]), schematics_1.MergeStrategy.Overwrite)
64
+ ];
63
65
  if ((0, schematics_2.moduleHasSubEntryPoints)(tree, destination)) {
64
66
  (0, schematics_2.writeSubEntryPointPackageJson)(tree, destination, core_1.strings.dasherize(options.storeName));
65
67
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/store/simple-async/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAQL,IAAI,EAKL,MAAM,4BAA4B,CAAC;AAoFpC;;;GAGG;AACH,eAAO,MAAM,0BAA0B,wBAAqD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/store/simple-async/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAQL,IAAI,EAKL,MAAM,4BAA4B,CAAC;AAmFpC;;;GAGG;AACH,eAAO,MAAM,0BAA0B,wBAAqD,CAAC"}
@@ -36,26 +36,28 @@ function ngGenerateSimpleAsyncStoreFn(options) {
36
36
  currentStoreIndex = currentStoreIndexBuffer ? currentStoreIndexBuffer.toString() : '';
37
37
  tree.delete(barrelPath);
38
38
  }
39
- const rules = [];
40
- rules.push((0, schematics_1.mergeWith)((0, schematics_1.apply)(commonTemplates, [
41
- (0, schematics_1.template)({
42
- ...core_1.strings,
43
- ...options,
44
- ...formattedProperties,
45
- currentStoreIndex
46
- }),
47
- (0, schematics_1.renameTemplateFiles)(),
48
- (0, schematics_1.move)(`${destination}/${core_1.strings.dasherize(options.storeName)}`)
49
- ]), schematics_1.MergeStrategy.Overwrite), (0, schematics_1.mergeWith)((0, schematics_1.apply)(syncEntityTemplates, [
50
- (0, schematics_1.template)({
51
- ...core_1.strings,
52
- ...options,
53
- ...formattedProperties,
54
- currentStoreIndex
55
- }),
56
- (0, schematics_1.renameTemplateFiles)(),
57
- (0, schematics_1.move)(`${destination}/${core_1.strings.dasherize(options.storeName)}`)
58
- ]), schematics_1.MergeStrategy.Overwrite));
39
+ const rules = [
40
+ (0, schematics_1.mergeWith)((0, schematics_1.apply)(commonTemplates, [
41
+ (0, schematics_1.template)({
42
+ ...core_1.strings,
43
+ ...options,
44
+ ...formattedProperties,
45
+ currentStoreIndex
46
+ }),
47
+ (0, schematics_1.renameTemplateFiles)(),
48
+ (0, schematics_1.move)(`${destination}/${core_1.strings.dasherize(options.storeName)}`)
49
+ ]), schematics_1.MergeStrategy.Overwrite),
50
+ (0, schematics_1.mergeWith)((0, schematics_1.apply)(syncEntityTemplates, [
51
+ (0, schematics_1.template)({
52
+ ...core_1.strings,
53
+ ...options,
54
+ ...formattedProperties,
55
+ currentStoreIndex
56
+ }),
57
+ (0, schematics_1.renameTemplateFiles)(),
58
+ (0, schematics_1.move)(`${destination}/${core_1.strings.dasherize(options.storeName)}`)
59
+ ]), schematics_1.MergeStrategy.Overwrite)
60
+ ];
59
61
  if ((0, schematics_2.moduleHasSubEntryPoints)(tree, destination)) {
60
62
  (0, schematics_2.writeSubEntryPointPackageJson)(tree, destination, core_1.strings.dasherize(options.storeName));
61
63
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/store/simple-sync/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAQL,IAAI,EAKL,MAAM,4BAA4B,CAAC;AA+EpC,eAAO,MAAM,yBAAyB,wBAAoD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/store/simple-sync/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAQL,IAAI,EAKL,MAAM,4BAA4B,CAAC;AA8EpC,eAAO,MAAM,yBAAyB,wBAAoD,CAAC"}
@@ -31,26 +31,28 @@ function ngGenerateSimpleSyncStoreFn(options) {
31
31
  currentStoreIndex = currentStoreIndexBuffer ? currentStoreIndexBuffer.toString() : '';
32
32
  tree.delete(barrelPath);
33
33
  }
34
- const rules = [];
35
- rules.push((0, schematics_1.mergeWith)((0, schematics_1.apply)(commonTemplates, [
36
- (0, schematics_1.template)({
37
- ...core_1.strings,
38
- ...options,
39
- ...formattedProperties,
40
- currentStoreIndex
41
- }),
42
- (0, schematics_1.renameTemplateFiles)(),
43
- (0, schematics_1.move)(`${destination}/${core_1.strings.dasherize(options.storeName)}`)
44
- ]), schematics_1.MergeStrategy.Overwrite), (0, schematics_1.mergeWith)((0, schematics_1.apply)(syncEntityTemplates, [
45
- (0, schematics_1.template)({
46
- ...core_1.strings,
47
- ...options,
48
- ...formattedProperties,
49
- currentStoreIndex
50
- }),
51
- (0, schematics_1.renameTemplateFiles)(),
52
- (0, schematics_1.move)(`${destination}/${core_1.strings.dasherize(options.storeName)}`)
53
- ]), schematics_1.MergeStrategy.Overwrite));
34
+ const rules = [
35
+ (0, schematics_1.mergeWith)((0, schematics_1.apply)(commonTemplates, [
36
+ (0, schematics_1.template)({
37
+ ...core_1.strings,
38
+ ...options,
39
+ ...formattedProperties,
40
+ currentStoreIndex
41
+ }),
42
+ (0, schematics_1.renameTemplateFiles)(),
43
+ (0, schematics_1.move)(`${destination}/${core_1.strings.dasherize(options.storeName)}`)
44
+ ]), schematics_1.MergeStrategy.Overwrite),
45
+ (0, schematics_1.mergeWith)((0, schematics_1.apply)(syncEntityTemplates, [
46
+ (0, schematics_1.template)({
47
+ ...core_1.strings,
48
+ ...options,
49
+ ...formattedProperties,
50
+ currentStoreIndex
51
+ }),
52
+ (0, schematics_1.renameTemplateFiles)(),
53
+ (0, schematics_1.move)(`${destination}/${core_1.strings.dasherize(options.storeName)}`)
54
+ ]), schematics_1.MergeStrategy.Overwrite)
55
+ ];
54
56
  if ((0, schematics_2.moduleHasSubEntryPoints)(tree, destination)) {
55
57
  (0, schematics_2.writeSubEntryPointPackageJson)(tree, destination, core_1.strings.dasherize(options.storeName));
56
58
  }