@eui/tools 6.16.10 → 6.16.12

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.16.10
1
+ 6.16.12
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.16.12 (2024-04-15)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * Enable BFF for localhost development [CCARCHITEC-1641](https://webgate.ec.europa.eu/CITnet/jira/browse/CCARCHITEC-1641) ([9dd87ee8](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/9dd87ee88d954450c6a0950728f0a098baa2627c))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.16.11 (2024-04-12)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * re-activated ngrx setup config for v18 showcase - EUI-9014 [EUI-9014](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-9014) ([3edc5a72](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/3edc5a722c4a17a255466f0f06202848c9a51595))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.16.10 (2024-04-08)
2
20
 
3
21
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.16.10",
3
+ "version": "6.16.12",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -4,6 +4,7 @@
4
4
  "composite": {
5
5
  "@eui/deps-base": "^17.0.0",
6
6
  "@module.scope@/@module.name@": "^1.0.0",
7
+ "@cc/shared": "^6.0.0",
7
8
  "@mywp/shared": "^6.0.0",
8
9
  "@csdr/core": "^6.0.0",
9
10
  "@csdr/integration": "^5.0.0"
@@ -351,6 +351,10 @@ module.exports.registerAngularProjectDef = (project, build = false, element = fa
351
351
 
352
352
  // writing serve configuration entry
353
353
  const serveConf = { browserTarget: project.name + ':build:' + confKey };
354
+ // add proxy configuration
355
+ if (confKey.startsWith('cdn-') && confKey.endsWith('-local')) {
356
+ serveConf ['proxyConfig'] = 'hosts/' + project.name + '/proxy-' + confKey + '-openid.conf.js';
357
+ }
354
358
  jsonFile['projects'][project.name].architect.serve.configurations[confKey] = serveConf;
355
359
  })
356
360
  }
@@ -213,6 +213,17 @@ module.exports.preReleaseChecks = (pkg) => {
213
213
  }
214
214
  })
215
215
 
216
+ // CHECK eUI VERSION OF PKG VALIDITY (no v10 allowed after 5/04)
217
+ // .then(() => {
218
+ // utils.tools.logTitle('Checking supported eUI version');
219
+
220
+ // const euiVersion = configUtils.packages.getPackageEuiVersion(pkg);
221
+
222
+ // if (euiVersion && euiVersion === '10.x') {
223
+ // throw new Error('VERSION_10_NOT_SUPPORTED');
224
+ // }
225
+ // })
226
+
216
227
  // CHECKING PACKAGE LOCK STATE - AVOID SAME PACKAGE RUN issuing race conditions
