@ngrx/store
Advanced tools
Changelog
8.0.0-beta.2 (2019-05-15)
<a name="8.0.0-beta.1"></a>
Changelog
8.0.0-beta.0 (2019-04-17)
BEFORE:
@NgModule({
imports: [StoreRouterConnectingModule],
})
export class AppModule {}
AFTER:
@NgModule({
imports: [StoreRouterConnectingModule.forRoot()],
})
export class AppModule {}
BEFORE:
const getTodosById = createSelector((state: TodoAppSchema, id: number) => state.todos.find((p) => p.id === id));
AFTER:
const getTodosById = createSelector(
(state: TodoAppSchema) => state.todos,
(todos: Todo[], id: number) => todos.find((p) => p.id === id)
);
actionsWhitelist
is renamed to actionsSafelist
actionsBlacklist
is renamed to actionsBlocklist
BEFORE:
StoreDevtoolsModule.instrument({
actionsWhitelist: ['...'],
actionsBlacklist: ['...'],
});
AFTER:
StoreDevtoolsModule.instrument({
actionsSafelist: ['...'],
actionsBlocklist: ['...'],
});
<a name="7.4.0"></a>
Changelog
7.2.0 (2019-01-29)
<a name="7.1.0"></a>
Changelog
7.1.0 (2019-01-21)
<a name="7.0.0"></a>
Changelog
7.0.0 (2018-12-20)
<a name="7.0.0-beta.1"></a>
Changelog
7.0.0-beta.0 (2018-11-03)
null
value for
routeConfig
when routeConfig
doesn't exist on the
ActivatedRouteSnapshot
instead of an empty object.BEFORE:
{
"routeConfig": {}
}
AFTER:
{
"routeConfig": null
}
BEFORE:
this.actions.ofType('INCREMENT');
AFTER:
import { ofType } from '@ngrx/store';
...
this.action.pipe(ofType('INCREMENT'))
BEFORE:
AFTER
If you still need this, pass a provider like this: { provide: ROUTER_CONFIG, useFactory: _createRouterConfig // you function }
{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>