7.0.0-beta.0 (2018-11-03)
Bug Fixes
- docs-infra: ARIA roles used must conform to valid values (8a4b2de)
- docs-infra: elements must have sufficient color contrast (c5dfaef)
- docs-infra: html element must have a lang attribute (32256de)
- docs-infra: Images must have alternate text (8241f99)
- docs-infra: notification must have sufficient color contrast (ac24cc3)
- example: close side nav when escape key is pressed (#1244) (b3fc5dd), closes #1172
- router-store: Added new imports to index.ts, codestyle (293f960)
- router-store: allow compilation with strictFunctionTypes (#1385) (0e38673), closes #1344
- router-store: Avoiding @ngrx/effects dependency inside tests (11d3b9f)
- router-store: handle internal navigation error, dispatch cancel/error action with previous state (#1294) (5300e7d)
- schematics: correct spec description in reducer template (#1269) (b7ab4f8)
- schematics: fix effects code generated by schematics:feature (#1357) (458e2b4)
- store: add typing to allow props with store.select (#1387) (a9e7cbd)
- store: memoize selector arguments (#1393) (7cc9702), closes #1389
- store: remove deprecation from Store.select (#1382) (626784e)
Code Refactoring
Features
- update angular dependencies to V7 (e6048bd), closes #1340
- effects: add smarter type inference for ofType operator. (#1183) (8d56a6f)
- effects: add support for effects of different instances of same class (#1249) (518e561), closes #1246
- effects: dispatch feature effects action on init (#1305) (15a4b58), closes #683
- entity: add support for predicate to removeMany (#900) (d7daa2f)
- entity: add support for predicate to updateMany (#907) (4e4c50f)
- example: add logout confirmation (#1287) (ba8d300), closes #1271
- router-store: Add custom serializer to config object (5c814a9), closes #1262
- router-store: Add support for serializers with injected values (959cfac)
- router-store: config option to dispatch ROUTER_NAVIGATION later (fe71ffb), closes #1263
- router-store: New router Actions ROUTER_REQUEST and ROUTER_NAVIGATED (9f731c3), closes #1010 #1263
- router-store: serialize routeConfig inside the default serializer (#1384) (18a16d4)
- router-store: update stateKey definition to take a string or selector (4ad9a94), closes #1300
- store: add testing package (#1027) (ab56aac), closes #915
- store: dispatch one update action when features are added or removed (#1240) (0b90f91)
- Store: export SelectorWithProps and MemoizedSelectorWithProps (#1341) (df8fc60)
- store-devtools: add support for persist, lock, pause (#955) (93fcf56), closes #853 #919
- store-devtools: use different action when recomputing state history (#1353) (1448a0e), closes #1255
- StoreDevtools: implement actionsBlacklist/Whitelist & predicate (#970) (7ee46d2), closes #938
BREAKING CHANGES
- router-store: The default router serializer now returns a
null
value for
routeConfig
when routeConfig
doesn't exist on the
ActivatedRouteSnapshot
instead of an empty object.
BEFORE:
{
"routeConfig": {}
}
AFTER:
{
"routeConfig": null
}
- effects: Removes .ofType method on Actions. Instead use the provided 'ofType'
rxjs operator.
BEFORE:
this.actions.ofType('INCREMENT');
AFTER:
import { ofType } from '@ngrx/store';
...
this.action.pipe(ofType('INCREMENT'))
- RouterStore: Normalize router store actions to be consistent with the other modules
BEFORE:
- ROUTER_REQUEST
- ROUTER_NAVIGATION
- ROUTER_CANCEL
- ROUTER_ERROR
- ROUTER_NAVIGATED
AFTER
- @ngrx/router-store/request
- @ngrx/router-store/navigation
- @ngrx/router-store/cancel
- @ngrx/router-store/error
- @ngrx/router-store/navigated
- router-store: StoreRouterConfigFunction is removed. It is no longer possible to pass a function returning a StoreRouterConfig to StoreRouterConnectingModule.forRoot
If you still need this, pass a provider like this:
{
provide: ROUTER_CONFIG,
useFactory: _createRouterConfig // you function
}
- routerstore: The default state key is changed from routerReducer to router
- store: BEFORE:
{type: '@ngrx/store/update-reducers', feature: 'feature1'}
{type: '@ngrx/store/update-reducers', feature: 'feature2'}
AFTER:
{type: '@ngrx/store/update-reducers', features: ['feature1',
'feature2']}
<a name="6.1.0"></a>