@eui/tools 6.12.60 → 6.12.61
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/.version.properties +1 -1
- package/CHANGELOG.md +9 -0
- package/package.json +1 -1
- package/scripts/csdr/init/remotes/10.x/full/common/app/module.ts +1 -1
- package/scripts/csdr/init/remotes/10.x/full/common/app/reducers/index.ts +10 -1
- package/scripts/csdr/init/remotes/10.x/full/options/user-reducers/app/reducers/index.ts +10 -1
- package/scripts/csdr/init/remotes/15.x/full/common/app/module.ts +1 -1
- package/scripts/csdr/init/remotes/15.x/full/common/app/reducers/index.ts +10 -1
- package/scripts/csdr/init/remotes/15.x/full/options/user-reducers/app/reducers/index.ts +10 -1
- package/scripts/csdr/init/remotes/16.x/full/common/app/module.ts +1 -1
- package/scripts/csdr/init/remotes/16.x/full/common/app/reducers/index.ts +12 -3
- package/scripts/csdr/init/remotes/16.x/full/options/user-reducers/app/reducers/index.ts +13 -4
- package/scripts/csdr/init/remotes/17.x/full/common/app/module.ts +1 -1
- package/scripts/csdr/init/remotes/17.x/full/common/app/reducers/index.ts +12 -3
- package/scripts/csdr/init/remotes/17.x/full/options/user-reducers/app/reducers/index.ts +13 -4
- package/scripts/csdr/init/remotes.js +3 -3
- package/scripts/utils/pre-build/injection/app-sources-eui-showcase/src/app/app.module.ts +2 -2
- package/scripts/utils/pre-build/injection/app-sources-eui-showcase/src/app/core/reducers/index.ts +10 -1
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton/src/_generated/app/app.module.ts +2 -2
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton/src/_generated/app/core/reducers/index.ts +10 -1
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/app/app.module.ts +2 -2
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/app/core/reducers/index.ts +10 -1
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui14/src/_generated/app/app.module.ts +2 -2
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui14/src/_generated/app/core/reducers/index.ts +10 -1
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.12.
|
|
1
|
+
6.12.61
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.12.61 (2023-09-29)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* addition of runtimeChecks setup for ngrx store for the automatic generated applications. runtimeChecks are currently added, but not enabled. MWP-10096 [MWP-10096](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-10096) ([d3e2aae2](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/d3e2aae2909b9bf0465c24d7df679257002136fe))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.12.60 (2023-09-28)
|
|
2
11
|
|
|
3
12
|
##### Bug Fixes
|
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
ElementStorageService,
|
|
24
24
|
} from '@csdr/core';
|
|
25
25
|
|
|
26
|
-
import { TOKEN, reducerProvider, metaReducers } from './reducers/index';
|
|
26
|
+
import { TOKEN, reducerProvider, metaReducers, runtimeChecks } from './reducers/index';
|
|
27
27
|
import { CustomSerializer } from './reducers/custom-route-serializer';
|
|
28
28
|
|
|
29
29
|
import { environment } from '../environments/environment';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { ActionReducer, ActionReducerMap, MetaReducer } from '@ngrx/store';
|
|
2
|
+
import { ActionReducer, ActionReducerMap, MetaReducer, RuntimeChecks } from '@ngrx/store';
|
|
3
3
|
import * as fromRouter from '@ngrx/router-store';
|
|
4
4
|
import { storeFreeze } from 'ngrx-store-freeze';
|
|
5
5
|
import { reducers as coreReducers, CoreState, localStorageSync } from '@eui/core';
|
|
@@ -40,3 +40,12 @@ export function logger(reducer: ActionReducer<AppState>): ActionReducer<AppState
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
export const metaReducers: MetaReducer<AppState>[] = !environment.production ? [logger, localStorageSync, storeFreeze] : [localStorageSync];
|
|
43
|
+
|
|
44
|
+
export const runtimeChecks: RuntimeChecks = {
|
|
45
|
+
strictStateSerializability: false,
|
|
46
|
+
strictActionSerializability: false,
|
|
47
|
+
strictStateImmutability: false,
|
|
48
|
+
strictActionImmutability: false,
|
|
49
|
+
strictActionWithinNgZone: false,
|
|
50
|
+
strictActionTypeUniqueness: false,
|
|
51
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { ActionReducer, ActionReducerMap, MetaReducer, INIT } from '@ngrx/store';
|
|
2
|
+
import { ActionReducer, ActionReducerMap, MetaReducer, INIT, RuntimeChecks } from '@ngrx/store';
|
|
3
3
|
import * as fromRouter from '@ngrx/router-store';
|
|
4
4
|
import { storeFreeze } from 'ngrx-store-freeze';
|
|
5
5
|
|
|
@@ -64,3 +64,12 @@ export function metaReducers(config: any, elementStorage: ElementStorageService)
|
|
|
64
64
|
}
|
|
65
65
|
return [localStorageSync, hydrationFactory(config, elementStorage)];
|
|
66
66
|
}
|
|
67
|
+
|
|
68
|
+
export const runtimeChecks: RuntimeChecks = {
|
|
69
|
+
strictStateSerializability: false,
|
|
70
|
+
strictActionSerializability: false,
|
|
71
|
+
strictStateImmutability: false,
|
|
72
|
+
strictActionImmutability: false,
|
|
73
|
+
strictActionWithinNgZone: false,
|
|
74
|
+
strictActionTypeUniqueness: false,
|
|
75
|
+
};
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
ElementStorageService,
|
|
24
24
|
} from '@csdr/core';
|
|
25
25
|
|
|
26
|
-
import { TOKEN, reducerProvider, metaReducers } from './reducers/index';
|
|
26
|
+
import { TOKEN, reducerProvider, metaReducers, runtimeChecks } from './reducers/index';
|
|
27
27
|
import { CustomSerializer } from './reducers/custom-route-serializer';
|
|
28
28
|
|
|
29
29
|
import { environment } from '../environments/environment';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { ActionReducer, ActionReducerMap, MetaReducer } from '@ngrx/store';
|
|
2
|
+
import { ActionReducer, ActionReducerMap, MetaReducer, RuntimeChecks } from '@ngrx/store';
|
|
3
3
|
import * as fromRouter from '@ngrx/router-store';
|
|
4
4
|
import { storeFreeze } from 'ngrx-store-freeze';
|
|
5
5
|
import { reducers as coreReducers, CoreState, localStorageSync } from '@eui/core';
|
|
@@ -40,3 +40,12 @@ export function logger(reducer: ActionReducer<AppState>): ActionReducer<AppState
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
export const metaReducers: MetaReducer<AppState>[] = !environment.production ? [logger, localStorageSync, storeFreeze] : [localStorageSync];
|
|
43
|
+
|
|
44
|
+
export const runtimeChecks: RuntimeChecks = {
|
|
45
|
+
strictStateSerializability: false,
|
|
46
|
+
strictActionSerializability: false,
|
|
47
|
+
strictStateImmutability: false,
|
|
48
|
+
strictActionImmutability: false,
|
|
49
|
+
strictActionWithinNgZone: false,
|
|
50
|
+
strictActionTypeUniqueness: false,
|
|
51
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { ActionReducer, ActionReducerMap, MetaReducer, INIT } from '@ngrx/store';
|
|
2
|
+
import { ActionReducer, ActionReducerMap, MetaReducer, INIT, RuntimeChecks } from '@ngrx/store';
|
|
3
3
|
import * as fromRouter from '@ngrx/router-store';
|
|
4
4
|
import { storeFreeze } from 'ngrx-store-freeze';
|
|
5
5
|
|
|
@@ -64,3 +64,12 @@ export function metaReducers(config: any, elementStorage: ElementStorageService)
|
|
|
64
64
|
}
|
|
65
65
|
return [localStorageSync, hydrationFactory(config, elementStorage)];
|
|
66
66
|
}
|
|
67
|
+
|
|
68
|
+
export const runtimeChecks: RuntimeChecks = {
|
|
69
|
+
strictStateSerializability: false,
|
|
70
|
+
strictActionSerializability: false,
|
|
71
|
+
strictStateImmutability: false,
|
|
72
|
+
strictActionImmutability: false,
|
|
73
|
+
strictActionWithinNgZone: false,
|
|
74
|
+
strictActionTypeUniqueness: false,
|
|
75
|
+
};
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
ElementStorageService,
|
|
24
24
|
} from '@csdr/core';
|
|
25
25
|
|
|
26
|
-
import { TOKEN, reducerProvider, metaReducers } from './reducers/index';
|
|
26
|
+
import { TOKEN, reducerProvider, metaReducers, runtimeChecks } from './reducers/index';
|
|
27
27
|
import { CustomSerializer } from './reducers/custom-route-serializer';
|
|
28
28
|
|
|
29
29
|
import { environment } from '../environments/environment';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { ActionReducer, ActionReducerMap, MetaReducer } from '@ngrx/store';
|
|
2
|
+
import { ActionReducer, ActionReducerMap, MetaReducer, RuntimeChecks } from '@ngrx/store';
|
|
3
3
|
import * as fromRouter from '@ngrx/router-store';
|
|
4
4
|
import { storeFreeze } from 'ngrx-store-freeze';
|
|
5
|
-
import { reducers as coreReducers, CoreState
|
|
5
|
+
import { reducers as coreReducers, CoreState } from '@eui/core';
|
|
6
6
|
|
|
7
7
|
import { environment } from '../../environments/environment';
|
|
8
8
|
|
|
@@ -39,4 +39,13 @@ export function logger(reducer: ActionReducer<AppState>): ActionReducer<AppState
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
export const metaReducers: MetaReducer<AppState>[] = !environment.production ? [logger,
|
|
42
|
+
export const metaReducers: MetaReducer<AppState>[] = !environment.production ? [logger, storeFreeze] : [];
|
|
43
|
+
|
|
44
|
+
export const runtimeChecks: RuntimeChecks = {
|
|
45
|
+
strictStateSerializability: false,
|
|
46
|
+
strictActionSerializability: false,
|
|
47
|
+
strictStateImmutability: false,
|
|
48
|
+
strictActionImmutability: false,
|
|
49
|
+
strictActionWithinNgZone: false,
|
|
50
|
+
strictActionTypeUniqueness: false,
|
|
51
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { ActionReducer, ActionReducerMap, MetaReducer, INIT } from '@ngrx/store';
|
|
2
|
+
import { ActionReducer, ActionReducerMap, MetaReducer, INIT, RuntimeChecks } from '@ngrx/store';
|
|
3
3
|
import * as fromRouter from '@ngrx/router-store';
|
|
4
4
|
import { storeFreeze } from 'ngrx-store-freeze';
|
|
5
5
|
|
|
6
|
-
import { reducers as coreReducers, CoreState
|
|
6
|
+
import { reducers as coreReducers, CoreState } from '@eui/core';
|
|
7
7
|
import { ElementStorageService } from '@csdr/core';
|
|
8
8
|
|
|
9
9
|
import { environment } from '../../environments/environment';
|
|
@@ -60,7 +60,16 @@ export function hydrationFactory(config: any, elementStorage: ElementStorageServ
|
|
|
60
60
|
|
|
61
61
|
export function metaReducers(config: any, elementStorage: ElementStorageService): MetaReducer<AppState>[] {
|
|
62
62
|
if (!environment.production) {
|
|
63
|
-
return [logger,
|
|
63
|
+
return [logger, storeFreeze, hydrationFactory(config, elementStorage)];
|
|
64
64
|
}
|
|
65
|
-
return [
|
|
65
|
+
return [hydrationFactory(config, elementStorage)];
|
|
66
66
|
}
|
|
67
|
+
|
|
68
|
+
export const runtimeChecks: RuntimeChecks = {
|
|
69
|
+
strictStateSerializability: false,
|
|
70
|
+
strictActionSerializability: false,
|
|
71
|
+
strictStateImmutability: false,
|
|
72
|
+
strictActionImmutability: false,
|
|
73
|
+
strictActionWithinNgZone: false,
|
|
74
|
+
strictActionTypeUniqueness: false,
|
|
75
|
+
};
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
ElementStorageService,
|
|
24
24
|
} from '@csdr/core';
|
|
25
25
|
|
|
26
|
-
import { TOKEN, reducerProvider, metaReducers } from './reducers/index';
|
|
26
|
+
import { TOKEN, reducerProvider, metaReducers, runtimeChecks } from './reducers/index';
|
|
27
27
|
import { CustomSerializer } from './reducers/custom-route-serializer';
|
|
28
28
|
|
|
29
29
|
import { environment } from '../environments/environment';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { ActionReducer, ActionReducerMap, MetaReducer } from '@ngrx/store';
|
|
2
|
+
import { ActionReducer, ActionReducerMap, MetaReducer, RuntimeChecks } from '@ngrx/store';
|
|
3
3
|
import * as fromRouter from '@ngrx/router-store';
|
|
4
4
|
import { storeFreeze } from 'ngrx-store-freeze';
|
|
5
|
-
import { reducers as coreReducers, CoreState
|
|
5
|
+
import { reducers as coreReducers, CoreState } from '@eui/core';
|
|
6
6
|
|
|
7
7
|
import { environment } from '../../environments/environment';
|
|
8
8
|
|
|
@@ -39,4 +39,13 @@ export function logger(reducer: ActionReducer<AppState>): ActionReducer<AppState
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
export const metaReducers: MetaReducer<AppState>[] = !environment.production ? [logger,
|
|
42
|
+
export const metaReducers: MetaReducer<AppState>[] = !environment.production ? [logger, storeFreeze] : [];
|
|
43
|
+
|
|
44
|
+
export const runtimeChecks: RuntimeChecks = {
|
|
45
|
+
strictStateSerializability: true,
|
|
46
|
+
strictActionSerializability: false,
|
|
47
|
+
strictStateImmutability: true,
|
|
48
|
+
strictActionImmutability: true,
|
|
49
|
+
strictActionWithinNgZone: true,
|
|
50
|
+
strictActionTypeUniqueness: true,
|
|
51
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { ActionReducer, ActionReducerMap, MetaReducer, INIT } from '@ngrx/store';
|
|
2
|
+
import { ActionReducer, ActionReducerMap, MetaReducer, INIT, RuntimeChecks } from '@ngrx/store';
|
|
3
3
|
import * as fromRouter from '@ngrx/router-store';
|
|
4
4
|
import { storeFreeze } from 'ngrx-store-freeze';
|
|
5
5
|
|
|
6
|
-
import { reducers as coreReducers, CoreState
|
|
6
|
+
import { reducers as coreReducers, CoreState } from '@eui/core';
|
|
7
7
|
import { ElementStorageService } from '@csdr/core';
|
|
8
8
|
|
|
9
9
|
import { environment } from '../../environments/environment';
|
|
@@ -60,7 +60,16 @@ export function hydrationFactory(config: any, elementStorage: ElementStorageServ
|
|
|
60
60
|
|
|
61
61
|
export function metaReducers(config: any, elementStorage: ElementStorageService): MetaReducer<AppState>[] {
|
|
62
62
|
if (!environment.production) {
|
|
63
|
-
return [logger,
|
|
63
|
+
return [logger, storeFreeze, hydrationFactory(config, elementStorage)];
|
|
64
64
|
}
|
|
65
|
-
return [
|
|
65
|
+
return [hydrationFactory(config, elementStorage)];
|
|
66
66
|
}
|
|
67
|
+
|
|
68
|
+
export const runtimeChecks: RuntimeChecks = {
|
|
69
|
+
strictStateSerializability: true,
|
|
70
|
+
strictActionSerializability: false,
|
|
71
|
+
strictStateImmutability: true,
|
|
72
|
+
strictActionImmutability: true,
|
|
73
|
+
strictActionWithinNgZone: true,
|
|
74
|
+
strictActionTypeUniqueness: true,
|
|
75
|
+
};
|
|
@@ -191,7 +191,7 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemote = true) => {
|
|
|
191
191
|
|
|
192
192
|
// if no options found, we inject default modules defs
|
|
193
193
|
if (!remote.skeletonConfig.options) {
|
|
194
|
-
definitionsContent.push('StoreModule.forRoot(TOKEN, { metaReducers })');
|
|
194
|
+
definitionsContent.push('StoreModule.forRoot(TOKEN, { metaReducers, runtimeChecks })');
|
|
195
195
|
|
|
196
196
|
// ag-grid license specific main.ts
|
|
197
197
|
// license token is replaced at post-install, we get it from the remote root UI pkg assets at specific location
|
|
@@ -234,10 +234,10 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemote = true) => {
|
|
|
234
234
|
// user-reducers specific sources
|
|
235
235
|
if (remote.skeletonConfig.options.userReducers) {
|
|
236
236
|
tools.copy(optionUserReducersPath, remoteSrcPath);
|
|
237
|
-
definitionsContent.push('StoreModule.forRoot(TOKEN)');
|
|
237
|
+
definitionsContent.push('StoreModule.forRoot(TOKEN, { runtimeChecks })');
|
|
238
238
|
pushContent(optionUserReducersDef);
|
|
239
239
|
} else {
|
|
240
|
-
definitionsContent.push('StoreModule.forRoot(TOKEN, { metaReducers })');
|
|
240
|
+
definitionsContent.push('StoreModule.forRoot(TOKEN, { metaReducers, runtimeChecks })');
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
// all-locales specific sources
|
|
@@ -21,7 +21,7 @@ import { environment } from '../environments/environment';
|
|
|
21
21
|
import { AppRoutingModule } from './app-routing.module';
|
|
22
22
|
import { AppComponent } from './app.component';
|
|
23
23
|
|
|
24
|
-
import { TOKEN, reducerProvider, metaReducers } from './core/reducers/index';
|
|
24
|
+
import { TOKEN, reducerProvider, metaReducers, runtimeChecks } from './core/reducers/index';
|
|
25
25
|
import { CustomSerializer } from './core/reducers/custom-route-serializer';
|
|
26
26
|
|
|
27
27
|
// APP RELATED
|
|
@@ -36,7 +36,7 @@ import { SharedModule } from './features/shared/shared.module';
|
|
|
36
36
|
SharedModule,
|
|
37
37
|
StoreRouterConnectingModule.forRoot({ stateKey: 'router', serializer: CustomSerializer }),
|
|
38
38
|
StoreDevtoolsModule.instrument({ name: 'CSDR App', maxAge: 150, logOnly: environment.production }),
|
|
39
|
-
StoreModule.forRoot(TOKEN, { metaReducers }),
|
|
39
|
+
StoreModule.forRoot(TOKEN, { metaReducers, runtimeChecks }),
|
|
40
40
|
EffectsModule.forRoot([...CoreModuleEffects]),
|
|
41
41
|
TranslateModule.forRoot(translateConfig),
|
|
42
42
|
CoreModule.forRoot({ appConfig: appConfig, environment: environment }),
|
package/scripts/utils/pre-build/injection/app-sources-eui-showcase/src/app/core/reducers/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { ActionReducer, ActionReducerMap,
|
|
2
|
+
import { ActionReducer, ActionReducerMap, MetaReducer, RuntimeChecks } from '@ngrx/store';
|
|
3
3
|
import * as fromRouter from '@ngrx/router-store';
|
|
4
4
|
import { storeFreeze } from 'ngrx-store-freeze';
|
|
5
5
|
import { reducers as coreReducers, CoreState, localStorageSync } from '@eui/core';
|
|
@@ -38,3 +38,12 @@ export function logger(reducer: ActionReducer<AppState>): ActionReducer<AppState
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
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
|
+
};
|
package/scripts/utils/pre-build/injection/app-sources-full-skeleton/src/_generated/app/app.module.ts
CHANGED
|
@@ -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 } 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,7 +29,7 @@ import { TOKEN, reducerProvider, metaReducers } from './core/reducers/index';
|
|
|
29
29
|
BrowserModule,
|
|
30
30
|
BrowserAnimationsModule,
|
|
31
31
|
HttpClientModule,
|
|
32
|
-
StoreModule.forRoot(TOKEN, { metaReducers }),
|
|
32
|
+
StoreModule.forRoot(TOKEN, { metaReducers, runtimeChecks }),
|
|
33
33
|
StoreDevtoolsModule.instrument({ name: 'CSDR App', maxAge: 150, logOnly: environment.production }),
|
|
34
34
|
EffectsModule.forRoot([...CoreModuleEffects]),
|
|
35
35
|
TranslateModule.forRoot(translateConfig),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { ActionReducer, ActionReducerMap,
|
|
2
|
+
import { ActionReducer, ActionReducerMap, MetaReducer, RuntimeChecks } from '@ngrx/store';
|
|
3
3
|
import * as fromRouter from '@ngrx/router-store';
|
|
4
4
|
import { storeFreeze } from 'ngrx-store-freeze';
|
|
5
5
|
import { reducers as coreReducers, CoreState, localStorageSync } from '@eui/core';
|
|
@@ -38,3 +38,12 @@ export function logger(reducer: ActionReducer<AppState>): ActionReducer<AppState
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
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
|
+
};
|
|
@@ -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 } 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,7 +29,7 @@ import { TOKEN, reducerProvider, metaReducers } from './core/reducers/index';
|
|
|
29
29
|
BrowserModule,
|
|
30
30
|
BrowserAnimationsModule,
|
|
31
31
|
HttpClientModule,
|
|
32
|
-
StoreModule.forRoot(TOKEN, { metaReducers }),
|
|
32
|
+
StoreModule.forRoot(TOKEN, { metaReducers, runtimeChecks }),
|
|
33
33
|
StoreDevtoolsModule.instrument({ name: 'CSDR App', maxAge: 150, logOnly: environment.production }),
|
|
34
34
|
EffectsModule.forRoot([...CoreModuleEffects]),
|
|
35
35
|
TranslateModule.forRoot(translateConfig),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { ActionReducer, ActionReducerMap,
|
|
2
|
+
import { ActionReducer, ActionReducerMap, MetaReducer, RuntimeChecks } from '@ngrx/store';
|
|
3
3
|
import * as fromRouter from '@ngrx/router-store';
|
|
4
4
|
import { storeFreeze } from 'ngrx-store-freeze';
|
|
5
5
|
import { reducers as coreReducers, CoreState, localStorageSync } from '@eui/core';
|
|
@@ -38,3 +38,12 @@ export function logger(reducer: ActionReducer<AppState>): ActionReducer<AppState
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
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
|
+
};
|
|
@@ -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 } 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,7 +29,7 @@ import { TOKEN, reducerProvider, metaReducers } from './core/reducers/index';
|
|
|
29
29
|
BrowserModule,
|
|
30
30
|
BrowserAnimationsModule,
|
|
31
31
|
HttpClientModule,
|
|
32
|
-
StoreModule.forRoot(TOKEN, { metaReducers }),
|
|
32
|
+
StoreModule.forRoot(TOKEN, { metaReducers, runtimeChecks }),
|
|
33
33
|
StoreDevtoolsModule.instrument({ name: 'CSDR App', maxAge: 150, logOnly: environment.production }),
|
|
34
34
|
EffectsModule.forRoot([...CoreModuleEffects]),
|
|
35
35
|
TranslateModule.forRoot(translateConfig),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { ActionReducer, ActionReducerMap,
|
|
2
|
+
import { ActionReducer, ActionReducerMap, MetaReducer, RuntimeChecks } from '@ngrx/store';
|
|
3
3
|
import * as fromRouter from '@ngrx/router-store';
|
|
4
4
|
import { storeFreeze } from 'ngrx-store-freeze';
|
|
5
5
|
import { reducers as coreReducers, CoreState, localStorageSync } from '@eui/core';
|
|
@@ -38,3 +38,12 @@ export function logger(reducer: ActionReducer<AppState>): ActionReducer<AppState
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
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
|
+
};
|