@eui/tools 6.3.43 → 6.3.45

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
- 6.3.43
1
+ 6.3.45
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.3.45 (2023-02-21)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * addition of "," for DynamicFormsModule.forRoot(dynMapConfig) metadata MWP-9235 [MWP-9235](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-9235) ([89050e1b](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/89050e1bf83297c559da2eb875443caff84b5f0c))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.3.44 (2023-02-21)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * addition of StoreRouterConnectingModule.forRoot for v10 and v15 skeletons (both participant and section) MWP-9235 [MWP-9235](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-9235) ([cb50f2b9](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/cb50f2b952050256abd70e3866bf018a212d8199))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.3.43 (2023-02-21)
2
20
 
3
21
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.3.43",
3
+ "version": "6.3.45",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -47,6 +47,7 @@ import { ModuleComponent } from './module.component';
47
47
  BrowserModule,
48
48
  BrowserAnimationsModule,
49
49
  HttpClientModule,
50
+ StoreRouterConnectingModule.forRoot({ stateKey: 'router', serializer: CustomSerializer }),
50
51
  EffectsModule.forRoot([]),
51
52
  StoreDevtoolsModule.instrument({ name: appConfig.global.storeName, maxAge: 150, logOnly: environment.production }),
52
53
  TranslateModule.forRoot(translateConfig),
@@ -50,6 +50,7 @@ import { ModuleComponent } from './module.component';
50
50
  BrowserModule,
51
51
  BrowserAnimationsModule,
52
52
  HttpClientModule,
53
+ StoreRouterConnectingModule.forRoot({ stateKey: 'router', serializer: CustomSerializer }),
53
54
  EffectsModule.forRoot([]),
54
55
  StoreDevtoolsModule.instrument({ name: appConfig.global.storeName, maxAge: 150, logOnly: environment.production }),
55
56
  TranslateModule.forRoot(translateConfig),
@@ -171,7 +171,6 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemote = true) => {
171
171
  // if no options found, we inject default modules defs
172
172
  if (!remote.skeletonConfig.options) {
173
173
  definitionsContent.push('StoreModule.forRoot(TOKEN, { metaReducers })');
174
- definitionsContent.push(`StoreRouterConnectingModule.forRoot({ stateKey: 'router', serializer: CustomSerializer })`);
175
174
 
176
175
 
177
176
  // if options, all options are checked and default modules defs are injected following certain conditions
@@ -212,8 +211,6 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemote = true) => {
212
211
  if (remote.skeletonConfig.options.participant) {
213
212
  tools.copy(optionParticipantPath, remoteSrcPath);
214
213
  pushContent(optionParticipantDef);
215
- } else {
216
- definitionsContent.push(`StoreRouterConnectingModule.forRoot({ stateKey: 'router', serializer: CustomSerializer })`);
217
214
  }
218
215
 
219
216
  if (remote.skeletonConfig.options.participant) {
@@ -224,7 +221,7 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemote = true) => {
224
221
  // replace option in module.ts placeholders
225
222
  const moduleTsPath = path.join(remoteSrcPath, 'app', 'module.ts');
226
223
  tools.replaceInFileSync(moduleTsPath, '// IMPORTS', importsContent.join('\n'));
227
- tools.replaceInFileSync(moduleTsPath, '// DEFINITIONS', definitionsContent.join(',\n'));
224
+ tools.replaceInFileSync(moduleTsPath, '// DEFINITIONS', `${definitionsContent.join() ? definitionsContent.join(',\n') + ',' : ''}`);
228
225
  tools.replaceInFileSync(moduleTsPath, '// DECLARATIONS', declarationsContent.join('\n'));
229
226
  tools.replaceInFileSync(moduleTsPath, '// PROVIDERS', providersContent.join(',\n'));
230
227
  tools.replaceInFileSync(moduleTsPath, '// CONSTRUCTOR DECLARATIONS', constructorDeclarationsContent.join('\n'));