|
| 1 | +# 12.0.0-next.5 (2021-03-17) |
| 2 | + |
| 3 | + |
| 4 | +### Bug Fixes |
| 5 | + |
| 6 | +* **core:** Switch `emitDistinctChangesOnlyDefaultValue` to true ([#41121](https://github.com/angular/angular/issues/41121)) ([7096246](https://github.com/angular/angular/commit/70962465b5795f0a192f745016b1c461e7c8790b)) |
| 7 | + |
| 8 | + |
| 9 | +### Features |
| 10 | + |
| 11 | +* **compiler-cli:** introduce HttpContext request context ([#25751](https://github.com/angular/angular/issues/25751)) ([1644d64](https://github.com/angular/angular/commit/1644d64398491d4a324a5eee492d1fd37df52a01)) |
| 12 | +* **core:** drop support for TypeScript 4.0 and 4.1 ([#41158](https://github.com/angular/angular/issues/41158)) ([fa04894](https://github.com/angular/angular/commit/fa048948be75c30dafebda69efbeb81776460500)) |
| 13 | +* **core:** support TypeScript 4.2 ([#41158](https://github.com/angular/angular/issues/41158)) ([59ef409](https://github.com/angular/angular/commit/59ef40988e94f3173134368bc7d4e2726cdd8455)) |
| 14 | +* **ngcc:** support `__read` helper as used by TypeScript 4.2 ([#41201](https://github.com/angular/angular/issues/41201)) ([66e9970](https://github.com/angular/angular/commit/66e997069102a12c607d830c7edf91cb202e5902)), closes [microsoft/TypeScript#41523](https://github.com/microsoft/TypeScript/issues/41523) |
| 15 | +* **ngcc:** support `__spreadArray` helper as used by TypeScript 4.2 ([#41201](https://github.com/angular/angular/issues/41201)) ([7b1214e](https://github.com/angular/angular/commit/7b1214eca2dd2f09e723a46bed857fcb7d40bc0b)), closes [microsoft/TypeScript#41523](https://github.com/microsoft/TypeScript/issues/41523) [#40394](https://github.com/angular/angular/issues/40394) |
| 16 | + |
| 17 | + |
| 18 | +### Performance Improvements |
| 19 | + |
| 20 | +* **common:** remove unused methods from DomAdapter ([#41102](https://github.com/angular/angular/issues/41102)) ([3c66b10](https://github.com/angular/angular/commit/3c66b100dd6f05f53740f596c5eadb999c27c9c4)) |
| 21 | + |
| 22 | + |
| 23 | +### BREAKING CHANGES |
| 24 | + |
| 25 | +* **core:** Switching default of `emitDistinctChangesOnlyDefaultValue` |
| 26 | +which changes the default behavior and may cause some applications which |
| 27 | +rely on the incorrect behavior to fail. |
| 28 | + |
| 29 | +`emitDistinctChangesOnly` flag has also been deprecated and will be |
| 30 | +removed in a future major release. |
| 31 | + |
| 32 | +The previous implementation would fire changes `QueryList.changes.subscribe` |
| 33 | +whenever the `QueryList` was recomputed. This resulted in an artificially |
| 34 | +high number of change notifications, as it is possible that recomputing |
| 35 | +`QueryList` results in the same list. When the `QueryList` gets recomputed |
| 36 | +is an implementation detail, and it should not be the thing that determines |
| 37 | +how often change event should fire. |
| 38 | + |
| 39 | +Unfortunately, fixing the behavior outright caused too many existing |
| 40 | +applications to fail. For this reason, Angular considers this fix a |
| 41 | +breaking fix and has introduced a flag in `@ContentChildren` and |
| 42 | +`@ViewChildren`, that controls the behavior. |
| 43 | + |
| 44 | +``` |
| 45 | +export class QueryCompWithStrictChangeEmitParent { |
| 46 | + @ContentChildren('foo', { |
| 47 | + // This option is the new default with this change. |
| 48 | + emitDistinctChangesOnly: true, |
| 49 | + }) |
| 50 | + foos!: QueryList<any>; |
| 51 | +} |
| 52 | +``` |
| 53 | +For backward compatibility before v12 |
| 54 | +`emitDistinctChangesOnlyDefaultValue` was set to `false. This change |
| 55 | +changes the default to `true`. |
| 56 | + |
| 57 | + |
| 58 | + |
1 | 59 | ## 11.2.6 (2021-03-17)
|
2 | 60 |
|
3 | 61 |
|
|
0 commit comments