|
| 1 | +<a name="8.0.0-rc.0"></a> |
| 2 | + |
| 3 | +# [8.0.0-rc.0](https://github.com/ngrx/platform/compare/8.0.0-beta.2...8.0.0-rc.0) (2019-05-30) |
| 4 | + |
| 5 | +### Bug Fixes |
| 6 | + |
| 7 | +- **store:** adjust mock store to handle selectors with props ([#1878](https://github.com/ngrx/platform/issues/1878)) ([a7ded00](https://github.com/ngrx/platform/commit/a7ded00)), closes [#1864](https://github.com/ngrx/platform/issues/1864) [#1873](https://github.com/ngrx/platform/issues/1873) |
| 8 | +- update signature for createSelectorFactory and createSelector to return a MemoizedSelector ([#1883](https://github.com/ngrx/platform/issues/1883)) ([8b31da7](https://github.com/ngrx/platform/commit/8b31da7)) |
| 9 | + |
| 10 | +### Features |
| 11 | + |
| 12 | +- **effects:** resubscribe to effects on error ([#1881](https://github.com/ngrx/platform/issues/1881)) ([71137e5](https://github.com/ngrx/platform/commit/71137e5)) |
| 13 | +- **example:** add examples of effects not based on the Actions stream ([#1845](https://github.com/ngrx/platform/issues/1845)) ([3454e70](https://github.com/ngrx/platform/commit/3454e70)), closes [#1830](https://github.com/ngrx/platform/issues/1830) |
| 14 | +- **router-store:** add routerState config option ([#1847](https://github.com/ngrx/platform/issues/1847)) ([d874cfc](https://github.com/ngrx/platform/commit/d874cfc)), closes [#1834](https://github.com/ngrx/platform/issues/1834) |
| 15 | +- **router-store:** add selectors for router state ([#1874](https://github.com/ngrx/platform/issues/1874)) ([21c67cc](https://github.com/ngrx/platform/commit/21c67cc)), closes [#1854](https://github.com/ngrx/platform/issues/1854) |
| 16 | +- **store:** split immutibility checks in state and action checks ([#1894](https://github.com/ngrx/platform/issues/1894)) ([c59c211](https://github.com/ngrx/platform/commit/c59c211)) |
| 17 | + |
| 18 | +### Reverts |
| 19 | + |
| 20 | +- **store:** store should fail synchronously ([#1871](https://github.com/ngrx/platform/issues/1871)) ([59a9e6c](https://github.com/ngrx/platform/commit/59a9e6c)), closes [#1865](https://github.com/ngrx/platform/issues/1865) |
| 21 | + |
| 22 | +### BREAKING CHANGES |
| 23 | + |
| 24 | +- **effects:** Prior to introduction of automatic resubscriptions on errors, all effects had effectively {resubscribeOnError: false} behavior. For the rare cases when this is still wanted please add {resubscribeOnError: false} to the effect metadata. |
| 25 | + |
| 26 | +BEFORE: |
| 27 | + |
| 28 | +```ts |
| 29 | +login$ = createEffect(() => |
| 30 | + this.actions$.pipe( |
| 31 | + ofType(LoginPageActions.login), |
| 32 | + mapToAction( |
| 33 | + // Happy path callback |
| 34 | + action => |
| 35 | + this.authService |
| 36 | + .login(action.credentials) |
| 37 | + .pipe(map(user => AuthApiActions.loginSuccess({ user }))), |
| 38 | + // error callback |
| 39 | + error => AuthApiActions.loginFailure({ error }) |
| 40 | + ) |
| 41 | + ) |
| 42 | +); |
| 43 | +``` |
| 44 | + |
| 45 | +AFTER: |
| 46 | + |
| 47 | +```ts |
| 48 | +login$ = createEffect( |
| 49 | + () => |
| 50 | + this.actions$.pipe( |
| 51 | + ofType(LoginPageActions.login), |
| 52 | + mapToAction( |
| 53 | + // Happy path callback |
| 54 | + action => |
| 55 | + this.authService |
| 56 | + .login(action.credentials) |
| 57 | + .pipe(map(user => AuthApiActions.loginSuccess({ user }))), |
| 58 | + // error callback |
| 59 | + error => AuthApiActions.loginFailure({ error }) |
| 60 | + ) |
| 61 | + // Errors are handled and it is safe to disable resubscription |
| 62 | + ), |
| 63 | + { resubscribeOnError: false } |
| 64 | +); |
| 65 | +``` |
| 66 | + |
| 67 | +- The return type of the createSelectorFactory and createSelector is now a MemoizedSelector instead of a Selector |
| 68 | + |
1 | 69 | <a name="8.0.0-beta.2"></a> |
2 | 70 |
|
3 | 71 | # [8.0.0-beta.2](https://github.com/ngrx/platform/compare/8.0.0-beta.1...8.0.0-beta.2) (2019-05-15) |
|
0 commit comments