|
| 1 | +<a name="14.0.0-beta.0"></a> |
| 2 | + |
| 3 | +# [14.0.0-beta.0](https://github.com/ngrx/platform/compare/13.1.0...14.0.0-beta.0) (2022-05-30) |
| 4 | + |
| 5 | +- Closes #3344, #3345 ([70056a8](https://github.com/ngrx/platform/commit/70056a8)), closes [#3344](https://github.com/ngrx/platform/issues/3344) [#3345](https://github.com/ngrx/platform/issues/3345) |
| 6 | + |
| 7 | +### Bug Fixes |
| 8 | + |
| 9 | +- **store:** rename template literal to string literal for createActionGroup ([#3426](https://github.com/ngrx/platform/issues/3426)) ([7d08db1](https://github.com/ngrx/platform/commit/7d08db1)) |
| 10 | + |
| 11 | +### Features |
| 12 | + |
| 13 | +- **schematics:** remove creators option ([#3311](https://github.com/ngrx/platform/issues/3311)) ([e86278a](https://github.com/ngrx/platform/commit/e86278a)) |
| 14 | +- update Angular packages to latest v14 RC ([#3425](https://github.com/ngrx/platform/issues/3425)) ([f15dd1e](https://github.com/ngrx/platform/commit/f15dd1e)), closes [#3417](https://github.com/ngrx/platform/issues/3417) |
| 15 | +- **component:** add error as value to LetDirective's context ([#3380](https://github.com/ngrx/platform/issues/3380)) ([6452e24](https://github.com/ngrx/platform/commit/6452e24)), closes [#3343](https://github.com/ngrx/platform/issues/3343) |
| 16 | +- **component:** add suspense template input to LetDirective ([#3377](https://github.com/ngrx/platform/issues/3377)) ([345ee53](https://github.com/ngrx/platform/commit/345ee53)), closes [#3340](https://github.com/ngrx/platform/issues/3340) |
| 17 | +- **component:** use global render strategy in zone-less mode ([#3379](https://github.com/ngrx/platform/issues/3379)) ([f233dae](https://github.com/ngrx/platform/commit/f233dae)), closes [#3342](https://github.com/ngrx/platform/issues/3342) |
| 18 | +- **component-store:** add OnStoreInit and OnStateInit lifecycle hooks ([#3368](https://github.com/ngrx/platform/issues/3368)) ([0ffed02](https://github.com/ngrx/platform/commit/0ffed02)), closes [#3335](https://github.com/ngrx/platform/issues/3335) |
| 19 | +- **eslint-plugin:** add NgRx ESLint Plugin ([#3373](https://github.com/ngrx/platform/issues/3373)) ([ae0041b](https://github.com/ngrx/platform/commit/ae0041b)) |
| 20 | +- **store:** add createActionGroup function ([#3381](https://github.com/ngrx/platform/issues/3381)) ([2cdecb3](https://github.com/ngrx/platform/commit/2cdecb3)), closes [#3337](https://github.com/ngrx/platform/issues/3337) |
| 21 | +- **store:** install and configure the [@ngrx](https://github.com/ngrx)/eslint-plugin on ng-add ([#3386](https://github.com/ngrx/platform/issues/3386)) ([bf2672e](https://github.com/ngrx/platform/commit/bf2672e)) |
| 22 | + |
| 23 | +### Performance Improvements |
| 24 | + |
| 25 | +- **component:** reset state / trigger CD only if necessary ([#3328](https://github.com/ngrx/platform/issues/3328)) ([f5b055b](https://github.com/ngrx/platform/commit/f5b055b)) |
| 26 | + |
| 27 | +### BREAKING CHANGES |
| 28 | + |
| 29 | +- 1. The context of `LetDirective` is strongly typed when `null` or |
| 30 | + `undefined` is passed as input. |
| 31 | + |
| 32 | +BEFORE: |
| 33 | + |
| 34 | +```html |
| 35 | +<p *ngrxLet="null as n">{{ n }}</p> |
| 36 | +<p *ngrxLet="undefined as u">{{ u }}</p> |
| 37 | +``` |
| 38 | + |
| 39 | +- The type of `n` is `any`. |
| 40 | +- The type of `u` is `any`. |
| 41 | + |
| 42 | +AFTER: |
| 43 | + |
| 44 | +```html |
| 45 | +<p *ngrxLet="null as n">{{ n }}</p> |
| 46 | +<p *ngrxLet="undefined as u">{{ u }}</p> |
| 47 | +``` |
| 48 | + |
| 49 | +- The type of `n` is `null`. |
| 50 | +- The type of `u` is `undefined`. |
| 51 | + |
| 52 | +* **schematics:** BEFORE: |
| 53 | + |
| 54 | +Creating actions, reducers, and effects is possible without using the creator syntax is possible. |
| 55 | + |
| 56 | +AFTER: |
| 57 | + |
| 58 | +- All schematics use the non-creator syntax to scaffold the code. |
| 59 | +- The option `--creators` (and `-c`) is removed from the schematic options. |
| 60 | +- The `skipTests` option is removed while generating actions. |
| 61 | + |
| 62 | +* Minimum version of Angular has been updated |
| 63 | + |
| 64 | +BEFORE: |
| 65 | + |
| 66 | +Minimum version of Angular was 13.x |
| 67 | + |
| 68 | +AFTER: |
| 69 | + |
| 70 | +Minimum version of Angular is 14.x |
| 71 | + |
| 72 | +- **component:** The native local rendering strategy is replaced by global |
| 73 | + in zone-less mode for better performance. |
| 74 | + |
| 75 | +BEFORE: |
| 76 | + |
| 77 | +The change detection is triggered via `changeDetectorRef.detectChanges` |
| 78 | +in zone-less mode. |
| 79 | + |
| 80 | +AFTER: |
| 81 | + |
| 82 | +The change detection is triggered via `ɵmarkDirty` in zone-less mode. |
| 83 | + |
| 84 | +- **component:** The `$error` property from `LetDirective`'s view context is |
| 85 | + a thrown error or `undefined` instead of `true`/`false`. |
| 86 | + |
| 87 | +BEFORE: |
| 88 | + |
| 89 | +```ts |
| 90 | +<p *ngrxLet="obs$; $error as e">{{ e }}</p> |
| 91 | +``` |
| 92 | + |
| 93 | +- `e` will be `true` when `obs$` emits error event. |
| 94 | +- `e` will be `false` when `obs$` emits next/complete event. |
| 95 | + |
| 96 | +AFTER: |
| 97 | + |
| 98 | +```ts |
| 99 | +<p *ngrxLet="obs$; $error as e">{{ e }}</p> |
| 100 | +``` |
| 101 | + |
| 102 | +- `e` will be thrown error when `obs$` emits error event. |
| 103 | +- `e` will be `undefined` when `obs$` emits next/complete event. |
| 104 | + |
1 | 105 | <a name="13.1.0"></a>
|
2 | 106 |
|
3 | 107 | # [13.1.0](https://github.com/ngrx/platform/compare/13.0.2...13.1.0) (2022-03-28)
|
|
0 commit comments