217
228
  .then(() => {
218
229
  if (!pkg.backend) {
@@ -4,8 +4,8 @@ import { BrowserModule } from '@angular/platform-browser';
4
4
  import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
5
5
  import { HttpClientModule } from '@angular/common/http';
6
6
  import { StoreModule } from '@ngrx/store';
7
- // import { EffectsModule } from '@ngrx/effects';
8
- // import { StoreDevtoolsModule } from '@ngrx/store-devtools';
7
+ import { EffectsModule } from '@ngrx/effects';
8
+ import { StoreDevtoolsModule } from '@ngrx/store-devtools';
9
9
  import { TranslateModule } from '@ngx-translate/core';
10
10
 
11
11
  // eUI IMPORTS
@@ -21,7 +21,7 @@ import { environment } from '../environments/environment';
21
21
  import { AppRoutingModule } from '../../app/app-routing.module';
22
22
  import { AppComponent } from '../../app/app.component';
23
23
 
24
- // import { TOKEN, reducerProvider, metaReducers, runtimeChecks } from './core/reducers/index';
24
+ import { TOKEN, reducerProvider, metaReducers, runtimeChecks } from './core/reducers/index';
25
25
 
26
26
  // APP ROOT MODULE
27
27
  @NgModule({
@@ -29,8 +29,8 @@ import { AppComponent } from '../../app/app.component';
29
29
  BrowserModule,
30
30
  BrowserAnimationsModule,
31
31
  HttpClientModule,
32
- // StoreModule.forRoot(TOKEN, { metaReducers, runtimeChecks }),
33
- StoreModule.forRoot(),
32
+ StoreModule.forRoot(TOKEN, { metaReducers, runtimeChecks }),
33
+ // StoreModule.forRoot(),
34
34
  TranslateModule.forRoot(translateConfig),
35
35
  CoreModule.forRoot(),
36
36
  AppRoutingModule,
@@ -41,7 +41,7 @@ import { AppComponent } from '../../app/app.component';
41
41
  ],
42
42
  providers: [
43
43
  { provide: EUI_CONFIG_TOKEN, useValue: { appConfig: appConfig, environment: environment } },
44
- // reducerProvider,
44
+ reducerProvider,
45
45
  ],
46
46
  bootstrap: [
47
47
  AppComponent,
@@ -1,49 +1,50 @@
1
- // import { InjectionToken } from '@angular/core';
2
- // import { ActionReducer, ActionReducerMap, MetaReducer, RuntimeChecks } from '@ngrx/store';
3
- // import * as fromRouter from '@ngrx/router-store';
4
- // import { storeFreeze } from 'ngrx-store-freeze';
5
- // import { reducers as coreReducers, CoreState, localStorageSync } from '@eui/core';
6
-
7
- // export interface AppState extends CoreState {
8
- // router: fromRouter.RouterReducerState<any>;
9
- // }
10
-
11
- // // -----------------
12
- // // ------------ AOT
13
- // export const TOKEN = new InjectionToken<any>('AppReducers');
14
-
15
- // export function getReducers(): ActionReducerMap<AppState, any> {
16
- // return {
17
- // router: fromRouter.routerReducer,
18
- // ...coreReducers,
19
- // };
20
- // }
21
-
22
- // export const reducerProvider = [
23
- // { provide: TOKEN, useFactory: getReducers },
24
- // ];
25
-
26
- // // console.log all actions
27
- // export function logger(reducer: ActionReducer<AppState>): ActionReducer<AppState> {
28
- // return (state, action) => {
29
- // const result = reducer(state, action);
30
- // console.groupCollapsed(action.type);
31
- // console.log('prev state', state);
32
- // console.log('action', action);
33
- // console.log('next state', result);
34
- // console.groupEnd();
35
-
36
- // return result;
37
- // };
38
- // }
39
-
40
- // export const metaReducers: MetaReducer<AppState>[] = [logger, localStorageSync, storeFreeze];
41
-
42
- // export const runtimeChecks: RuntimeChecks = {
43
- // strictStateSerializability: false,
44
- // strictActionSerializability: false,
45
- // strictStateImmutability: false,
46
- // strictActionImmutability: false,
47
- // strictActionWithinNgZone: false,
48
- // strictActionTypeUniqueness: false,
49
- // };
1
+ import { InjectionToken } from '@angular/core';
2
+ import { ActionReducer, ActionReducerMap, MetaReducer, RuntimeChecks } from '@ngrx/store';
3
+ import * as fromRouter from '@ngrx/router-store';
4
+ import { storeFreeze } from 'ngrx-store-freeze';
5
+ import { reducers as coreReducers, localStorageSync } from '@eui/core';
6
+ import { CoreState } from '@eui/base';
7
+
8
+ export interface AppState extends CoreState {
9
+ router: fromRouter.RouterReducerState<any>;
10
+ }
11
+
12
+ // -----------------
13
+ // ------------ AOT
14
+ export const TOKEN = new InjectionToken<any>('AppReducers');
15
+
16
+ export function getReducers(): ActionReducerMap<AppState, any> {
17
+ return {
18
+ router: fromRouter.routerReducer,
19
+ ...coreReducers,
20
+ };
21
+ }
22
+
23
+ export const reducerProvider = [
24
+ { provide: TOKEN, useFactory: getReducers },
25
+ ];
26
+
27
+ // console.log all actions
28
+ export function logger(reducer: ActionReducer<AppState>): ActionReducer<AppState> {
29
+ return (state, action) => {
30
+ const result = reducer(state, action);
31
+ console.groupCollapsed(action.type);
32
+ console.log('prev state', state);
33
+ console.log('action', action);
34
+ console.log('next state', result);
35
+ console.groupEnd();
36
+
37
+ return result;
38
+ };
39
+ }
40
+
41
+ export const metaReducers: MetaReducer<AppState>[] = [logger, localStorageSync, storeFreeze];
42
+
43
+ export const runtimeChecks: RuntimeChecks = {
44
+ strictStateSerializability: false,
45
+ strictActionSerializability: false,
46
+ strictStateImmutability: false,
47
+ strictActionImmutability: false,
48
+ strictActionWithinNgZone: false,
49
+ strictActionTypeUniqueness: false,
50
+ };