Back to Angular

13.3.11 (2022-05-31)

CHANGELOG_ARCHIVE.md

22.0.0-next.101.1 MB
Original Source

<a name="13.3.11"></a>

13.3.11 (2022-05-31)

Special Thanks

Andrew Scott, Billy Lando, George Kalpakas, Ian Gregory, Matt Shaffer, Rune Andersen Hartvig, dario-piotrowicz and mgechev

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.3.10"></a>

13.3.10 (2022-05-25)

Special Thanks

A. J. Javier, Aristeidis Bampakos, J Rob Gant, Jerome Kruse, Joey Perrott, Nathan Nontell, Paul Gschwendtner, Roopesh Chinnakampalli, Thomas Mair, Tom Raithel, dario-piotrowicz and mgechev

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.3.9"></a>

13.3.9 (2022-05-18)

This release contains API docs improvements.

Special Thanks

4javier, Bob Watson, Evan Lee, George Kalpakas, Joey Perrott, Pavan Kumar Jadda, celinetunc and mariu

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.3.8"></a>

13.3.8 (2022-05-12)

language-service

CommitTypeDescription
b4eb9ed884fixPrevent TSServer from removing templates from project (#45965)

Special Thanks

Andrew Scott, George Kalpakas and Joey Perrott

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.3.7"></a>

13.3.7 (2022-05-11)

core

CommitTypeDescription
73bbee2c0dperfallow checkNoChanges mode to be tree-shaken in production (#45936)

language-service

CommitTypeDescription
5ca3bcf4f8fixAdd resource files as roots to their associated projects (#45601)

Special Thanks

Andrew Kushnir, Andrew Scott, George Kalpakas, JayMartMedia, JoostK, Paul Gschwendtner, Ted.chang, Thomas Mair, Will 保哥, dario-piotrowicz, mgechev and ᚷᛁᛟᚱᚷᛁ ᛒᚨᛚᚨᚲᚻᚨᛞᛉᛖ

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.3.6"></a>

13.3.6 (2022-05-04)

Special Thanks

Andrew Kushnir, Andrew Scott, George Kalpakas, Paul Gschwendtner, Pawel Kozlowski, Ryan Day and dario-piotrowicz

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.3.5"></a>

13.3.5 (2022-04-27)

bazel

CommitTypeDescription
63398e0eb4fixadd this_is_bazel marker (#45728)

Special Thanks

Andrew Kushnir, George Kalpakas, Joey Perrott and dario-piotrowicz

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.3.4"></a>

13.3.4 (2022-04-20)

core

CommitTypeDescription
9317f513d5fixbetter error message when directive extends a component (#45658)
4766817f02fiximprove multiple components match error (#45645)

language-service

CommitTypeDescription
d68333e508fixtwo-way binding completion should not remove the trailing quote (#45582)

Special Thanks

Andrew Kushnir, Andrew Scott, George Kalpakas, Ilya Marchik, Jeremy Elbourn, Kristiyan Kostadinov, Louis Gombert, Mangalraj, Marko Kaznovac, Paul Gschwendtner, Saurabh Kamble, dario-piotrowicz and ivanwonder

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.3.3"></a>

13.3.3 (2022-04-13)

compiler

CommitTypeDescription
e50fd9ee87fixavoid errors with extremely long instruction chains (#45574)

Special Thanks

4javier, Andrew Kushnir, Cédric Exbrayat, Dylan Hunn, George Kalpakas, Hossein Mousavi, Jason Hendee, Joe Martin (Crowdstaffing), Kristiyan Kostadinov, Michael-Doner, Michal Materowski and Virginia Dooley

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.3.2"></a>

13.3.2 (2022-04-06)

animations

CommitTypeDescription
b46b25c562fixhandle structured AnimateTimings (#31107)

Special Thanks

Alan Agius, Andrew Kushnir, Christoph Guttandin, Cédric Exbrayat, mgechev and piyush132000

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.3.1"></a>

13.3.1 (2022-03-30)

bazel

CommitTypeDescription
960e42b2acfixng module compilation workers are subject to linker race-conditions (#45393)

compiler

CommitTypeDescription
3714305f84fixscope css rules within @layer blocks (#45396)

compiler-cli

CommitTypeDescription
7f53c0f4acfixhandle inline type-check blocks in nullish coalescing extended check (#45478)

Special Thanks

AlirezaEbrahimkhani, Andrew Kushnir, Andrew Scott, Ben Brook, Dylan Hunn, George Kalpakas, JiaLiPassion, Joey Perrott, JoostK, Mike, Paul Gschwendtner, Willian Corrêa, arturovt, dario-piotrowicz, khai and mgechev

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.3.0"></a>

13.3.0-rc.0 (2022-03-16)

core

CommitTypeDescription
b5bb614c74featsupport TypeScript 4.6 (#45190)

Special Thanks

Alistair Kane, Andrew Scott and Kristiyan Kostadinov

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.2.7"></a>

13.2.7 (2022-03-16)

forms

CommitTypeDescription
eac94f0945fiximprove error message for invalid value accessors (#45192)

Special Thanks

Alistair Kane, Amer Yousuf, Andrew Scott, Jessica Janiuk, Lee Cooper, alirezaghey and why520crazy

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.3.0-rc.0"></a>

13.3.0-rc.0 (2022-03-10)

core

CommitTypeDescription
b5bb614c74featsupport TypeScript 4.6 (#45190)

Special Thanks

Alistair Kane, Andrew Scott and Kristiyan Kostadinov

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.2.6"></a>

13.2.6 (2022-03-09)

compiler

CommitTypeDescription
6efa366e2cfixcompute correct offsets when interpolations have HTML entities (#44811)

language-service

CommitTypeDescription
9bce9ce89efixPrioritize Angular-specific completions over DOM completions (#45293)

service-worker

CommitTypeDescription
cff1c5622ffixfile system hash in batch of 500 elements (#45262)

Special Thanks

Andrew Scott, Anner Visser, Aristeidis Bampakos, JiaLiPassion, Joey Perrott, Kristiyan Kostadinov, Luca, Mladen Jakovljević, Paul Gschwendtner, Srikanth Kolli and nanda18

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.2.5"></a>

13.2.5 (2022-03-02)

animations

CommitTypeDescription
6c61d20476fixallow animations with unsupported CSS properties (#45185)

common

CommitTypeDescription
64da1daa78fixcanceled JSONP requests won't throw console error with missing callback function (#36807)
56ca7d385bperfmake NgLocalization token tree-shakable (#45118) (#45226)

compiler-cli

CommitTypeDescription
6c906a5bb9fixSupport resolve animation name from the DTS (#45169)

core

CommitTypeDescription
e8fd452bd2fixremove individual commands for updating gold files (#45198)
82d772857cperfmake Compiler, ApplicationRef and ApplicationInitStatus tree-shakable (#45102) (#45222)
71ff12c1ccperfmake LOCALE_ID and other tokens from ApplicationModule tree-shakable (#45102) (#45222)

localize

CommitTypeDescription
d388522745fixavoid imports into compiler-cli package (#45180)

Special Thanks

Andrew Kushnir, Andrew Scott, Charles Lyding, Guillaume Bonnet, Jessica Janiuk, JoostK, Martin Sikora, Paul Gschwendtner, Theodore Brown, dario-piotrowicz and ivanwonder

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.2.4"></a>

13.2.4 (2022-02-23)

animations

CommitTypeDescription
1a4b489692perfimprove algorithm to balance animation namespaces (#45113)

core

CommitTypeDescription
cbd23ee0deperfmake IterableDiffers and KeyValueDiffers tree-shakable (#45094) (#45115)

Special Thanks

Alan Cohen, AlirezaEbrahimkhani, Andrew Kushnir, Daniele Maltese, David Wolf, JoostK, Paul Gschwendtner, dario-piotrowicz and manuelkroiss

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.2.3"></a>

13.2.3 (2022-02-16)

animations

CommitTypeDescription
0050b01b62perfmade errors in the animations package tree shakeable (#45079)

compiler

CommitTypeDescription
09f0254bddperfchain element start/end instructions (#44994)

core

CommitTypeDescription
92cf9fbebefixViewContainerRef.createComponent should consult module injector when custom one is provided (#44966)

Special Thanks

AlirezaEbrahimkhani, Amer Yousuf, Andrew Kushnir, Aristeidis Bampakos, Dario Piotrowicz, Esteban Gehring, Jessica Janiuk, JiaLiPassion, Kristiyan Kostadinov, Mina Hosseini Moghadam, Patrick Cameron, Srdjan Milic, Yousaf Nawaz, dario-piotrowicz, markostanimirovic, mgechev and zuckjet

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.2.2"></a>

13.2.2 (2022-02-08)

compiler

CommitTypeDescription
37af6abb49fixallow banana-in-a-box bindings to end with non-null assertion (#37809)

forms

CommitTypeDescription
b75e90f809fixincorrectly keeping track of ngModel with ngFor inside a form (#40459)

http

CommitTypeDescription
3fae6637e7perfremove IE special status handling (#44354)

upgrade

CommitTypeDescription
b9aab0c87bfixDo not trigger duplicate navigation events from Angular Router (#43441)

Special Thanks

Alan Agius, Alan Cohen, Andrew Kushnir, Andrew Scott, Daniel Díaz, Dario Piotrowicz, Doug Parker, Jayson Acosta, Joey Perrott, JoostK, Kristiyan Kostadinov, Olivier Capuozzo, Ramzan, Shai Reznik, TANMAY SRIVASTAVA, dario-piotrowicz, iRealNirmal, jhonyeduardo, mgechev and zuckjet

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.2.1"></a>

13.2.1 (2022-02-02)

animations

CommitTypeDescription
4644886aafperfremove no longer needed CssKeyframes classes (#44903) (#44919)

common

CommitTypeDescription
b4e4617807fixinclude query parameters for open HTTP requests in verify (#44917)

compiler-cli

CommitTypeDescription
0778e6f7d7fixaccept nullish coalescing operator for any and unknown types (#44862)
07185f4ed1fixenable nullish coalescing check only with strictNullChecks (#44862)
4a5ad1793ffixensure casing of logical paths is preserved (#44798)

core

CommitTypeDescription
7ec482d9c2fixAdd back support for namespace URIs in createElement of dom renderer (#44914)
250dc40a46fixflush delayed scoping queue while setting up TestBed (#44814)

forms

CommitTypeDescription
1aebbf8714fixensure OnPush ancestors are marked dirty when the promise resolves (#44886)
6b7fffcbebfixUpdate the typed forms migration schematic to find all files. (#44881)

Special Thanks

Alan, Andrew Kushnir, Andrew Scott, Aristeidis Bampakos, Arjen, Daniel Díaz, David Shevitz, Doug Parker, Dylan Hunn, Esteban Gehring, George Kalpakas, Jessica Janiuk, JoostK, Juri Strumpflohner, Lee Robinson, Maarten Tibau, Paul Gschwendtner, Theodore Brown, arturovt, dario-piotrowicz, fru2, markostanimirovic and mgechev

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.2.0"></a>

13.2.0 (2022-01-26)

Deprecations

  • The CachedResourceLoader and RESOURCE_CACHE_PROVIDER symbols were previously necessary in some cases to test AOT-compiled components with View Engine, but they are no longer needed since Ivy.

  • The ComponentFactory and ComponentFactoryResolver classes are deprecated. Since Ivy, there is no need to resolve Component factories. Please use other APIs where you Component classes can be used directly (without resolving their factories).

  • Since Ivy, the CompilerOptions.useJit and CompilerOptions.missingTranslation config options are unused, passing them has no effect.

CommitTypeDescription
9c11183e74docsdeprecate CachedResourceLoader and RESOURCE_CACHE_PROVIDER symbols (#44749)
9f12e7fea4docsdeprecate ComponentFactory and ComponentFactoryResolver symbols (#44749)
4e95a316cedocsdeprecate unused config options from the CompilerOptions interface (#44749)

compiler

CommitTypeDescription
a4ab6d6b72featadd support for safe calls in templates (#44580)
abd1bc8039fixcorrect spans when parsing bindings with comments (#44785)
ed67a074cefixproperly compile DI factories when coverage reporting is enabled (#44732)

compiler-cli

CommitTypeDescription
fa835b5a29featenable extended diagnostics by default (#44712)
73424def13featprovide the animations for DirectiveMeta (#44630)
fe3e4d6865fixHandle ng-template with structural directive in indexer (#44788)
7316e72ec5fixproperly index <svg> elements when on a template (#44785)
100091ebf0fixremove leftover _extendedTemplateDiagnostics requirements (#44777)
d2ae96f742fixskip ExtendedTemplateCheckerImpl construction if there were configuration errors (#44778)

core

CommitTypeDescription
5626b34264fixconsistently use namespace short name rather than URI (#44766)
94bfcdd9defixerror if NgZone.isInAngularZone is called with a noop zone (#44800)

forms

CommitTypeDescription
72092ebd26featAllow a FormControl to use initial value as default. (#44434)
f7aa937cacfixMake some minor fixups for forward-compatibility with typed forms. (#44540)

router

CommitTypeDescription
5a4ddfd4f5featAllow symbol keys for Route data and resolve properties (#44519)

Special Thanks

Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Dario Piotrowicz, Derek Cormier, Doug Parker, Douglas Parker, Dylan Hunn, George Kalpakas, Jessica Janiuk, JoostK, Kristiyan Kostadinov, Martin Probst, Oleg Postoev, Stephanie Tuerk, Tim Bowersox, Wiley Marques, Yousaf Nawaz, dario-piotrowicz, iRealNirmal, ivanwonder and shejialuo

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.1.3"></a>

13.1.3 (2022-01-19)

animations

CommitTypeDescription
af0a152a2cfixapply setStyles to only rootTimelines (#44515)

compiler-cli

CommitTypeDescription
626f3f230bperfreduce analysis work during incremental rebuilds (#44731)

ngcc

CommitTypeDescription
f9ca4d8499fixsupport element accesses for export declarations (#44669)

Special Thanks

Alan Agius, Andrew Kushnir, AnkitSharma-007, Daniel Díaz, Dmytro Mezhenskyi, Jessica Janiuk, Joey Perrott, JoostK, Ramesh Thiruchelvam, dario-piotrowicz, iRealNirmal and Łukasz Holeczek

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.1.2"></a>

13.1.2 (2022-01-12)

animations

CommitTypeDescription
abc217b28efixretain triggers values for moved tracked list items (#44578)

compiler

CommitTypeDescription
59eef29a6cfixcorrect spans when parsing bindings with comments (#44678)

compiler-cli

CommitTypeDescription
08049fa23ffixenable narrowing of using type guard methods (#44447)
a26afce68cfixfix crash during type-checking of library builds (#44587)
1e918b6f31fixhandle property reads of ThisReceiver in the indexer (#44678)
63c8e56a3afixincorrectly interpreting $any calls with a property read (#44657)
60fb27f12dfixproperly index <svg> elements (#44678)

language-service

CommitTypeDescription
f5addee488fixrevert the test files for Ivy (#44528)

Special Thanks

Abdurrahman Abu-Hijleh, Adam Plumer, Alex Rickabaugh, AlirezaEbrahimkhani, Andrew Kushnir, Andrew Scott, Borja Paz Rodríguez, Chihab Otmani, Chris Mancini, Dario Piotrowicz, Doug Parker, George Kalpakas, Joey Perrott, JoostK, Kristiyan Kostadinov, Kyoz, Patrick Prakash, Paul Gschwendtner, Serhey Dolgushev, Yousaf Nawaz, Yuchao Wu, alkavats1, dario-piotrowicz, huangqing, ivanwonder, shejialuo, twerske, wszgrcy and zuckjet

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.1.1"></a>

13.1.1 (2021-12-15)

animations

CommitTypeDescription
bb1d4ff315fixdon't consume instructions for animateChild (#44357)
d8b6adb7bcfixshould not invoke disabled child animations (#37724)

forms

CommitTypeDescription
bce108ab49fix_reduceValue arrow function now has correct types. (#44483)
998c1e63fefixI indroduced a minor error in a previous PR: pendingValue is a value not a boolean flag. (#44450)

Special Thanks

Aristeidis Bampakos, Dylan Hunn, George Kalpakas, JoostK, Kristiyan Kostadinov, Paul Gschwendtner, Spej, Yousaf Nawaz, dario-piotrowicz, faso-dev, jaybell and zuckjet

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.1.0"></a>

13.1.0 (2021-12-09)

Deprecations

  • The downgradeModule function calls with NgModule factories are deprecated. Please use NgModule class based downgradeModule calls instead.

common

  • TestRequest from @angular/common/http/testing no longer accepts ErrorEvent when simulating XHR errors. Instead, instances of ProgressEvent should be passed, matching with the native browser behavior.

CommitTypeDescription
dbc46d68b9docsdeprecate factory-based signature of the downgradeModule function (#44090)

common

CommitTypeDescription
489cf42cd0fixincorrect error type for XHR errors in TestRequest (#36082)
13362972bbperfcode size reduction of ngFor directive (#44315)

compiler

CommitTypeDescription
c85bcb0c63featreference ICU message IDs from their placeholders (#43534)

core

CommitTypeDescription
5dff077d50featadd migration to remove entryComponents (#44308)
e65a245a0bfeatadd migration to remove entryComponents (#44322)
d56e3f43a1featsupport TypeScript 4.5 (#44164)

http

CommitTypeDescription
d452b388bdfeatadd has() method to HttpContext class (#43887)

localize

CommitTypeDescription
d3cf222a81featsupport "associated message ids" for placeholders (#43534)

ngcc

CommitTypeDescription
41265919aafixcorrectly resolve UMD dependencies (#44381)

upgrade

CommitTypeDescription
34f990986cfeatsupport NgModule class as an argument of the downgradeModule function (#43973)

Special Thanks

Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Doug Parker, Dustin M. Eastway, Dylan Hunn, George Kalpakas, HyperLife1119, Jelle Bruisten, Jessica Janiuk, Joey Perrott, JoostK, Kristiyan Kostadinov, Markus Doggweiler, Paul Gschwendtner, Pei Wang, Pete Bacon Darwin and dario-piotrowicz

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.0.3"></a>

13.0.3 (2021-12-01)

compiler-cli

CommitTypeDescription
6cdbfdbe6efixdownlevel transform incorrectly extracting constructor parameters for nested classes (#44281)
305b76b45ffixinterpret string concat calls (#44167)

core

CommitTypeDescription
0ca5c5bd09fixadd missing info about a component in the "pipe could not be found" error message (#44081)
907da3977afixdestroy hooks not set up for useClass provider using forwardRef (#44281)
bcd3b4959bfixsupport cyclic metadata in TestBed overrides (#44215)

forms

CommitTypeDescription
96fedd249efixmake the FormControlStatus available as a public API (#44183)

language-service

CommitTypeDescription
cabc1786defixCorrectly parse inputs and selectors with dollar signs (#44268)

ngcc

CommitTypeDescription
b68994d20afixcorrectly report error when collecting dependencies of UMD module (#44245)
6f5c0c1515fixensure that ngcc does not write a lock-file into node_modules package directories (#44228)
bf5f734e9cfixsupport the UMD wrapper function format emitted by Webpack (#44245)

router

CommitTypeDescription
d265d0d241fixprevent componentless routes from being detached (#44240)

Special Thanks

Alan Agius, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Artur, Christian-E, David Shevitz, Doug Parker, Douglas Parker, Dylan Hunn, George Kalpakas, Jessica Janiuk, Joey Perrott, JoostK, Kristiyan Kostadinov, Marc Redemske, Paul Gschwendtner, Pei Wang, Pete Bacon Darwin, Ramesh Thiruchelvam, Ravi Chandra, Rohan Pednekar, Ruslan Usmanov, dario-piotrowicz, profanis and unknown

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.0.2"></a>

13.0.2 (2021-11-17)

This release contains various API docs improvements.

Special Thanks

Andrew Kushnir, Armen Vardanyan, Dylan Hunn, Joey Perrott, Martin von Gagern, Paul Gschwendtner, Pete Bacon Darwin, Ramesh Thiruchelvam, dario-piotrowicz and fusho-takahashi

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.0.1"></a>

13.0.1 (2021-11-10)

compiler

CommitTypeDescription
ee2031d9f4fixensure that partially compiled queries can handle forward references (#44113)
e5a960b159fixgenerate correct code for safe method calls (#44088)

compiler-cli

CommitTypeDescription
dede29e4f3fixensure literal types are retained when strictNullInputTypes is disabled (#38305)
04df3a0b92fixhandle pre-release versions when checking version (#44109)

core

CommitTypeDescription
4c700b6244fixdo not use Function constructors in development mode to avoid CSP violations (#43587)

platform-browser

CommitTypeDescription
30a27adf9afixuse correct parent in animation removeChild callback (#44033)

Special Thanks

A. Singh, Alan Agius, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Aristeidis Bampakos, George Kalpakas, Joe Martin (Crowdstaffing), Joel Lefkowitz, Joey Perrott, JoostK, Kristiyan Kostadinov, Michael Urban, Paul Gschwendtner, Pavan Kumar Jadda, Pei Wang, Pete Bacon Darwin, Roman Frołow, dario-piotrowicz, iRealNirmal, ileil, kreuzerk, mgechev, profanis and raman

<!-- CHANGELOG SPLIT MARKER -->

<a name="13.1.0-next.0"></a>

13.1.0-next.0 (2021-11-03)

compiler

CommitTypeDescription
c85bcb0c63featreference ICU message IDs from their placeholders (#43534)

localize

CommitTypeDescription
d3cf222a81featsupport "associated message ids" for placeholders (#43534)

Special Thanks

Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Doug Parker, Dylan Hunn, George Kalpakas, Jessica Janiuk, Joey Perrott, Paul Gschwendtner and Pete Bacon Darwin

<a name="13.0.0"></a>

13.0.0 (2021-11-03)

Blog post "Angular v13 is now available".

Breaking Changes

common

  • The behavior of the SpyLocation used by the RouterTestingModule has changed to match the behavior of browsers. It no longer emits a 'popstate' event when Location.go is called. In addition, simulateHashChange now triggers both a hashchange and a popstate event. Tests which use location.go and expect the changes to be picked up by the Router should likely change to simulateHashChange instead. Each test is different in what it attempts to assert so there is no single change that works for all tests. Each test using the SpyLocation to simulate browser URL changes should be evaluated on a case-by-case basis.

core

  • TypeScript versions older than 4.4.2 are no longer supported.

  • NodeJS versions older than v12.20.0 are no longer supported due to the Angular packages using the NodeJS package exports feature with subpath patterns.

  • The WrappedValue class can no longer be imported from @angular/core, which may result in compile errors or failures at runtime if outdated libraries are used that are still using WrappedValue. The usage of WrappedValue should be removed as no replacement is available.

forms

  • A new type called FormControlStatus has been introduced, which is a union of all possible status strings for form controls. AbstractControl.status has been narrowed from string to FormControlStatus, and statusChanges has been narrowed from Observable<any> to Observable<FormControlStatus>. Most applications should consume the new types seamlessly. Any breakage caused by this change is likely due to one of the following two problems: (1) the app is comparing AbstractControl.status against a string which is not a valid status; or, (2) the app is using statusChanges events as if they were something other than strings.

router

  • The default url serializer would previously drop everything after and including a question mark in query parameters. That is, for a navigation to /path?q=hello?&other=123, the query params would be parsed to just {q: 'hello'}. This is incorrect because the URI spec allows for question mark characers in query data. This change will now correctly parse the params for the above example to be {v: 'hello?', other: '123'}.

  • Previously null and undefined inputs for routerLink were equivalent to empty string and there was no way to disable the link's navigation. In addition, the href is changed from a property HostBinding() to an attribute binding (HostBinding('attr.href')). The effect of this change is that DebugElement.properties['href'] will now return the href value returned by the native element which will be the full URL rather than the internal value of the RouterLink href property.

  • When storing and retrieving a DetachedRouteHandle, the Router traverses the Route children in order to correctly allow storing a parent route when there are several possible child Route configs that can be stored. This allows a RouteReuseStrategy to store a parent Route and a child, while preserving the ability to change the child route while restoring the parent. Some implementations of RouteReuseStrategy will need to be updated to correctly store and retrieve the DetachedRouteHandle of descendants as well as the stored parent ActivatedRouteSnapshot. Previously, the Router would only store the parent, making it impossible to change descendant paths when a stored parent was retrieved. See #20114.

  • The router will no longer replace the browser URL when a new navigation cancels an ongoing navigation. This often causes URL flicker and was only in place to support some AngularJS hybrid applications. Hybrid applications which rely on the navigationId being present on initial navigations that were handled by the Angular router should instead subscribe to NavigationCancel events and perform the location.replaceState themselves to add navigationId to the Router state. In addition, tests which assert urlChanges on the SpyLocation may need to be adjusted to account for the replaceState which is no longer triggered.

  • It is no longer possible to use Route.loadChildren using a string value. The following supporting classes were removed from @angular/core:

  • NgModuleFactoryLoader

  • SystemJsNgModuleFactoryLoader

The @angular/router package no longer exports these symbols:

  • SpyNgModuleFactoryLoader
  • DeprecatedLoadChildren

The signature of the setupTestingRouter function from @angular/core/testing has been changed to drop its NgModuleFactoryLoader parameter, as an argument for that parameter can no longer be created.

service-worker

  • The return type of SwUpdate#activateUpdate and SwUpdate#checkForUpdate changed to Promise<boolean>.

Although unlikely, it is possible that this change will cause TypeScript type-checking to fail in some cases. If necessary, update your types to account for the new return type.

Deprecations

core

  • Angular no longer requires component factories to dynamically create components. The factory-based signature of the ViewContainerRef.createComponent function is deprecated in favor of a different signature that allows passing component classes instead.

  • The getModuleFactory function is deprecated in favor of the getNgModuleById one. With Ivy, it's possible to work with NgModule classes directly, without retrieving corresponding factories, so the getNgModuleById should be used instead.

  • Ivy made it possible to avoid the need to resolve Component and NgModule factories. Framework APIs allow to use Component and NgModule Types directly. As a result, the PlatformRef.bootstrapModuleFactory and a factory-based signature of the ApplicationRef.bootstrap method are now obsolete and are now deprecated. The PlatformRef.bootstrapModuleFactory calls can be replaced with PlatformRef.bootstrapModule ones. The ApplicationRef.bootstrap method allows to provide Component Type, so this can be used a replacement for the factory-based calls.

  • In ViewEngine, JIT compilation required special providers (like Compiler, CompilerFactory, etc) to be injected in the app and corresponding methods to be invoked. With Ivy, JIT compilation takes place implicitly if the Component, NgModule, etc. have not already been AOT compiled. Those special providers were made available in Ivy for backwards-compatibility with ViewEngine to make the transition to Ivy smoother. Since ViewEngine is deprecated and will soon be removed, those symbols are now deprecated as well:

  • ModuleWithComponentFactories

  • Compiler

  • CompilerFactory

  • JitCompilerFactory

  • NgModuleFactory

Important note: this deprecation doesn't affect JIT mode in Ivy (JIT remains available with Ivy).

  • In Ivy, AOT summary files are unused in TestBed. Passing AOT summary files in TestBed has no effect, so the aotSummaries usage in TestBed is deprecated and will be removed in a future version of Angular.

platform-server

  • The renderModuleFactory symbol in @angular/platform-server is no longer necessary as of Angular v13.

The renderModuleFactory calls can be replaced with renderModule.

service-worker

  • The SwUpdate#activated observable is deprecated.

The SwUpdate#activated observable only emits values as a direct response to calling SwUpdate#activateUpdate() and was only useful for determining whether the call resulted in an update or not. Now, the return value of SwUpdate#activateUpdate() can be used to determine the outcome of the operation and therefore using SwUpdate#activated does not offer any benefit.

  • The SwUpdate#availalbe observable is deprecated.

The new SwUpdate#versionUpdates observable provides the same information and more. Therefore, it is possible to rebuild the same behavior as SwUpdate#availalbe using the events emitted by SwUpdate#versionUpdates and filtering for VersionReadyEvent events. As a result, the SwUpdate#availalbe observable is now redundant.

CommitTypeDescription
747553dd68docsdeprecate ViewEngine-based renderModuleFactory (#43757)

bazel

CommitTypeDescription
62d7005a52featadd strict_templates and experimental_extended_template_diagnostics to ng_module() rule (#43582)
d977701a43featallow for custom conditions to be set in ng_package targets (#43764)
4886585875featcreate transition for enabling partial compilation (#43431)
cd1b52483efeatexpose esm2020 and es2020 conditions in APF package exports (#43740)
49b82ae561featimplement partial compilation APF v13 for ng_package rule (#43431)
274cb38e0bfeatswitch prodmode output to ES2020 (#43431)
73ac50c447featwire up partial compilation build setting in ng_module (#43431)
e0a72857ccfixconstruct a manifest file even when warnings are emitted (#43582)
dbe656d1e0fixngc-wrapped should not rely on linker for external workspaces (#43690)

common

CommitTypeDescription
adf4481211featadd injection token for default date pipe timezone (#43611)
c6a93001ebfixsynchronise location mock behavior with the navigators (#41730)

compiler

CommitTypeDescription
14b492df26fixdo not error if $any is used inside a listener (#43866)

compiler-cli

CommitTypeDescription
bed121c34ffeatinline resources when generating class metadata calls (#43178)
263feba5c2fixhandle nullable expressions correctly in the nullish coalescing extended template diagnostic (#43572)
8f7fdc59affixnot evaluating new signature for __spreadArray (#43618)
426a3ecae7fixupdates ngc to pass the build when only warnings are emitted (#43673)

core

CommitTypeDescription
a3960846dafeatadd createNgModuleRef function to create NgModuleRef based on NgModule class (#43580)
fe1f6421d2featadd getNgModuleById function to retrieve loaded NgModules by id (#43580)
81c7eb813cfeatadd migration to opt out existing apps from new test module teardown behavior (#43353)
e57691c9c5featAdd migration to update empty routerLinks in templates (#43176)
7dccbdd27bfeatadd support for Types in ViewContainerRef.createComponent (#43022)
c14085e434featdrop support for TypeScript 4.2 and 4.3 (#43642)
94ba59bc9dfeatenable test module teardown by default (#43353)
ea61ec2562featsupport TypeScript 4.4 (#43281)
e0a0d05d45featupdate node version support range to support v16 (#43740)
7396021e4bfixavoid duplicating comments in TestBed teardown migration (#43776)
7fd0428aaefixdon't rethrow errors if test teardown has been disabled (#43635)
66fb311d20fixincorrect signature for initTestEnvironment (#43615)
8ae99821d6fixsupport InjectFlags argument in NodeInjector.get() (#41592)
8878183521perfremove support for the deprecated WrappedValue (#43507)

elements

CommitTypeDescription
a468213f34fixremove ng-add schematic (#43975)
f544a53f5ffixremove incorrect @angular/platform-browser peer dependency (#43975)

forms

CommitTypeDescription
d9d8f950e9featallow disabling min/max validators dynamically (by setting the value to null) (#42978)
e49fc96ed3featMake Form Statuses use stricter types. (#42952)

language-service

CommitTypeDescription
b10d90bef6featAdd method for retrieving the component template at the cursor location (#43208)
d5f9890c92featauto-apply optional chaining on nullable symbol (#42995)
69957f72e2featprovide snippets for attribute (#43590)
fc3b50e427fixexclude the SafePropertyRead when applying the optional chaining (#43321)

migrations

CommitTypeDescription
95a68c5dc3fixaccount for CRLF characters in template migrations (#44013)
77bd2538cbfixapply individual expression edits to preserve newline characters (#43519)
d849350c7bfixEnsure routerLink migration doesn't update unrelated files (#43519)
2efc18e675fixmigration failed finding tsconfig file (#43343)
b6f2a55147fixprevent migrations from updating external templates multiple times (#44013)

router

CommitTypeDescription
4f3beffdbffeatemit activate/deactivate events when an outlet gets attached/detached (#43333)
faf9f5a3bcfeatnew output that would notify when link is activated (#43280)
3c6b653089featOption to correctly restore history on failed navigation (#43289)
784671597efixAllow question marks in query param values (#31187)
796da641f0fixDo not modify parts of URL excluded from with 'eager' updates (#43421)
772e08d14efixfix Router's public API for canceledNavigationResolution (#43842)
ccb09b4558fixnull/undefined routerLink should disable navigation (#43087)
9e039ca68bfixOnly trigger router navigation on popstate events from Location subscription (#43328)
c5d0bd4966fixPrevent URL flicker when new navigations cancel ongoing ones (#43496)
adc68b100bfixreuse route strategy fix (#43791)
361273fad5refactorremove support for loadChildren string syntax (#43591)

service-worker

CommitTypeDescription
59225f5586featSwUpdate#activeUpdate and SwUpdate#checkForUpdate should have a meaningful outcome (#43668)
0dc45446fefeatexpose more version update events (#43668)

Special Thanks

Ahmed Ayed, Alan Agius, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Bjarki, Charles Lyding, Dmitrij Kuba, Doug Parker, Dylan Hunn, George Kalpakas, Jessica Janiuk, Jochen Kraushaar, Joe Martin (Crowdstaffing), Joey Perrott, Jon Rimmer, JoostK, Kristiyan Kostadinov, Maximilian Köller, Paul Gschwendtner, Pei Wang, Pete Bacon Darwin, Tomasz Domański, Willy Schott, anandtiwary, dario-piotrowicz, iRealNirmal, ivanwonder, krzysztof-grzybek, mgechev and vthinkxie

<a name="12.2.15"></a>

12.2.15 (2021-12-08)

ngcc

CommitTypeDescription
b6554d75cdfixcorrectly resolve UMD dependencies (#44382)

Special Thanks

George Kalpakas

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.2.14"></a>

12.2.14 (2021-12-01)

compiler

CommitTypeDescription
e3db0385b6fixensure that partially compiled queries can handle forward references (#44124)

ngcc

CommitTypeDescription
a8be244113fixcorrectly report error when collecting dependencies of UMD module (#44245)
fc072935eefixsupport the UMD wrapper function format emitted by Webpack (#44245)

Special Thanks

George Kalpakas, Pete Bacon Darwin and iRealNirmal

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.2.13"></a>

12.2.13 (2021-11-03)

compiler-cli

CommitTypeDescription
9a89db790ffixavoid broken references in .d.ts files due to @internal markers (#43965)

core

CommitTypeDescription
8f402c9d06fixsupport InjectFlags argument in NodeInjector.get() (#41592)

Special Thanks

Alan Agius, George Kalpakas, Jochen Kraushaar, Joe Martin (Crowdstaffing), JoostK and vthinkxie

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.2.12"></a>

12.2.12 (2021-10-27)

compiler-cli

CommitTypeDescription
112557497cfixavoid broken references in .d.ts files due to @internal markers (#43527)

ngcc

CommitTypeDescription
067ae54d46fixsupport alternate UMD layout when adding new imports (#43931)

Special Thanks

Alan Agius, Andrew Kushnir, George Kalpakas, Jessica Janiuk, Joey Perrott, JoostK, Mladen Jakovljević, Virginia Dooley, amayer42, dirk diebel and ericcheng2005

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.2.11"></a>

12.2.11 (2021-10-20)

ngcc

CommitTypeDescription
cab21cea7afixsupport alternate wrapper function layout for UMD (#43879)

router

CommitTypeDescription
58c11865acfixDo not clear currentNavigation if already set to next one (#43852)

Special Thanks

Alan Agius, Andrew Kushnir, Andrew Scott, David Shevitz, George Kalpakas, Joe Martin (Crowdstaffing), Natalia Venditto, Pete Bacon Darwin, Younes Jaaidi and dario-piotrowicz

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.2.10"></a>

12.2.10 (2021-10-13)

Special Thanks

Alan Agius, Daniel Díaz, David Shevitz, Doug Parker, George Kalpakas, Joe Martin (Crowdstaffing), Tanguy Nodet, Thomas Turrell-Croft, dario-piotrowicz, hchiam, markostanimirovic and mgechev

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.2.9"></a>

12.2.9 (2021-10-06)

core

CommitTypeDescription
b4b441077afixhandle invalid constructor parameters in partial factory declarations (#43619)

router

CommitTypeDescription
7f6050587dfixunset attachRef when router-outlet is destroyed to avoid mounting a destroyed component (#43697)

service-worker

CommitTypeDescription
c4ecc07838fixmake ngsw.json generation deterministic and correct (#43679)

Special Thanks

Alan Agius, Daniel Díaz, George Kalpakas, JoostK, Kristiyan Kostadinov, Pete Bacon Darwin, Wey-Han Liaw, dario-piotrowicz, iRealNirmal, little-pinecone, mgechev, ultrasonicsoft and xiaohanxu-nick

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.2.8"></a>

12.2.8 (2021-09-30)

compiler-cli

CommitTypeDescription
c1338bf837fixcorrectly interpret token arrays in @Injectable deps (#43226)

language-service

CommitTypeDescription
c8f8d7d3b1fixprovide dom event completions (#43299)

ngcc

CommitTypeDescription
69299f7d4dfixdo not fail for packages which correspond with Object members (#43589)

service-worker

CommitTypeDescription
3cf41354aefixdo not unassign clients from a broken version (#43518)

Special Thanks

Adrien Crivelli, Alex Rickabaugh, Andrew Scott, Bobby Galli, Chris, Daniel Díaz, Dario Piotrowicz, George Kalpakas, Joe Martin (Crowdstaffing), JoostK, Pete Bacon Darwin, Rafael Santana, Raj Sekhar, Ricardo Chavarria, Teri Glover, Virginia Dooley, dario-piotrowicz, enisfr and wszgrcy

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.2.7"></a>

12.2.7 (2021-09-22)

common

CommitTypeDescription
2bb4bf1468fixtitlecase pipe incorrectly handling numbers (#43476)

compiler

CommitTypeDescription
9c8a1f8a71fixinclude leading whitespace in source-spans of i18n messages (#43132)

compiler-cli

CommitTypeDescription
defb02f11efixhandle directives that refer to a namespaced class in a type parameter bound (#43511)

platform-browser

CommitTypeDescription
adc7c56edefiximprove error message for missing animation trigger (#41356)

Special Thanks

Andrew Scott, Daniel Díaz, George Kalpakas, JoostK, Kristiyan Kostadinov, Mwiku, Pete Bacon Darwin, Teri Glover, Virginia Dooley, Xiaohanxu1996, dario-piotrowicz and kirjs

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.2.6"></a>

12.2.6 (2021-09-15)

animations

CommitTypeDescription
141fde1632fixemit pure annotations to static property initializers (#43344)

core

CommitTypeDescription
ca510c87c5fixemit pure annotations to static property initializers (#43344)

router

CommitTypeDescription
4034f252c9fixAllow renavigating to failed URLs (#43424)

service-worker

CommitTypeDescription
a102b27641fixclear service worker cache in safety worker (#43324)

Special Thanks

Alan Agius, Amadou Sall, Andrew Kushnir, Andrew Scott, Aristeidis Bampakos, Bjarki, David Shevitz, George Kalpakas, Joe Martin (Crowdstaffing), Michele Stieven, Naveed Ahmed, dario-piotrowicz, mezhik91 and mgechev

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.2.5"></a>

12.2.5 (2021-09-08)

router

CommitDescription
a0bd6e90f9fix: add more context to Unhandled Navigation Error (#43291)

Special Thanks:

Alan Agius, Charles Barnes, Enea Jahollari, George Kalpakas, Ikko Ashimine, Paul Gschwendtner, Pete Bacon Darwin, William Sedlacek and dario-piotrowicz

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.2.4"></a>

12.2.4 (2021-09-01)

compiler-cli

CommitDescription
8233906be2fix: Emit type annotations for synthesized decorator fields (#43021)

Special Thanks:

Andrew Scott, Daniel Trevino, George Kalpakas, Joey Perrott, Kristiyan Kostadinov, nickreid and segunb

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.2.3"></a>

12.2.3 (2021-08-25)

service-worker

CommitDescription
fc7f92159dfix: NPE if onActionClick is undefined (#43210)

Special Thanks:

Daniel Trevino, Erik Slack, George Kalpakas, dario-piotrowicz and shlasouski

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.2.2"></a>

12.2.2 (2021-08-18)

animations

CommitDescription
bb6555979dfix: add pure annotations to static property initializers (#43064)

core

CommitDescription
738b23347efix: add pure annotations to static property initializers (#43064)

platform-browser

CommitDescription
535837e617perf: avoid intermediate arrays in server transition (#43145)

router

CommitDescription
6449590ec8fix: eagerly update internal state on browser-triggered navigations (#43102)

Special Thanks:

Andrew Scott, Aristeidis Bampakos, Charles Lyding, Edoardo Dusi, George Kalpakas, Joe Martin (Crowdstaffing), Joey Perrott, Kirk Larkin, Kristiyan Kostadinov, Pete Bacon Darwin, TIffany Davis, Theoklitos Bampouris, ali, dario-piotrowicz and pichuser

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.2.1"></a>

12.2.1 (2021-08-11)

router

CommitDescription
dd3abdb9d9fix(router): ensure check for match options is compatible with property renaming (#43086)

Special Thanks:

Amadou Sall, Andrew Kushnir, Andrew Scott, Daniel Trevino, Erik Slack, Fabien BERNARD, George Kalpakas, Jeroen van Warmerdam, Joey Perrott, Tim Gates and Vugar_Abdullayev

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.2.0"></a>

12.2.0 (2021-08-04)

core

CommitDescription
bd7f0d8b70fix(core): incorrect error reported when trying to re-create view which had an error during creation (#43005)

language-service

CommitDescription
aace1e71d8fix(language-service): global autocomplete doesn't work when the user tries to modify the symbol (#42923)

Special Thanks:

Alex Rickabaugh, Joe Martin, Joey Perrott, Kristiyan Kostadinov, Nichola Alkhouri, Paul Gschwendtner, Pete Bacon Darwin, atscott, dario-piotrowicz and ivanwonder

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.1.5"></a>

12.1.5 (2021-08-04)

This release contains various API docs improvements.

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.2.0-rc.0"></a>

12.2.0-rc.0 (2021-07-28)

compiler-cli

CommitDescription
ed9cfb674ffix(compiler-cli): use correct module resolution context for absolute imports in .d.ts files (#42879)
5fb23ecceaperf(compiler-cli): skip analysis in incremental builds for files without Angular behavior (#42562)

core

CommitDescription
eefe1682e8fix(core): correctly handle null or undefined in ErrorHandler#handleError() (#42881)

forms

CommitDescription
1d9d02696efeat(forms): add hasValidators, addValidators, and removeValidators methods (for both sync and async) (#42838)
a502279592feat(forms): allow minLength/maxLength validator to be bound to null (#42565)

language-service

CommitDescription
7c35ca0e00feat(language-service): support autocomplete string literal union types in templates (#42729)

router

CommitDescription
0d81b007e4fix(router): add missing outlet events to RouterOutletContract (#42431)
dbae00195efeat(router): ability to provide custom route reuse strategy via DI for RouterTestingModule (#42434)

Special Thanks:

Andrew Scott, Daniel Trevino, Dmitrij Kuba, Dylan Hunn, George Kalpakas, Joey Perrott, JoostK, Paul Gschwendtner, Pete Bacon Darwin, Steven Masala, Teri Glover, Vladyslav, Yuvaraj, codebriefcase, iRealNirmal and ivanwonder

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.1.4"></a>

12.1.4 (2021-07-28)

compiler-cli

CommitDescription
77ae4459d3fix(compiler-cli): use correct module resolution context for absolute imports in .d.ts files (#42879)
f589b01672perf(compiler-cli): skip analysis in incremental builds for files without Angular behavior (#42562)

core

CommitDescription
a779a1029bfix(core): correctly handle null or undefined in ErrorHandler#handleError() (#42881)

Special Thanks:

Andrew Scott, Daniel Trevino, Dylan Hunn, George Kalpakas, Joey Perrott, JoostK, Paul Gschwendtner, Pete Bacon Darwin, Teri Glover, Vladyslav, Yuvaraj and codebriefcase

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.2.0-next.3"></a>

12.2.0-next.3 (2021-07-21)

animations

CommitDescription
f12c53342cfix(animations): normalize final styles in buildStyles (#42763)

compiler-cli

CommitDescription
70c3461be3fix(compiler-cli): use correct module import for types behind a forwardRef (#42887)
07d7e6034fperf(compiler-cli): optimize cycle detection using a persistent cache (#41271)

core

CommitDescription
307dac67bcfix(core): use correct injector when resolving DI tokens from within a directive provider factory (#42886)

Special Thanks:

Alan Agius, Alex Rickabaugh, David Shevitz, George Kalpakas, Joey Perrott, JoostK, Krzysztof Kotowicz, Minko Gechev, Paul Gschwendtner and dario-piotrowicz

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.1.3"></a>

12.1.3 (2021-07-21)

animations

CommitDescription
3cddc3d6bcfix(animations): normalize final styles in buildStyles (#42763)

compiler-cli

CommitDescription
d207ea06d1fix(compiler-cli): use correct module import for types behind a forwardRef (#42887)
e6d520f3d9perf(compiler-cli): optimize cycle detection using a persistent cache (#41271)

core

CommitDescription
a6db152c78fix(core): use correct injector when resolving DI tokens from within a directive provider factory (#42886)

Special Thanks:

Alan Agius, David Shevitz, George Kalpakas, Joey Perrott, JoostK, Krzysztof Kotowicz, Minko Gechev, Paul Gschwendtner and dario-piotrowicz

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.2.0-next.2"></a>

12.2.0-next.2 (2021-07-14)

bazel

CommitDescription
7e04116d15fix(bazel): enable dts bundling for Ivy packages (#42728)

common

CommitDescription
e42aa6c13bfix(common): re-sort output of KeyValuePipe when compareFn changes (#42821)

compiler

CommitDescription
b33665ab2cfix(compiler): add mappings for all HTML entities (#42818)
404c8d0d88fix(compiler): incorrect context object being referenced from listener instructions inside embedded views (#42755)

compiler-cli

CommitDescription
81dce5c664fix(compiler-cli): check split two way binding (#42601)
4c482bf3f1fix(compiler-cli): properly emit literal types when recreating type parameters in a different file (#42761)
30c82cd177fix(compiler-cli): inline type checking instructions no longer prevent incremental reuse (#42759)
4c78984ad2fix(compiler-cli): support reflecting namespace declarations (#42728)
74350a5cf1fix(compiler-cli): return directives for an element on a microsyntax template (#42640)

core

CommitDescription
cd2d82a91afix(core): associate the NgModule scope for an overridden component (#42817)
51156f3f07fix(core): allow proper type inference when ngFor is used with a trackBy function (#42692)
0f23f7343efix(core): error in TestBed if module is reset mid-compilation in ViewEngine (#42669)

language-service

CommitDescription
ffeea63f43fix(language-service): Do not override TS LS methods not supported by VE NgLS (#42727)

service-worker

CommitDescription
cb2ca9a66efix(service-worker): correctly handle unrecoverable state when a client no longer exists (#42736)
f592a12005fix(service-worker): avoid storing redundant metadata for hashed assets (#42606)

Special Thanks:

Alan Agius, Andrew Kushnir, Andrew Scott, Arthur Ming, Bastian, Borislav Ivanov, Daniel Trevino, David Gilson, David Shevitz, Gabriele Franchitto, George Kalpakas, Joey Perrott, JoostK, Kristiyan Kostadinov, Mark Goho, Meir Blumenfeld, Paul Gschwendtner, Pete Bacon Darwin, Ryan Andersen, Theoklitos Bampouris, behrooz bozorg chami, dario-piotrowicz, ivanwonder and mgechev

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.1.2"></a>

12.1.2 (2021-07-14)

bazel

CommitDescription
4a8ab4f149fix(bazel): enable dts bundling for Ivy packages (#42728)

common

CommitDescription
d654c7933afix(common): re-sort output of KeyValuePipe when compareFn changes (#42821)

compiler

CommitDescription
2566cbb48cfix(compiler): add mappings for all HTML entities (#42818)
65330f03a9fix(compiler): incorrect context object being referenced from listener instructions inside embedded views (#42755)

compiler-cli

CommitDescription
17d3de25dafix(compiler-cli): properly emit literal types when recreating type parameters in a different file (#42761)
0a17e98ae2fix(compiler-cli): inline type checking instructions no longer prevent incremental reuse (#42759)
45116097c1fix(compiler-cli): support reflecting namespace declarations (#42728)
df5cc1fbbffix(compiler-cli): return directives for an element on a microsyntax template (#42640)

core

CommitDescription
63013546e1fix(core): associate the NgModule scope for an overridden component (#42817)
9ebd41e39cfix(core): allow proper type inference when ngFor is used with a trackBy function (#42692)
41c6877c01fix(core): error in TestBed if module is reset mid-compilation in ViewEngine (#42669)

language-service

CommitDescription
97c18f4527fix(language-service): Do not override TS LS methods not supported by VE NgLS (#42727)

service-worker

CommitDescription
d87917542afix(service-worker): correctly handle unrecoverable state when a client no longer exists (#42736)
f2523a8feffix(service-worker): avoid storing redundant metadata for hashed assets (#42606)

Special Thanks:

Alan Agius, Andrew Kushnir, Andrew Scott, Arthur Ming, Bastian, Borislav Ivanov, David Gilson, David Shevitz, Gabriele Franchitto, George Kalpakas, Joey Perrott, JoostK, Kristiyan Kostadinov, Mark Goho, Meir Blumenfeld, Paul Gschwendtner, Pete Bacon Darwin, Ryan Andersen, Theoklitos Bampouris, behrooz bozorg chami, dario-piotrowicz, ivanwonder and mgechev

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.2.0-next.1"></a>

12.2.0-next.1 (2021-06-30)

compiler

CommitDescription
9f5cc7c808feat(compiler): support number separators in templates (#42672)

compiler-cli

CommitDescription
37a740c659fix(compiler-cli): add support for partially evaluating types (#41661)

platform-browser

CommitDescription
234b5edcc7fix(platform-browser): in Meta.addTag() do not add duplicate meta tags (#42703)

Special Thanks:

Alan Agius, Alex Rickabaugh, Dario Piotrowicz, George Kalpakas, George Looshch, Joey Perrott, Kristiyan Kostadinov, Lars Gyrup Brink Nielsen, Paul Gschwendtner, Pete Bacon Darwin, Zach Arend, codebriefcase, dario-piotrowicz, marvinbeckert, mgechev and pavlenko

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.1.1"></a>

12.1.1 (2021-06-30)

compiler-cli

CommitDescription
f6b828e292fix(compiler-cli): add support for partially evaluating types (#41661)

platform-browser

CommitDescription
d19ddd1a87fix(platform-browser): in Meta.addTag() do not add duplicate meta tags (#42703)

Special Thanks:

Alan Agius, Dario Piotrowicz, George Kalpakas, George Looshch, Lars Gyrup Brink Nielsen, Paul Gschwendtner, Pete Bacon Darwin, Zach Arend, codebriefcase, dario-piotrowicz, marvinbeckert, mgechev and pavlenko

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.2.0-next.0"></a>

12.2.0-next.0 (2021-06-24)

This release contains the same set of changes as 12.1.0.

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.1.0"></a>

12.1.0 (2021-06-24)

compiler

CommitDescription
9de65dbdcefix(compiler): should not break a text token on a non-valid start tag (#42605)
c873440ad2fix(compiler): do not allow unterminated interpolation to leak into later tokens (#42605)
cc672f05bffeat(compiler): add support for shorthand property declarations in templates (#42421)
f52df99fe3fix(compiler): generate view restoration for keyed write inside template listener (#42603)

compiler-cli

CommitDescription
874de59d35fix(compiler-cli): change default ngcc hash algorithm to be FIPS compliant (#42582)
729eea5716fix(compiler-cli): transform type references in generic type parameter default (#42492)

core

CommitDescription
873229f24bfeat(core): add opt-in test module teardown configuration (#42566)

router

CommitDescription
07c1ddc487fix(router): error if module is destroyed before location is initialized (#42560)

service-worker

CommitDescription
cc30dc0713fix(service-worker): ensure obsolete caches are always cleaned up (#42622)
01128f5b5dfix(service-worker): ensure caches are cleaned up when failing to load state (#42622)
73b0275dc2fix(service-worker): improve ServiceWorker cache names (#42622)
7507ed2e54fix(service-worker): use correct names when listing CacheDatabase tables (#42622)
53fe557da7feat(service-worker): include ServiceWorker version in debug info (#42622)
d546501ab5feat(service-worker): add openWindow, focusLastFocusedOrOpen and navigateLastFocusedOrOpen (#42520)
9498da1038fix(service-worker): correctly determine client ID on navigation requests (#42607)

Special Thanks:

Alex Rickabaugh, Dale Harris, George Kalpakas, Joey Perrott, JoostK, Kristiyan Kostadinov, Németh Tamás, Paul Gschwendtner, Pete Bacon Darwin, Renovate Bot, Umair Hafeez, codingnuclei and mgechev

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.1.0-next.6"></a>

12.1.0-next.6 (2021-06-16)

compiler

CommitDescription
8c1e0e6ad0fix(compiler): always match close tag to the nearest open element (#42554)

compiler-cli

CommitDescription
22bda2226bfix(compiler-cli): prevent prior compilations from being retained in watch builds (#42537)

core

CommitDescription
3961b3c360fix(core): ensure that autoRegisterModuleById registration in ɵɵdefineNgModule is not DCE-ed by closure (#42529)

forms

CommitDescription
7180ec9e7cfix(forms): changes to status not always being emitted to statusChanges observable for async validators. (#42553)

language-service

CommitDescription
4001e9d808fix(language-service): 'go to defininition' for objects defined in template (#42559)
228beeabd1fix(language-service): Use last child end span for parent without close tag (#42554)

Special Thanks:

Ahmed Ayed, Alan Agius, Alex Rickabaugh, Andrew Scott, Ankit Choudhary, Aristeidis Bampakos, Daniel Trevino, Dario Piotrowicz, Dylan Hunn, George Kalpakas, Igor Minar, JiaLiPassion, JoostK, Kapunahele Wong, Kristiyan Kostadinov, Marius Bethge, Mladen Jakovljević, Paul Gschwendtner, Pete Bacon Darwin, Pham Huu Hien, Renovate Bot, dario-piotrowicz and gobika21f

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.0.5"></a>

12.0.5 (2021-06-16)

compiler

CommitDescription
89fc131ef8fix(compiler): always match close tag to the nearest open element (#42554)

compiler-cli

CommitDescription
60dbf017fbfix(compiler-cli): prevent prior compilations from being retained in watch builds (#42537)

core

CommitDescription
785da0f1bffix(core): ensure that autoRegisterModuleById registration in ɵɵdefineNgModule is not DCE-ed by closure (#42529)

forms

CommitDescription
6f1b907b79fix(forms): changes to status not always being emitted to statusChanges observable for async validators. (#42553)

language-service

CommitDescription
8192f1e1c2fix(language-service): 'go to defininition' for objects defined in template (#42559)
11e0f53352fix(language-service): Use last child end span for parent without close tag (#42554)

Special Thanks:

Ahmed Ayed, Alan Agius, Andrew Scott, Ankit Choudhary, Aristeidis Bampakos, Daniel Trevino, Dario Piotrowicz, Dylan Hunn, George Kalpakas, Igor Minar, JiaLiPassion, JoostK, Kapunahele Wong, Kristiyan Kostadinov, Marius Bethge, Pete Bacon Darwin, Pham Huu Hien, dario-piotrowicz and gobika21

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.1.0-next.5"></a>

12.1.0-next.5 (2021-06-09)

common

CommitDescription
85c7f7691efix(common): infer correct type when trackBy is used in ngFor (#41995)
374fa2c26ffix(common): initialize currencyCode in currencyPipe (#40505)

compiler

CommitDescription
afd68e5674feat(compiler): emit diagnostic for shadow dom components with an invalid selector (#42245)
ba084857eafeat(compiler): support safe keyed read expressions (#41911)

compiler-cli

CommitDescription
bd1836b999fix(compiler-cli): exclude type-only imports from cycle analysis (#42453)

core

CommitDescription
25f763cff8feat(core): support TypeScript 4.3 (#42022)

forms

CommitDescription
47270d9e63feat(forms): add ng-submitted class to forms that have been submitted. (#42132)
751cd83ae3fix(forms): the min and max validators should work correctly with 0 as a value (#42412)

language-service

CommitDescription
a493ea9bcbfix(language-service): fix autocomplete info display for some cases (#42472)
fe22c2b0b6fix(language-service): Correct rename info for pipe name expressions (#41974)

router

CommitDescription
c44ab4f6dafix(router): fix serializeQueryParams logic (#42481)

Special Thanks:

Alex, Alex Inkin, Andrew Kushnir, Andrew Scott, Chris, David Shevitz, Dylan Hunn, George Kalpakas, Gourav102, Igor Minar, Jessica Janiuk, Joey Perrott, JoostK, Kapunahele Wong, Kristiyan Kostadinov, MarsiBarsi, MrJithil, Paul Gschwendtner, Pete Bacon Darwin, Renovate Bot, Sam Severance, Santosh Yadav, Teri Glover, Tiago Temporin, Vahid Mohammadi, anups1, cindygk, iRealNirmal, kuncevic and mgechev

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.0.4"></a>

12.0.4 (2021-06-09)

common

CommitDescription
200cc31df4fix(common): infer correct type when trackBy is used in ngFor (#41995)
0dad375de7fix(common): initialize currencyCode in currencyPipe (#40505)

compiler-cli

CommitDescription
b6d6a34eeffix(compiler-cli): exclude type-only imports from cycle analysis (#42453)

forms

CommitDescription
50c87e86b6fix(forms): the min and max validators should work correctly with 0 as a value (#42412)

language-service

CommitDescription
34dd3c360bfix(language-service): fix autocomplete info display for some cases (#42472)

router

CommitDescription
a77ec5bcabfix(router): fix serializeQueryParams logic (#42481)

Special Thanks:

Alex, Alex Inkin, Andrew Kushnir, Andrew Scott, Chris, David Shevitz, George Kalpakas, Gourav102, Igor Minar, Joey Perrott, JoostK, Kapunahele Wong, Kristiyan Kostadinov, MarsiBarsi, MrJithil, Paul Gschwendtner, Pete Bacon Darwin, Sam Severance, Santosh Yadav, Teri Glover, Tiago Temporin, Vahid Mohammadi, anups1, cindygk, iRealNirmal, kuncevic and mgechev

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.1.0-next.4"></a>

12.1.0-next.4 (2021-06-02)

compiler-cli

CommitDescription
e039075a28fix(compiler-cli): better detect classes that are indirectly exported (#42207)

Special Thanks:

AleksanderBodurri, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, David Pfeiffer, David Shevitz, Doug Parker, Dylan Hunn, George Kalpakas, Igor Minar, Joey Perrott, JoostK, Kristiyan Kostadinov, Renovate Bot, Sam Severance, Serguei Cambour, Suguru Inatomi, Teri Glover, Wagner Maciel, Zach Arend, mgechev and 不肖・高橋

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.0.3"></a>

12.0.3 (2021-06-02)

compiler-cli

CommitDescription
8bdcca1e08fix(compiler-cli): better detect classes that are indirectly exported (#42207)

Special Thanks:

AleksanderBodurri, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, David Pfeiffer, David Shevitz, Doug Parker, Dylan Hunn, George Kalpakas, Igor Minar, Joey Perrott, JoostK, Kristiyan Kostadinov, Sam Severance, Serguei Cambour, Suguru Inatomi, Teri Glover, Wagner Maciel, Zach Arend, mgechev and 不肖・高橋

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.0.2"></a>

12.0.2 (2021-05-26)

forms

CommitDescription
19d7bf4162fix(forms): Add float number support for min and max validator (#42223)

migrations

CommitDescription
11c7bec065fix(migrations): add migration to replace /deep/ with ::ng-deep (#42214)

platform-browser

CommitDescription
84ab81c286fix(platform-browser): update started state on reset (#41608)

Special Thanks:

Alan Agius, Andrew Scott, David Shevitz, George Kalpakas, Igor Minar, Joey Perrott, Kapunahele Wong, Madleina Scheidegger, Paul Gschwendtner, Pete Bacon Darwin, Sam Severance, Teri Glover, Zach Arend, chenyunhsin, iRealNirmal, mgechev and twerske

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.1.0-next.3"></a>

12.1.0-next.3 (2021-05-26)

forms

CommitDescription
3d9062dad7fix(forms): Add float number support for min and max validator (#42223)

migrations

CommitDescription
7f6213a2f4fix(migrations): add migration to replace /deep/ with ::ng-deep (#42214)

platform-browser

CommitDescription
3a6af8e629fix(platform-browser): update started state on reset (#41608)

Special Thanks:

Alan Agius, Andrew Scott, David Shevitz, George Kalpakas, Igor Minar, Joey Perrott, Kapunahele Wong, Madleina Scheidegger, Paul Gschwendtner, Pete Bacon Darwin, Renovate Bot, Sam Severance, Teri Glover, Zach Arend, chenyunhsin, iRealNirmal, mgechev and twerske

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.1.0-next.2"></a>

12.1.0-next.2 (2021-05-19)

common

CommitDescription
4bc3cf216dfeat(common): add URLSearchParams to request body (#37852)

language-service

CommitDescription
1be5d659a5fix(language-service): fully de-duplicate reference and rename results (#40523)
a86ca4fe04feat(language-service): Enable renaming of pipes (#40523)

Special Thanks:

Ajit Singh, Alan Agius, Alan Cohen, Alex Rickabaugh, Amadou Sall, Andrew J Asche, Andrew Kushnir, Andrew Scott, Aristeidis Bampakos, Ben Lesh, Bendik Skarpnes, Benjamin Kindle, Charles Lyding, Chau Tran, Cosmin Ababei, Daniel Díaz, David Shevitz, Dharmen Shah, Dmitrij Kuba, Dylan Hunn, Eduard Bondarenko, Emily Wenberg, Front-end developer, George Kalpakas, Georgii Dolzhykov, Gopal Jayaraman, Gourav102, Gérôme Grignon, Hugo Mejia, Igor Minar, Jesse Palmer, Jessica Janiuk, JiaLiPassion, Joey Perrott, JoostK, Julien Marcou, Kapunahele Wong, Keen Yee Liau, Kirk Larkin, Kristiyan Kostadinov, Lars Gyrup Brink Nielsen, Martin Sikora, Mathias Schäfer, Michael Hladky, Mikhail, Misko Hevery, MrJithil, Nishu Goel, Oluwole Majiyagbe, Paul Gschwendtner, Paul Muriel Biya-Bi, Pete Bacon Darwin, Pierre Portejoie, Richard Sithole, Sagar Pandita, Sam Severance, Sumit Arora, Talha Azhar, Teri Glover, Wojciech Okoński, Zach Arend, Zack DeRose, aschaap, cexbrayat, iRealNirmal, iron, jeripeierSBB, mgechev, nirmal bhagwani, pavlenko, profanis, rachid Oussanaa, sovtara, unknown, va-stefanek and wagnermaciel

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.0.1"></a>

12.0.1 (2021-05-19)

benchpress

CommitDescription
28ee9864a4fix(benchpress): update the check for start and end events (#42085)

compiler

CommitDescription
52c07e403efix(compiler): unclear lexer error when using private identifier in expressions (#42027)

core

CommitDescription
3a46ad96eafix(core): global listeners not being bound on non-node host elements (#42014)

forms

CommitDescription
9b90c03a9ffix(forms): registerOnValidatorChange should be called for ngModelGroup. (#41971)

Special Thanks:

Alex Rickabaugh, Daniel Díaz, David Shevitz, Dylan Hunn, Front-end developer, George Kalpakas, Joey Perrott, Kristiyan Kostadinov, Lars Gyrup Brink Nielsen, MrJithil, Paul Gschwendtner, Renovate Bot, Sam Severance, Sumit Arora, iRealNirmal, iron, mgechev, rachid Oussanaa and wagnermaciel

<!-- CHANGELOG SPLIT MARKER -->

<a name="12.0.0"></a>

12.0.0 (2021-05-12)

Blog post "Angular v12 is now available".

Bug Fixes

  • animations: ensure consistent transition namespace ordering (#19854) (01cc995)
  • animations: update supported range of node versions to only include LTS versions (#41822) (e918250)
  • animations: cleanup DOM elements when the root view is removed (#41059) (c49b280)
  • animations: allow animations on elements in the shadow DOM (#40134) (dad42c8), closes #25672
  • animations: cleanup DOM elements when the root view is removed (#41001) (a31da48)
  • bazel: update supported range of node versions to only include LTS versions (#41822) (8503246)
  • bazel: update build tooling for latest changes in rules_nodejs (#40710) (696f7bc)
  • bazel: update integration test to use [email protected] (#40710) (34de89a)
  • bazel: update type castings for JSON.parse usage (#40710) (2c90391)
  • benchpress: update type castings for JSON.parse usage (#40710) (e721a5d)
  • common: add right ContentType for boolean values with HttpClient request body(#38924) (#41885) (922a602)
  • common: update supported range of node versions to only include LTS versions (#41822) (f2b6fd8)
  • common: viewport scroller not finding elements inside the shadow DOM (#41644) (c0f5ba3), closes #41470
  • common: temporarily re-export and deprecate XhrFactory (#41393) (7dfa446)
  • common: cleanup location change listeners when the root view is removed (#40867) (38524c4), closes #31546
  • common: allow number or boolean as http params (#40663) (91cdc11), closes #23856
  • common: avoid mutating context object in NgTemplateOutlet (#40360) (d3705b3), closes #24515
  • compiler: preserve @page rules in encapsulated styles (#41915) (3e365ba), closes #26269
  • compiler: strip scoped selectors from @font-face rules (#41815) (2a11cda), closes #41751
  • compiler: update supported range of node versions to only include LTS versions (#41822) (bae8126)
  • compiler: non-literal inline templates incorrectly processed in partial compilation (#41583) (ab257b3)
  • compiler: not generating update instructions for ng-template inside alternate namespaces (#41669) (2bcbbda), closes #41308
  • compiler: avoid parsing EmptyExpr with a backwards span (#41581) (e1a2930)
  • compiler: handle case-sensitive CSS custom properties (#41380) (e112e32), closes #41364
  • compiler: include used components during JIT compilation of partial component declaration (#41353) (ff9470b), closes #41104 #41318
  • compiler: support multiple :host-context() selectors (#40494) (07b7af3), closes #19199
  • compiler: update type castings for JSON.parse usage (#40710) (f728490)
  • compiler-cli: use '' for the source map URL of indirect templates (#41973) (7a4d980), closes #40854
  • compiler-cli: expose the linker as a Babel plugin (#41918) (8fdac8f)
  • compiler-cli: prefer non-aliased exports in reference emitters (#41866) (75bb931), closes #41443 #41277
  • compiler-cli: allow linker to process minified booleans (#41747) (1fb6724), closes #41655
  • compiler-cli: match string indexed partial declarations (#41747) (f885750), closes #41655
  • compiler-cli: update supported range of node versions to only include LTS versions (#41822) (5b463f4)
  • compiler-cli: autocomplete literal types in templates. (#41456) (#41645) (8b2b5ef)
  • compiler-cli: do not error with prepocessing if component has no inline styles (#41602) (a5fe8b9)
  • compiler-cli: ensure the compiler tracks ts.Programs correctly (#41291) (deacc74)
  • compiler-cli: prevent eliding default imports in incremental recompilations (#41557) (7f16515), closes #41377
  • compiler-cli: resolve rootDirs to absolute (#41359) (3e0fda9), closes #36290
  • compiler-cli: add useInlining option to type check config (#41043) (09aefd2), closes #40963
  • compiler-cli: readConfiguration existing options should override options in tsconfig (#40694) (b7c4d07)
  • compiler-cli: extend angularCompilerOptions in tsconfig from node (#40694) (5eb1954), closes #36715
  • compiler-cli: update ngcc integration tests for latest changes in rules_nodejs (#40710) (d7f5755)
  • compiler-cli: update type castings for JSON.parse usage (#40710) (b75d7cb)
  • core: do not retain dynamically compiled components and modules (#42003) (1449c5c), closes #19997
  • core: invoke profiler around ngOnDestroy lifecycle hooks (#41969) (e9ddc57)
  • core: AsyncPipe now compatible with RxJS 7 (#41590) (9759bca)
  • core: handle multiple i18n attributes with expression bindings (#41882) (73c6c64), closes #41869
  • core: update supported range of node versions to only include LTS versions (#41822) (f9c1f08)
  • core: detect synthesized constructors that have been downleveled using TS 4.2 (#41305) (274dc15), closes #41298
  • core: Switch emitDistinctChangesOnlyDefaultValue to true (#41121) (7096246)
  • core: remove duplicated EMPTY_OBJ constant (#41066) (bf158e7)
  • core: remove duplicated EMPTY_ARRAY constant (#40991) (e12d9de)
  • core: allow EmbeddedViewRef context to be updated (#40360) (a3e1719), closes #24515
  • core: make DefaultIterableDiffer keep the order of duplicates (#23941) (a826926), closes #23815
  • core: NgZone coaleascing options should trigger onStable correctly (#40540) (22f9e45)
  • elements: update supported range of node versions to only include LTS versions (#41822) (4f5d094)
  • elements: update type castings for JSON.parse usage (#40710) (efd4149)
  • forms: update supported range of node versions to only include LTS versions (#41822) (dc975ba)
  • http: complete the request on timeout (#39807) (61a0b6d), closes #26453
  • http: emit error on XMLHttpRequest abort event (#40767) (3897265), closes #22324
  • language-service: update supported range of node versions to only include LTS versions (#41822) (9b6198c)
  • language-service: use script versions for incremental compilations (#41475) (78236bf)
  • language-service: Only provide Angular property completions in templates (#41278) (0226a11)
  • language-service: Add plugin option to force strictTemplates (#41062) (e9e7c33)
  • language-service: use single entry point for Ivy and View Engine (#40967) (e986a97)
  • localize: relax error to warning for missing target (#41944) (35ceed2), closes #21690
  • localize: update supported range of node versions to only include LTS versions (#41822) (658ed1f)
  • localize: update type castings for JSON.parse usage (#40710) (4b469c9)
  • ngcc: detect synthesized constructors that have been downleveled using TS 4.2 (#41305) (8d3da56), closes #41298
  • platform-browser: prevent memory leak of style nodes if shadow DOM encapsulation is used (#42005) (d555555), closes #36655
  • platform-browser: update supported range of node versions to only include LTS versions (#41822) (ea05cfd)
  • platform-browser: configure XhrFactory to use BrowserXhr (#41313) (e0028e5), closes #41311
  • platform-browser: update type castings for JSON.parse usage (#40710) (7ecfd2d)
  • platform-browser-dynamic: update supported range of node versions to only include LTS versions (#41822) (bc45029)
  • platform-server: update supported range of node versions to only include LTS versions (#41822) (4b9d4fa)
  • router: update supported range of node versions to only include LTS versions (#41822) (0067edd)
  • router: Only retrieve stored route when reuse strategy indicates it should reattach (#30263) (a4ff071), closes #23162
  • router: recursively merge empty path matches (#41584) (1179dc8), closes #41481
  • router: fragment can be null (#37336) (b555160), closes #23894 #34197
  • router: update type castings for JSON.parse usage (#40710) (350dada)
  • service-worker: update supported range of node versions to only include LTS versions (#41822) (6b823d7)
  • service-worker: update type castings for JSON.parse usage (#40710) (4f7ff96)
  • upgrade: preserve $interval flush when ngMocks is being used (#30229) (87dc851)
  • upgrade: update supported range of node versions to only include LTS versions (#41822) (10c4523)

Build System

Features

  • animations: update supported range of node versions (#41544) (547363a)
  • animations: add support for disabling animations through BrowserAnimationsModule.withConfig (#40731) (29d8a0a)
  • bazel: update supported range of node versions (#41544) (d583d92)
  • common: update supported range of node versions (#41544) (e0250e5)
  • common: add historyGo method to Location service (#38890) (e05a6f3)
  • common: support ICU standard "stand-alone day of week" with DatePipe (#40766) (c56ecab), closes #26922
  • common: implement appendAll() method on HttpParams (#20930) (575a2d1), closes #20798
  • compiler: support nullish coalescing in templates (#41437) (ec27bd4), closes #36528
  • compiler: update supported range of node versions (#41544) (75cc813)
  • compiler: emit @PURE or @pureOrBreakMyCode annotations in the generated code (#41096) (9c21028)
  • compiler-cli: mark ability to use partial compilation mode as stable (#41518) (6ba67c6), closes #41496
  • compiler-cli: update supported range of node versions (#41544) (b7bd238)
  • compiler-cli: support transforming component style resources (#41307) (1de04b1)
  • compiler-cli: support producing Closure-specific PURE annotations (#41021) (fbc9df1)
  • core: introduce getDirectiveMetadata global debugging utility (#41525) (a07f303)
  • core: update supported range of node versions (#41544) (e66a5fb)
  • core: support forwardRef in providedIn of Injectable declaration (#41426) (f7c294e), closes #41205
  • core: add migration for XhrFactory import (#41313) (95ff5ec)
  • core: drop support for TypeScript 4.0 and 4.1 (#41158) (fa04894)
  • core: support TypeScript 4.2 (#41158) (59ef409)
  • core: manually annotate de-sugarred core tree-shakable providers with @pureOrBreakMyCode (#41096) (03d47d5)
  • core: more precise type for APP_INITIALIZER token (#40986) (ca721c2), closes #40729
  • core: drop support for zone.js 0.10.x (#40823) (aaf9b31), closes angular/angular-cli#20034
  • core: support APP_INITIALIZER work with observable (#33222) (ca17ac5), closes #15088
  • elements: update supported range of node versions (#41544) (12fc08b)
  • forms: update supported range of node versions (#41544) (a0006a6)
  • forms: add emitEvent option for AbstractControl-based class methods (#31031) (4ec045e), closes #29662
  • forms: introduce min and max validators (#39063) (8fb83ea), closes #16352
  • http: introduce HttpContext request context (#25751) (1644d64)
  • http: expose a list of human-readable http status codes (#23548) (6fe3a1d), closes #23543
  • language-service: implement signature help (#41581) (c7f9516)
  • language-service: update supported range of node versions (#41544) (86621be)
  • language-service: add perf tracing to LanguageService (#41319) (90f85da)
  • language-service: add command for getting components for a template file (#40655) (5cde4ad)
  • language-service: Add diagnostics to suggest turning on strict mode (#40423) (ecae75f)
  • language-service: Implement getRenameInfo (#40439) (4e8198d)
  • language-service: initial implementation for findRenameLocations (#40140) (9a5ac47)
  • language-service: view template typecheck block (#39974) (d482f5c)
  • localize: update supported range of node versions (#41544) (590d4dd)
  • localize: add scripts to migrate away from legacy message IDs (#41026) (1735430)
  • ngcc: support __read helper as used by TypeScript 4.2 (#41201) (66e9970)
  • ngcc: support __spreadArray helper as used by TypeScript 4.2 (#41201) (7b1214e) #40394
  • platform-browser: update supported range of node versions (#41544) (ef0d1c3)
  • platform-browser-dynamic: update supported range of node versions (#41544) (b714f7b)
  • platform-server: update supported range of node versions (#41544) (c901b4d)
  • platform-server: allow shimming the global env sooner (#40559) (43ecf8a), closes #24551 #39950 #39950
  • router: update supported range of node versions (#41544) (c30b171)
  • router: add migration for ActivatedRouteSnapshot.fragment (#41092) (190fa07), closes #37336
  • router: Add more fine-tuned control in routerLinkActiveOptions (#40303) (6c05c80), closes #13205
  • router: Allow for custom router outlet implementations (#40827) (a82fddf)
  • service-worker: update supported range of node versions (#41544) (fc597f1)
  • upgrade: update supported range of node versions (#41544) (beafa22)

Performance Improvements

  • common: remove unused methods from DomAdapter (#41102) (3c66b10)
  • compiler: reduce amount of generated code for safe accesses and nullish coalescing (#41563) (9a3b82f), closes #41437 #41491
  • compiler-cli: allow incremental compilation in the presence of redirected source files (#41448) (ffea31f)
  • compiler-cli: cache results of absoluteFromSourceFile (#41475) (fab1a64)
  • core: minor improvements to listener instructions (#41807) (9346d61)
  • core: avoid storing LView in ngContext (#41358) (990067a), closes #41047
  • core: optimize getDirectives (#41525) (f7e391a)

BREAKING CHANGES

  • Minified UMD bundles are no longer included in the distributed NPM packages.
  • animations: DOM elements are now correctly removed when the root view is removed. If you are using SSR and use the app's HTML for rendering, you will need to ensure that you save the HTML to a variable before destroying the app. It is also possible that tests could be accidentally relying on the old behavior by trying to find an element that was not removed in a previous test. If this is the case, the failing tests should be updated to ensure they have proper setup code which initializes elements they rely on.
  • common: Methods of the PlatformLocation class, namely onPopState and onHashChange, used to return void. Now those methods return functions that can be called to remove event handlers.
  • common: The methods of the HttpParams class now accept string | number | boolean instead of string for the value of a parameter. If you extended this class in your application, you'll have to update the signatures of your methods to reflect these changes.
  • compiler-cli: Linked libraries no longer generate legacy i18n message ids. Any downstream application that provides translations for these messages, will need to migrate their message ids using the localize-migrate command line tool.
  • core: Angular no longer maintains support for node v10
  • core: Previously the ng.getDirectives function threw an error in case a given DOM node had no Angular context associated with it (for example if a function was called for a DOM element outside an Angular app). This behavior was inconsistent with other debugging utilities under ng namespace, which handled this situation without raising an exception. Now calling the ng.getDirectives function for such DOM nodes would result in an empty array returned from that function.
  • core: Switching default of emitDistinctChangesOnlyDefaultValue which changes the default behavior and may cause some applications which rely on the incorrect behavior to fail.

emitDistinctChangesOnly flag has also been deprecated and will be removed in a future major release.

The previous implementation would fire changes QueryList.changes.subscribe whenever the QueryList was recomputed. This resulted in an artificially high number of change notifications, as it is possible that recomputing QueryList results in the same list. When the QueryList gets recomputed is an implementation detail, and it should not be the thing that determines how often change event should fire.

Unfortunately, fixing the behavior outright caused too many existing applications to fail. For this reason, Angular considers this fix a breaking fix and has introduced a flag in @ContentChildren and @ViewChildren, that controls the behavior.

export class QueryCompWithStrictChangeEmitParent {
  @ContentChildren('foo', {
    // This option is the new default with this change.
    emitDistinctChangesOnly: true,
  })
  foos!: QueryList<any>;
}

For backward compatibility before v12 emitDistinctChangesOnlyDefaultValue was set to false. This change the default to true.

  • core: The type of the APP_INITIALIZER token has been changed to more accurately reflect the types of return values that are handled by Angular. Previously, each initializer callback was typed to return any, this is now Promise<unknown> | Observable<unknown> | void. In the unlikely event that your application uses the Injector.get or TestBed.inject API to inject the APP_INITIALIZER token, you may need to update the code to account for the stricter type.

Additionally, TypeScript may report the TS2742 error if the APP_INITIALIZER token is used in an expression of which its inferred type has to be emitted into a .d.ts file. To work around this, an explicit type annotation is needed, which would typically be Provider or Provider[].

  • core: Minimum supported zone.js version is 0.11.4

  • forms: The emitEvent option was added to the following FormArray and FormGroup methods:

  • FormGroup.addControl

  • FormGroup.removeControl

  • FormGroup.setControl

  • FormArray.push

  • FormArray.insert

  • FormArray.removeAt

  • FormArray.setControl

  • FormArray.clear

If your app has custom classes that extend FormArray or FormGroup classes and override the above-mentioned methods, you may need to update your implementation to take the new options into account and make sure that overrides are compatible from a types perspective.

  • forms: Previously min and max attributes defined on the <input type="number"> were ignored by Forms module. Now presence of these attributes would trigger min/max validation logic (in case formControl, formControlName or ngModel directives are also present on a given input) and corresponding form control status would reflect that.
  • platform-browser: XhrFactory has been moved from @angular/common/http to @angular/common.

Before

ts
import {XhrFactory} from '@angular/common/http';

After

ts
import {XhrFactory} from '@angular/common';
  • router: Strict null checks will report on fragment potentially being null. Migration path: add null check.
  • router: The type of the RouterLinkActive.routerLinkActiveOptions input was expanded to allow more fine-tuned control. Code that previously read this property may need to be updated to account for the new type.
<!-- CHANGELOG SPLIT MARKER -->

<a name="11.2.14"></a>

11.2.14 (2021-05-12)

core

CommitDescription
5bb7c0ef3afix(core): do not retain dynamically compiled components and modules (#42003)
40cc29aa6efix(core): invoke profiler around ngOnDestroy lifecycle hooks (#41969)

platform-browser

CommitDescription
f66c9ae749fix(platform-browser): prevent memory leak of style nodes if shadow DOM encapsulation is used (#42005)

Special Thanks:

Alex Rickabaugh, Andrew J Asche, Georgii Dolzhykov, Joey Perrott, Joost Koehoorn, Julien Marcou, Kapunahele Wong, Pete Bacon Darwin, Richard Sithole, Teri Glover, iRealNirmal, Minko Gechev, profanis and va-stefanek

12.1.0-next.1 (2021-05-05)

Bug Fixes

Features

Performance Improvements

  • core: minor improvements to listener instructions (#41807) (6581a1b)

BREAKING CHANGES

  • Minified UMD bundles are no longer included in the distributed NPM packages.
  • core: Angular no longer maintains support for node v10
  • core: Previously the ng.getDirectives function threw an error in case a given DOM node had no Angular context associated with it (for example if a function was called for a DOM element outside an Angular app). This behavior was inconsistent with other debugging utilities under ng namespace, which handled this situation without raising an exception. Now calling the ng.getDirectives function for such DOM nodes would result in an empty array returned from that function.
  • compiler-cli: Linked libraries no longer generate legacy i18n message ids. Any downstream application that provides translations for these messages, will need to migrate their message ids using the localize-migrate command line tool.

11.2.13 (2021-05-05)

Bug Fixes

  • animations: ensure consistent transition namespace ordering (#19854) (a58562a)
  • common: add right ContentType for boolean values with HttpClient request body(#38924) (#41885) (ae0fa08)
  • core: AsyncPipe now compatible with RxJS 7 (#41590) (7a86ebf)
  • core: handle multiple i18n attributes with expression bindings (#41912) (345f5c4), closes #41869
  • localize: relax error to warning for missing target (#41944) (3150f9f), closes #21690

11.2.12 (2021-04-28)

Bug Fixes

  • compiler: strip scoped selectors from [@font-face](https://github.com/font-face) rules (#41815) (de39b49), closes #41751
  • upgrade: preserve $interval.flush when ngMocks is being used (#30229) (dd46b87)

11.2.11 (2021-04-21)

Bug Fixes

  • common: viewport scroller not finding elements inside the shadow DOM (#41644) (3aa9235), closes #41470
  • compiler-cli: autocomplete literal types in templates (296f887)
  • router: Only retrieve stored route when reuse strategy indicates it should reattach (#30263) (f4376fc), closes #23162
  • router: recursively merge empty path matches (#41584) (8d62813), closes #41481

11.2.10 (2021-04-14)

Bug Fixes

Performance Improvements

  • compiler-cli: allow incremental compilation in the presence of redirected source files (#41587) (616145e)

11.2.9 (2021-04-07)

Bug Fixes

Features

  • bazel: allow setting compilationMode in ng_module rule (#41418) (e6da38a)

Performance Improvements

  • core: add private hooks around user code executed by the runtime (#41421) (94af9d9)
  • language-service: add perf tracing to LanguageService (#41401) (7b0a800)

11.2.8 (2021-04-01)

Bug Fixes

11.2.7 (2021-03-24)

Bug Fixes

11.2.6 (2021-03-17)

Bug Fixes

Performance Improvements

11.2.5 (2021-03-10)

Bug Fixes

  • bazel: fix incorrect rollup plugin method signature (#41101) (925746b)
  • language-service: Only provide dom completions for inline templates (#41078) (a05eb13)

Performance Improvements

  • compiler-cli: avoid module resolution in cycle analysis (#40948) (532ae73)
  • compiler-cli: detect semantic changes and their effect on an incremental rebuild (#40947) (e35ecea), closes #34867 #40635 #40728
  • compiler-cli: ensure module resolution cache is reused for type-check program (#39693) (16f90ca)
  • compiler-cli: use bound symbol in import graph in favor of module resolution (#40948) (2035b15)

11.2.4 (2021-03-03)

Bug Fixes

11.2.3 (2021-02-24)

Performance Improvements

  • language-service: Skip Angular analysis when quick info requested outside a template (#40956) (0dd1fac)

11.2.2 (2021-02-22)

Bug Fixes

Performance Improvements

  • core: use ngDevMode to tree-shake warning (#40876) (c8a2e3a)
  • language-service: short-circuit LS operations when we know there is no Angular information to provide (#40946) (73a3ff1)
<!-- CHANGELOG SPLIT MARKER -->

<a name="11.2.1"></a>

11.2.1 (2021-02-17)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="11.2.0"></a>

11.2.0 (2021-02-10)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="11.2.0-rc.0"></a>

11.2.0-rc.0 (2021-02-03)

This release contains the same set the of changes as 11.2.0-next.1.

<!-- CHANGELOG SPLIT MARKER -->

<a name="11.2.0-next.1"></a>

11.2.0-next.1 (2021-02-03)

Bug Fixes

Performance Improvements

  • language-service: update NgCompiler via resource-only path when able (#40585) (07a3d7a)
<!-- CHANGELOG SPLIT MARKER -->

<a name="11.1.2"></a>

11.1.2 (2021-02-03)

Bug Fixes

Performance Improvements

  • language-service: update NgCompiler via resource-only path when able (#40680) (0047eb3)
<!-- CHANGELOG SPLIT MARKER -->

<a name="11.1.1"></a>

11.1.1 (2021-01-27)

Bug Fixes

  • compiler-cli: handle pseudo cycles in inline source-maps (#40435) (566206b), closes #40408
  • compiler-cli: use Map rather than object for map of partial linkers (#40563) (33e0f2b)
  • core: fix possible XSS attack in development through SSR (#40525) (97ec6e4)
  • core: improve injector debug information in ngDevMode (#40476) (4bb38c9)
  • forms: allow patchValue() method of FormGroup and FormArray classes to skip null values (#40534) (2fab148), closes #36672 #21021
  • forms: properly cleanup in cases when FormControlName has no CVA (#40526) (72fc6aa), closes #39235 #40521
  • language-service: implement realpath to resolve symlinks (#40593) (77efc27)
  • language-service: recognize incomplete pipe bindings with whitespace (#40346) (d88f18e)
  • localize: include meaning in generated ARB files (#40546) (5661298), closes #40506
  • router: always stringify matrix parameters (#25095) (a8a27ef), closes #23165
  • router: Fix occasional error when creating url tree in IE 11 and Edge (#40488) (69fd942)
  • service-worker: handle error with console.error (#40236) (37710b9)

Features

  • language-service: Add diagnostics to suggest turning on strict mode (#40568) (defa627)

Performance Improvements

  • compiler-cli: introduce fast path for resource-only updates (#40561) (156103c)
  • core: simplify bloom bucket computation (#40489) (106734a)
<!-- CHANGELOG SPLIT MARKER -->

<a name="11.1.0"></a>

11.1.0 (2021-01-20)

Bug Fixes

Performance Improvements

  • animations: use ngDevMode to tree-shake warning (#39964) (9ebe423)
  • common: use ngDevMode to tree-shake warnings (#39964) (f022efa)
  • core: use ngDevMode to tree-shake checkNoChanges (#39964) (e1fe9ec)
  • core: use ngDevMode to tree-shake warnings (#39959) (8b0cccc)
  • core: make DI decorators tree-shakable when used for useFactory deps config (#40145) (0664d75), closes #40143
  • forms: use ngDevMode to tree-shake _ngModelWarning (#39964) (7954c8d)
  • ngcc: do not copy files that have been processed (#40429) (798aae4)

Features

  • common: allow any Subscribable in async pipe (#39627) (c7f4abf)
  • compiler: recover expression parsing in more malformed pipe cases (#39437) (e336572)
  • compiler: support recovery of malformed property writes (#39103) (e44e10b)
  • compiler: add schema for Trusted Types sinks (#39554) (358c50e)
  • compiler: support error reporting in I18nMetaVisitor (#39554) (bb70a9b)
  • compiler: support tagged template literals in code generator (#39122) (ef89274)
  • compiler: allow trailing comma in array literal (#22277) (8d613c1), closes #20773
  • compiler-cli: implement partial directive declaration linking (#39518) (87e9cd6)
  • compiler-cli: partial compilation of directives (#39518) (8c0a92b)
  • compiler-cli: add support for using TypeScript 4.1 (#39571) (a7e7c21)
  • compiler-cli: support for partial compilation of components (#39707) (e75244e)
  • compiler-cli: expose function to allow short-circuiting of linking (#40137) (7dcf286)
  • compiler-cli: JIT compilation of component declarations (#40127) (d4327d5)
  • compiler-cli: JIT compilation of directive declarations (#40101) (9186f1f)
  • core: add shouldCoalesceRunChangeDetection option to coalesce change detections in the same event loop. (#39422) (5e92d64), closes #39348 #39348
  • core: adds get method to QueryList (#36907) (a965589), closes #29467
  • core: Add schematic to fix invalid Route configs (#40067) (805b4f9)
  • language-service: log Angular compiler options (#40364) (6a9e328)
  • language-service: autocomplete pipe binding expressions (#40032) (cbb6eae)
  • language-service: autocompletion of element tags (#40032) (e42250f)
  • language-service: autocompletion within expression contexts (#39727) (93a8326)
  • language-service: complete attributes on elements (#40032) (66378ed)
  • language-service: completions for structural directives (#40032) (2a74431)
  • language-service: enable get references for directive and component from template (#40054) (973f797)
  • language-service: Add "find references" capability to Ivy integrated LS (#39768) (06a782a)
  • language-service: implement autocompletion for global properties (Ivy) (#39250) (28a0bcb)
  • language-service: Implement go to definition for style and template urls (#39202) (563fb6c)
  • localize: support Application Resource Bundle (ARB) translation file format (#36795) (5684ac5)
  • platform-browser: add doubletap HammerJS support (#26362) (b5c0f9d), closes #23954
  • router: add relativeTo as an input to routerLink (#39720) (112324a), closes #13523
<!-- CHANGELOG SPLIT MARKER -->

<a name="11.0.9"></a>

11.0.9 (2021-01-13)

Bug Fixes

  • compiler: incorrectly inferring content type of SVG-specific title tag (#40259) (642c45b), closes #31503
  • compiler-cli: prevent stack overflow in decorator transform for large number of files (#40374) (ff36485), closes #40276
  • ngcc: compute the correct package paths for target entry-points (#40376) (584b78a), closes #40352 #40357
  • router: better ngZone checking for warning (#25839) (adf42da), closes #25837
  • service-worker: allow checking for updates when constantly polling the server (#40234) (a7befd5), closes #40207
  • service-worker: ensure SW stays alive while notifying clients about unrecoverable state (#40234) (c01b5ea)
<!-- CHANGELOG SPLIT MARKER -->

<a name="11.0.8"></a>

11.0.8 (2021-01-11)

Bug Fixes

  • core: memory leak if view container host view is destroyed while view ref is not (#40219) (f691e85), closes #38648
  • forms: handle standalone <form> tag correctly in NgControlStatusGroup directive (#40344) (b3f322f), closes #38391
  • router: Remove usage of Object.values to avoid the need for a polyfill (#40370) (c44dd84)
<!-- CHANGELOG SPLIT MARKER -->

<a name="11.0.7"></a>

11.0.7 (2021-01-07)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="11.0.6"></a>

11.0.6 (2021-01-06)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="11.0.5"></a>

11.0.5 (2020-12-16)

Bug Fixes

  • compiler: handle strings inside bindings that contain binding characters (#39826) (f5aab2b), closes #39601
  • core: fix possible XSS attack in development through SSR. (#40136) (0aa220b)
  • core: set ngDevMode to false when calling enableProdMode() (#40124) (922f492)
  • upgrade: fix HMR for hybrid applications (#40045) (c4c7509), closes #39935
<!-- CHANGELOG SPLIT MARKER -->

<a name="11.0.4"></a>

11.0.4 (2020-12-09)

Bug Fixes

  • animations: implement getPosition in browser animation builder (#39983) (5a765f0)
  • compiler-cli: correct incremental behavior even with broken imports (#39967) (adeeb84)
  • compiler-cli: remove the concept of an errored trait (#39967) (0aa35ec)
  • compiler-cli: track poisoned scopes with a flag (#39967) (178cc51)
  • core: remove application from the testability registry when the root view is removed (#39876) (3680ad1), closes #22106
  • core: unsubscribe from the onError when the root view is removed (#39940) (35309bb)
  • language-service: do not return external template that does not exist (#39898) (6b6fcd7)
  • language-service: do not treat file URIs as general URLs (#39917) (829988b)
  • service-worker: handle error with ErrorHandler (#39990) (588dbd3), closes #39913
  • upgrade: avoid memory leak when removing downgraded components (#39965) (97310d3), closes #26209 #39911 #39921

Performance Improvements

  • animations: use ngDevMode to tree-shake warning (#39964) (72aad32)
  • common: use ngDevMode to tree-shake warnings (#39964) (bf3de9b)
  • core: use ngDevMode to tree-shake checkNoChanges (#39964) (2fbb684)
  • core: use ngDevMode to tree-shake warnings (#39959) (1e3534f)
  • forms: use ngDevMode to tree-shake _ngModelWarning (#39964) (735556d)
<!-- CHANGELOG SPLIT MARKER -->

<a name="11.0.3"></a>

11.0.3 (2020-12-02)

Bug Fixes

  • animations: getAnimationStyle causes exceptions in older browsers (#29709) (cb1d77a)
  • animations: replace copy of query selector node-list from "spread" to "for" (#39646) (e95cd2a), closes #38551
  • common: Prefer to use pageXOffset / pageYOffset instance of scrollX / scrollY (#28262) (5692607)
  • compiler: ensure that placeholders have the correct sourceSpan (#39717) (8ec7156), closes #39671
  • compiler: report better error on interpolation in an expression (#30300) (6dc74fd)
  • compiler-cli: report error when a reference target is missing instead of crashing (#39805) (8634611), closes #38618 #39744
  • core: Ensure OnPush ancestors are marked dirty when events occur (#39833) (01c1bfd), closes #39832
  • core: meta addTag() adds incorrect attribute for httpEquiv (#32531) (3114b0a)
  • core: migration error if program contains files outside the project (#39790) (7dcc212), closes #39778
  • core: not invoking object's toString when rendering to the DOM (#39843) (75e22ab), closes #38839
  • core: remove duplicated noop function (#39761) (26a1337)
  • core: support Attribute DI decorator in deps section of a token (#37085) (aaa3111), closes #36479
  • router: correctly handle string command in outlets (#39728) (50c19a2), closes #18928
  • router: remove duplicated getOutlet function (#39764) (df231ad)
  • service-worker: correctly handle failed cache-busted request (#39786) (7bf73d7), closes #39775 #39775

DEPRECATIONS

  • forms: Mark the {[key: string]: any} type for the options property of the FormBuilder.group method as deprecated. Using AbstractControlOptions gives the same functionality and is type-safe.
<!-- CHANGELOG SPLIT MARKER -->

<a name="11.0.2"></a>

11.0.2 (2020-11-19)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="11.0.1"></a>

11.0.1 (2020-11-18)

Bug Fixes

  • compiler-cli: incorrectly type checking calls to implicit template variables (#39686) (e05cfdd), closes #39634 _ compiler-cli: setComponentScope should only list used components/pipes (#39662) (8d317df) _ core: handle !important in style property value (#39603) (978f081), closes #35323 _ core: not inserting ViewContainerRef nodes when inside root of a component (#39599) (20db90a), closes #39556 _ core: remove deprecated wtfZoneSpec from NgZone (#37864) (e02bea8), closes #33949
  • forms: more precise control cleanup (#39623) (050cea9)
  • http: queue jsonp <script> tag onLoad event handler in microtask (#39512) (10e4ac0), closes #39496

Performance Improvements

  • compiler: optimize computation of i18n message ids (#39694) (1891455)
  • compiler: use raw bytes to represent utf-8 encoded strings (#39694) (882ff8f)
  • compiler-cli: reduce filesystem hits during resource resolution (#39604) (a7adcbd)
<!-- CHANGELOG SPLIT MARKER -->

<a name="11.0.0"></a>

11.0.0 (2020-11-11)

Blog post "Version 11 of Angular Now Available".

Bug Fixes

  • bazel: only providing stamping information if the --stamp flag is used (#39392) (84e09a0)
  • common: do not round up fractions of a millisecond in DatePipe (#38009) (26f2820), closes #37989
  • common: mark locale data arrays as readonly (#30397) (6acea54), closes #27003
  • common: add params and reportProgress options to HttpClient.put() overload (#37873) (dd8d8c8), closes #23600
  • common: correct and simplify typing of KeyValuePipe (#37447) (4dfe0fa)
  • common: correct and simplify typing of AsyncPipe (#37447) (5f815c0)
  • common: correct and simplify typing of I18nPluralPipe (#37447) (3b919ef)
  • common: correct typing and implementation of SlicePipe (#37447) (4744c22)
  • common: let case conversion pipes accept type unions with null (#37447) (c7d5555), closes #36259
  • common: add boolean to valid json for testing (#37893) (3c474ec), closes #20690
  • common: update locales using new CLDR data (#39343) (3738233)
  • common: change the week-numbering year format from r -> Y (#39495) (feda78e)
  • compiler: source span for microsyntax text att should be key span (#38766) (8f349b2)
  • compiler: promote constants in templates to Trusted Types (#39211) (6e18d2d)
  • compiler: do not throw away render3 AST on errors (#39413) (d76beda)
  • compiler: treat i18n attributes with no bindings as static attributes (#39408) (bf1caa7), closes #38231
  • compiler: preserve this.$event and this.$any accesses in expressions (#39323) (a8e0db7), closes #30278
  • compiler: ensure that i18n message-parts have the correct source-span (#39486) (63f9e16)
  • compiler: skipping leading whitespace should not break placeholder source-spans (#39486) (b8e9b3d), closes #39195
  • compiler-cli: compute source-mappings for localized strings (#38645) (7e0b3fd)
  • compiler-cli: generate let statements in ES2015+ mode (#38775) (123bff7)
  • compiler-cli: perform DOM schema checks even in basic mode in g3 (#38943) (40975e0)
  • compiler-cli: type checking of expressions within ICUs (#39072) (0a16e60), closes #39064
  • compiler-cli: generating invalid setClassMetadata call in ES5 for class with custom decorator (#39527) (b0bbc1f), closes #39509
  • compiler-cli: report missing pipes when fullTemplateTypeCheck is disabled (#39320) (67ea7b6), closes #38195
  • compiler-cli: avoid duplicate diagnostics about unknown pipes (#39517) (c68ca49)
  • compiler-cli: do not drop non-Angular decorators when downleveling (#39577) (f51cf29), closes #39574
  • core: remove CollectionChangeRecord symbol (#38668) (fdea180)
  • core: ensure TestBed is not instantiated before override provider (#38717) (c8f056b)
  • core: use single quotes for relative link resolution migration to align with style guide (#39070) (8894706)
  • core: migrate relative link resolution with single quotes (#39102) (049b453)
  • core: use Trusted Types policy in inert DOM builder (#39208) (7d49299)
  • core: use Trusted Types policy in createNamedArrayType() (#39209) (f6d5cdf)
  • core: guard reading of global ngDevMode for undefined. (#36055) (f541e5f)
  • core: do not error when ngDevMode is undeclared (#39415) (cc32932)
  • core: store ICU state in LView rather than in TView (#39233) (0992b67), closes #37021 #38144 #38073
  • core: markDirty() should only mark flags when really scheduling tick. (#39316) (3b6497b), closes #39296
  • core: access injected parent values using SkipSelf (#39464) (7cb9e19)
  • elements: update the view of an OnPush component when inputs change (#39452) (dd28855), closes #38948
  • forms: ensure to emit statusChanges on subsequent value update/validations (#38354) (d9fea85), closes #20424 #14542
  • forms: type NG_VALUE_ACCESSOR injection token as array (#29723) (2b1b718), closes #29351
  • forms: improve types of directive constructor arguments (#38944) (246de9a)
  • forms: include null in .parent of abstract control (#32671) (f4f1bcc), closes #16999
  • forms: remove validators while cleaning up a control (#39234) (43b4940)
  • language-service: hybrid visitor returns parent node of BoundAttribute (#38995) (323be39)
  • language-service: [Ivy] hybrid visitor should not locate let keyword (#39061) (70e13dc)
  • language-service: [Ivy] create compiler only when program changes (#39231) (8f1317f)
  • localize: render placeholder types in extracted XLIFF files (#39398) (32163ef), closes #38791
  • localize: serialize all the message locations to XLIFF (#39411) (f5710c6), closes #39330
  • ngcc: ensure that "inline exports" can be interpreted correctly (#39267) (822b838)
  • ngcc: capture UMD/CommonJS inner class implementation node correctly (#39346) (fc2e3cc)
  • platform-server: resolve absolute URL from baseUrl (#39334) (b4e8399)
  • platform-webworker: remove @angular/platform-webworker and @angular/platform-webworker-dynamic (#38846) (93c3d8f)
  • router: fix arguments order for call to shouldReuseRoute (#26949) (3817e5f), closes #16192
  • router: support lazy loading for empty path named outlets (#38379) (926ffcd), closes #12842
  • router: set relativeLinkResolution to corrected by default (#25609) (837889f)
  • router: properly assign ExtraOptions to Router in RouterTestingModule (#39096) (d8c0534), closes #23347
  • router: allow undefined inputs on routerLink (#39151) (b0b4953)
  • router: create schematic for preserveQueryParams (#38762) (93ee05d)
  • router: remove preserveQueryParams symbol (#38762) (783a5bd)
  • router: fix incorrect type signature for createUrlTree (#39347) (161b278)
  • router: ensure all outlets are used when commands have a prefix (#39456) (b2f3952)
  • service-worker: fix condition to check for a cache-busted request (#36847) (5be4edf)

Features

  • common: add ISO week-numbering year formats support to formatDate (#38828) (984ed39)
  • common: stricter types for DatePipe (#37447) (daf8b7f)
  • common: stricter types for number pipes (#37447) (7b2aac9)
  • compiler: parse and recover on incomplete opening HTML tags (#38681) (6ae3b68), closes #38596
  • compiler: add keySpan to Variable node (#38965) (239968d)
  • compiler-cli: TemplateTypeChecker operation to get Symbol from a template node (#38618) (c4556db)
  • compiler-cli: add ability to get Symbol of Templates and Elements in component template (#38618) (cf2e8b9)
  • compiler-cli: add ability to get Symbol of AST expression in component template (#38618) (f56ece4)
  • compiler-cli: add ability to get symbol of reference or variable (#38618) (19598b4)
  • compiler-cli: define interfaces to be used for TemplateTypeChecker (#38618) (9e77bd3)
  • compiler-cli: support getting resource dependencies for a source file (#38048) (5dbf357)
  • core: add automated migration to replace async with waitForAsync (#39212) (5ce71e0)
  • core: add automated migration to replace ViewEncapsulation.Native (#38882) (0e733f3)
  • core: add initialNavigation schematic (#36926) (0ec7043)
  • core: add Trusted Types workaround for Function constructor (#39209) (5913e5c)
  • core: create internal Trusted Types module (#39207) (0875fd2)
  • core: depend on type definitions for Trusted Types (#39207) (c4266fb)
  • core: remove ViewEncapsulation.Native (#38882) (4a1c12c)
  • forms: add migration for AbstractControl.parent accesses (#39009) (aeec223), closes #32671
  • language-service: add getDefinitionAndBoundSpan (go to definition) (#39101) (3975dd9)
  • language-service: add quick info for inline templates in ivy (#39060) (904adb7)
  • language-service: [Ivy] getSemanticDiagnostics for external templates (#39065) (63624a2)
  • language-service: add getTypeDefinitionAtPosition (go to type definition) (#39145) (a84976f)
  • language-service: add module name to directive quick info (#39121) (4604fe9)
  • router: add migration to update calls to navigateByUrl and createUrlTree with invalid parameters (#38825) (7849fdd)
  • router: add relativeLinkResolution migration to update default value (#38698) (15ea811)
  • router: add new initialNavigation options to replace legacy (#37480) (c4becca)
  • service-worker: add UnrecoverableStateError (#36847) (036a2fa), closes #36539
  • service-worker: add the option to prefer network for navigation requests (#38565) (a206852), closes #38194

Performance Improvements

  • compiler-cli: only emit directive/pipe references that are used (#38539) (077f516)
  • compiler-cli: optimize computation of type-check scope information (#38539) (297c060)
  • compiler-cli: only generate template context declaration when used (#39321) (1ac0500)
  • core: do not recurse into modules that have already been registered (#39514) (5c13c67), closes #39487
  • router: use ngDevMode to tree-shake error messages in router (#38674) (db21c4f)

BREAKING CHANGES

  • common:
    • 6acea54: The locale data API has been marked as returning readonly arrays, rather than mutable arrays, since these arrays are shared across calls to the API. If you were mutating them (e.g. calling sort(), push(), splice(), etc.) then your code will no longer compile. If you need to mutate the array, you should now make a copy (e.g. by calling slice()) and mutate the copy.
    • 26f2820: When passing a date-time formatted string to the DatePipe in a format that contains fractions of a millisecond, the milliseconds will now always be rounded down rather than to the nearest millisecond. Most applications will not be affected by this change. If this is not the desired behaviour then consider pre-processing the string to round the millisecond part before passing it to the DatePipe.
    • 4744c22: The slice pipe now returns null for the undefined input value, which is consistent with the behavior of most pipes. If you rely on undefined being the result in that case, you now need to check for it explicitly.
    • 4dfe0fa: The typing of the keyvalue pipe has been fixed to report that for input objects that have number keys, the result will contain the string representation of the keys. This was already the case and the types have simply been updated to reflect this. Please update the consumers of the pipe output if they were relying on the incorrect types. Note that this does not affect use cases where the input values are Maps, so if you need to preserve numbers, this is an effective way.
    • 7b2aac9: The signatures of the number pipes now explicitly state which types are accepted. This should only cause issues in corner cases, as any other values would result in runtime exceptions.
    • daf8b7f: The signature of the date pipe now explicitly states which types are accepted. This should only cause issues in corner cases, as any other values would result in runtime exceptions.
    • 5f815c0: The async pipe no longer claims to return undefined for an input that was typed as undefined. Note that the code actually returned null on undefined inputs. In the unlikely case you were relying on this, please fix the typing of the consumers of the pipe output.
    • c7d5555: The case conversion pipes no longer let falsy values through. They now map both null and undefined to null and raise an exception on invalid input (0, false, NaN) just like most "common pipes". If your code required falsy values to pass through, you need to handle them explicitly.
  • compiler:
    • 736e064: TypeScript 3.9 is no longer supported, please upgrade to TypeScript 4.0.
  • compiler-cli:
    • 0a16e60: Expressions within ICUs are now type-checked again, fixing a regression in Ivy. This may cause compilation failures if errors are found in expressions that appear within an ICU. Please correct these expressions to resolve the type-check errors.
  • core:
    • fdea180: CollectionChangeRecord has been removed, use IterableChangeRecord instead.
    • c8f056b: If you call TestBed.overrideProvider after TestBed initialization, provider overrides are not applied. This behavior is consistent with other override methods (such as TestBed.overrideDirective, etc.) but they throw an error to indicate that, when the check was missing in the TestBed.overrideProvider function. Now calling TestBed.overrideProvider after TestBed initialization also triggers an error, thus there is a chance that some tests (where TestBed.overrideProvider is called after TestBed initialization) will start to fail and require updates to move TestBed.overrideProvider calls before TestBed initialization is completed.
    • 4ca1c73: In v10, IE 9, 10, and IE mobile support was deprecated. In v11, Angular framework removes IE 9, 10, and IE mobile support completely. Supporting outdated browsers like these increases bundle size, code complexity, and test load, and also requires time and effort that could be spent on improvements to the framework. For example, fixing issues can be more difficult, as a straightforward fix for modern browsers could break old ones that have quirks due to not receiving updates from vendors.
    • 4a1c12c: ViewEncapsulation.Native has been removed. Use ViewEncapsulation.ShadowDom instead. Existing usages will be updated automatically by ng update.
  • forms:
    • d9fea85: Previously if FormControl, FormGroup and FormArray class instances had async validators defined at initialization time, the status change event was not emitted once async validators completed. After this change the status event is emitted into the statusChanges observable. If your code relies on the old behavior, you can filter/ignore this additional status change event.
    • 246de9a: Directives in the @angular/forms package used to have any[] as a type of validators and asyncValidators arguments in constructors. Now these arguments are properly typed, so if your code relies on directive constructor types it may require some updates to improve type safety.
    • f4f1bcc: Type of AbstractFormControl.parent now includes null. null is now included in the types of .parent. If you don't already have a check for this case, the TypeScript compiler might complain. A v11 migration exists which adds the non-null assertion operator where necessary. In an unlikely case your code was testing the parent against undefined with strict equality, you'll need to change this to === null instead, since the parent is now explicitly initialized with null instead of being left undefined.
  • platform-server:
    • b4e8399: If you use useAbsoluteUrl to set up platform-server, you now need to also specify baseUrl. We are intentionally making this a breaking change in a minor release, because if useAbsoluteUrl is set to true then the behavior of the application could be unpredictable, resulting in issues that are hard to discover but could be affecting production environments.
  • platform-webworker:
    • 93c3d8f: @angular/platform-webworker and @angular/platform-webworker-dynamic have been removed as they were deprecated in v8.
  • router:
    • 3817e5f: This change corrects the argument order when calling RouteReuseStrategy#shouldReuseRoute. Previously, when evaluating child routes, they would be called with the future and current arguments would be swapped. If your RouteReuseStrategy relies specifically on only the future or current snapshot state, you may need to update the shouldReuseRoute implementation's use of "future" and "current" ActivatedRouteSnapshots.
    • e4f4d18: While the new parameter types allow a variable of type NavigationExtras to be passed in, they will not allow object literals, as they may only specify known properties. They will also not accept types that do not have properties in common with the ones in the Pick. To fix this error, only specify properties from the NavigationExtras which are actually used in the respective function calls or use a type assertion on the object or variable: as NavigationExtras.
    • 837889f: This commit changes the default value of relativeLinkResolution from 'legacy' to 'default'. If your application previously used the default by not specifying a value in the ExtraOptions and uses relative links when navigating from children of empty path routes, you will need to update your RouterModule to specifically specify 'legacy' for relativeLinkResolution. See https://angular.io/api/router/ExtraOptions#relativeLinkResolution for more details.
    • c4becca: The initialNavigation property for the options in RouterModule.forRoot no longer supports legacy_disabled, legacy_enabled, true, or false as valid values. legacy_enabled (the old default) is instead enabledNonBlocking.
    • c4becca: enabled is deprecated as a valid value for the RouterModule.forRoot initialNavigation option. enabledBlocking has been introduced to replace it.
    • 783a5bd: preserveQueryParams has been removed, use queryParamsHandling: "preserve" instead.
    • b0b4953: If you were accessing the RouterLink values of queryParams, fragment or queryParamsHandling you might need to relax the typing to also accept undefined and null.

Code Refactoring

  • compiler: remove support for TypeScript 3.9 (#39313) (736e064)
  • router: adjust type of parameter in navigateByUrl and createUrlTree to be more accurate (#38227) (e4f4d18), closes #18798

<a name="10.2.3"></a>

10.2.3 (2020-11-09)

Bug Fixes

  • compiler: ensure that i18n message-parts have the correct source-span (#39589) (e67a331)
  • compiler: skipping leading whitespace should not break placeholder source-spans (#39589) (2b684b7), closes #39195
  • compiler-cli: avoid duplicate diagnostics about unknown pipes (#39517) (861e4fa)
  • compiler-cli: do not drop non-Angular decorators when downleveling (#39577) (1c6cf8a), closes #39574
<!-- CHANGELOG SPLIT MARKER -->

<a name="10.2.2"></a>

10.2.2 (2020-11-04)

Bug Fixes

  • compiler-cli: report missing pipes when fullTemplateTypeCheck is disabled (#39320) (71d0063), closes #38195
  • core: markDirty() should only mark flags when really scheduling tick. (#39316) (8c82106), closes #39296
  • router: Ensure all outlets are used when commands have a prefix (#39456) (85d5242)

Performance Improvements

  • core: do not recurse into modules that have already been registered (#39514) (812355c), closes #39487
<!-- CHANGELOG SPLIT MARKER -->

<a name="10.2.1"></a>

10.2.1 (2020-10-28)

Bug Fixes

  • bazel: only providing stamping information if the --stamp flag is used (#39392) (ed88407)
  • core: do not error when ngDevMode is undeclared (#39415) (fcebc83)
  • localize: render placeholder types in extracted XLIFF files (#39459) (ea1baf9), closes #38791
  • localize: serialize all the message locations to XLIFF (#39411) (db51de8), closes #39330
  • ngcc: capture UMD/CommonJS inner class implementation node correctly (#39346) (bdaa714)
<!-- CHANGELOG SPLIT MARKER -->

<a name="10.2.0"></a>

10.2.0 (2020-10-21)

Bug Fixes

  • core: guard reading of global ngDevMode for undefined. (#36055) (02405f1)
  • platform-server: Resolve absolute URL from baseUrl (#39334) (71fb99f)

BREAKING CHANGES

  • platform-server: If you use useAbsoluteUrl to setup platform-server, you now need to also specify baseUrl. We are intentionally making this a breaking change in a minor release, because if useAbsoluteUrl is set to true then the behavior of the application could be unpredictable, resulting in issues that are hard to discover but could be affecting production environments.
<!-- CHANGELOG SPLIT MARKER -->

<a name="10.1.6"></a>

10.1.6 (2020-10-14)

Bug Fixes

build

  • upgrade angular build, integration/bazel and @angular/bazel package to rule_nodejs 2.2.0 (#39182) (7628c36)

Performance Improvements

  • ngcc: do not rescan program source files when referenced from multiple root files (#39254) (5221df8), closes #39240
<!-- CHANGELOG SPLIT MARKER -->

<a name="10.1.5"></a>

10.1.5 (2020-10-07)

Bug Fixes

  • router: update getRouteGuards to check if the context outlet is activated (#39049) (771f731), closes #39030
  • compiler: Recover on malformed keyed reads and keyed writes (#39004) (f50313f), closes #38596
<!-- CHANGELOG SPLIT MARKER -->

<a name="10.1.4"></a>

10.1.4 (2020-09-30)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="10.1.3"></a>

10.1.3 (2020-09-23)

Bug Fixes

  • http: Fix error message when we call jsonp without importing HttpClientJsonpModule (#38756) (3902ec0)
  • ngcc: fix compilation of ChangeDetectorRef in pipe constructors (#38892) (093c3a1), closes #38666 #38883

Reverts

  • feat(router): better warning message when a router outlet has not been instantiated (#38920) (04d0aa6)
<!-- CHANGELOG SPLIT MARKER -->

<a name="10.1.2"></a>

10.1.2 (2020-09-16)

Bug Fixes

Performance Improvements

  • compiler-cli: only emit directive/pipe references that are used (#38843) (5658405)
  • compiler-cli: optimize computation of type-check scope information (#38843) (ebede67)
  • ngcc: introduce cache for sharing data across entry-points (#38840) (58411e7)
  • ngcc: reduce maximum worker count (#38840) (ea36466)
<!-- CHANGELOG SPLIT MARKER -->

<a name="10.1.1"></a>

10.1.1 (2020-09-09)

Bug Fixes

  • compiler: correct confusion between field and property names (#38685) (a1c34c6)
  • compiler-cli: compute source-mappings for localized strings (#38747) (b4eb016), closes #38588
  • compiler-cli: ensure that a declaration is available in type-to-value conversion (#38684) (56d5ff2), closes #38670
  • core: reset tView between tests in Ivy TestBed (#38659) (efc7606), closes #38600
  • localize: do not expose NodeJS typings in $localize runtime code (#38700) (4de8dc3), closes #38692
  • localize: enable whitespace preservation marker in XLIFF files (#38737) (190dca0), closes #38679
  • localize: install [@angular](https://github.com/angular)/localize in devDependencies by default (#38680) (dbab744), closes #38329
  • localize: render context of translation file parse errors (#38673) (32f33f0), closes #38377
  • localize: render location in XLIFF 2 even if there is no metadata (#38713) (ab4f953), closes #38705
  • ngcc: use aliased exported types correctly (#38666) (6a28675), closes #38238
  • router: If users are using the Alt key when clicking the router links, prioritize browser’s default behavior (#38375) (309709d)

Performance Improvements

  • core: use ngDevMode to tree-shake error messages (#38612) (b084bff)
<!-- CHANGELOG SPLIT MARKER -->

<a name="10.1.0"></a>

10.1.0 (2020-09-02)

Features

  • bazel: provide LinkablePackageInfo from ng_module (#37623) (6898eab)
  • common: add ReadonlyMap in place of Map in keyValuePipe (#37311) (3373453), closes #37308
  • compiler-cli: add SourceFile.getOriginalLocation() to sourcemaps package (#32912) (6abb8d0)
  • compiler-cli: Add compiler option to report errors when assigning to restricted input fields (#38249) (71138f6)
  • compiler-cli: add support for TypeScript 4.0 (#38076) (0fc44e0)
  • compiler-cli: explain why an expression cannot be used in AOT compilations (#37587) (712f1bd)
  • compiler: support unary operators for more accurate type checking (#37918) (874792d), closes #20845 #36178
  • core: rename async to waitForAsync to avoid confusing (#37583) (8f07429)
  • core: support injection token as predicate in queries (#37506) (97dc85b), closes #21152 #36144
  • core: update reference and doc to change async to waitAsync. (#37583) (8fbf40b)
  • forms: AbstractControl to store raw validators in addition to combined validators function (#37881) (ad7046b)
  • localize: allow duplicate messages to be handled during extraction (#38082) (cf9a47b), closes #38077
  • localize: expose canParse() diagnostics (#37909) (ec32eba), closes #37901
  • localize: implement message extraction tool (#32912) (190561d)
  • platform-browser: Allow sms-URLs (#31463) (fc5c34d), closes #31462
  • platform-server: add option for absolute URL HTTP support (#37539) (d37049a), closes #37071
  • router: better warning message when a router outlet has not been instantiated (#30246) (1609815)

Bug Fixes

  • bazel: fix integration test for bazel building (#38629) (dd82f2f)
  • common: date pipe gives wrong week number (#37632) (ef1fb6d), closes #33961
  • common: narrow NgIf context variables in template type checker (#36627) (9c8bc4a)
  • compiler-cli: avoid creating value expressions for symbols from type-only imports (#37912) (18098d3), closes #37900
  • compiler-cli: ensure source-maps can handle webpack:// protocol (#32912) (decd95e)
  • compiler-cli: only read source-map comment from last line (#32912) (07a07e3)
  • compiler-cli: type-check inputs that include undefined when there's coercion members (#38273) (7525f3a)
  • compiler: incorrectly inferring namespace for HTML nodes inside SVG (#38477) (0dda97e), closes #37218
  • compiler: mark NgModuleFactory construction as not side effectful (#38147) (7f8c222)
  • core: Allow modification of lifecycle hooks any time before bootstrap (#35464) (737506e), closes #30497
  • core: detect DI parameters in JIT mode for downleveled ES2015 classes (#38463) (ca07da4), closes #38453
  • core: determine required DOMParser feature availability (#36578) (#36578) (c509243)
  • core: do not trigger CSP alert/report in Firefox and Chrome (#36578) (#36578) (b950d46), closes #25214
  • core: move generated i18n statements to the consts field of ComponentDef (#38404) (cb05c01)
  • elements: run strategy methods in correct zone (#37814) (8df888d), closes #24181
  • forms: handle form groups/arrays own pending async validation (#22575) (77b62a5), closes #10064
  • language-service: non-existent module format in package output (#37623) (413a0fb)
  • localize: ensure required XLIFF parameters are serialized (#38575) (f0af387), closes #38570
  • localize: extract the correct message ids (#38498) (ac461e1)
  • localize: render ICU placeholders in extracted translation files (#38484) (81c3e80)
  • localize: render text of extracted placeholders (#38536) (14e90be)
  • ngcc: detect synthesized delegate constructors for downleveled ES2015 classes (#38463) (3b9c802), closes #38453 #38453
  • router: defer loading of wildcard module until needed (#38348) (8f708b5), closes #25494
  • router: fix navigation ignoring logic to compare to the browser url (#37716) (a5ffca0), closes #16710 #13586
  • router: properly compare array queryParams for equality (#37709) (#37860) (1801d0c)
  • router: remove parenthesis for primary outlet segment after removing auxiliary outlet segment (#24656) (#37163) (71f008f)
  • router: restore 'history.state' object for navigations coming from Angular router (#28108) (#28176) (df76a20)

Code Refactoring

  • router: export DefaultRouteReuseStrategy to Router public_api (#31575) (ca79880)

Performance Improvements

  • compiler-cli: don't emit template guards when child scope is empty (#38418) (1388c17)
  • compiler-cli: fix regressions in incremental program reuse (#37641) (5103d90)
  • compiler-cli: only generate directive declarations when used (#38418) (fb8f4b4)
  • compiler-cli: only generate type-check code for referenced DOM elements (#38418) (f42e6ce)
  • forms: use internal ngDevMode flag to tree-shake error messages in prod builds (#37821) (201a546), closes #37697
  • ngcc: shortcircuit tokenizing in ESM dependency host (#37639) (bd7f440)
  • ngcc: use EntryPointManifest to speed up noop ProgramBaseEntryPointFinder (#37665) (9318e23)
  • router: apply prioritizedGuardValue operator to optimize CanLoad guards (#37523) (d7dd295)
<!-- CHANGELOG SPLIT MARKER -->

<a name="10.0.14"></a>

10.0.14 (2020-08-26)

<!-- CHANGELOG SPLIT MARKER -->

<a name="10.0.12"></a>

10.0.12 (2020-08-24)

Bug Fixes

  • compiler-cli: adding references to const enums in runtime code (#38542) (814b436), closes #38513
  • core: remove closing body tag from inert DOM builder (#38454) (5528536)
  • localize: include the last placeholder in parsed translation text (#38452) (57d1a48)
  • localize: parse all parts of a translation with nested HTML (#38452) (07b99f5), closes #38422

Features

  • language-service: introduce hybrid visitor to locate AST node (#38540) (66d8c22)
<!-- CHANGELOG SPLIT MARKER -->

<a name="10.0.11"></a>

10.0.11 (2020-08-19)

Bug Fixes

  • router: ensure routerLinkActive updates when associated routerLinks change (resubmit of #38349) (#38511) (0af9533), closes #18469
<!-- CHANGELOG SPLIT MARKER -->

<a name="10.0.10"></a>

10.0.10 (2020-08-17)

Bug Fixes

  • common: Allow scrolling when browser supports scrollTo (#38468) (b32126c), closes #30630
  • core: detect DI parameters in JIT mode for downleveled ES2015 classes (#38500) (863acb6), closes #38453
  • core: error if CSS custom property in host binding has number in name (#38432) (cb83b8a), closes #37292
  • core: fix multiple nested views removal from ViewContainerRef (#38317) (d5e09f4), closes #38201
  • ngcc: detect synthesized delegate constructors for downleveled ES2015 classes (#38500) (f3dd6c2), closes #38453 #38453
  • router: ensure routerLinkActive updates when associated routerLinks change (#38349) (989e8a1), closes #18469
<!-- CHANGELOG SPLIT MARKER -->

<a name="10.0.9"></a>

10.0.9 (2020-08-12)

Bug Fixes

  • common: ensure scrollRestoration is writable (#30630) (#38357) (58f4b3a), closes #30629
  • compiler: evaluate safe navigation expressions in correct binding order (#37911) (f5b9d87), closes #37194
  • compiler-cli: avoid creating value expressions for symbols from type-only imports (#38415) (ca2b4bc), closes #37912
  • compiler-cli: infer quote expressions as any type in type checker (#37917) (5b87c67), closes #36568
  • compiler-cli: mark eager NgModuleFactory construction as not side effectful (#38320) (016a41b), closes #38147
  • compiler-cli: match wrapHost parameter types within plugin interface (#38004) (df01a82)
  • compiler-cli: preserve quotes in class member names (#38387) (c9acb7b), closes #38311
  • core: prevent NgModule scope being overwritten in JIT compiler (#37795) (3acebdc), closes #37105
  • core: queries not matching string injection tokens (#38321) (32109dc), closes #38313 #38315
  • core: Store the currently selected ICU in LView (#38345) (ee5123f)
  • platform-server: remove styles added by ServerStylesHost on destruction (#38367) (7f11149)
  • router: prevent calling unsubscribe on undefined subscription in RouterPreloader (#38344) (4151314)
  • service-worker: fix the chrome debugger syntax highlighter (#38332) (f5d5bac)
<!-- CHANGELOG SPLIT MARKER -->

<a name="10.0.8"></a>

10.0.8 (2020-08-04)

Bug Fixes

  • compiler: add PURE annotation to getInheritedFactory calls (#38291) (03d8e31)
  • compiler: update unparsable character reference entity error messages (#38319) (cea4678), closes #26067
<!-- CHANGELOG SPLIT MARKER -->

<a name="10.0.7"></a>

10.0.7 (2020-07-30)

Bug Fixes

  • compiler: Metadata should not include methods on Object.prototype (#38292) (879ff08)
<!-- CHANGELOG SPLIT MARKER -->

<a name="10.0.6"></a>

10.0.6 (2020-07-28)

Bug Fixes

  • compiler: share identical stylesheets between components in the same file (#38213) (264950b), closes #38204
  • compiler-cli: Add support for string literal class members (#38226) (b1e7775)
  • core: Attribute decorator attributeName is mandatory (#38131) (1c4fcce), closes #32658
  • core: unify the signature between ngZone and noopZone (#37581) (d5264f5)
<!-- CHANGELOG SPLIT MARKER -->

<a name="10.0.5"></a>

10.0.5 (2020-07-22)

Bug Fixes

  • compiler: properly associate source spans for implicitly closed elements (#38126) (e80278c), closes #36118
  • compiler-cli: ensure file_system handles mixed Windows drives (#38030) (dba4023), closes #36777
  • core: Allow modification of lifecycle hooks any time before bootstrap (#38119) (14b4718), closes #30497
  • core: error due to integer overflow when there are too many host bindings (#38014) (7b6e73c), closes #37876 #37876
  • core: incorrectly validating properties on ng-content and ng-container (#37773) (17ddab9)
<!-- CHANGELOG SPLIT MARKER -->

<a name="10.0.4"></a>

10.0.4 (2020-07-15)

Bug Fixes

  • bazel: ng_module rule does not expose flat module information in Ivy (#36971) (b76a2dc)
  • compiler: check more cases for pipe usage inside host bindings (#37883) (a94383f), closes #34655 #37610
  • language-service: non-existent module format in package output (#37778) (12f1773)
  • language-service: remove completion for string (#37983) (387e838)
  • ngcc: report a warning if ngcc tries to use a solution-style tsconfig (#38003) (e3b8010), closes #36386
  • service-worker: correctly handle relative base href (#37922) (b186db7), closes #25055 #25055
  • service-worker: correctly serve ngsw/state with a non-root SW scope (#37922) (dc42c97), closes #30505

Features

<!-- CHANGELOG SPLIT MARKER -->

<a name="10.0.3"></a>

10.0.3 (2020-07-08)

Bug Fixes

  • core: handle spaces after select and plural ICU keywords (#37866) (790bb94)
<!-- CHANGELOG SPLIT MARKER -->

<a name="9.1.12"></a>

9.1.12 (2020-07-08)

Bug Fixes

  • core: infinite loop if injectable using inheritance has a custom decorator (6c1ab47), closes #35733
<!-- CHANGELOG SPLIT MARKER -->

<a name="10.0.2"></a>

10.0.2 (2020-06-30)

Bug Fixes

Performance Improvements

  • compiler-cli: fix memory leak in retained incremental state (#37835) (57a518a)
<!-- CHANGELOG SPLIT MARKER -->

<a name="10.0.1"></a>

10.0.1 (2020-06-26)

Bug Fixes

Performance Improvements

  • compiler-cli: fix regressions in incremental program reuse (#37690) (96b96fb)
<!-- CHANGELOG SPLIT MARKER -->

<a name="10.0.0"></a>

10.0.0 (2020-06-24)

Blog post "Version 10 of Angular Now Available".

Release Highlights & Update instructions

To learn about the release highlights and our CLI-powered automated update workflow for your projects please check out the v10 release announcement.

Features

  • bazel: expose explicit mapping from closure to devmode files (#36262) (ba796bb)
  • bazel: simplify ng_package by dropping esm5 and fesm5 (#36944) (9dbb30f)
  • compiler-cli: report error if undecorated class with Angular features is discovered (#36921) (4c92cf4)
  • compiler: Propagate value span of ExpressionBinding to ParsedProperty (#36133) (d714b95)
  • compiler: add dependency info and ng-content selectors to metadata (#35695) (32ce8b1)
  • compiler: add name spans for property reads and method calls (#36826) (eb34aa5)
  • core make generic mandatory for ModuleWithProviders (#36892) (20cc3ab)
  • core update to tslib 2.0 and move to direct dependencies (#37198), closes #37188
  • core: undecorated-classes migration should handle derived abstract classes (#35339) (c24ad56)
  • core: undecorated-classes-with-decorated-fields migration should handle classes with lifecycle hooks (#36921) (c6ecdc9)
  • language-service: Remove HTML entities autocompletion (#37515) (67bd88b)
  • language-service: TS references from template items (#37437) (bf2cb6f)
  • language-service: [ivy] Parse Angular compiler options (#36922) (dbd0f8e)
  • language-service: [ivy] wrap ngtsc to handle typecheck files (#36930) (1142c37)
  • localize: support merging multiple translation files (#36792) (72f534f)
  • ngcc: allow async locking timeouts to be configured (#36838) (38f805c)
  • ngcc: implement a program-based entry-point finder (#37075) (f3ccd29)
  • ngcc: support for new APF where module points to esm2015 output (#36944) (c98a4d6)
  • ngcc: support marking an in-progress task as unprocessed (#36626) (4665c35)
  • ngcc: support reverting a file written by FileWriter (#36626) (772ccf0)
  • platform-server: use absolute URLs from Location for HTTP (#37071) (9edea0b)
  • router: allow CanLoad guard to return UrlTree (#36610) (00e6cb1), closes #26521 #28306
  • service-worker: include CacheQueryOptions options in ngsw-config (#34663) (dc9f4b9), closes #28443
  • service-worker: support timeout in registerWhenStable SW registration strategy (#35870) (00efacf), closes #34464
  • service-worker: use ignoreVary: true when retrieving responses from cache (#34663) (ee35e22), closes #36638
  • remove TypeScript 3.6 and 3.7 support (#36329) (fbd281c)
  • remove support for TypeScript 3.8 (#37129) (6466fb2)

Bug Fixes

Code Refactoring

Performance Improvements

Dependency updates

@angular/compiler-cli now requires:

  • TypeScript 3.9

BREAKING CHANGES

  • TypeScript 3.6, 3.7 and 3.8 are no longer supported, please update to TypeScript 3.9.
  • core: Angular npm packages no longer contain jsdoc comments to support Closure Compiler's advanced optimizations

The support for Closure Compiler in Angular packages has been experimental and broken for quite some time.

As of TS3.9, Closure is unusable with the JavaScript emit. Please follow https://github.com/microsoft/TypeScript/issues/38374 for more information and updates.

If you used Closure Compiler with Angular in the past, you will likely be better off consuming Angular packages built from sources directly rather than consuming the version we publish on npm, which is primarily optimized for Webpack/Rollup + Terser build pipeline.

As a temporary workaround, you might consider using your current build pipeline with Closure flag --compilation_level=SIMPLE. This flag will ensure that your build pipeline produces buildable and runnable artifacts, at the cost of increased payload size due to advanced optimizations being disabled.

If you were affected by this change, please help us understand your needs by leaving a comment on https://github.com/angular/angular/issues/37234.

  • core: make generic mandatory for ModuleWithProviders

A generic type parameter has always been required for the ModuleWithProviders pattern to work with Ivy, but prior to this commit, View Engine allowed the generic type to be omitted (though support was officially deprecated). If you're using ModuleWithProviders without a generic type in your application code, a v10 migration will update your code for you.

However, if you are using View Engine and also depending on a library that omits the generic type, you will now get a build time error similar to:

error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s).

In this case, ngcc won't help you (because it's Ivy-only) and the migration only covers application code. You should contact the library author to fix their library to provide a type parameter when they use this class.

As a workaround, we suggest setting skipLibChecks to false in your tsconfig or updating your app to use Ivy.

  • forms: Number inputs no longer listen to the change event.

Tests which trigger change events need to be updated to trigger input events instead.

The change event was in place to support IE9, as we found that input events were not fired with backspace or cut actions. If you need to maintain IE9 support, you will need to add a change event listener to number inputs and call the onChange method of NumberValueAccessor manually.

Lastly, old versions of WebDriver would synthetically trigger the change event on WebElement.clear and WebElement.sendKeys. If you are using an old version of WebDriver, you may need to update tests to ensure input events are triggered. For example, you could use element.sendKeys(Keys.chord(Keys.CONTROL, "a"), Keys.BACK_SPACE); in place of element.clear().

  • forms: The minLength and maxLength validators now verify that the form control's value has a numeric length property, and only validate for length if that's the case.

Previously, falsey values without the length property (such as 0 or false values) were triggering validation errors. If your code relies on the old behavior, you can include other validators such as min or requiredTrue to the list of validators for a particular field.

  • bazel: esm5 and fesm5 format is no longer distributed in Angular's npm packages e.g. @angular/core

If you are not using Angular CLI to build your application or library, and you need to be able to build es5 artifacts, then you will need to downlevel the distributed Angular code to es5 on your own.

Angular CLI will automatically downlevel the code to es5 if differential loading is enabled in the Angular project, so no action is required from Angular CLI users.

  • core: Warnings about unknown elements are now logged as errors. This won't break your app, but it may trip up tools that expect nothing to be logged via console.error.
  • router: Any resolver which return EMPTY will cancel navigation. If you want to allow the navigation to continue, you will need to update the resolvers to emit some value, (i.e. defaultIfEmpty(...), of(...), etc).
  • service-worker: Previously, Vary headers would be taken into account when retrieving resources from the cache, completely preventing the retrieval of cached assets (due to ServiceWorker implementation details) and leading to unpredictable behavior due to inconsistent/buggy implementations in different browsers.

Now, Vary headers are ignored when retrieving resources from the ServiceWorker caches, which can result in resources being retrieved even when their headers are different. If your application needs to differentiate its responses based on request headers, please make sure the Angular ServiceWorker is configured to avoid caching the affected resources.

  • common: This change could result in ExpressionChangedAfterItHasBeenChecked errors that were not detected before. The error could previously have gone undetected because two WrappedValues are considered "equal" in all cases for the purposes of the check, even if their respective unwrapped values are not.

Additionally, [val]=(observable | async).someProperty will no longer trigger change detection if the value of someProperty is identical to the value in the previous emit. If you need to force change detection, either update the binding to use an object whose reference changes or subscribe to the observable and call markForCheck as needed.

  • common: format day-periods that cross midnight

    When formatting a time with the b or B format codes, the rendered string was not correctly handling day periods that spanned midnight. Instead the logic was falling back to the default case of AM.

    Now the logic has been updated so that it matches times that are within a day period that spans midnight, so it will now render the correct output, such as at night in the case of English.

    Applications that are using either formatDate() or DatePipe and any of the b or B format codes will be affected by this change.

  • router: UrlMatcher's type now reflects that it could always return null.

    If you implemented your own Router or Recognizer class, please update it to handle matcher returning null.

<!-- CHANGELOG SPLIT MARKER -->

<a name="9.1.11"></a>

9.1.11 (2020-06-10)

Reverts

  • elements: fire custom element output events during component initialization (dc9da17)
<!-- CHANGELOG SPLIT MARKER -->

<a name="9.1.10"></a>

9.1.10 (2020-06-09)

Bug Fixes

Performance Improvements

<!-- CHANGELOG SPLIT MARKER -->

<a name="9.1.9"></a>

9.1.9 (2020-05-20)

This release contains a re-submit of the following 3 commits with fixes for TS 3.8.

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="9.1.8"></a>

9.1.8 (2020-05-20)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="9.1.7"></a>

9.1.7 (2020-05-13)

This release contains various API docs improvements.

<!-- CHANGELOG SPLIT MARKER -->

<a name="9.1.6"></a>

9.1.6 (2020-05-08)

Bug Fixes

  • compiler-cli: Revert "fix(compiler-cli): fix case-sensitivity issues in NgtscCompilerHost (#36968)" (#37003)
<!-- CHANGELOG SPLIT MARKER -->

<a name="9.1.5"></a>

9.1.5 (2020-05-07)

Bug Fixes

  • compiler-cli: isCaseSensitive() returns correct value (#36968) (4becc1b)
  • compiler-cli: ensure getRootDirs() handles case-sensitivity (#36968) (5bddeea)
  • compiler-cli: ensure MockFileSystem handles case-sensitivity (#36968) (b6c042d)
  • compiler-cli: ensure LogicalFileSystem handles case-sensitivity (#36968) (65337fb)
  • compiler-cli: fix case-sensitivity issues in NgtscCompilerHost (#36968) (4abd603)
  • compiler-cli: normalize mock Windows file paths correctly (#36968) (654868f)
  • compiler-cli: use CompilerHost to ensure canonical file paths (#36968) (7e9d5f5)
  • core: handle pluralize functions that expect a number (#36901) (e5317d5), closes #36888
  • core: properly get root nodes from embedded views with <ng-content> (#36051) (a576852), closes #35967
  • core: Refresh transplanted views at insertion point only (#35968) (c8c2272), closes #35400 #21324
  • localize: ensure getLocation() works (#36920) (701016d)
  • ngcc: do not run in parallel mode if there are less than 3 CPU cores (#36626) (3800455)
  • ngcc: give up re-spawing crashed worker process after 3 attempts (#36626) (1863733)
  • ngcc: handle ENOMEM errors in worker processes (#36626) (901b980)
  • ngcc: support ModuleWithProviders functions that delegate (#36948) (9d13ee0), closes #36892
  • ngcc: support recovering when a worker process crashes (#36626) (f30307a), closes #36278
  • ngcc: partially support TS 3.9 wrapped ES2015 classes (#36884) (ebb4733)

Performance Improvements

  • ngcc: only compute basePaths in TargetedEntryPointFinder when needed (#36881) (5ea51b2), closes #36874
  • ngcc: speed up the getBasePaths() computation (#36881) (b6d0e21)
<!-- CHANGELOG SPLIT MARKER -->

<a name="9.1.4"></a>

9.1.4 (2020-04-29)

Bug Fixes

  • core: attempt to recover from user errors during creation (#36381) (d743331), closes #31221
  • core: handle synthetic props in Directive host bindings correctly (#35568) (0f389fa), closes #35501
  • language-service: disable update the [@angular](https://github.com/angular)/core module (#36783) (d3a77ea)
  • localize: include legacy ids when describing messages (#36761) (aa94cd5)
  • ngcc: recognize enum declarations emitted in JavaScript (#36550) (c440165), closes #35584
<!-- CHANGELOG SPLIT MARKER -->

<a name="9.1.3"></a>

9.1.3 (2020-04-22)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="9.1.2"></a>

9.1.2 (2020-04-15)

Bug Fixes

  • compiler: handle type references to namespaced symbols correctly (#36106) (468cf69), closes #36006
  • core: undecorated-classes-with-decorated-fields migration should avoid error if base class has no value declaration (#36543) (3992341), closes #36522
  • ngcc: correctly detect external files from nested node_modules/ (#36559) (8c559ef), closes #36526
  • ngcc: display output from the unlocker process on Windows (#36569) (12266b2)
  • ngcc: do not spawn unlocker processes on cluster workers (#36569) (e385abc), closes #35861
  • ngcc: do not warn if paths mapping does not exist (#36525) (33eee43), closes #36518
  • ngcc: force ngcc to exit on error (#36622) (933cbfb), closes #36616
  • router: pass correct component to canDeactivate checks when using two or more sibling router-outlets (#36302) (8e7f903), closes #34614
  • upgrade: update $locationShim to handle Location changes before initialization (#36498) (a67afcc), closes #36492

Performance Improvements

<!-- CHANGELOG SPLIT MARKER -->

<a name="9.1.1"></a>

9.1.1 (2020-04-07)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="9.1.0"></a>

9.1.0 (2020-03-25)

Blog post "Version 9.1 of Angular Now Available — TypeScript 3.8, faster builds, and more".

Release Highlights

To learn about the release highlights and our CLI-powered automated update workflow for your projects please check out the v9.1 release announcement.

  • TypeScript 3.8 update
  • ngcc improvements
    • performance optimizations
    • concurrency & reliability improvements for monorepo use-cases (npm postinstall script no longer recommended)
  • i18n now supports RTL locale info
  • Ivy compatibility fixes

Features

  • bazel: enable ivy template type-checking in g3 (#35672) (8f5b7f3)
  • bazel: transform generated shims (in Ivy) with tsickle (#35975) (e3ecdc6), closes #35848
  • compiler-cli: implement NgTscPlugin on top of the NgCompiler API (#34792) (3c69442dbd)
  • compiler: Add sourceSpan and keySpan to TemplateBinding (#35897) (06779cf)
  • compiler: Propagate source span and value span to Variable AST (#36047) (31bec8c)
  • compiler: add dependency info and ng-content selectors to metadata (#35695) (fb70083)
  • language-service: improve non-callable error message (#35271) (acc483e)
  • language-service: modularize error messages (#35678) (47a1811), closes #32663
  • ngcc: implement source-map flattening (#35132) (df816c9)
  • ngcc: pause async ngcc processing if another process has the lockfile (#35131) (eef0753)
  • ngcc: support invalidating the entry-point manifest (#35931) (8ea61a1)
  • zone.js add a temp solution to support passive event listeners. (#34503) (f9d483e)
  • zone.js add an tickOptions parameter with property processNewMacroTasksSynchronously. (#33838) (17b862c), closes #33799
  • zone.js add interface definitions which zone extends EventTarget (#35304) (4acb676), closes #35173
  • zone.js support passive event options by defining global variables in zone.js config file (#34503) (d7d359e)
  • define all zone.js configurations to typescript interfaces (#35329) (03d88c7)
  • typescript 3.8 support (#35864) (95c729f)

Performance Improvements

  • core: add micro benchmark for destroy hook invocation (#35784) (0653db1)
  • core: adding micro benchmark for host bindings (#35705) (8fed1fe), closes #35568
  • core: avoid recursive scope recalculation when TestBed.overrideModule is used (#35454) (0a1a989)
  • core: use multiple directives in host bindings micro benchmark (#35736) (5bc39f8)
  • ivy: remove unused event argument in listener instructions (#35097) (9228d7f)
  • ngcc: link segment markers for faster traversal (#36027) (47025e0)
  • ngcc: only create tasks for non-processed formats (#35719) (d7efc45)
  • ngcc: reduce directory traversing (#35756) (e0a35e1), closes #35717
  • ngcc: spawn workers lazily (#35719) (dc40a93), closes #35717
  • ngcc: store the position of SegmentMarkers to avoid unnecessary computation (#36027) (772bb5e)
  • ngcc: use binary search when flattening mappings (#36027) (348ff0c)
  • ngcc: use line start positions for computing offsets in source-map flattening (#36027) (e890082)
  • ngcc: use the EntryPointManifest in DirectoryWalkerEntryPointFinder (#35931) (ec9f4d5)

Bug Fixes

  • animations: Remove ɵAnimationDriver from private exports (#35690) (ec789b0)
  • animations: allow computeStyle to work on elements created in Node (#35810) (17cf04e)
  • animations: false positive when detecting Node in Webpack builds (#35134) (dc4ae4b), closes #35117
  • animations: process shorthand margin and padding styles correctly (#35701) (35c9f0d), closes #35463
  • bazel: do not use manifest paths for generated imports within compilation unit (#35841) (9581658)
  • bazel: ng_package rule creates incorrect UMD module exports (#35792) (5c2a908), closes angular/components#18652
  • bazel: prod server doesn't serve files in windows (#35991) (96e3449)
  • bazel: update several packages for better windows support (#35991) (32f099a)
  • bazel: update typescript peer dependency range (#36013) (5e3a898)
  • common: let KeyValuePipe accept type unions with null (#36093) (407fa42), closes #35743
  • compiler-cli: TypeScript peer dependency range (#36008) (5f7d066)
  • compiler-cli: suppress extraRequire errors in Closure Compiler (#35737) (c296bfc)
  • compiler: Propagate value span of ExpressionBinding to ParsedProperty (#36133) (2ce5fa3)
  • compiler: do not recurse to find static symbols of same module (#35262) (e179c58)
  • compiler: record correct end of expression (#34690) (df890d7), closes #33477
  • compiler: support directive inputs with interpolations on <ng-template>s (#35984) (79659ee), closes #35752
  • compiler: support i18n attributes on <ng-template> tags (#35681) (40da51f)
  • compiler: type-checking error for duplicate variables in templates (#35674) (2c41bb8), closes #35186
  • compiler: use FatalDiagnosticError to generate better error messages (#35244) (646655d)
  • core: Add style="{{exp}}" based interpolation (#34202) (2562a3b), closes #33575
  • core: Remove debugger statement (#35763) (8f38eb7), closes #35470
  • core: Remove debugger statement when assert is thrown (#35763) (4003538), closes #35470
  • core: add noSideEffects() to make*Decorator() functions (#35769) (dc6a791)
  • core: add noSideEffects() to ɵɵdefineComponent() (#35769) (ba36127)
  • core: add strictLiteralTypes to align core + VE checking of literals (#35462) (4253662)
  • core: adhere to bootstrap options for JIT compiled components (#35534) (e342ffd), closes #35230
  • core: allow null / undefined values in query results (#35796) (5652fb1), closes #35673
  • core: better handing of ICUs outside of i18n blocks (#35347) (c013dd4)
  • core: better inference for circularly referenced directive types (#35622) (173a1ac), closes #35372 #35603 #35522
  • core: correctly concatenate static and dynamic binding to class when shadowed (#35350) (8c75f21), closes #35335
  • core: don't re-invoke pure pipes that throw and arguments are the same (#35827) (19cfaf7)
  • core: emulate a View Engine type-checking bug with safe navigation (#35462) (a61fe41)
  • core: error in AOT when pipe inherits constructor from injectable that uses DI (#35468) (e17bde9), closes #35277
  • core: error when accessing NgModuleRef.componentFactoryResolver in constructor (#35637) (835618c), closes #35580
  • core: handle <ng-template> with local refs in i18n blocks (#35758) (ef75875)
  • core: incorrectly generating shared pure function between null and object literal (#35481) (22786c8), closes #33705 #35298
  • core: injecting incorrect provider when re-providing injectable with useClass (#34574) (0bc35a7), closes #34110
  • core: log error instead of warning for unknown properties and elements (#35798) (00f3c58), closes #35699
  • core: make subclass inherit developer-defined data (#35105) (a756161)
  • core: provide a more detailed error message for NG6002/NG6003 (#35620) (2d89b5d)
  • core: remove side effects from ɵɵNgOnChangesFeature() (#35769) (9cf85d2)
  • core: remove side effects from ɵɵgetInheritedFactory() (#35769) (c195d22)
  • core: remove support for Map/Set in [class]/[style] bindings (#35392) (2ca7984)
  • core: support sanitizer value in the [style] bindings (#35564) (3af103a), closes #35476
  • core: treat [class] and [className] as unrelated bindings (#35668) (a153b61), closes #35577
  • core: unable to NgModuleRef.injector in module constructor (#35731) (1f8a243), closes #35677 #35639
  • core: undecorated-classes-with-di migration should handle libraries generated with CLI versions past v6.2.0 (#35824) (59607dc), closes #34985
  • core: use proper configuration to compile Injectable in JIT (#35706) (7b13977)
  • core: verify parsed ICU expression at runtime before executing it (#35923) (8c2d842), closes #35689
  • core: workaround Terser inlining bug (#36200) (f71d132)
  • elements: correctly handle setting inputs to undefined (#36140) (e066bdd)
  • elements: correctly set SimpleChange#firstChange for pre-existing inputs (#36140) (447a600), closes #36130
  • ivy: LFrame needs to release memory on leaveView() (#35156) (b9b512f), closes #35148
  • ivy: add attributes and classes to host elements based on selector (#34481) (f95b8ce)
  • ivy: error if directive with synthetic property binding is on same node as directive that injects ViewContainerRef (#35343) (d6bc63f), closes #35342
  • ivy: narrow NgIf context variables in template type checker (#35125) (40039d8), closes #34572
  • ivy: queries should match elements inside ng-container with the descendants: false option (#35384) (3f4e02b), closes #34768
  • ivy: support dynamic query tokens in AOT mode (#35307) (3e3a1ef), closes #34267
  • ivy: wrong context passed to ngOnDestroy when resolved multiple times (#35249) (5fbfe69), closes #35167
  • language-service: fix calculation of pipe spans (#35986) (406419b)
  • language-service: get the right 'ElementAst' in the nested HTML tag (#35317) (8e354da)
  • language-service: infer $implicit value for ngIf template contexts (#35941) (18b1bd4)
  • language-service: infer context type of structural directives (#35537) (#35561) (54fd33f)
  • language-service: provide completions for the structural directive that only injects the 'ViewContainerRef' (#35466) (66c06eb)
  • language-service: provide hover for interpolation in attribute value (#35494) (049f118), closes PR#34847
  • language-service: resolve the real path for symlink (#35895) (4e1d780)
  • language-service: resolve the variable from the template context first (#35982) (3d46a45)
  • localize: allow ICU expansion case to start with any character except } (#36123) (0767d37), closes #31586
  • localize: improve matching and parsing of XLIFF 1.2 translation files (#35793) (350ac11)
  • localize: improve matching and parsing of XLIFF 2.0 translation files (#35793) (08071e5)
  • localize: improve matching and parsing of XTB translation files (#35793) (0e2a577)
  • localize: improve placeholder mismatch error message (#35593) (53f059e)
  • localize: merge translation from all XLIFF <file> elements (#35936) (fc4c3c3), closes #35839
  • localize: show helpful error when providing an invalid cli option (#36010) (aad02e8)
  • localize: support minified ES5 $localize calls (#35562) (df75451), closes #35376
  • ngcc: add default config for angular2-highcharts (#35527) (3cc8127), closes #35399
  • ngcc: allow deep-import warnings to be ignored (#35683) (20b0c80), closes #35615
  • ngcc: capture path-mapped entry-points that start with same string (#35592) (71b5970), closes #35536
  • ngcc: consistently delegate to TypeScript host for typing files (#36089) (9e70bcb), closes #35078
  • ngcc: correctly detect emitted TS helpers in ES5 (#35191) (bd6a39c)
  • ngcc: correctly detect outer aliased class identifiers in ES5 (#35527) (fde8915), closes #35399
  • ngcc: do not crash on entry-point that fails to compile (#36083) (ff665b9)
  • ngcc: do not crash on overlapping entry-points (#36083) (c9f554c)
  • ngcc: handle imports in dts files when processing CommonJS (#35191) (b6e8847), closes #34356
  • ngcc: handle mappings outside the content when flattening source-maps (#35718) (73cf7d5), closes #35709
  • ngcc: handle missing sources when flattening source-maps (#35718) (72c4fda), closes #35709
  • ngcc: handle multiple original sources when flattening source-maps (#36027) (a40be00)
  • ngcc: introduce a new LockFile implementation that uses a child-process (#35861) (c55f900), closes #35761
  • ngcc: show helpful error when providing an invalid option (#36010) (1f89c61)
  • ngcc: use path-mappings from tsconfig in dependency resolution (#36180) (6defe96), closes #36119
  • ngcc: use preserve whitespaces from tsconfig if provided (#36189) (aef4323), closes #35871
  • platform-browser: add missing peerDependency on [@angular](https://github.com/angular)/animations (#35949) (64d6f13), closes #35888
  • router: removed unused ApplicationRef dependency (#35642) (c839c05), closes /github.com/angular/angular/commit/5a849829c42330d7e88e83e916e6e36380c97a97#diff-c0baae5e1df628e1a217e8dc38557
  • router: state data missing in routerLink (#33203) (de67978)
  • service-worker: treat 503 as offline (#35595) (96cdf03), closes #35571
  • fix flaky test cases of passive events (#35679) (8ef29b6)
<!-- CHANGELOG SPLIT MARKER -->

<a name="9.0.7"></a>

9.0.7 (2020-03-18)

Bug Fixes

  • compiler: do not recurse to find static symbols of same module (#35262) (a52b568)
  • compiler: support directive inputs with interpolations on <ng-template>s (#35984) (a6bf31b), closes #35752
  • core: don't re-invoke pure pipes that throw and arguments are the same (#35827) (3fa632b)
  • core: verify parsed ICU expression at runtime before executing it (#35923) (9cd115d), closes #35689
  • language-service: infer $implicit value for ngIf template contexts (#35941) (f5e4410)
  • ngcc: a new LockFile implementation that uses a child-process (#35934) (743ce7b), closes #35761
  • ngcc: consistently delegate to TypeScript host for typing files (#36089) (76d7188), closes #35078
  • ngcc: handle multiple original sources when flattening source-maps (#36027) (e6167cf)

Performance Improvements

  • ngcc: link segment markers for faster traversal (#36027) (a0fa63b)
  • ngcc: store the position of SegmentMarkers to avoid unnecessary computation (#36027) (4ce9098)
  • ngcc: use binary search when flattening mappings (#36027) (8768fc4)
  • ngcc: use line start positions for computing offsets in source-map flattening (#36027) (daa2a08)
<!-- CHANGELOG SPLIT MARKER -->

<a name="9.0.6"></a>

9.0.6 (2020-03-10)

Bug Fixes

  • bazel: do not use manifest paths for generated imports within compilation unit (#35841) (5ea9a61)
  • compiler: process imports first and declarations second while calculating scopes (#35850) (6f2fd6e), closes #35502
  • core: add noSideEffects() to make*Decorator() functions (#35769) (#35846) (4fe3f37)
  • core: add noSideEffects() to ɵɵdefineComponent() (#35769) (#35846) (68ca32f)
  • core: remove side effects from ɵɵgetInheritedFactory() (#35769) (#35846) (000c834)
  • core: remove side effects from ɵɵNgOnChangesFeature() (#35769) (#35846) (d24ce21)
  • core: undecorated-classes-with-di migration should handle libraries generated with CLI versions past v6.2.0 (#35824) (eaf5b58), closes #34985
  • language-service: resolve the variable from the template context first (#35982) (f882ff0)
  • localize: improve matching and parsing of XLIFF 1.2 translation files (#35793) (677d666)
  • localize: improve matching and parsing of XLIFF 2.0 translation files (#35793) (689964b)
  • localize: improve matching and parsing of XTB translation files (#35793) (9f68ff9)
  • localize: merge translation from all XLIFF <file> elements (#35936) (83d7819), closes #35839
  • platform-browser: add missing peerDependency on [@angular](https://github.com/angular)/animations (#35949) (db9704a), closes #35888
  • router: state data missing in routerLink (#33203) (773d7b8)

Performance Improvements

<!-- CHANGELOG SPLIT MARKER -->

<a name="9.0.5"></a>

9.0.5 (2020-03-04)

Bug Fixes

Features

Performance Improvements

<!-- CHANGELOG SPLIT MARKER -->

<a name="9.0.4"></a>

9.0.4 (2020-02-27)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="9.0.3"></a>

9.0.3 (2020-02-27)

Bug Fixes

Features

  • ngcc: implement source-map flattening (#35132) (0a8e8cd)
  • zone.js add an tickOptions parameter with property processNewMacroTasksSynchronously. (#33838) (7d2ea93), closes #33799

Performance Improvements

  • core: avoid recursive scope recalculation when TestBed.overrideModule is used (#35454) (349539e)
  • core: remove unused event argument in listener instructions (#35097) (afc5b3e)
<!-- CHANGELOG SPLIT MARKER -->

<a name="9.0.2"></a>

9.0.2 (2020-02-19)

Bug Fixes

  • core: better handing of ICUs outside of i18n blocks (#35347) (4fb5e21)
  • core: correctly concatenate static and dynamic binding to class when shadowed (#35350) (8220363), closes #35335
  • core: remove support for Map/Set in [class]/[style] bindings (#35392) (1797390)
  • ivy: LFrame needs to release memory on leaveView() (#35156) (4b1dcaf), closes #35148
  • ivy: add attributes and classes to host elements based on selector (#34481) (03a8b16)
  • ivy: error if directive with synthetic property binding is on same node as directive that injects ViewContainerRef (#35343) (a30fd29), closes #35342
  • ivy: queries should match elements inside ng-container with the descendants: false option (#35384) (fd4ce84), closes #34768
  • ivy: wrong context passed to ngOnDestroy when resolved multiple times (#35249) (0671e54), closes #35167
<!-- CHANGELOG SPLIT MARKER -->

<a name="9.0.1"></a>

9.0.1 (2020-02-12)

Bug Fixes

  • bazel: devserver shows blank page in Windows (#35159) (727f92f)
  • bazel: spawn prod server using port 4200 (#35160) (829f506)
  • bazel: update ibazel to 0.11.1 (#35158) (4e6d237)
  • compiler: report errors for missing binding names (#34595) (d13cab7)
  • elements: schematics fail with schema.json not found error (#35211) (94d002b), closes #35154
  • forms: change Array.reduce usage to Array.forEach (#35349) (554c2cb)
  • ivy: ensure module imports are instantiated before the module being declared (#35172) (b6a3a73)
  • ivy: repeat template guards to narrow types in event handlers (#35193) (dea1b96), closes #35073
  • ivy: set namespace for host elements of dynamically created components (#35136) (480a4c3)
  • language-service: Suggest ? and ! operator on nullable receiver (#35200) (3cc24a9)
  • ngcc: ensure that path-mapped secondary entry-points are processed correctly (#35227) (c3c1140), closes #35188
<!-- CHANGELOG SPLIT MARKER -->

<a name="9.0.0"></a>

9.0.0 (2020-02-06)

Blog post "Version 9 of Angular Now Available — Project Ivy has arrived!".

Release Highlights & Update instructions

To learn about the release highlights and our CLI-powered automated update workflow for your projects please check out the v9 release announcement.

Dependency updates

@angular/core now requires:

  • RxJS 6.5

@angular/compiler-cli now requires:

  • TypeScript 3.6 or 3.7

Bug Fixes

Code Refactoring

Features

Performance Improvements

  • ivy: remove unused argument in hostBindings function (#34969) (71a3c72)
  • ivy: add more styling use-cases to benchmarks (#34923) (ef70a89)
  • ivy: add create scenario to the styling benchmark (#34775) (1ec9515)
  • ivy: add noop change detection scenario to the styling benchmark (#34775) (4928f1a)
  • ivy: add static style to the list of scenarios (#34775) (a15f20b)
  • ivy: styling algorithm benchmark (#34664) (f8d4ce7)
  • ivy: support simple generic type constraints in local type ctors (#34021) (88adc30)
  • compiler: optimize cloning cursors state (#34332) (5d871b5)
  • compiler: speed up i18n digest computations (#34332) (adb0663)
  • compiler: use a shared interpolation regex (#34332) (940e62b)
  • ivy: cache export scopes extracted from declaration files (#34332) (eb9a8ac)
  • ivy: eagerly parse the template twice during analysis (#34334) (fb4a11a)
  • ivy: reuse prior analysis work during incremental builds (#34288) (c387952)
  • ivy: share instances of DomElementSchemaRegistry (#34332) (ce94192)
  • ivy: use module resolution cache (#34332) (82442c5)
  • ivy: chain listener instructions (#33720) (#34340) (d3ec306)
  • ivy: chain styling instructions (#33837) (#34340) (c66fd06)
  • add js-web-frameworks benchmark (#34034) (bf16b0e)
  • ivy: avoid duplicate state lookup and default function parameters (#34183) (00f7372)
  • ivy: do no work if moving a viewRef to the same position (#34052) (d228801)
  • ivy: fix creation time micro-benchmarks (#34031) (457ac3a)
  • ivy: R3TestBed - Do not process NgModuleDefs that have already been processed (#33863) (05a18cc)
  • ivy: add micro-benchmark focused on directive input update (#33798) (edd624b)
  • ivy: don't store public input names in two places (#33798) (105616c)
  • ivy: extract template's instruction first create pass processing (#33856) (01af94c)
  • ivy: Improve performance of transplanted views (#33702) (a16a57e)
  • core: Avoid unnecessary creating provider factory (#33742) (c315881)
  • ivy: add new benchmark focused on template creation (#33511) (df1bef3)
  • ivy: add ngIf-like directive to the ng_template benchmark (#33595) (e89c2dd)
  • ivy: avoid native node retrieval from LView (#33511) (083d48e)
  • ivy: avoid repeated native node retrieval and patching (#33322) (41caafc)
  • ivy: avoid repeated tNode.initialInputs reads (#33322) (4452d6d)
  • ivy: move local references into consts array (#33129) (66725b7), closes #32798
  • ivy: avoid generating selectors array for directives without a selector (#33431) (c3e9356)
  • ivy: apply [style]/[class] bindings directly to style/className (#33336) (dcdb433)
  • ivy: apply static styles/classes directly to an element's style/className properties (#33364) (5607ad8)
  • ivy: improve styling performance (#33326) (d40ee6a)
  • ivy: avoid unnecessary i18n pass while processing a template (#33284) (7f7dc7c)
  • ivy: initialise inputs from static attrs on the first template pass only (#33195) (aef7dca)
  • ivy: limit global state read / write in host bindings (#33195) (3e14c2d)
  • ivy: guard host binding execution with a TNode flag (#33102) (d4d0723)
  • ivy: introduce micro-benchmark for directive instantiation (#33082) (22d4efb)
  • ivy: limit memory reads in getOrCreateNodeInjectorForNode (#33102) (dcca80b)
  • ivy: speed up bindings when no directives are present (#32919) (b2decf0)
  • ivy: stricter null checks in setInputsFromAttrs (#33102) (b800b88)
  • ivy: use instanceof operator to check for NodeInjectorFactory instances (#33082) (8d111da)
  • ivy: add static attributes to the element_text_create benchmark (#32997) (affae99)
  • ivy: attempt rendering initial styling only if present (#32979) (6004703)
  • ivy: avoid memory allocation in the isAnimationProp check (#32997) (9f0c549)
  • ivy: increase number of created views in the element_text_create benchmark (#32979) (8593d0d)
  • ivy: limit TNode.inputs reads on first template pass (#32979) (e6881b5)
  • ivy: move attributes array into component def (#32798) (d5b87d3)
  • language-service: improve Language service performance (#32098) (65297cd)
  • ivy: avoid repeat global state accesses in i18n instructions (#32916) (ffc34b3)
  • ivy: remove extra SafeStyle detection code (#32775) (52552b0)
  • ivy: avoid megamorphic reads during property binding (#32574) (fcdd068)
  • ivy: avoid repeated lview reads in pipe instructions (#32633) (73cb581)
  • ivy: avoid repeated LView reads in property instructions (#32681) (e6ed4a2)
  • ivy: avoid unnecessary DOM reads in styling instructions (#32716) (05e1b3b)
  • ivy: binding update benchmark (#32574) (ea378a9)
  • ivy: convert all node-based benchmark to use a testing harness (#32699) (1748aeb)
  • ivy: guard listening to outputs with isDirectiveHost (#32495) (527ce3b)
  • ivy: initialise TNode inputs / outputs on the first creation pass (#32608) (ad178c5)
  • ivy: introduce benchmark for listeners registration (#32495) (024765b)
  • ivy: limit TNode.outputs reads (#32495) (51292e2)
  • ivy: run the expandng rows benchmark with es2015 (#32716) (3ace25f)
  • language-service: keep analyzedModules cache when source files don't change (#32562) (4f03323)
  • ivy: check for animation synthetic props in dev mode only (#32578) (7280710)
  • ivy: introduce a node-based micro-benchmarks harness (#32510) (2895edc)
  • ivy: replace select instruction with advance (#32516) (664e001)
  • ivy: run tree benchmark with bundles and ngDevMode off (#32558) (c3a1ef2)
  • ngcc: process tasks in parallel in async mode (#32427) (e36e6c8)
  • core: Make PlatformLocation tree-shakable (#32154) (1537791)
  • ivy: add a micro benchmark for map-based style and class bindings (#32401) (ba5e07e)
  • ivy: add a micro benchmark for style and class bindings (#32401) (df8e675)
  • ivy: add element and text creation benchmark (#32342) (85864ed)
  • ivy: guard directive-related operations with a TNode flag (#32445) (641c5c1)
  • ivy: properly initialise global state in the element_text_create benchmark (#32397) (8dc3f36)
  • ivy: remove renderStringify calls for text nodes creation (#32342) (a1e91b0)
  • ivy: remove repeated memory read / write in addComponentLogic (#32339) (581b837)
  • ivy: run registerPostOrderHooks in the first template pass only (#32342) (fac066e)
  • ivy: minimise writes to the lView[BINDING_INDEX] / binding root (#32263) (e3422e0)
  • ivy: store binding metadata in the ngDevMode only (#32317) (0874bf4)
  • core: make sanitization tree-shakable in Ivy mode (#31934) (2e4d17f)
  • ivy: auto-call select(0) for non-empty views only (#32131) (4d549f6)
  • ivy: avoid first template pass checks during view creation (#32120) (4c3b791)
  • ivy: avoid for-of loops at runtime (#32157) (abb44f7)
  • ivy: improve NaN checks in change detection (#32212) (53bfa7c)
  • ivy: interpolation micro-benchmark (#32104) (be665d8)
  • ivy: noop change detection micro-benchmark (#32104) (c422c72)
  • don't create holey arrays (#32155) (6477057)
  • ivy: read selected index only when need in prop bindings (#32212) (53f33c1)
  • ivy: split hooks processing into init and check phases (#32131) (1062960)
  • ivy: split view processing into render (create) and refresh (update) pass (#32020) (b9dfe66)
  • ivy: don't read global state when interpolated values don't change (#32093) (6eb9c2f)

Reverts

  • "fix(ivy): recompile component when template changes in ngc watch mode (#33551)" (#33661) (cb55f60)
  • fix(ivy): Only restore registered modules if user compiles modules with TestBed (#32944) (#33663) (f8e9c1e)
  • fix(ivy): R3TestBed should clean up registered modules after each test (#32872) (#33663) (7c4366d)
  • build: remove vendored Babel typings (#33176) (#33215) (e9ee685)
  • build: update webdriver-manager to support latest Chrome (#33216) (a914859)
  • build: use http caching on windows CI runs (#33238) (#33254) (117ca7c)
  • feat: add a flag in bootstrap to enable coalesce event change detection to improve performance (#30533) (#33230) (082aed6)
  • docs: create Issue and Pull Request markdown doc, explaining automatic locking policy (#32405) (43619fc)

BREAKING CHANGES

  • i18n: The CLDR data has been updated to v36.0.0, which may cause some localized data strings to change. For example, the space separator used in numbers in the fr locales changed from \xa0 to \u202f (c1bd3bc)
  • bazel: @angular/bazel ng_setup_workspace() is no longer needed and has been removed. We assume you will fetch rules_nodejs in your WORKSPACE file, and no other dependencies remain here. Simply remove any calls to this function and the corresponding load statement.
  • typescript 3.4 and 3.5 are no longer supported, please update to typescript 3.6
  • We no longer directly have a direct depedency on tslib. Instead it is now listed a peerDependency.

Users not using the CLI will need to manually install tslib via;

yarn add tslib

or

npm install tslib --save
  • forms: * <ngForm></ngForm> can no longer be used as a selector. Use <ng-form></ng-form> instead.
  • The NgFormSelectorWarning directive has been removed.
  • FormsModule.withConfig has been removed. Use the FormsModule directly.
  • core: The deprecated type Renderer has been removed. Use Renderer2 instead.
  • core: The deprecated type RenderComponentType has been removed. Use RendererType2 instead.
  • core: The deprecated type RootRenderer has been removed. Use RendererFactory2 instead.
  • service-worker: Remove deprecated option versionedFiles from service worker asset group configuration in ngsw-config.json

Before

json
"assetGroups": [
  {
    "name": "test",
    "resources": {
      "versionedFiles": [
        "/**/*.txt"
      ]
    }
  }
]

After

json
"assetGroups": [
  {
    "name": "test",
    "resources": {
      "files": [
        "/**/*.txt"
      ]
    }
  }
]
  • ivy: Translations (loaded via the loadTranslations() function) must now use MessageId for the translation key rather than the previous SourceMessage string.
  • ivy: To attach the $localize function to the global scope import from @angular/localize/init. Previously it was @angular/localize. To access the loadTranslations() and clearTranslations() functions, import from @angular/localize. Previously it was @angular/localize/run_time.
  • bazel: Angular bazel users using protractor_web_test_suite from @angular/bazel npm package should now switch to the @bazel/protractor npm package.

This should impact very few users and the user's that are impacted have a very easy upgrade path to switch to fetching the protractor_web_test_suite rule via the @bazel/protractor npm package.

  • ivy: This commit removes the public export of hasBeenProcessed().

This was exported to be available to the CLI integration but was never used. The change to the function signature is a breaking change in itself so we remove the function altogether to simplify and lower the public API surface going forward.

  • core: Injector.get now accepts abstract classes to return type-safe values. Previous implementation returned any through the deprecated implementation.
  • Angular now compiles with Ivy by default (#32219) (ec4381d).

If you aren't familiar with Ivy, read our blog post about the Ivy preview and see the list of changes here.

  • ivy: make Hammer support tree-shakable. Previously, in Ivy applications, Hammer providers were included by default. With this commit, apps that want Hammer support must import HammerModulein their root module. (#32203) (de8ebbd)

DEPRECATIONS

  • core: TestBed.get function is marked as deprecated, use TestBed.inject instead.
<!-- CHANGELOG SPLIT MARKER -->

<a name="8.2.14"></a>

8.2.14 (2019-11-13)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="8.2.13"></a>

8.2.13 (2019-10-30)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="8.2.12"></a>

8.2.12 (2019-10-23)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="8.2.11"></a>

8.2.11 (2019-10-15)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="8.2.10"></a>

8.2.10 (2019-10-09)

This release contains various API docs improvements.

<!-- CHANGELOG SPLIT MARKER -->

<a name="8.2.9"></a>

8.2.9 (2019-10-02)

Bug Fixes

  • upgrade: fix AngularJsUrlCodec to support Safari (#32959) (57457fb)
<!-- CHANGELOG SPLIT MARKER -->

<a name="8.2.8"></a>

8.2.8 (2019-09-25)

This release contains various API docs improvements.

<!-- CHANGELOG SPLIT MARKER -->

<a name="8.2.7"></a>

8.2.7 (2019-09-18)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="8.2.6"></a>

8.2.6 (2019-09-11)

This release contains various API docs improvements.

<!-- CHANGELOG SPLIT MARKER -->

<a name="8.2.5"></a>

8.2.5 (2019-09-04)

This release contains various API docs improvements.

Bug Fixes

  • common: HttpParams fromObject accepts ReadonlyArray<string> (#31072) (b3ea698), closes #28452
<!-- CHANGELOG SPLIT MARKER -->

<a name="8.2.4"></a>

8.2.4 (2019-08-28)

This release contains various API docs improvements.

<!-- CHANGELOG SPLIT MARKER -->

<a name="8.2.3"></a>

8.2.3 (2019-08-21)

Bug Fixes

  • bazel: pin [@microsoft](https://github.com/microsoft)/api-extractor (#32187) (a7b9478)
<!-- CHANGELOG SPLIT MARKER -->

<a name="8.2.2"></a>

8.2.2 (2019-08-12)

Bug Fixes

  • bazel: disable treeshaking when generating FESM and UMD bundles (#32069) (3420d29)
<!-- CHANGELOG SPLIT MARKER -->

<a name="8.2.1"></a>

8.2.1 (2019-08-08)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="8.2.0"></a>

8.2.0 (2019-07-31)

Features

  • core: TypeScript 3.5 support (#31615) (6ece7db)
  • core: add automatic migration from Renderer to Renderer2 (#30936) (c095597)
  • bazel: compile targets used for indexing by Kythe with Ivy (#31786) (82055b2)
  • upgrade: support $element in upgraded component template/templateUrl functions (#31637) (29e1c53)
  • bazel: allow passing a custom bazel compiler host to ngc compile (#31341) (a29dc96)
  • bazel: allow passing and rewriting an old bazel host (#31381) (11a208f), closes #31341

Performance Improvements

  • compiler: avoid copying from prototype while cloning an object (#31638) (24ca582), closes #31627

Bug Fixes

  • core: DebugElement.listeners not cleared on destroy (#31820) (46b160e)
  • bazel: increase memory limit of ngc under bazel from 2 to 4 GB (#31784) (5a8eb92)
  • core: allow Z variations of CSS transforms in sanitizer (#29264) (78e7fdd)
  • elements: handle falsy initial value (#31604) (7151eae), closes angular/angular#30834
  • platform-browser: debug element query predicates not compatible with strictFunctionTypes (#30993) (10a1e19)
  • use the correct WTF array to iterate over (#31208) (9204de9)
  • bazel: pass custom bazel compiler host rather than rewriting one (#31496) (0c61a35)
  • compiler-cli: Return original sourceFile instead of redirected sourceFile from getSourceFile (#26036) (3166cff), closes #22524
  • language-service: Eagarly initialize data members (#31577) (0110de2)
  • bazel: revert location of xi18n outputs to bazel-genfiles (#31410) (1d3e227)
  • compiler: give ASTWithSource its own visit method (#31347) (6aaca21)
  • service-worker: cache opaque responses in data groups with freshness strategy (#30977) (d7be38f), closes #30968
  • service-worker: cache opaque responses when requests exceeds timeout threshold (#30977) (93abc35)
<!-- CHANGELOG SPLIT MARKER -->

<a name="8.1.3"></a>

8.1.3 (2019-07-26)

Bug Fixes

Performance Improvements

  • compiler: avoid copying from prototype while cloning an object (#31638) (1f3daa0), closes #31627
<!-- CHANGELOG SPLIT MARKER -->

<a name="8.1.2"></a>

8.1.2 (2019-07-17)

Bug Fixes

  • use the correct WTF array to iterate over (#31208) (4aed480)
  • compiler-cli: Return original sourceFile instead of redirected sourceFile from getSourceFile (#26036) (13dbb98), closes #22524
<!-- CHANGELOG SPLIT MARKER -->

<a name="8.1.1"></a>

8.1.1 (2019-07-10)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="8.1.0"></a>

8.1.0 (2019-07-02)

Bug Fixes

  • core: handle undefined meta in injectArgs (#31333) (80ccd6c), closes CLI #14888
  • service-worker: cache opaque responses in data groups with freshness strategy (#30977) (b0c3453), closes #30968
  • service-worker: cache opaque responses when requests exceeds timeout threshold (#30977) (a9038ef)
<!-- CHANGELOG SPLIT MARKER -->

<a name="8.1.0-rc.0"></a>

8.1.0-rc.0 (2019-06-26)

Bug Fixes

Features

  • upgrade: provide unit test helpers for wiring up injectors (#16848) (3fb78aa)
<!-- CHANGELOG SPLIT MARKER -->

<a name="8.0.3"></a>

8.0.3 (2019-06-26)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="8.1.0-next.3"></a>

8.1.0-next.3 (2019-06-19)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="8.0.2"></a>

8.0.2 (2019-06-19)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="8.1.0-next.2"></a>

8.1.0-next.2 (2019-06-13)

Bug Fixes

  • bazel: do not modify tsconfig.json (#30877) (b086676)
  • bazel: exclude components schematics from build (#30825) (05a43ca)
  • bazel: Load global stylesheet in dev and prod (#30879) (17bfedd)
  • common: expose the HttpUploadProgressEvent interface as public API (#30852) (5c18f23), closes #30814
  • service-worker: avoid uncaught rejection warning when registration fails (#30876) (81c2a94)
<!-- CHANGELOG SPLIT MARKER -->

<a name="8.0.1"></a>

8.0.1 (2019-06-13)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="8.1.0-next.1"></a>

8.1.0-next.1 (2019-06-05)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="8.1.0-beta.0"></a>

8.1.0-beta.0 (2019-05-30)

Bug Fixes

  • bazel: allow ts_library interop with list-typed inputs (#30600) (3125376)
  • bazel: Bump ibazel to 0.10.1 for windows fixes (#30196) (1353bf0)
  • bazel: Directly spawn native Bazel binary (#30306) (2a0f497)
  • bazel: Disable sandbox on Mac OS (#30460) (b6b1aec)
  • bazel: Exclude common/upgrade* in metadata.tsconfig.json (#30133) (1f4c380)
  • bazel: ng test should run specific ts_web_test_suite (#30526) (e688e02)
  • bazel: pass correct arguments to http_server in Windows (#30346) (3aff79c), closes #29785
  • bazel: update peerDep ranges (#30155) (4ae0ee8)
  • bazel: Use existing npm/yarn lock files (#30438) (ff29ccc)
  • compiler-cli: log ngcc skipping messages as debug instead of info (#30232) (60a8888)
  • core: consistently use ng:/// for sourcemap URLs (#29826) (392473e)
  • core: CSS sanitizer now allows parens in file names (#30322) (728db88)
  • core: fix interpolate identifier in AOT (#30243) (30d1f29)
  • core: migrations not always migrating all files (#30269) (349935a)
  • core: remove deprecated TestBed.deprecatedOverrideProvider API (#30576) (a96976e)
  • core: require 'static' flag on queries in typings (#30639) (84dd267)
  • core: static-query migration errors not printed properly (#30458) (6ceb903)
  • core: static-query migration fails with default parameter values (#30269) (6357d4a)
  • core: static-query migration should gracefully exit if AOT compiler throws (#30269) (509352f)
  • core: static-query migration should handle queries on accessors (#30327) (0ffdb48)
  • core: static-query migration should not fallback to test strategy (#30458) (0cdf598)
  • core: static-query migration should not prompt if no queries are used (#30254) (4c12d74)
  • core: static-query usage migration strategy should detect ambiguous query usage (#30215) (8d3365e)
  • core: temporarily remove @deprecated jsdoc tag for a TextBed.get overload (#30514) (f6bf892), closes #29290 #29905
  • language-service: Remove tsserverlibrary from rollup globals (#30123) (124e497)
  • router: ensure history.state is set in eager update mode (#30154) (b40f6f3)
  • router: ensure navigations start with the current URL value incase redirect is skipped (#30344) (0fd9d08), closes #30340 #30160
  • router: fix a problem with router not responding to back button (#30160) (3327bd8)
  • router: IE 11 bug can break URL unification when comparing objects (#30393) (197584d)
  • router: type cast correctly for IE 11 bug breaking URL Unification when comparing objects (#30464) (53f3564)

Features

  • bazel: use rbe_autoconfig() and new container. (#29336) (9abf114)
  • common: add ability to watch for AngularJS URL updates through onUrlChange hook (#30466) (1aff524)
  • common: stricter types for SlicePipe (#30156) (95830ee)
  • core: deprecate integration with the Web Tracing Framework (WTF) (#30642) (f310a59)
  • language-service: Implement definitionAndBoundSpan (#30125) (f491673)
  • platform-webworker: deprecate platform-webworker (#30642) (ccc76f7)
<!-- CHANGELOG SPLIT MARKER -->

<a name="8.0.0"></a>

8.0.0 (2019-05-28)

Blog post "Version 8 of Angular — Smaller bundles, CLI APIs, and alignment with the ecosystem".

Release Highlights & Update instructions

To learn about the release highlights and our CLI-powered automated update workflow for your projects please check out the v8 release announcement.

Features

  • add support for TypeScript 3.4 (and drop older versions) (#29372) (ef85336)
  • common: stricter types for SlicePipe (#30156) (722b2fa)
  • bazel: use rbe_autoconfig() and new container (#29336) (e562acc)
  • common: add @angular/common/upgrade package for $location-related APIs (#30055) (152d99e)
  • common: add ability to retrieve the state from Location service (#30055) (b44b143)
  • common: add ability to track all location changes (#30055) (3a9cf3f)
  • common: add APIs to read component pieces of URL (#30055) (b635fe8)
  • common: add MockPlatformLocation to enable more robust testing of Location services (#30055) (d0672c2)
  • common: add UrlCodec type for use with upgrade applications (#30055) (ec455e1)
  • common: provide replacement for AngularJS $location service (#30055) (4277600)
  • remove deprecated DOCUMENT token from platform-browser (#28117) (3a9d247)
  • compiler: support skipping leading trivia in template source-maps (#30095) (304a12f)
  • core: add missing ARIA attributes to html sanitizer (#29685) (909557d), closes #26815
  • router: deprecate loadChildren:string (#30073) (c61df39)
  • service-worker: allow configuring when the SW is registered (#21842) (4cfba58), closes #20970
  • service-worker: expose SwRegistrationOptions token to allow runtime config (#21842) (39c0152)
  • service-worker: support bypassing SW with specific header/query param (#30010) (6200732), closes #21191
  • compiler-cli: export tooling definitions (#29929) (e1f51ea)
  • compiler-cli: lower some exported expressions (#30038) (8e73f9b)
  • core: add schematics to move deprecated DOCUMENT import (#29950) (645e305)
  • bazel: update the build to use the new architect api (#29720) (902a53a)
  • remove @angular/http dependency from @angular/platform-server (#29408) (9745f55)
  • compiler-cli: ngcc - make logging more configurable (#29591) (8d3d75e)
  • core: Add AbstractType<T> interface (#29295) (afd4a4e), closes #26491
  • core: template-var-assignment update schematic (#29608) (7c8f4e3)
  • bazel: Upgrade rules_nodejs and rules_sass (#29388) (d6d081e)
  • service-worker: support multiple apps on different subpaths of a domain (#27080) (e721c08), closes #21388
  • bazel: Eject Bazel (#29167) (36a1550)
  • bazel: Hide Bazel files in Bazel builder (#29110) (7060d90)
  • forms: clear (remove all) components from a FormArray (#28918) (a68b1a1), closes #18531
  • platform-server: wait on returned BEFORE_APP_SERIALIZED promises (#29120) (7102ea8)
  • common: add ability to watch for AngularJS URL updates through onUrlChange hook (#30466) (8022d36)
  • common: stricter types for SlicePipe (#30156) (722b2fa)
  • add support for TypeScript 3.3 (and drop older versions) (#29004) (75748d6)
  • core: update schematic to migrate to explicit query timing (#28983) (6215799)
  • service-worker: add JSON schema for service worker config (#27859) (3bee0f6), closes #19847
  • bazel: add ts_config extending support for ng_module (#21883) (edb6c2d)
  • upgrade domino to v2.1.2 (#28767) (fdca001)
  • compiler-cli: make enableIvy ngtsc/true equivalent (#28616) (1923c2f)
  • core: allow users to define timing of ViewChild/ContentChild queries (#28810) (19afb79)
  • router: add hash-based navigation option to setUpLocationSync (#28609) (71d0eeb), closes #24429 #21995
  • optionally save complete performance log in chrome benchpress tests (#27551) (d42f32c)
  • bazel: add dts bundler as action to ng_module (#28588) (3d39100)
  • compiler: support tokenizing a sub-section of an input string (#28055) (eeb560a)
  • compiler: support tokenizing escaped strings (#28055) (2424184)
  • compiler-cli: no longer re-export external symbols by default (#28633) (91b7152), closes #28594 #25644 #25644
  • compiler-cli: expose ngtsc as a TscPlugin (#28435) (a227c52)
  • bazel: Add support for SASS (#28167) (f59f18c)
  • compiler-cli: resolve generated Sass/Less files to .css inputs (#28166) (a58fd21)
  • forms: add markAllAsTouched() to AbstractControl (#26812) (45bf911), closes #19400
  • forms: export NumberValueAccessor & RangeValueAccessor directives (#27743) (ac15717)

Bug Fixes

Performance Improvements

Reverts

DEPRECATIONS

  • core: deprecate integration with the Web Tracing Framework (WTF) (#30642) (b408445)
  • platform-webworker: deprecate platform-webworker (#30642) (361f181) (which aren't supported) and abstract class tokens.

Before:

ts
TestBed.configureTestingModule({
  providers: [{provide: "stringToken", useValue: new Service()}],
});

let service = TestBed.get("stringToken"); // type any

After:

ts
const SERVICE_TOKEN = new InjectionToken<Service>("SERVICE_TOKEN");

TestBed.configureTestingModule({
  providers: [{provide: SERVICE_TOKEN, useValue: new Service()}],
});

let service = TestBed.get(SERVICE_TOKEN); // type Service

BREAKING CHANGES

  • bazel: @bazel/typescript is now a peerDependency of @angular/bazel so users of @angular/bazel must add @bazel/typescript to their package.json

  • bazel: ng_module now depends on a minimum of build_bazel_rules_nodejs 0.27.12

  • core: In Angular version 8, it's required that all @ViewChild and @ContentChild queries have a 'static' flag specifying whether the query is 'static' or 'dynamic'. The compiler previously sorted queries automatically, but in 8.0 developers are required to explicitly specify which behavior is wanted. This is a temporary requirement as part of a migration; see static query migration guide for more details.

    @ViewChildren and @ContentChildren queries are always dynamic, and so are unaffected.

  • TestBed.get() has two signatures, one which is typed and another which accepts and returns any. The signature for any is deprecated; all usage of TestBed.get() should go through the typed API. This mainly affects string tokens (which aren't supported) and abstract class tokens.

    Before:

    ts
    TestBed.configureTestingModule({
      providers: [{provide: "stringToken", useValue: new Service()}],
    });
    
    let service = TestBed.get("stringToken"); // type any
    

    After:

    ts
    const SERVICE_TOKEN = new InjectionToken<Service>("SERVICE_TOKEN");
    
    TestBed.configureTestingModule({
      providers: [{provide: SERVICE_TOKEN, useValue: new Service()}],
    });
    
    let service = TestBed.get(SERVICE_TOKEN); // type Service
    
  • core: Certain elements (like <tr> or <col>) require parent elements to be of a certain type by the HTML specification (ex. <tr> can only be inside <tbody> / <thead>). Before this change Angular template parser was auto-correcting "invalid" HTML using the following rules:

    • <tr> would be wrapped in <tbody> if not inside <tbody>, <tfoot> or <thead>;
    • <col> would be wrapped in <colgroup> if not inside <colgroup>.

    This mechanism of automatic wrapping / auto-correcting was problematic for several reasons:

    • it is non-obvious and arbitrary (ex. there are more HTML elements that have rules for parent type);
    • it is incorrect for cases where <tr> / <col> are at the root of a component's content, ex.:
    html
    <projecting-tr-inside-tbody>
      <tr>...</tr>
    </projecting-tr-inside-tbody>
    

    In the above example the <projecting-tr-inside-tbody> component could be "surprised" to see additional <tbody> elements inserted by Angular HTML parser.

  • http: The deprecated @angular/http package has been removed, the @angular/common/http package should be used instead. For details on how to migrate, please refer to the deprecations guide.

  • TypeScript 3.1 and 3.2 are no longer supported.

    Please update your TypeScript version to 3.4, as version 3.3 is also not supported.

<!-- CHANGELOG SPLIT MARKER -->

<a name="7.2.15"></a>

7.2.15 (2019-05-07)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="7.2.13"></a>

7.2.13 (2019-04-12)

Bug Fixes

  • bazel: use //:tsconfig.json as the default for ng_module (#29670) (#29711) (9e33dc3)
  • platform-browser: insert APP_ID in styles, contentAttr and hostAttr (#17745) (ca14509)
<!-- CHANGELOG SPLIT MARKER -->

<a name="7.2.12"></a>

7.2.12 (2019-04-03)

Bug Fixes

  • common: escape query selector used when anchor scrolling (#29577) (7671c73), closes #28193
  • router: adjust setting navigationTransition when a new navigation cancels an existing one (#29636) (e884c0c), closes #29389 #29590
<!-- CHANGELOG SPLIT MARKER -->

<a name="7.2.11"></a>

7.2.11 (2019-03-26)

This release contains various API docs improvements.

<!-- CHANGELOG SPLIT MARKER -->

<a name="7.2.10"></a>

7.2.10 (2019-03-20)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="7.2.9"></a>

7.2.9 (2019-03-12)

This release contains various API docs improvements.

<!-- CHANGELOG SPLIT MARKER -->

<a name="7.2.8"></a>

7.2.8 (2019-03-06)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="7.2.7"></a>

7.2.7 (2019-02-27)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="7.2.6"></a>

7.2.6 (2019-02-20)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="7.2.5"></a>

7.2.5

(2019-02-15)

Bug Fixes

  • compiler-cli: diagnostics should respect "newLine" compiler option (#28550) (ce750e6)
  • router: redirect to root url when returned as UrlTree from guard (#28271) (1e58a21), closes #27845
  • router: set href when routerLink is used on an 'area' element (#28441) (d491a20), closes #28401
<!-- CHANGELOG SPLIT MARKER -->

<a name="7.2.4"></a>

7.2.4 (2019-02-06)

Bug Fixes

  • bazel: Bazel builder resolves with require.resolve() (#28478) (d85d396)
  • bazel: fix integration test for bazel-schematics (#28460) (449da8c)

Performance Improvements

<!-- CHANGELOG SPLIT MARKER -->

<a name="7.2.3"></a>

7.2.3 (2019-01-30)

Bug Fixes

  • bazel: add @npm//tslib dep to e2e ts_library target in bazel-workspace schematic (#28358) (8cee56e)
  • bazel: Bazel-workspace schematics should run in ScopedTree (#28349) (260ac20)
  • bazel: Builder should invoke local bazel/iblaze (#28303) (12b8a6e)
  • bazel: ng-new should run yarn install (#28381) (a9d46e4)

Performance Improvements

<!-- CHANGELOG SPLIT MARKER -->

<a name="7.2.2"></a>

7.2.2 (2019-01-22)

Bug Fixes

Features

  • bazel: Add support for SASS (#28167) (a4d9192)
  • compiler-cli: resolve generated Sass/Less files to .css inputs (#28166) (4c00059)
<!-- CHANGELOG SPLIT MARKER -->

<a name="8.0.0-beta.0"></a>

8.0.0-beta.0 (2019-01-16)

Performance Improvements

<!-- CHANGELOG SPLIT MARKER -->

<a name="7.2.1"></a>

7.2.1 (2019-01-16)

Bug Fixes

  • bazel: Add @bazel/bazel to dev deps (#28032) (21093b9)
  • bazel: Add /bazel-out to .gitignore (#27874) (e4fc8ba)
  • bazel: Add ibazel to deps of Bazel project (#28090) (28d34b6)
  • bazel: Bazel schematics should add router package (#28141) (02a852a)
  • bazel: flat module misses AMD module name on windows (#27839) (c3d8e28)
  • bazel: incorrectly always uses ngc-wrapped from "npm" workspace (#28137) (ca3965a)
  • bazel: ng_package creates invalid typings reexport on windows (#27829) (6b394f6)
  • bazel: packager not properly removing amd directives on windows (#27829) (fad4145)
  • bazel: protractor rule does not run spec files with underscore (#28022) (f05c5f8)
  • bazel: protractor utils cannot start server on windows (#27915) (0be8487)
  • bazel: replay compilation uses wrong compiler for building esm5 (#28053) (fbbdaaa)
  • router: ensure URL is updated after second redirect with UrlUpdateStrategy="eager" (#27680) (6ae7aee), closes #27116
  • service-worker: navigation urls backwards compatibility (#27244) (585e871)

Performance Improvements

<!-- CHANGELOG SPLIT MARKER -->

<a name="7.2.0"></a>

7.2.0 (2019-01-07)

7.2.0 release also contains all the fixes released in 7.1.4.

Features

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="7.1.4"></a>

7.1.4 (2018-12-18)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="7.1.3"></a>

7.1.3 (2018-12-11)

Bug Fixes

  • bazel: tsickle dependency not working with typescript 3.1.x (#27402) (a9f39a4)
<!-- CHANGELOG SPLIT MARKER -->

<a name="7.1.2"></a>

7.1.2 (2018-12-06)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="7.1.1"></a>

7.1.1 (2018-11-28)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="7.1.0"></a>

7.1.0 (2018-11-21)

Features

<!-- CHANGELOG SPLIT MARKER -->

<a name="7.1.0-rc.0"></a>

7.1.0-rc.0 (2018-11-14)

Bug Fixes

  • compiler-cli: add missing tslib dependency (#27063) (c31e78f)
  • compiler-cli: only pass canonical genfile paths to compiler host (#27062) (0ada23a)
  • router: add relativeLinkResolution to recognize operator (#26990) (a752971), closes #26983

Features

  • router: add pathParamsChange mode for runGuardsAndResolvers (#26861) (bf6ac6c), closes #18253
<!-- CHANGELOG SPLIT MARKER -->

<a name="7.0.4"></a>

7.0.4 (2018-11-14)

Bug Fixes

  • compiler-cli: add missing tslib dependency (#27063) (4348c47)
  • compiler-cli: only pass canonical genfile paths to compiler host (#27062) (188e9ce)
  • router: add relativeLinkResolution to recognize operator (#26990) (d304427), closes #26983
<!-- CHANGELOG SPLIT MARKER -->

<a name="7.1.0-beta.2"></a>

7.1.0-beta.2 (2018-11-07)

Bug Fixes

  • bazel: unknown replay compiler error in windows (#26711) (aed95fd)
  • core: ensure that ɵdefineNgModule is available in flat-file formats (#26403) (a64859b)
  • router: remove type bludgeoning of context and outlet when running CanDeactivate (#26496) (496372d), closes #18253
  • service-worker: add typing to public api guard and fix lint errors (#25860) (1061875)
  • upgrade: improve downgrading-related error messages (#26217) (7dbc103)
  • upgrade: make typings compatible with older AngularJS typings (#26880) (64647af), closes #26420

Features

  • compiler: ability to mark an InvokeFunctionExpr as pure (#26860) (4dfa71f)
  • forms: add updateOn option to FormBuilder (#24599) (e9e804f)
  • router: allow guards to return UrlTree as well as boolean (#26521) (081f95c)
  • router: allow redirect from guards by returning UrlTree (#26521) (152ca66)
  • router: guard returning UrlTree cancels current navigation and redirects (#26521) (4e9f2e5), closes #24618
  • service-worker: add typing for messagesClicked in SwPush service (#25860) (c78c221)
  • service-worker: close notifications and focus window on click (#25860) (f5d5a3d)
  • service-worker: handle 'notificationclick' events (#25860) (cf6ea28), closes #20956 #22311
  • upgrade: support downgrading multiple modules (#26217) (93837e9), closes #26062
<!-- CHANGELOG SPLIT MARKER -->

<a name="7.0.3"></a>

7.0.3 (2018-11-07)

Bug Fixes

  • bazel: unknown replay compiler error in windows (#26711) (4d532df)
  • router: remove type bludgeoning of context and outlet when running CanDeactivate (#26496) (dc05385), closes #18253
  • upgrade: make typings compatible with older AngularJS typings (#26880) (315d95c), closes #26420
<!-- CHANGELOG SPLIT MARKER -->

<a name="7.1.0-beta.1"></a>

7.1.0-beta.1 (2018-10-31)

Bug Fixes

  • compiler: generate inputs with aliases properly (#26774) (19fcfc3)
  • compiler: generate relative paths only in summary file errors (#26759) (56f44be)
  • core: ignore comment nodes under unsafe elements (#25879) (d5cbcef)
  • core: Remove static dependency from @angular/core to @angular/compiler (#26734) (d042c4a)
  • core: support computed base class in metadata inheritance (#24014) (95743e3)
<!-- CHANGELOG SPLIT MARKER -->

<a name="7.0.2"></a>

7.0.2 (2018-10-31)

Bug Fixes

  • compiler: generate relative paths only in summary file errors (#26759) (c01f340)
  • core: Remove static dependency from @angular/core to @angular/compiler (#26734) (#26879) (257ac83)
  • core: support computed base class in metadata inheritance (#24014) (b3c6409)
<!-- CHANGELOG SPLIT MARKER -->

<a name="7.1.0-beta.0"></a>

7.1.0-beta.0 (2018-10-24)

Bug Fixes

  • service-worker: clean up caches from old SW versions (#26319) (2326b9c)

Features

  • router: add prioritizedGuardValue operator optimization and allowing UrlTree return from guard (#26478) (fdfedce)
<!-- CHANGELOG SPLIT MARKER -->

<a name="7.0.1"></a>

7.0.1 (2018-10-24)

<!-- CHANGELOG SPLIT MARKER -->

<a name="7.0.0"></a>

7.0.0 (2018-10-18)

Blog post "Version 7 of Angular — CLI Prompts, Virtual Scroll, Drag and Drop and more".

Release Highlights & Update instructions

To learn about the release highlights and our new CLI-powered update workflow for your projects please check out the v7 release announcement.

Dependency updates

  • @angular/core now depends on
    • TypeScript 3.1
    • RxJS 6.3
  • @angular/platform-server now depends on Domino 2.1

Features

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="6.1.10"></a>

6.1.10 (2018-10-10)

Bug Fixes

  • platform-browser: fix #22155, destroy hammer manager when HammerInstance.off() is run (#22156) (3b4d9dc)
  • upgrade: properly destroy upgraded component elements and descendants (#26209) (623adbb), closes #26208
<!-- CHANGELOG SPLIT MARKER -->

<a name="6.1.9"></a>

6.1.9 (2018-09-26)

<!-- CHANGELOG SPLIT MARKER -->

<a name="6.1.7"></a>

6.1.7 (2018-09-06)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="6.1.6"></a>

6.1.6 (2018-08-29)

Bug Fixes

  • bazel: Cache fileNameToModuleName lookups (#25731) (3e690e0)
  • bazel: only lookup amd module-name tags in .d.ts files (#25710) (7aff364)

Note: the 6.1.5 release on npm accidentally glitched-out midway, so we cut 6.1.6 instead. sorry! :-)

<!-- CHANGELOG SPLIT MARKER -->

<a name="6.1.4"></a>

6.1.4 (2018-08-22)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="6.1.3"></a>

6.1.3 (2018-08-15)

Bug Fixes

  • service-worker: Cache-Control: no-cache on assets breaks service worker (#25408) (1319ff4), closes #25442
<!-- CHANGELOG SPLIT MARKER -->

<a name="6.1.2"></a>

6.1.2 (2018-08-08)

Bug Fixes

  • router: take base uri into account in setUpLocationSync() (#20244) (ae9b4e6), closes #20061
  • add mappings for ngfactory & ngsummary files to their module names in aot summary resolver (#25335) (054fbbe)
<!-- CHANGELOG SPLIT MARKER -->

<a name="6.1.1"></a>

6.1.1 (2018-08-02)

  • compiler-cli: correct tsickle dependency version to fix typescript 2.9 compatibility (fec29fa)
<!-- CHANGELOG SPLIT MARKER -->

<a name="6.1.0"></a>

6.1.0 (2018-07-25)

Blog post "Angular v6.1 Now Available — TypeScript 2.9, Scroll Positioning, and more".

Bug Fixes

  • animations: always render end-state styles for orphaned DOM nodes (#24236) (dc4a3d0)
  • animations: do not throw errors when a destroyed component is animated (#23836) (d2a8687)
  • animations: Fix browser detection logic (#24188) (b492b9e)
  • animations: properly clean up queried element styles in safari/edge (#23633) (da9ff25)
  • animations: retain state styling for nodes that are moved around (#23534) (65211f4)
  • animations: retain trigger-state for nodes that are moved around (#24238) (8db928d)
  • bazel: Allow ng_module to depend on targets w no deps (#24446) (282d351)
  • benchpress: Fix promise chain in chrome_driver_extension. (#23458) (d4b6c41)
  • common: do not round factional seconds (#24831) (a527c69), closes #24384
  • common: format fractional seconds (#24844) (0b4d85e), closes #24831
  • common: properly update collection reference in NgForOf (#24684) (ff84c5c), closes #24155
  • common: use correct currency format for locale de-AT (#24658) (dcabb05), closes #24609
  • compiler: fix a few non-tree-shakeable code patterns (#24677) (50d4a4f)
  • compiler: i18n_extractor now outputs the correct source file name (#24885) (c8ad965), closes #24884
  • compiler: support . in import statements. (#20634) (d8f7b29), closes #20363
  • compiler: avoid a crash in ngc-wrapped. (#23468) (e1c4930)
  • compiler: generate constant array for i18n attributes (#23837) (cfde36d)
  • compiler: generate core-compliant hostBindings property (#24087) (01b5acd), closes #24013
  • compiler: handle undefined annotation metadata (#23349) (ca776c5)
  • compiler-cli: Use typescript to resolve modules for metadata (#22856) (0d5f2d3)
  • compiler-cli: don't rely on incompatible TS method (#23550) (b1f040f)
  • core: stop reusing provider definitions across NgModuleRef instances (#25022) (6b859da), closes #25018
  • core: mark NgModule as not the root if APP_ROOT is set to false (#24814) (1089261)
  • core: use addCustomEqualityTester instead of overriding toEqual (#22983) (0922228), closes #22939
  • core: Injector correctly honors the @Self flag (#24520) (ccbda9d)
  • core: avoid eager providers re-initialization (#23559) (0c6dc45)
  • core: call ngOnDestroy on all services that have it (#23755) (fc03427), closes #22466 #22240 #14818
  • elements: always check to create strategy (#23825) (b1cda36)
  • elements: prevent closure renaming of platform properties (#23843) (d4b8b24)
  • forms: properly handle special properties in FormGroup.get (#22249) (9367e91), closes #17195
  • language-service: do not overwrite native Reflect (#24299) (6881404), closes #21420
  • platform-browser: add missing deps for HammerGesturesPlugin (#24682) (13d60ea)
  • platform-browser: mark Meta and Title services as tree shakable providers (#24815) (197387d)
  • platform-browser: workaround wrong import path generated by ngc for DOCUMENT (#24830) (7d27ecc)
  • platform-server: avoid clash between server and client style encapsulation attributes (#24158) (b96a3c8)
  • platform-server: avoid dependency cycle when using http interceptor (#24229) (60aa943), closes #23023
  • platform-server: don't reflect innerHTML property to attribute (#24213) (6a663a4), closes #19278
  • platform-server: provide Domino DOM types globally (#24116) (c73196e), closes #23280 #23133
  • router: Fix _lastPathIndex in deeply nested empty paths (#22394) (968f153)
  • router: add ability to recover from malformed url (#23283) (86d254d), closes #21468
  • router: fix lazy loading of aux routes (#23459) (5731d07), closes #10981
  • router: avoid freezing queryParams in-place (#22663) (89f64e5), closes #22617
  • router: cache route handle if found (#22475) (4cfa571), closes #22474
  • router: correct the segment parsing so it won't break on ampersand (#23684) (553a680)
  • service-worker: don't include sourceMappingURL in ngsw-worker (#24877) (8620373), closes #23596
  • service-worker: avoid network requests when looking up hashed resources in cache (#24127) (52d43a9)
  • service-worker: fix SwPush.unsubscribe() (#24162) (3ed2d75), closes #24095
  • service-worker: check platformBrowser before accessing navigator.serviceWorker (#21231) (0bdd30e)
  • service-worker: correctly handle requests with empty clientId (#23625) (e0ed59e), closes #23526
  • service-worker: deprecate versionedFiles in asset-group resources (#23584) (1d378e2)

Features

build

Angular Labs (experimental feature) breaking change

  • bazel: Use of @angular/bazel rules now requires calling ng_setup_workspace() in your WORKSPACE file.

For example:

local_repository(
    name = "angular",
    path = "node_modules/@angular/bazel",
)

load("@angular//:index.bzl", "ng_setup_workspace")

ng_setup_workspace()
<!-- CHANGELOG SPLIT MARKER -->

<a name="6.0.9"></a>

6.0.9 (2018-07-11)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="6.0.8"></a>

6.0.8 (2018-07-11)

Bug Fixes

Features

<!-- CHANGELOG SPLIT MARKER -->

<a name="6.0.7"></a>

6.0.7 (2018-06-27)

Bug Fixes

  • animations: set animations styles properly on platform-server (#24624) (0b356d4)
  • common: use correct ICU plural for locale mk (#24659) (64a8584)
<!-- CHANGELOG SPLIT MARKER -->

<a name="6.0.6"></a>

6.0.6 (2018-06-20)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="6.0.5"></a>

6.0.5 (2018-06-13)

<!-- CHANGELOG SPLIT MARKER -->

<a name="6.0.4"></a>

6.0.4 (2018-06-06)

Bug Fixes

  • animations: Fix browser detection logic (#24188) (c9eb491)
  • animations: retain trigger-state for nodes that are moved around (#24238) (19deca1)
  • forms: properly handle special properties in FormGroup.get (#22249) (dc3e8aa), closes #17195
  • platform-server: avoid clash between server and client style encapsulation attributes (#24158) (e9f2203)
  • platform-server: avoid dependency cycle when using http interceptor (#24229) (2991b1b), closes #23023
  • platform-server: don't reflect innerHTML property to attibute (#24213) (c17098d), closes #19278
  • platform-server: provide Domino DOM types globally (#24116) (906b3ec), closes #23280 #23133
<!-- CHANGELOG SPLIT MARKER -->

<a name="6.0.3"></a>

6.0.3 (2018-05-22)

Bug Fixes

  • service-worker: check platformBrowser before accessing navigator.serviceWorker (#21231) (0ee5b7e)
<!-- CHANGELOG SPLIT MARKER -->

<a name="6.0.2"></a>

6.0.2 (2018-05-15)

Bug Fixes

  • animations: do not throw errors when a destroyed component is animated (#23836) (752b83a)
  • service-worker: deprecate versionedFiles in asset-group resources (#23584) (c6b618d)
<!-- CHANGELOG SPLIT MARKER -->

<a name="6.0.1"></a>

6.0.1 (2018-05-11)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="6.0.0"></a>

6.0.0 (2018-05-03)

Blog post "Version 6 of Angular Now Available".

Release Highlights & Update instructions

Angular v6 is the first release of Angular that unifies the Framework, Material and CLI.

To learn about the release highlights and our new CLI-powered update workflow for your projects please check out the v6 release announcement.

Dependency updates

  • @angular/core now depends on
    • TypeScript 2.7
    • RxJS 6.0.0
    • tslib 1.9.0
  • @angular/platform-server now depends on Domino 2.0

Small Features

  • animations: only use the WA-polyfill alongside AnimationBuilder (#22143) (b2f366b), closes #17496
  • animations: expose element and params within transition matchers (#22693) (58b94e6)
  • common: better error message when non-template element used in NgIf (#22274) (67cf11d), closes #16410
  • common: export functions to format numbers, percents, currencies & dates (#22423) (4180912), closes #20536
  • compiler: lower @NgModule ids if needed (#23031) (bd024c0)
  • compiler: implement "enableIvy" compiler option (#21427) (64d16de)
  • compiler: mark @NgModules in provider lists for identification at runtime (#22005) (2d5e7d1)
  • compiler: add support for marker tags in xliff serializers (#21250) (f74130c), closes #21078
  • compiler: support for singleline, multiline & jsdoc comments (#22715) (3b167be)
  • compiler-cli: lower loadChildren fields to allow dynamic module paths (#23088) (550433a)
  • compiler-cli: check unvalidated combination of ngc and TypeScript (#22293) (3ceee99), closes #20669
  • compiler-cli: reflect static methods added to classes in metadata (#21926) (eb8ddd2)
  • compiler-cli: Check unvalidated combination of ngc and TypeScript (#22293) (3ceee99), closes #20669
  • compiler-cli: add resource inlining to ngc (#22615) (b5be18f)
  • compiler-cli: require node 8 as runtime engine (#22669) (c602563)
  • core: add binding name to content changed error (#20352) (d3bf54b)
  • core: optional generic type for ElementRef (#20765) (d3d9aac), closes #13139
  • core: set preserveWhitespaces to false by default (#22046) (f1a0632), closes #22027
  • core: support metadata reflection for native class types (#22356) (5c89d6b), closes #21731
  • core: change @Injectable() to support tree-shakeable tokens (#22005) (235a235)
  • core: support metadata reflection for native class types (#22356) (b7544cc), closes #21731
  • core: allow direct scoping of @Injectables to the root injector (#22185) (7ac34e4)
  • core: add task tracking to Testability (#16863) (37fedd0)
  • forms: handle string with and without line boundary on pattern validator (#19256) (54bf179)
  • forms: multiple validators for array method (#20766) (941e88f), closes #20665
  • forms: allow markAsPending to emit events (#20212) (e86b64b), closes #17958
  • platform-browser: add token marking which the type of animation module nearest in the injector tree (#23075) (b551f84)
  • platform-server: bump Domino to v2.0 (#22411) (d3827a0)
  • router: add navigationSource and restoredState to NavigationStart event (#21728) (c40ae7f)
  • service-worker: add support for configuring navigations URLs (#23339) (08325aa), closes #20404
  • service-worker: add helper script which will uninstall SW (#21863) (b10540a)

Bug Fixes

  • animations: report correct totalTime value even during noOp animations (#22225) (e1bf067)
  • animations: avoid animation insertions during router back/refresh (#21977) (f88fba0), closes #19712
  • animations: treat numeric state name values as strings (#22923) (e5e1b0d)
  • animations: fix increment/decrement aliases example (#18323) (d2aa8ac)
  • common: NgClass should properly take className changes into account (#21937) (4a42669), closes #21932
  • common: fix the titlecase pipe (#22600) (7966744)
  • common: add locale currency values (#21783) (420cc7a), closes #20385
  • common: round currencies based on decimal digits in CurrencyPipe (#21783) (44154e7), closes #10189
  • common: weaken AsyncPipe transform signature (#22169) (be59c3a)
  • common: http testing library should not convert null to a string when flushing a mock request (#21417) (8b14488), closes #20744
  • common: correct mapping of Observable methods (#20518) (2639b4b), closes #20516
  • common: then and else template might be set to null (#22298) (8115edc)
  • common: A null value should remove the style on IE (#21679) (7d49443), closes #21064
  • common: fallback to last defined value for named date and time formats (#21299) (879756d), closes #21282
  • common: set correct timezone for ISO8601 dates in Safari (#21506) (05208b8), closes #21491
  • compiler: fix ICU select messages to use male/female/other (#21713) (cb5090c)
  • compiler: avoid a crash in ngc-wrapped. (#23468) (0bc8443)
  • compiler: handle undefined annotation metadata (#23349) (b9431e8)
  • compiler: don't typecheck all inputs (#22899) (838a610)
  • compiler: fix support for html-like text in translatable attributes (#23053) (28058b7)
  • compiler: take quoting into account when determining if object literals can be shared (#22942) (d98e9e7)
  • compiler: do not emit line/char in ngsummary files. (#22840) (5c387a7)
  • compiler: make unary plus operator consistent to JavaScript (#22154) (72f8abd), closes #22089
  • compiler: allow tree-shakeable injectables to depend on string tokens (#22376) (dd53447)
  • compiler: don't strip /*# sourceURL ... */ (#16088) (5f681f9)
  • compiler: cache external reference resolution (#21359) (e3e2fc0)
  • compiler: make .ngsummary.json files idempotent (#21448) (e64b1e9)
  • compiler-cli: shorten resolved module name in fileNameToModuleName to npm package name for typings (#23231) (6199ea5)
  • compiler-cli: strictMetadataEmit should not break on non-compliant libraries (#23275) (5814355), closes #22210
  • compiler-cli: flat module index metadata should be transformed (#23129) (f99cb5c)
  • compiler-cli: use numeric comparison for TypeScript version (#22705) (193737a), closes #22593
  • compiler-cli: disableTypeScriptVersionCheck should be applied even for older tsc versions (#22669) (3f70aba)
  • compiler-cli: emit correct css string escape sequences (#22776) (6e5e819)
  • compiler-cli: do not fold errors past calls in the collector (#21708) (dd86790)
  • compiler-cli: do not lower expressions in non-modules (#21649) (7f93aad)
  • core: fix #20582, don't need to wrap zone in location change listener (#20640) (f791e9f)
  • core: fix proper propagation of subscriptions in EventEmitter (#22016) (e81606c), closes #21999
  • core: fix chained http call (#20924) (7e3f9a4), closes #20921
  • core: should check Zone existence when scheduleMicroTask (#20656) (3a86940)
  • core: avoid eager providers re-initialization (#23559) (697b6c0)
  • core: add stacktrace in log when error during cleanup component in TestBed (#22162) (16d1700)
  • core: ensure initial value of QueryList length (#21980) (#21982) (e56de10), closes #21980
  • core: use appropriate inert document strategy for Firefox & Safari (#17019) (a751649)
  • core: properly handle function without prototype in reflector (#22284) (a7ebf5a), closes #19978
  • core: require factory to be provided for shakeable InjectionToken (#22207) (f755db7), closes #22205
  • core: remove core animation import symbols (#22692) (f5a98f4)
  • forms: improve error message for invalid value accessors (#22731) (23cc3ef)
  • forms: make Validators.email support optional controls (#20869) (140e7c0)
  • forms: prevent event emission on enable/disable when emitEvent is false (#12366) (#21018) (0bcfae7)
  • forms: set state before emitting a value from ngModelChange (#21514) (9744a1c), closes #21513
  • forms: publish missing types (#19941) (2707012)
  • forms: set state before emitting a value from ngModelChange (#21514) (3e6a86f), closes #21513
  • language-service: Clear caches when program changes (#21337) (43e1520), closes #19405
  • platform-browser: add @Injectable where it was missing (#22005) (0a1a397)
  • platform-browser: support 0/false/null values in transfer_state (#22179) (6435ecd)
  • platform-browser: do not throw error when Hammer.js not loaded (#22257) (991300b), closes #16992
  • platform-browser: fix #19604, can config hammerOptions (#21979) (1d571b2)
  • platform-server: require node v8+ (#23331) (bbfa1d3)
  • platform-server: generate correct stylings for camel case names (#22263) (40ba009), closes #19235
  • platform-server: add styles to elements correctly (#22527) (cd2ebd2)
  • router: cache route handle if found (#22475) (d8de648), closes #22474
  • router: don't use spread operator to workaround an issue in closure compiler (#22884) (e6c731f)
  • router: make locationSyncBootstrapListener public due to change in output after TS 2.7 update in #22669 (#22896) (623d769)
  • router: correct over-encoding of URL fragment (#22687) (0bf6fa5)
  • router: don't mutate route configs (#22358) (45eff4c), closes #22203
  • router: fix URL serialization so special characters are only encoded where needed (#22337) (094666d), closes #10280
  • router: don't use ParamsInheritanceStrategy in declarations (#21574) (925e654), closes #21456
  • service-worker: add badge to NOTIFICATION_OPTION_NAMES (#23241) (fb59b2d), closes #23196
  • service-worker: let * match 0 characters in globs (#23339) (6c2c958)
  • service-worker: do not enter degraded mode when offline (#22883) (9e9b8dd), closes #21636
  • service-worker: fix LruList bugs (#22769) (8c2a578), closes #22218 #22768
  • service-worker: ignore invalid only-if-cached requests (#22883) (d9dc46e), closes #22362
  • service-worker: properly handle invalid hashes in all scenarios (#21288) (3951098)
  • upgrade: correctly handle downgraded OnPush components (#22209) (ad9ce5c), closes #14286
  • upgrade: propagate return value of resumeBootstrap (#22754) (a2330ff), closes #22723
  • upgrade: two-way binding and listening for event (#22772) (2b3de63), closes #22734
  • upgrade: correctly destroy nested downgraded component (#22400) (8a85888), closes #22392
  • upgrade: correctly handle = bindings in @angular/upgrade (#22167) (f089bf5)
  • upgrade: fix empty transclusion content with AngularJS@>=1.5.8 (#22167) (13ab91e), closes #22175

Possible Breaking Changes

  • animations: When animation is triggered within a disabled zone, the associated event (which an instance of AnimationEvent) will no longer report the totalTime as 0 (it will emit the actual time of the animation).

    To detect if an animation event is reporting a disabled animation then the event.disabled property can be used instead.

  • compiler: The <template> tag was deprecated in Angular v4 to avoid collisions (i.e. when using Web Components).

    This change removes support for <template>. <ng-template> should be used instead.

    BEFORE:

    <!-- html template -->
    <template>some template content</template>
    
    # tsconfig.json
    {
      # ...
      "angularCompilerOptions": {
        # ...
        # This option is no more supported and will have no effect
        "enableLegacyTemplate": [true|false]
      }
    }
    

    AFTER:

    <!-- html template -->
    <ng-template>some template content</ng-template>
    
  • core: it is no longer possible to import animation-related functions from @angular/core. All animation symbols must now be imported from @angular/animations.

  • forms: - AbstractControl#statusChanges now emits an event of 'PENDING' when you call AbstractControl#markAsPending

    • Previously it did not emit an event when you called markAsPending
    • To migrate you would need to ensure that if you are filtering or checking events from statusChanges that you account for the new event when calling markAsPending
  • forms: ngModelChange is now emitted after the value/validity is updated on its control.

    Previously, ngModelChange was emitted before its underlying control was updated. This was fine if you passed through the value directly through the $event keyword, e.g.

    <input [(ngModel)]="name" (ngModelChange)="onChange($event)">
    
    onChange(value) {
       console.log(value);               // would log updated value
    }
    

    However, if you had a handler for the ngModelChange event that checked the value through the control, you would get the old value rather than the updated value. e.g:

    <input #modelDir="ngModel" [(ngModel)]="name" (ngModelChange)="onChange(modelDir)">
    
    onChange(ngModel: NgModel) {
      console.log(ngModel.value);        // would log old value, not updated value
    }
    

    Now the value and validity will be updated before the ngModelChange event is emitted, so the same setup will log the updated value.

    onChange(ngModel: NgModel) {
       console.log(ngModel.value);       // will log updated value
    }
    

    We think this order will be less confusing when the control is checked directly. You will only need to update your app if it has relied on this bug to keep track of the old control value. If that is the case, you should be able to track the old value directly by saving it on your component.

<!-- CHANGELOG SPLIT MARKER -->

<a name="5.2.10"></a>

5.2.10 (2018-04-16)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="4.4.7"></a>

4.4.7 (2018-04-16)

Bug Fixes

  • core: use appropriate inert document strategy for Firefox & Safari (#22077) (2c5cf19)
<!-- CHANGELOG SPLIT MARKER -->

<a name="5.2.9"></a>

5.2.9 (2018-03-14)

Bug Fixes

  • platform-server: add styles to elements correctly (#22527) (fc6dfc2)
  • router: correct over-encoding of URL fragment (#22687) (86517f2)
<!-- CHANGELOG SPLIT MARKER -->

<a name="5.2.8"></a>

5.2.8 (2018-03-07)

Bug Fixes

  • router: fix URL serialization so special characters are only encoded where needed (#22337) (789a47e), closes #10280
<!-- CHANGELOG SPLIT MARKER -->

<a name="5.2.7"></a>

5.2.7 (2018-02-28)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="5.2.6"></a>

5.2.6 (2018-02-22)

Bug Fixes

  • common: correct mapping of Observable methods (#20518) (ce5e8fa), closes #20516
  • common: then and else template might be set to null (#22298) (af6a056)
  • compiler-cli: add missing entry point to package, update tsickle (#22295) (c5418c7)
  • core: properly handle function without prototype in reflector (#22284) (5ec38f2), closes #19978
  • core: support metadata reflection for native class types (#22356) (ee91de9), closes #21731
<!-- CHANGELOG SPLIT MARKER -->

<a name="5.2.5"></a>

5.2.5 (2018-02-14)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="5.2.4"></a>

5.2.4 (2018-02-07)

Bug Fixes

  • common: don't convert null to a string when flushing a mock request (#21417) (c4fb696), closes #20744
  • core: fix #20582, don't need to wrap zone in location change listener (#22007) (ce51ea9)
  • core: fix proper propagation of subscriptions in EventEmitter (#22016) (c6645e7), closes #21999
  • core: should check Zone existence when scheduleMicroTask (#20656) (aa9ba7f)
<!-- CHANGELOG SPLIT MARKER -->

<a name="5.2.3"></a>

5.2.3 (2018-01-31)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="5.2.2"></a>

5.2.2 (2018-01-25)

Bug Fixes

  • common: A null value should remove the style on IE (#21679) (c12ea3a), closes #21064
  • common: don't remove special characters when extracting CLDR data (#21626) (a62c186)
  • common: extract plural function from i18n locale data files for TS 2.6 (#21626) (71f9eaa), closes #21608
  • common: fallback to last defined value for named date and time formats (#21299) (982eb7b), closes #21282
  • compiler: add support for marker tags in xliff serializers (#21250) (02352bc), closes #21078
  • compiler: Don't strip /*# sourceURL ... */ (#16088) (de6c644)
  • compiler: fix ICU select messages to use male/female/other (#21713) (8e44577)
  • compiler-cli: do not fold errors past calls in the collector (#21708) (52970c0)
  • compiler-cli: do not lower expressions in non-modules (#21649) (ba4ea82)
  • router: don't use ParamsInheritanceStrategy in declarations (#21574) (8b3fbb5), closes #21456
<!-- CHANGELOG SPLIT MARKER -->

<a name="5.2.1"></a>

5.2.1 (2018-01-17)

Bug Fixes

Features

  • core: add binding name to content changed error (#20352) (4556532)
  • forms: handle string with and without line boundary on pattern validator (#19256) (75f8522)
<!-- CHANGELOG SPLIT MARKER -->

<a name="5.2.0"></a>

5.2.0 (2018-01-10)

Blog post "Angular 5.2 Now Available".

Bug Fixes

  • bazel: Give correct module names for ES6 output (#21320) (9728dce), closes #21022
  • benchpress: forward compat with selenium_webdriver 3.6.0 (#21399) (6040ee3)
  • benchpress: work around missing events from Chrome 63 (#21396) (fa03ae1)
  • common: export currencies via getCurrencySymbol (#20983) (fecf768)

Note: Due to an animation fix back in 5.1.1 (c2b3792) which allows for nested :leave queries to work within animation sequences, all elements that are dynamically inserted (*ngIf, *ngFor, etc…) now contain the special CSS class: “ng-star-inserted”. This may cause failures within unit tests if there are any assertions that match against element.className directly. (An easy fix for this is to match using a regular expression instead of asserting the className string directly.)

<!-- CHANGELOG SPLIT MARKER -->

<a name="5.2.0-rc.0"></a>

5.2.0-rc.0 (2018-01-04)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="5.1.3"></a>

5.1.3 (2018-01-03)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="5.2.0-beta.1"></a>

5.2.0-beta.1 (2017-12-20)

Bug Fixes

  • compiler: generate the correct imports for summary type-check (d91ff17)
  • forms: avoid producing an error with hostBindingTypeCheck (d213a20)

Features

  • compiler: allow ngIf to use the ngIf expression directly as a guard (82bcd83)
  • router: add "paramsInheritanceStrategy" router configuration option (5efea2f), closes #20572
<!-- CHANGELOG SPLIT MARKER -->

<a name="5.1.2"></a>

5.1.2 (2017-12-20)

Bug Fixes

  • common: fix a Closure compilation issue. (267ebf3)
  • compiler: make tsx file aot compatible (756dd34), closes #20555
  • compiler: report an error for recursive module references (ced575f)
  • compiler-cli: do not emit invalid .metadata.json files (a1d4c2d)
  • compiler-cli: do not force type checking on .js files (3b63e16)
  • service-worker: check for updates on navigation (a33182c), closes #20877
  • upgrade: replaces get/setAngularLib with get/setAngularJSGlobal (66cc2fa)
<!-- CHANGELOG SPLIT MARKER -->

<a name="5.2.0-beta.0"></a>

5.2.0-beta.0 (2017-12-13)

Features

<!-- CHANGELOG SPLIT MARKER -->

<a name="5.1.1"></a>

5.1.1 (2017-12-13)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="5.1.0"></a>

5.1.0 (2017-12-06)

Blog post "Angular 5.1 & More Now Available".

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="5.1.0-rc.1"></a>

5.1.0-rc.1 (2017-12-01)

Bug Fixes

  • compiler-cli: propagate ts.SourceFile moduleName into metadata (f841fbe)
  • service-worker: allow disabling SW while still using services (65f4fad)
  • service-worker: don't crash if SW not supported (b9a91a5)
  • service-worker: send initialization signal from the application (3fbcde9)
  • service-worker: use relative path for ngsw.json (f582620)
<!-- CHANGELOG SPLIT MARKER -->

<a name="5.0.5"></a>

5.0.5 (2017-12-01)

Bug Fixes

  • compiler-cli: propagate ts.SourceFile moduleName into metadata (a2ff4ab)
  • service-worker: allow disabling SW while still using services (f99335b)
  • service-worker: don't crash if SW not supported (ee37d4b)
  • service-worker: send initialization signal from the application (6bf07b4)
  • service-worker: use relative path for ngsw.json (56c98f7)
<!-- CHANGELOG SPLIT MARKER -->

<a name="5.1.0-rc.0"></a>

5.1.0-rc.0 (2017-12-01)

Bug Fixes

Features

  • common: add locale id parameter to registerLocaleData (#20623) (24bf3e2)
  • compiler-cli: improve error messages produced during structural errors (#20459) (8ecda94)
<!-- CHANGELOG SPLIT MARKER -->

<a name="5.0.4"></a>

5.0.4 (2017-12-01)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="5.1.0-beta.2"></a>

5.1.0-beta.2 (2017-11-22)

Bug Fixes

  • animations: always fire inner trigger callbacks even if blocked by parent animations (#19753) (0e012c9), closes #19100
  • animations: always fire start and done callbacks in order for noop animations (#20570) (ffb6dbe)
  • animations: validate against trigger() names that use @ symbols (#20326) (1861e41)
  • benchpress: Allow ignoring navigationStart events in perflog metric. (#20312) (717ac5a)
  • common: return ISubscription from Location.subscribe() (#20429) (437a044), closes #20406
  • compiler: emit correct type-check-blocks with TemplateRef's (#20463) (68b53c0)
  • compiler: support event bindings in fullTemplateTypeCheck (#20490) (4ed0439)
  • core: fix #20532, should be able to cancel listener from mixed zone (#20538) (a740e4f)
  • core: should support event.stopImmediatePropagation (#20469) (997336b)
  • forms: updateOn should check if change occurred (#20358) (69c53c3), closes #20259

Features

<!-- CHANGELOG SPLIT MARKER -->

<a name="5.0.3"></a>

5.0.3 (2017-11-22)

Bug Fixes

  • animations: always fire inner trigger callbacks even if blocked by parent animations (#19753) (814f062), closes #19100
  • animations: validate against trigger() names that use @ symbols (#20326) (15795d0)
  • benchpress: Allow ignoring navigationStart events in perflog metric. (#20312) (9ca6ee9)
  • common: return ISubscription from Location.subscribe() (#20429) (bc904b1), closes #20406
  • compiler: emit correct type-check-blocks with TemplateRef's (#20463) (81f1d42)
  • compiler: support event bindings in fullTemplateTypeCheck (#20490) (b53ead4)
  • core: fix #20532, should be able to cancel listener from mixed zone (#20538) (0feba49)
  • core: should support event.stopImmediatePropagation (#20469) (82aace6)
  • forms: updateOn should check if change occurred (#20358) (f9f2c20), closes #20259
<!-- CHANGELOG SPLIT MARKER -->

<a name="5.1.0-beta.1"></a>

5.1.0-beta.1 (2017-11-16)

Bug Fixes

  • animations: always fire inner trigger callbacks even if blocked by parent animations (#19753) (d47b2a6), closes #19100
  • animations: ensure final state() styles are applied within @.disabled animations (#20267) (20aafff), closes #20266
  • bazel: adjust mock of tsconfig for ng_module rule unit test (#20175) (c2a24b4)
  • compiler: fix corner cases in shadow CSS (c32f5fd)
  • compiler: recognize @NgModule with a redundant @Injectable (#20320) (c33a576)
  • compiler: show explanatory text in template errors (#20313) (3257fcd)
  • core: ensure init lifecycle events are called (#20258) (24cf8b3)
  • language-service: pass compilerOptions.paths to ReflectorHost (#20222) (eb8013e)
  • router: 'merge' queryParamHandling strategy should be able to remove query params (#19733) (a622e19), closes #18463 #17202
  • Update test code to type-check under TS 2.5 (#20175) (5ec1717)

Features

Note, if you do Injector.get(Token) where Token has static members, you'll run into https://github.com/Microsoft/TypeScript/issues/20102 where the returned type is {} rather than Token. Use Injector.get<Token>(Token) to work around.

<!-- CHANGELOG SPLIT MARKER -->

<a name="5.0.2"></a>

5.0.2 (2017-11-16)

Bug Fixes

  • animations: ensure final state() styles are applied within @.disabled animations (#20267) (8b1a6b1), closes #20266
  • compiler: fix corner cases in shadow CSS (5d1cd57)
  • compiler: recognize @NgModule with a redundant @Injectable (#20320) (4cc6abb)
  • compiler: show explanatory text in template errors (#20313) (424a323)
  • router: 'merge' queryParamHandling strategy should be able to remove query params (#19733) (b732fb9), closes #18463 #17202
<!-- CHANGELOG SPLIT MARKER -->

<a name="5.1.0-beta.0"></a>

5.1.0-beta.0 (2017-11-08)

Features

  • compiler: introduce TestBed.overrideTemplateUsingTestingModule (a460066), closes #19815
<!-- CHANGELOG SPLIT MARKER -->

<a name="5.0.1"></a>

5.0.1 (2017-11-08)

Bug Fixes

  • compiler: don't overwrite missingTranslation's value in JIT (#19952) (799cbb9)
  • compiler: report a reasonable error with invalid metadata (#20062) (da22c48)
  • compiler-cli: don't report emit diagnostics when --noEmitOnError is off (#20063) (8639995)
  • core: __symbol__ should return __zone_symbol__ without zone.js loaded (#19541) (678d1cf)
  • core: should support event.stopImmediatePropagation (#19222) (7083791)
  • platform-browser: support Symbols in custom jasmineToString() method (#19794) (5a6efa7)
<!-- CHANGELOG SPLIT MARKER -->

<a name="5.0.0"></a>

5.0.0 pentagonal-donut (2017-11-01)

Blog post "Version 5.0.0 of Angular Now Available".

Features

  • animations: allow @.disabled property to work without an expression (#18713) (2159342)
  • animations: report errors when invalid CSS properties are detected (#18718) (409688f), closes #18701
  • animations: support :increment and :decrement transition aliases (6f45519)
  • animations: support negative query limit values (86ffacf), closes #19259
  • common: accept object map for HttpClient headers & params (#18490) (1b1d5f1)
  • common: drop use of the Intl API to improve browser support (#18284) (079d884), closes #10809 #9524 #7008 #9324 #7590 #6724 #3429 #17576 #17478 #17319 #17200 #16838 #16624 #16625 #16591 #14131 #12632 #11376 #11187
  • common: generate closure-locale.ts to tree shake locale data (#18907) (4878936)
  • common: mark NgTemplateOutlet API as stable (0a73e8d)
  • compiler-cli: add watch mode to ngc (#18818) (06d01b2)
  • compiler-cli: lower metadata useValue and data literal fields (#18905) (0e64261)
  • compiler: add representation of placeholders to xliff & xmb (b3085e9), closes #17345
  • compiler: enabled strict checking of parameters to an @Injectable (#19412) (dfb8d21)
  • compiler: make .ngsummary.json files portable (2572bf5)
  • compiler: reuse the TypeScript typecheck for template typechecking. (#19152) (996c7c2)
  • compiler: set enableLegacyTemplate to false by default (#18756) (56238fe)
  • compiler: use typescript for resolving resource paths (43226cb)
  • core: Create StaticInjector which does not depend on Reflect polyfill. (d9d00bd)
  • core: support for bootstrap with custom zone (#17672) (344a5ca)
  • forms: add default updateOn values for groups and arrays (#18536) (ff5c58b)
  • forms: add options arg to abstract controls (ebef5e6)
  • forms: add status to AbstractControlDirective (233ef93)
  • forms: add updateOn and ngFormOptions to NgForm (0d45828)
  • forms: add updateOn blur option to FormControls (#18408) (333a708), closes #7113
  • forms: add updateOn submit option to FormControls (#18514) (f69561b)
  • forms: add updateOn support to ngModelOptions (1cfa79c)
  • platform-server: add an API to transfer state from server (#19134) (cfd9ca0)
  • platform-server: provide a DOM implementation on the server (2f2d5f3), closes #14638
  • platform-server: provide a way to hook into renderModule* (#19023) (8dfc3c3)
  • router: add ActivationStart/End events (8f79150)
  • router: add events tracking activation of individual routes (49cd851)
  • service-worker: introduce the @angular/service-worker package (#19274) (d442b68)
  • upgrade: propagate touched state of NgModelController (59c23c7)
  • upgrade: support lazy-loading Angular module into AngularJS app (30e76fc)
  • update angular to support TypeScript 2.4 (ca5aeba)

Performance Improvements

  • animations: reduce size of bundle by removing AST classes (#19539) (d5c9c5f)
  • compiler: don’t emit summaries for jit by default (b086891)
  • compiler: fix perf issue in loading aot summaries in jit compiler (fbc9537)
  • compiler: make the creation of ts.Program faster. (#19275) (edd5f5a)
  • compiler: only emit changed files for incremental compilation (745b59f)
  • compiler: only type check input files when using bazel (#19581) (0b06ea1)
  • compiler: only use tsickle if needed (#19275) (8f95b75)
  • compiler: skip type check and emit in bazel in some cases. (#19646) (a22121d)
  • compiler: speed up loading of summaries for bazel. (#19581) (81167d9)
  • compiler: speed up watch mode (#19275) (6665d76)
  • core: Remove decorator DSL which depends on Reflect (cac130e)
  • core: add option to remove blank text nodes from compiled templates (d2c0d98)
  • core: use native addEventListener for faster rendering. (#18107) (6279e50)
  • core switch angular to use StaticInjector instead of ReflectiveInjector (fcadbf4), closes #18496
  • latest tsickle to tree shake: abstract class methods & interfaces (#18236) (b7a6f52)

BREAKING CHANGES

  • compiler: Angular now requires TypeScript 2.4.x.
  • compiler: split compiler and core. @angular/platform-server now additionally depends on @angular/platform-browser-dynamic as a peer dependency. (#18683) (0cc77b4)
  • platformXXXX() no longer accepts providers which depend on reflection. Specifically the method signature went from Provider[] to StaticProvider[].

Example: Before:

[
  MyClass,
  {provide: ClassA, useClass: SubClassA}
]

After:

[
  {provide: MyClass, deps: [Dep1,...]},
  {provide: ClassA, useClass: SubClassA, deps: [Dep1,...]}
]

NOTE: This only applies to platform creation and providers for the JIT compiler. It does not apply to @Component or @NgModule provides declarations.

Benchpress note: Previously Benchpress also supported reflective provides, which now require static providers.

I18n Changes (@angular/common)

Because of multiple bugs and browser inconsistencies, we have dropped the intl api in favor of data exported from the Unicode Common Locale Data Repository (CLDR). Unfortunately we had to change the i18n pipes (date, number, currency, percent) and there are some breaking changes.

I18n pipes:
  • Breaking change:

    • By default Angular now only contains locale data for the language en-US, if you set the value of LOCALE_ID to another locale, you will have to import new locale data for this language because we don't use the intl API anymore.
  • Features:

    • you don't need to use the intl polyfill for Angular anymore.
    • all i18n pipes now have an additional last parameter locale which allows you to use a specific locale instead of the one defined in the token LOCALE_ID (whose default value is en-US).
    • the new locale data extracted from CLDR are now available to developers as well and can be used through an API (which should be especially useful for library authors).
    • you can still use the old pipes for now, but their names have been changed and they are no longer included in the CommonModule. To use them, you will have to import the DeprecatedI18NPipesModule after the CommonModule (the order is important):
    ts
    import { NgModule } from '@angular/core';
    import { CommonModule, DeprecatedI18NPipesModule } from '@angular/common';
    
    @NgModule({
      imports: [
        CommonModule,
        // import deprecated module after
        DeprecatedI18NPipesModule
      ]
    })
    export class AppModule { }
    

    Don't forget that you will still need to import the intl API polyfill if you want to use those deprecated pipes.

Date pipe
  • Breaking changes:

    • the predefined formats (short, shortTime, shortDate, medium, ...) now use the patterns given by CLDR (like it was in AngularJS) instead of the ones from the intl API. You might notice some changes, e.g. shortDate will be 8/15/17 instead of 8/15/2017 for en-US.
    • the narrow version of eras is now GGGGG instead of G, the format G is now similar to GG and GGG.
    • the narrow version of months is now MMMMM instead of L, the format L is now the short standalone version of months.
    • the narrow version of the week day is now EEEEE instead of E, the format E is now similar to EE and EEE.
    • the timezone z will now fallback to O and output GMT+1 instead of the complete zone name (e.g. Pacific Standard Time), this is because the quantity of data required to have all the zone names in all of the existing locales is too big.
    • the timezone Z will now output the ISO8601 basic format, e.g. +0100, you should now use ZZZZ to get GMT+01:00.
    Field typeFormatExample valuev4v5
    ErasNarrowA for ADGGGGGG
    MonthsNarrowS for SeptemberLMMMMM
    Week dayNarrowM for MondayEEEEEE
    TimezoneLong locationPacific Standard TimezNot available
    TimezoneLong GMTGMT+01:00ZZZZZ
  • Features

    • new predefined formats long, full, longTime, fullTime.
    • the format yyy is now supported, e.g. the year 52 will be 052 and the year 2017 will be 2017.
    • standalone months are now supported with the formats L to LLLLL.
    • week of the year is now supported with the formats w and ww, e.g. weeks 5 and 05.
    • week of the month is now supported with the format W, e.g. week 3.
    • fractional seconds are now supported with the format S to SSS.
    • day periods for AM/PM now supports additional formats aa, aaa, aaaa and aaaaa. The formats a to aaa are similar, while aaaa is the wide version if available (e.g. ante meridiem for am), or equivalent to a otherwise, and aaaaa is the narrow version (e.g. a for am).
    • extra day periods are now supported with the formats b to bbbbb (and B to BBBBB for the standalone equivalents), e.g. morning, noon, afternoon, ....
    • the short non-localized timezones are now available with the format O to OOOO. The formats O to OOO will output GMT+1 while the format OOOO will be GMT+01:00.
    • the ISO8601 basic time zones are now available with the formats Z to ZZZZZ. The formats Z to ZZZ will output +0100, while the format ZZZZ will be GMT+01:00 and ZZZZZ will be +01:00.
  • Bug fixes

    • the date pipe will now work exactly the same across all browsers, which will fix a lot of bugs for safari and IE.
    • eras can now be used on their own without the date, e.g. the format GG will be AD instead of 8 15, 2017 AD.
Currency pipe
  • Breaking change:
    • the default value for symbolDisplay is now symbol instead of code. This means that by default you will see $4.99 for en-US instead of USD4.99 previously.
  • Deprecation:
    • the second parameter of the currency pipe (symbolDisplay) is no longer a boolean, it now takes the values code, symbol or symbol-narrow. A boolean value is still valid for now, but it is deprecated and it will print a warning message in the console.
  • Features:
    • you can now choose between code, symbol or symbol-narrow which gives you access to more options for some currencies (e.g. the canadian dollar with the code CAD has the symbol CA$ and the symbol-narrow $).
Percent pipe
  • Breaking change
    • if you don't specify the number of digits to round to, the local format will be used (and it usually rounds numbers to 0 digits, instead of not rounding previously), e.g. {{ 3.141592 | percent }} will output 314% for the locale en-US instead of 314.1592% previously.

Deprecated code

  • compiler: The method ngGetContentSelectors() has been removed as it was deprecated since v4. Use ComponentFactory.ngContentSelectors instead.
  • compiler: the compiler option enableLegacyTemplate is now disabled by default as the <template> element was deprecated since v4. Use <ng-template> instead. The option enableLegacyTemplate and the <template> element will both be removed in Angular v6.
  • compiler: the option useDebug for the compiler has been removed as it had no effect and was deprecated since v4. (#18778) (499d05d)
  • compiler: deprecate i18n comments in favor of ng-container (#18998) (66a5dab)
  • common: NgFor has been removed as it was deprecated since v4. Use NgForOf instead. This does not impact the use of *ngFor in your templates. (#18758) (ec56760)
  • common: NgTemplateOutlet#ngOutletContext has been removed as it was deprecated since v4. Use NgTemplateOutlet#ngTemplateOutletContext instead. (#18780) (7522987)
  • core: ErrorHandler no longer takes a parameter as it was not used and deprecated since v4. (#18759) (8f41326)
  • core: ReflectiveInjector is now deprecated. Use Injector.create as a replacement.
  • core: Testability#findBindings has been removed as it was deprecated since v4. Use Testability#findProviders instead. (#18782) (f2a2a6b)
  • core: DebugNode#source has been removed as it was deprecated since v4. (#18779) (d61b902)
  • core: OpaqueToken has been removed as it was deprecated since v4. Use InjectionToken instead. (#18971) (3c4eef8)
  • core: DifferFactory.create no longer takes ChangeDetectionRef as a first argument as it was not used and deprecated since v4. (#18757) (be9713c)
  • core: TrackByFn has been removed because it was deprecated since v4. Use TrackByFunction instead. (#18757) (596e9f4)
  • http: deprecate @angular/http in favor of @angular/common/http (#18906) (72c7b6e)
  • router: RouterOutlet properties locationInjector and locationFactoryResolver have been removed as they were deprecated since v4. (#18781) (d1c4a94, a9ef858)
  • router: the values true, false, legacy_enabled and legacy_disabled for the router parameter initialNavigation have been removed as they were deprecated. Use enabled or disabled instead. (#18781) (d76761b)
  • platform-browser: NgProbeToken has been removed from @angular/platform-browser as it was deprecated since v4. Import it from @angular/core instead. (#18760) (d7f42bf)
  • platform-webworker: PRIMITIVE has been removed as it was deprecated since v4. Use SerializerTypes.PRIMITIVE instead. (#18761) (a56468c)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.4.6"></a>

4.4.6 (2017-10-18)

Bug Fixes

  • animations: properly support boolean-based transitions and state changes (#19672) (f983a6c), closes #9396 #12337
  • common: attempt to JSON.parse errors for JSON responses (#19773) (269f5ac)
  • router: RouterLinkActive should update its state right after checking the children (53a807a), closes #18983

Performance Improvements

  • animations: reduce size of bundle by removing AST classes (#19673) (76d2496)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.4.5"></a>

4.4.5 (2017-10-12)

Bug Fixes

  • compiler: TestBed.overrideProvider should keep imported NgModules eager (#19624) (734378c)
  • compiler: correctly instantiate eager providers that are used via Injector.get (#19558) (e292548), closes #15501
  • compiler: disallow references for select and index evaluation (95f3b1d)
  • core: make dynamic & inline code checking behave the same (#19189) (6c66031)
  • platform-browser: support customEqualityTesters when overriding Jasmine toEqual (cc8ae32)
  • tsc-wrapped: don't rewrite imports when annotating for closure (#19579) (c9f8718)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.4.4"></a>

4.4.4 (2017-09-28)

Bug Fixes

  • animations: support negative query limit value (#19419) (bc81fbd), closes #19232
  • compiler: correctly map error message locations (#19424) (c3b39ba)
  • compiler: do not consider a reference with members as a reference (#19466) (7fc2dce)
  • compiler: skip   when trimming / removing whitespaces (#19310) (c7aa8a1), closes #19304
  • tsc-wrapped: add metadata for type declarations (#19040) (ae52851)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.4.3"></a>

4.4.3 (2017-09-19)

Bug Fixes

  • tsc-wrapped: deduplicate metadata only when the module is the same (#19261) (0371538), closes #19219
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.4.2"></a>

4.4.2 (2017-09-18)

Bug Fixes

  • platform-server: fix for packaging issues #19250
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.4.1"></a>

4.4.1 (2017-09-15)

Bug Fixes

  • animations: do not leak DOM nodes/styling for host triggered animations (#18853) (1cc3fe2), closes #18606
  • common: fix improper packaging for @angular/common/http (#18613) (a203a95)
  • common: fix XSSI prefix stripping by using JSON.parse always (#18466) (8821723), closes #18396 #18453
  • compiler: normalize the locale name (#18963) (497e017)
  • core: complete EventEmitter in QueryList on component destroy (#18902) (7d137d7), closes #18741
  • tsc-wrapped: deduplicate metadata for re-exported modules (48ae1a6)
  • tsc-wrapped: fix metadata symbol reference (f6a7183)
  • upgrade: remove code setting id attribute. (#19182) (b20c5d2), closes #18446

Features

  • compiler: allow multiple exportAs names (#18723) (7ec28fe)
  • core: add option to remove blank text nodes from compiled templates (#18823) (b8b551c)

Note: the 4.4.0 release on npm accidentally glitched-out midway, so we cut 4.4.1 instead. oops :-)

<!-- CHANGELOG SPLIT MARKER -->

<a name="4.3.6"></a>

4.3.6 (2017-08-23)

Bug Fixes

  • animations: ensure animations are disabled on the element containing the @.disabled flag (#18714) (5d68c83)
  • animations: make sure @.disabled respects disabled parent/sub animation sequences (#18715) (c3dcbf9)
  • animations: make sure animation cancellations respect AUTO style values (#18787) (9a754f9), closes #17450
  • animations: resolve error when using AnimationBuilder with platform-server (#18642) (f9b2905), closes #18635
  • animations: restore auto-style support for removed DOM nodes (#18787) (e1f45a3)
  • core: correct order in ContentChildren query result (#18326) (fec3b1a), closes #16568
  • core: make sure onStable runs in the right zone (#18706) (ee5591d)

Features

  • animations: allow @.disabled property to work without an expression (#18713) (ac58914)
  • common: add an empty DeprecatedI18NPipesModule module (793f31b)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.3.5"></a>

4.3.5 (2017-08-16)

Bug Fixes

  • core: forbid destroyed views to be inserted or moved in VC (972538b), closes #18615
  • forms: re-assigning options should not clear select (a1624f2), closes #18330
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.3.4"></a>

4.3.4 (2017-08-10)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="4.3.3"></a>

4.3.3 (2017-08-02)

Bug Fixes

  • compiler: fix for element needing implicit parent placed in top-level ng-container (f5cbc2e), closes #18314
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.3.2"></a>

4.3.2 (2017-07-26)

Bug Fixes

  • animations: export BrowserModule as apart of BrowserAnimationsModule (#18263) (cbeb197)
  • compiler: add equiv & disp attributes to Xliff2 ICU placeholders (#18283) (a084619), closes #17344
  • compiler: allow numbers for ICU message cases in lexer (#18095) (a8ac77b), closes #17799
  • core: invoke error handler outside of the Angular Zone (#18269) (a1bb9c2), closes #17073 #7774
  • platform-server: don't clobber parse5 properties when setting (#18237) (97135e8), closes #17050
  • router: child CanActivate guard should wait for parent to complete (#18110) (b9e32c8), closes #15670
  • router: should throw when lazy loaded module doesn't define any routes (#15001) (be49e0e), closes #14596
  • upgrade: throw error if trying to get injector before setting (#18209) (1f106d7)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.3.1"></a>

4.3.1 (2017-07-19)

Bug Fixes

  • animations: always camelcase style property names that contain auto styles (383d896), closes #17938
  • animations: capture cancelled animation styles within grouped animations (333ffd8), closes #17170
  • animations: do not crash animations if a nested component fires CD during CD (4c1f32b), closes #18193
  • animations: make sure @.disabled works in non-animation components (a5c4bb5)
  • common: send flushed body as error instead of null (17b7bc3), closes #18181
  • compiler: ensure jit external id arguments names are unique (4671168)
  • compiler-cli: don't generate empty <target/> when extracting xliff (f0476fc), closes #15754
  • platform-server: provide XhrFactory for HttpClient (4ce29f3)
  • router: canDeactivate guards should run from bottom to top (1ac78bf), closes #15657
  • router: should navigate to the same url when config changes (4340bea), closes #15535
  • router: should run resolvers for the same route concurrently (ec89f37), closes #14279
  • router: terminal route in custom matcher (5d275e9)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.3.0"></a>

4.3.0 (2017-07-14)

Blog post "Angular 4.3 Now Available".

Bug Fixes

  • animations: do not delay style() values before a stagger() runs (34f3832), closes #17412
  • animations: do not remove container nodes when children are queried by a parent animation (d699c35), closes #17746
  • animations: do not validate style overlap errors in different transitions (f2ee1dc)
  • animations: properly collect :enter nodes that exist within multi-level DOM trees (40f77cb), closes #17632
  • animations: compute removal node height correctly (185075d)
  • animations: do not treat a 0 animation state as void (451257a)
  • animations: remove duplicate license header (e096a85)
  • common/http: document HttpClient, fixing a few other issues (1855989)
  • common/http: don't guess Content-Type for FormData bodies (#18104) (4f1e4ff), closes #18096
  • common/http: expose reportProgress option on HttpClient API (#18083) (9f28e83)
  • common/http: rename HttpXsrfModule to HttpClientXsrfModule (3ecc5e5)
  • compiler: avoid emitting self importing factories (4352dd2)
  • compiler-cli: find lazy routes in nested module import arrays (8c89cc4)
  • core: add needed closure compiler warning suppression (e80851d)
  • core: argument destructuring sometimes breaks strictNullChecks (c59c390)
  • language-service: infer any ngForOf of type any (f194f18)
  • language-service: rollup tslib into the language service package (4e6be15)
  • router: fix outdated homepage url in NPM package (#17899) (df06e8b)
  • router: update the version placeholder so that it gets replaced during the build (d3c92a3), closes #17403
  • tsc-wrapped: report errors for invalid ast forms (#17994) (ce0f4f0)
  • tsc-wrapped: support as and class expressions (#16904) (45ffe54)
  • tsc-wrapped: skip collecting metadata for default functions (46ddf50)
  • upgrade: bring the dynamic version closer to the static one (11db3bd), closes #16627 #11044

Features

  • animations: support disabling animations for sub elements (8e28382), closes #16483
  • common/http: new HttpClient API (37797e2)
  • common/http: on-by-default XSRF support in HttpClient (#18108) (dd04f09), closes #18100
  • compiler: adds support for quoted object keys in the parser (798947e)
  • compiler: do not evaluate metadata expressions that can use references (#18001) (ddb766e)
  • compiler: update the schema by extracting from latest chrome (#17858) (dd7c113)
  • compiler: add support ::ng-deep (b754e60)
  • compiler-cli: add parameters to ngc main needed by bazel rules (#17885) (c1474f3)
  • compiler-cli: new compiler api and command-line using TypeScript transformers (3097083)
  • core: update zone.js to 0.8.12 (5ac3919)
  • router: add router-level events for GuardsCheck and Resolve (#17601) (8a1a989)
  • upgrade: fix support for directive.link in upgraded components (0193be7)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.2.6"></a>

4.2.6 (2017-07-08)

Bug Fixes

  • animations: ensure :animating queries collect previous animation elements properly (d48b7d3)
  • animations: properly cleanup query artificats when animation construction fails (00de9ff)
  • animations: properly detect state transition changes for object literals (00c9741)
  • animations: properly handle cancelled animation style application (cf57527)
  • compiler: emits quoted keys only if they are quoted in the original template (45ae14c), closes #14292
  • compiler: fix merge error (6307581)
  • compiler: fix types (5ea9b62)
  • compiler: remove i18n markup even if no translations (#17999) (2763577), closes #11042
  • compiler-cli: fix relative source paths on windows for extracted msg (#17915) (991f8ad), closes #16639
  • core: fix re-insertions in the iterable differ (#17891) (a318093), closes #17852
  • language-service: do not crash when hovering over a label definitions (#17974) (2ab9057)
  • language-service: ignore hover of symbols not in the TypeScript program (#17969) (fe09e10)
  • router: encode URLs the same way AngularJS did (closer to spec) (#17890) (8f7cce3), closes #16067
  • router: export missing UrlMatcher and UrlMatchResult types (12a2099), closes #15140
  • tsc-wrapped: emit exports metadata in flat modules (#17893) (ee7d134)
  • upgrade: fix transclusion on upgraded components (#17971) (5337874), closes #13271
  • upgrade: fix transclusion on upgraded components (#17971) (30beb52), closes #13271

Performance Improvements

  • core: refactor NgZone, decrease size by 1.2Kb (#17773) (6d55a80)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.2.5"></a>

4.2.5 (2017-06-29)

Bug Fixes

  • animations: do not delay style() values before a stagger() runs (7559b78), closes #17412
  • animations: do not remove container nodes when children are queried by a parent animation (ec4ae60), closes #17746
  • animations: do not validate style overlap errors in different transitions (6909171)
  • animations: properly collect :enter nodes that exist within multi-level DOM trees (79b6346), closes #17632
  • core: add needed closure compiler warning suppression (f31b0d6)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.2.4"></a>

4.2.4 (2017-06-21)

Bug Fixes

  • compiler: avoid emitting self importing factories (c112232)
  • compiler-cli: find lazy routes in nested module import arrays (59299de)
  • core: argument destructuring sometimes breaks strictNullChecks (77860a0)
  • forms: roll back breaking change with min/max directives (4ab7353), closes #17491
  • language-service: infer any ngForOf of type any (63a5f33)
  • language-service: rollup tslib into the language service package (20eb5cf)
  • router: update the version placeholder so that it gets replaced during the build (7de1ae2), closes #17403
  • tsc-wrapped: skip collecting metadata for default functions (3390648)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.2.3"></a>

4.2.3 (2017-06-16)

Bug Fixes

  • animations: compute removal node height correctly (185075d)
  • animations: do not treat a 0 animation state as void (451257a)
  • animations: remove duplicate license header (b192dd5)
  • forms: temp roll back breaking change with min/max directives (b8c39cd), closes #17491
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.2.2"></a>

4.2.2 (2017-06-12)

Bug Fixes

  • animations: compute removal node height correctly (185075d)
  • animations: do not treat a 0 animation state as void (451257a)
  • animations: properly collect :enter nodes in a partially updated collection (6ca4692), closes #17440
  • compiler: don’t always compile .ngfactory.ts files by default (ed73d4f)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.2.1"></a>

4.2.1 (2017-06-09)

Bug Fixes

  • compiler: don’t write summaries for jit by default (d3a5f1a)
  • http: move destructuring inside {Request,Response}Options ctor (c2d31fb), closes #16663
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.2.0"></a>

4.2.0 salubrious-stratagem (2017-06-08)

Bug Fixes

  • animations: ensure web-animations understands a numeric CSS perspective value (819514a), closes #14007
  • animations: evaluate substitutions on option param values (e9886d7)
  • forms: fix min and max validator behavior on non-numbers (a222c3e)
  • router: opening links in new window (4c32cb9)
  • upgrade: call setInterval outside the Angular zone (269bbe0)

Features

  • compiler-cli: introduce synchronous codegen API (b00b80a)

Performance Improvements

  • animations: do not create a closure each time a node is removed (fe6b39d)
  • animations: only apply :leave flags if animations are set to run (b55adee)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.2.0-rc.2"></a>

4.2.0-rc.2 (2017-06-01)

Bug Fixes

  • animations: always change to desired animation state even if no transition fires (#17025) (665e707), closes #16947
  • animations: do not retain deleted nodes during an non-removal animation (#17153) (068133e), closes #17086
  • common: always use 'other' case for locales with no plural rules (#16990) (535d9da)
  • compiler: enableLegacyTemplate should not be ignored (#17051) (8ffa483), closes #15555
  • router: make remove trailing slash consistent with URL params (c20f60b), closes #16069

Features

  • compiler: emit typescript nodes from an output ast (#16823) (18bf772)
  • compiler-cli: produce template diagnostics error messages (#17125) (230255f)
  • tsc-wrapped: always convert shorthand imports (#16898) (ea8a43d)

Performance Improvements

  • animations: do not place enterId values on elements for querying purposes (#17150) (ad6a57e)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.2.0-rc.1"></a>

4.2.0-rc.1 (2017-05-26)

Bug Fixes

  • animations: repair flicker issues with WA polyfill (#16937) (e7d9fd8), closes #16919 #16918
  • animations: use a lightweight renderer for non-animation components (#17003) (3ab86bd)
  • compiler: compile .ngfactory.ts files even if nobody references them. (#16899) (573b861), closes #16741
  • compiler: do not report type errors for arguments with @Inject (#16222) (27761b4), closes #15424
  • core: make decorators closure safe (#16905) (a80ac0a), closes #16889
  • tsc-wrapped: ignore |null and |undefined when collecting types (#16222) (1651a8f)
  • tsc-wrapped: resolve short-hand literal values to locals (#16873) (11c10b2)

Features

  • compiler: add location note to extracted xliff2 files (#16791) (08dfe91), closes #16531
  • core: update zone.js to 0.8.10 and expose the flush method (#16860) (85d4c4b)
  • tsc-wrapped: support template literals in metadata collection (#16880) (6e41add)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.2.0-rc.0"></a>

4.2.0-rc.0 (2017-05-19)

Bug Fixes

  • animations: make sure reusable animation substitutions work without default params (#16875) (7d9f96a)
  • animations: only require one flushMicrotasks call when testing animations (6cb93c1)
  • compiler: avoid a ...null spread in extraction (#16547) (e0a8376)
  • compiler-cli: allow '==' to compare nullable types (#16731) (d761059)
  • core: detach projected views when a parent view is destroyed (#16592) (f0f6544), closes #15578
  • core: projected views should be dirty checked when the declaring component is dirty checked. (#16592) (fcc91d8), closes #14321
  • http: flatten metadata for @angular/http/testing (9da6340), closes #15521
  • http: honor RequestArgs.search and RequestArgs.params map type (aef5245), closes #15761 #16392
  • http: introduce encodingHint for text() for better ArrayBuffer support (7ae7a84), closes #15932 #16420
  • router: fix redirect to a URL with a param having multiple values (#16376) (5d4b36f), closes #16310

Features

  • animations: introduce a wave of new animation features (16c8167)
  • animations: introduce routable animation support (f1a9e3c)
  • add .ngsummary.ts files to support AOT unit tests (547c363)
  • introduce TestBed.overrideProvider (#16725) (39b92f7)
  • compiler: support a non-null postfix assert (#16672) (b9521b5)
  • core: introduce fixture.whenRenderingDone for testing (#16732) (38c524d)

Performance Improvements

  • animations: reduce size of animations bundle (712630c)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.1.3"></a>

4.1.3 (2017-05-17)

Bug Fixes

  • add typescript 2.3.2 typings test (#16738) (a5bdbed), closes #16663
  • compiler-cli: import routing module with forRoot (#16438) (b7f8581)
  • platform-server: wait for async app initializers to complete before removing server side styles (#16712) (0a82f7d), closes #15716
  • router: Wrap Promise-like instances in native Promises (#16759) (883ca28)
  • upgrade: Prevent renaming of $inject property (#16706) (afb7540)
  • upgrade: use quote to prevent ClossureCompiler obfuscating $event. (#16724) (47df3d6)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.2.0-beta.1"></a>

4.2.0-beta.1 (2017-05-10)

Features

  • add .ngsummary.ts files to support AOT unit tests (547c363)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.1.2"></a>

4.1.2 (2017-05-10)

Bug Fixes

  • compiler: avoid a ...null spread in extraction (#16547) (d0e1688)
  • core: detach projected views when a parent view is destroyed (#16592) (ee6705a), closes #15578
  • core: projected views should be dirty checked when the declaring component is dirty checked. (#16592) (9218812), closes #14321
  • http: flatten metadata for @angular/http/testing (9c70a3c), closes #15521
  • http: honor RequestArgs.search and RequestArgs.params map type (63066f7), closes #15761 #16392
  • http: introduce encodingHint for text() for better ArrayBuffer support (ec3b6e9), closes #15932 #16420
  • router: fix redirect to a URL with a param having multiple values (#16376) (915eae5), closes #16310
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.2.0-beta.0"></a>

4.2.0-beta.0 (2017-05-04)

Bug Fixes

Features

  • compiler-cli: add param to set MissingTranslationStrategy on ngc (#15987) (6e2abcd), closes #15808
  • core: add begin and end renderer methods to track change detection (7f9c589)
  • core: allow custom selector when bootstrapping components (#15668) (900a88b), closes #7136
  • core: upgrade dep on zone.js to 0.8.9 (#16401) (065b76d)
  • forms: introduce min and max validators (#15813) (81925fa)
  • language-service: provide external file list to TypeScript (#16417) (f4b771a)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.1.1"></a>

4.1.1 (2017-05-04)

Bug Fixes

<!-- CHANGELOG SPLIT MARKER -->

<a name="4.1.0"></a>

4.1.0 (2017-04-26)

Bug Fixes

  • router: forward the query parameters in the ng1 -> ng2 url sync (#16249) (2f97731), closes #16067
  • upgrade: use correct attribute name for upgraded component's bindings (#16128) (d1fb066), closes #8856
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.1.0-rc.0"></a>

4.1.0-rc.0 (2017-04-21)

Bug Fixes

  • benchpress: chrome - prevent trace buffer overflow (2f44206)
  • benchpress: Update types for TypeScript nullability support (14669f2)
  • common: Update types for TypeScript nullability support (d8b73e4)
  • compiler: fix build error in xliff2 (bd704c9)
  • compiler: ignore calls to unresolved symbols in metadata (38a7e0d), closes #15969
  • compiler: ignore calls to unresolved symbols in metadata (#15970) (ce47d33), closes #15969
  • compiler: Inform user where Quoted error was thrown (a77b126)
  • compiler: make I18NHtmlParser provider AoT-compliant (#15980) (745731e)
  • compiler: support <ng-container> whatever the namespace (5b141fb), closes #14257
  • compiler: suppress another closure warning (#16137) (11b0213)
  • compiler: Update types for TypeScript nullability support (09d9f5f)
  • core: benchmarks - enable ng1 benchmark again (bccfaa4)
  • core: distribute externs for testability API (#16179) (da66884)
  • core: key-value differ changes iteration (#15968) (cb5a7ef), closes #14997
  • forms: Update types for TypeScript nullability support (6649743)
  • forms: Update types for TypeScript nullability support (57bc245)
  • forms: Update types for TypeScript nullability support (#15859) (6a2e08d)
  • http: Update types for TypeScript nullability support (c36ec9b)
  • http: Update types for TypeScript nullability support (ec028b8)
  • language-service: avoid throwing exceptions when reporting metadata errors (7764c5c)
  • language-service: improve resilience to incomplete information (71a8627)
  • language-service: infer correct type of ?. expressions (0a3a9af), closes #15885
  • language-service: look for type constructors on canonical symbol (2ddf3bc)
  • language-service: only use canonical symbols (5a88d2f)
  • language-service: parse extended i18n forms (bde9771)
  • language-service: resolve any parameter types to any result (5fbb0d0)
  • language-service: respect baseUrl compiler option (f21ff90), closes #15974
  • language-service: Update types for TypeScript nullability support (540581d)
  • packaging: increased buffer size (#15840) (65af964)
  • platform-browser: Update types for TypeScript nullability support (728c9d0), closes #15898
  • platform-server: handle innerText (#15818) (9394835)
  • router: fix query param parsing (a487563)
  • router: prevent RouterLinkActive from causing an infinite CD loop (82417b3), closes #15825
  • router: relax nullability requirements (a0d124b)
  • turn on nullability in the code base. (5293794)
  • Update types for TypeScript nullability support in examples (6f5fccf)
  • router: the preloader use the module from the loaded config (6d12aa9)
  • router: Update types for TypeScript nullability support (56c46d7)
  • router: Update types for TypeScript nullability support (bc43188)
  • tsc-wrapped: collect new expressions with no arguments (#15908) (70b1d6d), closes #15906
  • tsc-wrapped: ensure valid path separators in metadata (96aa236)
  • upgrade: Update types for TypeScript nullability support (01d93f3), closes #15897

Features

  • compiler: add source files to xmb/xliff translations (#14705) (4054055), closes #14190
  • compiler: Implement i18n XLIFF 2.0 serializer (#14185) (09c4cb2), closes #11735
  • upgrade: allow setting the angularjs lib at runtime (#15168) (e927aea)
  • upgrade: allow setting the angularjs lib at runtime (#15168) (8ad464d)
  • upgrade: fixes for allow setting the angularjs lib at runtime (90814e4)
  • add support for TS 2.2 (3c8a61e)
  • add support for TS 2.3 (014594f)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.0.3"></a>

4.0.3 (2017-04-21)

Bug Fixes

  • benchpress: chrome - prevent trace buffer overflow (d216f94)
  • compiler: fix build error in xliff2 (1870347)
  • compiler: ignore calls to unresolved symbols in metadata (d4038ab), closes #15969
  • compiler: ignore calls to unresolved symbols in metadata (#15970) (db25f08), closes #15969
  • compiler: Inform user where Quoted error was thrown (3184cc5)
  • compiler: suppress another closure warning (#16137) (72e240a)
  • core: benchmarks - enable ng1 benchmark again (ccac4c6)
  • core: distribute externs for testability API (#16179) (e377d9d)
  • core: key-value differ changes iteration (#15968) (a8600dc), closes #14997
  • language-service: only use canonical symbols (786093a)
  • packaging: increased buffer size (#15840) (88ad490)
  • platform-server: handle innerText (#15818) (7de340d)
  • router: prevent RouterLinkActive from causing an infinite CD loop (4479c42), closes #15825
  • tsc-wrapped: collect new expressions with no arguments (#15908) (41cac9e), closes #15906

Features

  • compiler: Implement i18n XLIFF 2.0 serializer (#14185) (a7d8edd), closes #11735
  • upgrade: allow setting the angularjs lib at runtime (#15168) (a75d056)
  • upgrade: allow setting the angularjs lib at runtime (#15168) (4f172b0)
  • upgrade: fixes for allow setting the angularjs lib at runtime (bb6932d)
  • add support for TS 2.3 (5cf101f)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.1.0-beta.1"></a>

4.1.0-beta.1 (2017-04-12)

Bug Fixes

  • compiler: fix inheritance for AOT with summaries (#15583) (8ef621a)
  • language-service: avoid throwing exceptions when reporting metadata errors (7764c5c)
  • language-service: detect when there isn't a tsconfig.json (258d539), closes #15874
  • language-service: improve resilience to incomplete information (71a8627)
  • language-service: initialize static reflector correctly (fe0d02f), closes #15768
  • language-service: parse extended i18n forms (bde9771)
  • language-service: resolve any parameter types to any result (5fbb0d0)
  • router: fix query param parsing (a487563)
  • router: the preloader use the module from the loaded config (6d12aa9)
  • tsc-wrapped: ensure valid path separators in metadata (96aa236)

Features

  • animations: Update types for TypeScript nullability support (38d75d4), closes #15870
  • benchpress: Update types for TypeScript nullability support (14669f2)
  • common: Update types for TypeScript nullability support (d8b73e4)
  • compiler: Update types for TypeScript nullability support (09d9f5f)
  • language-service: Update types for TypeScript nullability support (540581d)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.0.2"></a>

4.0.2 (2017-04-11)

Bug Fixes

  • compiler: fix inheritance for AOT with summaries (#15583) (1864ccb)
  • language-service: avoid throwing exceptions when reporting metadata errors (0861fda)
  • language-service: detect when there isn't a tsconfig.json (168a2eb), closes #15874
  • language-service: improve resilience to incomplete information (e4277a0)
  • language-service: initialize static reflector correctly (5b99533), closes #15768
  • language-service: parse extended i18n forms (c9c7acd)
  • language-service: resolve any parameter types to any result (feae7b6)
  • router: fix query param parsing (2f41b52)
  • router: the preloader use the module from the loaded config (978f809)
  • tsc-wrapped: ensure valid path separators in metadata (c10e50c)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.1.0-beta.0"></a>

4.1.0-beta.0 (2017-03-29)

Features

Note: 4.1.0-beta.0 release also contains all the changes present in the 4.0.1 release.

<!-- CHANGELOG SPLIT MARKER -->

<a name="4.0.1"></a>

4.0.1 (2017-03-29)

Bug Fixes

Performance Improvements

  • router: don't create new serializer every time UrlTree.toString is called (#15565) (fd61145)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.0.0"></a>

4.0.0 invisible-makeover (2017-03-23)

Bug Fixes

BREAKING CHANGES

From 4.0.0 @angular/core uses a WeakMap, a polyfill needs to be included for browsers that do not support it natively.

<!-- CHANGELOG SPLIT MARKER -->

<a name="4.0.0-rc.6"></a>

4.0.0-rc.6 (2017-03-23)

Bug Fixes

  • animations: correct the main entry path in package.json (#15300) (2489e4b)
  • animations: ensure empty animate() steps work at the end of a sequence (#15328) (fbccd5c), closes #15310
  • animations: ensure enter/leave cancellations work (#15323) (9bf2fb4), closes #15315
  • animations: make sure easing values work with web-animations (#15195) (f925910), closes #15115
  • animations: make sure non-transitioned leave operations cancel existing animations (#15254) (a6fb78e), closes #15213
  • animations: only process element nodes through the animation engine (#15268) (80075af), closes #15267
  • animations: only treat view removals as void state transitions (#15245) (c66437f), closes #15223
  • animations: stringify boolean values as 1 and 0 (#15311) (94da801), closes #15247
  • compiler: add an empty content for source file of non mapped code. (#15246) (8415910)
  • compiler: don’t call check if we don’t need to (#15322) (764e90f)
  • compiler: look for flat module resources using declaration module path (#15367) (90d2518), closes #15221
  • compiler: only log template deprecation warning once (#15364) (08d8675)
  • compiler: use attribute id to merge translations (#15302) (1d7693c), closes #15234
  • compiler-cli: adding missing format xliff for the extractor (#15386) (a50d79d)
  • core: allow tree shaking of component factories and styles (#15214) (2a0e55f), closes #15181
  • core: don’t create a comment for components with empty template. (#15260) (f8c075a), closes #15143
  • core: mark components for check when host events trigger. (#15359) (64beae9), closes #15352
  • core: only apply WrappedValue to the binding of the pipe (#15257) (0c43535), closes #15116
  • core: provide NgModuleRef in ViewContainerRef.createComponent. (#15350) (431eb30), closes #15241
  • core: stringify shouldn't throw when toString returns null/undefined (#14975) (8e6995c), closes #14948
  • core: trigger host animations for elements that are removed. (#15251) (0d3e314), closes #14813 #15193
  • core: update peer dep on zone.js to ^0.8.5 (#15365) (97149f9), closes #15185
  • forms: make composition event buffering configurable (#15256) (5efc860), closes #15079
  • platform-server: interpret Native view encapsulation as Emulated on the server (#15155) (de3d2ee)
  • platform-server: setup NoopAnimationsModule in ServerModule by default (#15131) (5c5c2ae), closes #15098 #14784
  • platform-server: throw a better error message for relative URLs (#15357) (15a082c), closes #15349
  • tsc-wrapped: emit flat module format correctly on Windows (#15215) (6e9264a), closes #15192
  • tsc-wrapped: use windows friendly path normalization in bundler (#15374) (c584997), closes #15289
  • upgrade: component injectors should not link the module injector tree (#15385) (ea49a95)

Features

  • core: expose inputs, outputs and ngContentSelectors on ComponentFactory. (#15214) (791534f)
  • router: add ParamMap.keys to get a list of parameters (d3eda7a)
  • router: introduce ParamMap to access parameters (a755b71)
  • tsc-wrapped: record original location of flattened symbols (#15367) (7354949)
  • upgrade: use ComponentFactory.inputs/outputs/ngContentSelectors (#15214) (9429032)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.0.0-rc.5"></a>

4.0.0-rc.5 (2017-03-17)

Bug Fixes

  • compiler-cli: update the tsc-wrapped dependency version (#15226) (7fb4528)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.0.0-rc.4"></a>

4.0.0-rc.4 (2017-03-17)

Bug Fixes

  • animations: always fire callbacks even for noop animations (#15170) (3f38c6f)
  • animations: make sure easing values are applied to an empty animate() step (#15174) (62d5543), closes #15115
  • animations: support multiple state names per state() call (#15147) (36ce0af), closes #14732
  • compiler: always use ng:// prefix for sourcemap urls (#15218) (994089d)
  • compiler: fix utf8encode, move to sharted utils, add tests (#15076) (959a03a)
  • compiler: generated code should pass noUnusedLocals check (50ab06e), closes #14797
  • compiler: Improve error message for missing annotations (#14724) (3c15916)
  • compiler: improve error msg for unexpected closing tags (#14747) (5f9fb91), closes #6652
  • compiler: make sourcemaps work in AOT mode (492153a)
  • compiler: only warn for [@Injectable](https://github.com/Injectable) classes with invalid args. (5c34066), closes #15003
  • compiler: shouldn't throw when Symbol is used as DI token (#13701) (8b5c6b2), closes #13314
  • compiler: support interface types in injectable constructors (#14894) (b00fe20), closes #12631
  • compiler: warning prints "WARNING" instead of "ERROR" (#15125) (3b1956b)
  • core: don’t recreate TemplateRef when used as a reference. (#15066) (df914ef), closes #14873
  • core: don’t throw if queries change during change detection. (06fc42b), closes #14925
  • core: ErrorHandler should not rethrow an error by default (#15077) (#15208) (77fd91d), closes #14949 #15182 #14316
  • core: update peer dep on zone.js to ^0.8.4 (#15209) (d2fbbb4), closes #15180 #15185
  • core: use presence of .subscribe to detect observables rather then Symbol.observable (#15171) (6e98757), closes #14298 #14473 #14926
  • forms: ensure observable validators are properly canceled (#15132) (26d4ce2)
  • forms: remove equalsTo validator (#15050) (778f7d6)
  • element injector vs module injector (#15044) (13686bb), closes #12869 #12889 #13885 #13870
  • http: Make ResponseOptionsArgs an interface (#14607) (#14623) (f1b33ab), closes #13708
  • platform-browser: prevent clobbered elements from freezing the browser (a4076c7)
  • platform-server: correctly implement get href in parse5 adapter (#15022) (80649ea)
  • platform-server: fix an exception when HostListener('window:scroll') is used on the server (#15019) (4f7d62a)
  • correct UMD resolutions for platform-browser_animations (#15190) (923d0c5), closes #15114
  • don't instantiate providers with ngOnDestroy eagerly. (#15070) (2c5a671), closes #14552
  • fix path locally to empty.js (#15073) (80112a9)
  • platform-server: fix get/set title in parse5 adapter (#14965) (018e5c9)
  • platform-server: handle styles with extra ':'s correctly (#15189) (013d806)
  • platform-server: support svg elements with namespaced attributes (#15101) (f093501)
  • router: fix query parameters with multiple values (#15129) (029d0f2), closes #14796
  • tsc-wrapped: emit js files in all cases (c0e05e6)

Code Refactoring

  • core: use flags in Renderer2.setStyle instead of booleans (#15045) (ff71eff)

Features

  • common: support as syntax in template/* bindings (#15025) (c10c060), closes #15020
  • compiler-cli: support metadata file aliases (0ab49d4)
  • core: allow to provide multiple default testing modules (#15054) (6c8638c)
  • core: expose inputs, outputs and ngContentSelectors on ComponentFactory. (1171f91)
  • upgrade: support multi-slot projection in upgrade/static (#14282) (914797a), closes #14261
  • upgrade: use ComponentFactory.inputs/outputs/ngContentSelectors (a3e32fb)
  • introduce source maps for templates (#15011) (cdc882b)

BREAKING CHANGES

  • Previously, any provider that had an ngOnDestroy lifecycle hook would be created eagerly.

    Now, only classes that are annotated with @Component, @Directive, @Pipe, @NgModule are eager. Providers only become eager if they are either directly or transitively injected into one of the above.

    This also makes all useValue providers eager, which should have no observable impact other than code size.

    EXPECTED IMPACT: Making providers eager was an incorrect behavior and never documented. Also, providers that are used by a directive / pipe / ngModule stay eager. So the impact should be rather small.

  • DebugNode.source no longer returns the source location of a node.

    Closes 14013

  • core: (since v4 rc.1)

    • Renderer2.setStyle no longer takes booleans but rather a bit mask of flags.
<!-- CHANGELOG SPLIT MARKER -->

<a name="2.4.10"></a>

2.4.10 (2017-03-17)

Bug Fixes

  • compiler: fix decoding surrogate pairs (#15154) (e5c9bbc)
  • router: do not finish bootstrap until all the routes are resolved (#15121) (34403cd)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.0.0-rc.3"></a>

4.0.0-rc.3 (2017-03-10)

Bug Fixes

  • compiler: don’t throw for empty array literal in assignments (#14878) (6cd3326), closes #14782
  • compiler: improve error message when a module imports itself (#14646) (6bc6482), closes #14644
  • core: allow to use the Renderer outside of views. (#14882) (ba4b6f5), closes #14872
  • router: do not finish bootstrap until all the routes are resolved (#14762) (5df998d)
  • upgrade: populate upgraded component's view before creating the controller (#14289) (07122f0), closes #13912
  • throw for synthetic properties / listeners by default (#14880) (3651d8d)

BREAKING CHANGES

since 4.0 rc.1:

  • rename RendererV2 to Renderer2
  • rename RendererTypeV2 to RendererType2
  • rename RendererFactoryV2 to RendererFactory2
<!-- CHANGELOG SPLIT MARKER -->

<a name="2.4.9"></a>

2.4.9 (2017-03-02)

Bug Fixes

Reverts

<!-- CHANGELOG SPLIT MARKER -->

<a name="4.0.0-rc.2"></a>

4.0.0-rc.2 (2017-03-02)

Bug Fixes

  • animations: make animations work in AOT (#14775) (9560ad8)
  • compiler: apply element bindings before host bindings (#14823) (79fc1e3)
  • compiler: fix identifier names of EMPTY_MAP / EMPTY_ARRAY (#14806) (5ba55b0)
  • compiler: quote animation in RendererTypeV2 and skip if empty (#14773) (77682a3)
  • core: call lifecycle hooks for siblings in declaration order (d2e4256)
  • core: fix isComponentView() and isEmbeddedView() tests (#14789) (5753de5), closes #14778
  • language-service: tolerate errors in decorators (#14634) (6bae737), closes #14631
  • platform-server: don't setup Testability and TestabilityRegistry on the server (#14510) (47bdc2b)
  • tsc-wrapped: validate metadata in static members of a class (#14772) (a6996a9), closes #13481
  • upgrade: fix upgrade component Closure optimization. (#14801) (968995a)

Performance Improvements

  • delete pre-view-engine core, compiler, platform-browser, etc code (#14788) (126fda2)
  • compiler: make identifiers for generated code small to improve dev size (5caab71)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.0.0-rc.1"></a>

4.0.0-rc.1 (2017-02-24)

We are excited to share 4.0.0-RC.1 with the community. This is a feature-complete pre-release of 4.0.0. Upgrade to get to know the new features to be released in 4.0.0, and to help us validate the release.

It’s important to note that this release has been tested extensively. All Angular applications within Google use the master branch of Angular, so every commit is tested and validated at scale prior to any release.

We Need Your Help

Please give this RC a try and test it with your projects! We have spent a significant amount of time working to ensure that this release is backwards compatible and will work with your existing code, but you may have use cases we haven’t anticipated. If you are broken by this release, let us know so that we can look into it right away. We are also looking for feedback related to the ergonomics of any newly added APIs.

What’s New

View Engine

We’ve made changes under the hood to what AOT generated code looks like. These changes should reduce the size of the generated code for your components by more than half in some cases. Read the Design Doc for the View Engine updates.

Enhanced *ngIf syntax

Our template binding syntax now supports a couple helpful changes. You can now use an if/else style syntax, and assign local variables such as when unrolling an observable.

<ng-template #loading>Loading...</ng-template>
<div *ngIf="userObservable | async; else loading; let user">
  {{ user.name }}
</div>

Animation Package

We have pulled Animations into their own package. This means that if you don’t use Animations, this extra code will not end up in your production bundles. This also allows you to more easily find documentation and to take better advantage of autocompletion. If you do need animations, libraries like Material will automatically import the module (once you install it via NPM), or you can add it yourself to your main NgModule.

TypeScript 2.1

We’ve updated Angular to a more recent version of TypeScript. This will improve the speed of ngc and you will get better type checking throughout your application.

StrictNullChecks

Angular is now compliant with TypeScript’s StrictNullChecks. This means that you can enable StrictNullChecks in your project, if desired.

Universal

Universal, the project that allows developers to run Angular on a server, is now up to date with Angular again, and has been adopted by the Angular team. This release now includes the results of the work from the Universal team over the last few months. The majority of the Universal code is now in platform-server. To learn more about this change, take a look the new renderModuleFactory method, or Rob Wormald’s Demo Repository. More documentation is forthcoming.

<a name="flat-es-modules-esm"></a><!-- legacy anchor link, keep it here -->

Flat ES Modules (Flat ESM / FESM)

We now ship flattened versions of our modules ("rolled up" version of our code in the EcmaScript Module format, see example file). This format should help tree-shaking, help reduce the size of your generated bundles, and speed up build, transpilation, and loading in the browser in certain scenarios.

ES2015 Builds

We now also ship our packages in the ES2015 Flat ESM format. This option is experimental and opt-in (configure your webpack to resolve "es2015" property in package.json over the regular "module" property).

Known Issues

The following is a list of known issues that will be fixed in the next rcs.

  • Source maps are missing in npm packages
  • Generated bundles will be larger temporarily while we validate new code paths and remove old ones
  • angular.io docs have not been updated to reflect API changes in 4.0
  • legacy UMD bundles don't have correct RxJS mappings when running in ES5 mode without a module system

Installing RC.1

We have two main ways to update. If you have an existing project, you should be able to run:

On Linux/Mac: npm install @angular/{common,compiler,compiler-cli,core,forms,http,platform-browser,platform-browser-dynamic,platform-server,router,animations}@next --save On Windows: npm install @angular/common@next @angular/compiler@next @angular/compiler-cli@next @angular/core@next @angular/forms@next @angular/http@next @angular/platform-browser@next @angular/platform-browser-dynamic@next @angular/platform-server@next @angular/router@next @angular/animations@next --save

Then run whatever ng serve or npm start command you normally use, and everything should work.

Please ensure that you are using Typescript v2.1.6 or higher.

If you rely on Animations you’ll also need to install the animations package @angular/animations and import the new BrowserAnimationsModule from @angular/platform-browser/animations in your root NgModule. Without this, your code will compile and run, but animations won’t activate. Imports from @angular/core were deprecated, use imports from the new package import { trigger, state, style, transition, animate } from '@angular/animations';.

What's next?

We have three more release candidates scheduled before our planned GA the week of March 22. In the meantime we'll be looking for your feedback, fixing bugs and working on docs.

Commit Summary

Features

  • compiler: Add a enableLegacyTemplate option to support <template> (e99d721)
  • compiler: introduce <ng-template>, deprecate <template> and template attribute (bf8eb41)
  • compiler-cli: add a locale option to ng-xi18n (234f059), closes #12303 #14537
  • compiler-cli: add an outFile option to ng-xi18n (39f56fa), closes #11416 #14508 #14657
  • core: enable new view engine (d3a98c7)
  • core: make new Inject() optional for deps specified as InjectionToken (#14486) (d6a58f9), closes #10625
  • core: add a PLATFORM_ID token that provides a platform id Object. (#14647) (a1d4769)
  • forms: add option to use browser's native validation and angular forms (#13566) (8742432), closes #13573
  • forms: introduce AsyncValidator interface (#13483) (551fe50), closes #13398
  • router: add RouteConfigLoadStart and RouteConfigLoadEnd events (78e8814)
  • router: add an option to rerun guards and resolvers when query changes (c2e0f71), closes #14514 #14567
  • router: add an option to rerun guards and resolvers when query changes (#14624) (41da599), closes #14514 #14567
  • router: introduce RouteConfigLoaded event (7df6f46), closes #14036

Bug Fixes

  • common: do not reference deprecated classes in providers (#14523) (#14523) (a23634d), closes #14521
  • core: host bindings and host listeners for animations (5049a50)
  • http: Make ResponseOptionsArgs an interface (#14607) (fbe4b76), closes #13708
  • packaging: properly build the core-testing bundle (4301dce)
  • platform-webworker: integrate review feedback (601fd3e), closes #14581
  • router: do not finish bootstrap until all the routes are resolved (#14608) (2a191ca), closes #12162 #14155
  • app ids for better style tag management for ssr (#14632) (88bc143)

Code Refactoring

  • core: deprecate RootRenderer / Renderer (ccb636c)
  • core: change abstract classes for interfaces (#12324) (ee747f7), closes #10083

Performance Improvements

  • distribute smaller bundled code and include es2015 bundle (de795ea)

BREAKING CHANGES

  • core: Because all lifecycle hooks are now interfaces the code that uses 'extends' keyword will no longer compile. Introduced by (ee747f7).

    To migrate the code follow the example below:

    Before:

    @Component()
    class SomeComponent extends OnInit {}
    

    After:

    @Component()
    class SomeComponent implements OnInit {}
    

    Based on our research we don't expect anyone to be affected by this change.

  • RootRenderer cannot be used any more, use RendererFactoryV2 instead. Introduced by (ccb636c).

    Note: Renderer can still be injected/used, but is deprecated.

Note: the 4.0.0-rc.0 release on npm accidentally omitted one bug fix, so we cut rc.1 instead. oops :-)

<!-- CHANGELOG SPLIT MARKER -->

<a name="4.0.0-beta.8"></a>

4.0.0-beta.8 (2017-02-18)

Features

  • packaging: allow applications to turn on strictNullChecks mode in TypeScript (#14382) (03e855a)
  • common: added typed overloaded for AsyncPipe.transform() (#14367) (4da7925)
  • compiler: add support for source map generation (#14258) (7ac38aa), closes #14125
  • compiler: add target locale to the translation bundles (#14290) (bb4db2d)
  • compiler: generate shallow imports compiler generated references (#14388) (8b81bb1)
  • compiler: implement style encapsulation for new view engine (#14518) (0fa3895)
  • compiler: integrate compiler with view engine - change detection tests work (#14412) (e4e9dbe)
  • compiler: integrate compiler with view engine - main integration tests work (#14284) (baa654a)
  • compiler: integrate compiler with view engine (#14487) (4e7752a)
  • core: add isStable Observable property to ApplicationRef to indicate when it's stable and unstable (#14337) (c481798)
  • platform-server: add API to render Module and ModuleFactory to string (#14381) (b4d444a)
  • platform-server: Implement PlatformLocation for platformServer() (#14405) (9e28568)
  • platform-server: support @angular/http from @angular/platform-server (9559d3e)
  • tsc-wrapped: add an option to ngc to bundle metadata (#14509) (3b89670)

Bug Fixes

  • compiler: disable non-components as an entry component (#14335) (44bb337)
  • compiler: improve error message for unknown elements (#14373) (2c6dab9)
  • compiler: improve error messages in aot compiler (#14333) (a696f4a)
  • compiler: improve error msg for unknown properties on (#14373) (e5a144d), closes #14070
  • core: Remove ChangeDetectorRef Parameter from KeyValueDifferFactory and IterableDifferFactory (#14311) (45cc444)
  • core: suppress a Closure Compiler warning (#14484) (2f2b65b)
  • forms: getRawValue should correctly work with nested FormGroups/Arrays (#12964) (1ece736), closes #12963
  • http: REVERT: remove dots from jsonp callback name (#13219) (4676df5)
  • platform-browser: allow to mix shadow dom with non shadow dom (ab26b65)
  • platform-browser: should not throw for debug attrs containing $ (#14353) (1cfbefe), closes #9566
  • platform-browser: should only add styles with native encapsulation in shadow DOM (#14313) (53cf2ec), closes #7887
  • platform-server: allow multiple instances of platformServer and platformDynamicServer (17486fd)
  • platform-server: default unspecified sections of the url to empty string (#14512) (612f120)
  • platform-server: read initial location from INITIAL_CONFIG if present (56f232c)
  • platform-server: reflect properties to attributes for known elements, for serialization (047cda5)
  • platform-server: render styles in app component instead of <head> (30380d0)
  • upgrade: Prevent property renaming for $inject. (96d06f7)

DEPRECATIONS

  • core: KeyValueDifferFactory and IterableDifferFactory no longer have ChangeDetectorRef as a parameter. It was not used and has been there for historical reasons. If you call DifferFactory.create(...) remove the ChangeDetectorRef argument. Introduced by (#14311).

BREAKING CHANGES

  • common: Classes that derive from AsyncPipe and override transform() might not compile correctly. The much more common use of async pipe in templates is unaffected. We expect no or little impact on apps from this change, file an issue if we break you. Introduced by (#14367) (4da7925).
    • Mitigation: Update derived classes of AsyncPipe that override transform() to include the type parameter overloads.
<!-- CHANGELOG SPLIT MARKER -->

<a name="2.4.8"></a>

2.4.8 (2017-02-18)

Bug Fixes

  • forms: getRawValue should correctly work with nested FormGroups/Arrays (#12964) (ea7737e), closes #12963
  • http: REVERT: remove dots from jsonp callback name (#13219) (9ceb5d1)
  • platform-browser: should only add styles with native encapsulation in shadow DOM (#14313) (fadaf1e), closes #7887
  • router: do not finish bootstrap until all the routes are resolved (#14327) (541de26), closes #12162
  • upgrade: correctly project content on downgraded components with structural directives (#14274) (74cb575), closes #14260
  • upgrade: pass correct values to ngOnChanges for interpolation bindings (#14400) (7c87c52)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.0.0-beta.7"></a>

4.0.0-beta.7 (2017-02-09)

Bug Fixes

  • build and test fixes for TS 2.1 (#13294) (ef32e6b)
  • benchmarks: don’t force gc on the profile buttons (#14345) (f6b5965)
  • build: make fsevents an optional dependency in npm (#13945) (4370049)
  • compiler-cli: prevent ng-xi18n from emitting the compilation output (#14115) (e58d683), closes #13567
  • tsc-wrapped: use tsickle's new source map composition feature (#14150) (5bccff0)
  • upgrade: pass correct values to ngOnChanges for interpolation bindings (#14301) (1e3dd3d)

Performance Improvements

  • upgrade: unregister $doCheck watcher when destroying upgraded component (#14303) (94312f0)
  • Don’t subclass Error; resulting in smaller binary (#14160) (c33fda2)

BREAKING CHANGES

  • Angular 4 will support only TypeScript 2.1, so we no longer provide backwards compatibility to TS 1.8.
<!-- CHANGELOG SPLIT MARKER -->

<a name="2.4.7"></a>

2.4.7 (2017-02-09)

Bug Fixes

  • upgrade: allow non-element selectors for downgraded components (#14291) (5bb47db)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.0.0-beta.6"></a>

4.0.0-beta.6 (2017-02-03)

Bug Fixes

  • suppress some closure compiler warnings (#14198) (2205829)
  • common: add PopStateEvent interface (#13400) (fe44118), closes #13378
  • common: DatePipe shouldn't throw for NaN (#14117) (7ad616a), closes #14103
  • common: DatePipe should parses input string even if it's not a valid date in browser (#13895) (093cc04), closes #12334 #13874
  • common: use Symbol.observable to detect observables rather then presence of .subscribe (#14067) (ff290af), closes #8848
  • compiler: allow empty translations for attributes (#14085) (05b2b49), closes #13897
  • avoid closure compiler warning (#14229) (1bc5368)
  • router: should allow navigation from root component in ngOnInit hook (#13932) (47d41d4), closes #13795
  • failing integration test (8270bec)
  • lint errors to make circle-ci green (e0e5e78)
  • router: should find guard provided in a lazy loaded module (#13929) (e075b1b), closes #13530
  • ngModel should use rxjs/symbol/observable to detect observable (#14236) (a7479f6)
  • compiler: allow expressions or functions in extends (#14158) (b4214d6), closes #14154
  • compiler: fix missing translations handling (#14113) (827c3fe)
  • compiler: only lex messages that are needed by angular (#14208) (5921c87)
  • core: add bootstrapped modules into platform modules list (#13740) (863285a), closes #12015
  • core: ViewContainerRef.indexOf should not throw error when empty (#13220) (a277e97)
  • forms: async validator cancels previous subscription when input has changed (#13222) (6c7300c), closes #12709 #9120 #10074 #8923
  • forms: fix broken unit test (#14179) (1df9319)
  • forms: show a blank line when nothing is selected in IE or Edge (#13903) (029f558), closes #10010
  • forms: verify functions passed into async validators returns Observable or Promise (#14053) (94f84c5)
  • http: remove dots from jsonp callback name (#13219) (9e5617e)
  • http: use params without RequestOptions (#14101) (5f2b317), closes #14100
  • language-service: do not crash when Angular cannot be located (#14123) (49fb814), closes #14122
  • platform-browser: remove style nodes on destroy (#13744) (cd3901f), closes #11746
  • router: fix CanActivateChild guard provided in a lazy loaded module (#13989) (579567c), closes #12275
  • testing: async/fakeAsync/inject/withModule helpers should pass through context to callback functions (#13718) (5f40e5b)
  • upgrade: detect async downgrade component changes (#14039) (20b454c), closes #6385 #6385
  • upgrade: respect hierarchical injectors for downgraded components (#14037) (1367cd9)
  • compiler: improve error messages in aot compiler (#14017) (665dde2)

Features

Performance Improvements

  • use abstract keyword where possible to decrease file size. (#14112) (670b680)
  • core simplify ReflectiveInjector by removing code for Dart implementation (#14126) (670b680)

BREAKING CHANGES

  • common: A definition of Iterable<T> is now required to correctly compile Angular applications. Support for Iterable<T> is not required at runtime but a type definition Iterable<T> must be available.

NgFor, and now NgForOf<T>, already supports Iterable<T> at runtime. With this change the type definition is updated to reflect this support.

Migration:

  • add "es2015.iterable.ts" to your tsconfig.json "libs" fields.

Part of #12398

  • upgrade: Previously, upgrade/static/downgradeInjectable returned an array of the form:
js
['dep1', 'dep2', ..., function factory(dep1, dep2, ...) { ... }]

Now it returns a function with an $inject property:

js
factory.$inject = ['dep1', 'dep2', ...];
function factory(dep1, dep2, ...) { ... }

It shouldn't affect the behavior of apps, since both forms are equally suitable to be used for registering AngularJS injectable services, but it is possible that type-checking might fail or that current code breaks if it relies on the returned value being an array.

<!-- CHANGELOG SPLIT MARKER -->

<a name="2.4.6"></a>

2.4.6 (2017-02-03)

Bug Fixes

  • common: add PopStateEvent interface (#13400) (71567d1), closes #13378
  • common: DatePipe doesn't throw for NaN (#14117) (32cc675), closes #14103
  • common: DatePipe parses input string if it's not a valid date in browser (#13895) (e641636), closes #12334 #13874
  • common: introduce isObservable method (#14067) (109f0d1), closes #8848
  • compiler: allow empty translations for attributes (#14085) (f3d5506), closes #13897
  • core: add bootstrapped modules into platform modules list (#13740) (250dbc4), closes #12015
  • core: ViewContainerRef.indexOf should not throw error when empty (#13220) (41b8d95)
  • forms: show a blank line when nothing is selected in IE or Edge (#13903) (09e2d20), closes #10010
  • forms: verify functions passed into async validators returns Observable or Promise (#14053) (774e1db)
  • ngModel should use rxjs/symbol/observable to detect observable (#14236) (7e639aa)
  • http: remove dots from jsonp callback name (#13219) (1eece50)
  • i18n: parse ICU messages while normalizing templates (#14153) (8d4aa82)
  • language-service: do not crash when Angular cannot be located (#14123) (a5b4af0), closes #14122
  • platform-browser: remove style nodes on destroy (#13744) (0614289), closes #11746
  • router: fix CanActivate redirect to the root on initial load (#13929) (a047124), closes #13530
  • router: should find guard provided in a lazy loaded module (#13989) (0965636), closes #12275
  • router: should allow navigation from root component in ngOnInit hook (#13932) (4d2901d), closes #13795
  • testing: async/fakeAsync/inject/withModule helpers should pass through context to callback functions (#13718) (70bbdf5)
  • upgrade: detect async downgrade component changes (#14039) (117fa79), closes #6385 #6385
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.0.0-beta.5"></a>

4.0.0-beta.5 (2017-01-25)

Bug Fixes

  • compiler: [i18n] XMB/XTB placeholder names can contain only A-Z, 0-9, _n (d02eab4)
  • compiler: fix regexp to support firefox 31 (#14082) (b2f9d56), closes #14029 #13900
  • core: export animation classes required for Renderer impl (#14002) (83361d8), closes #14001
  • core: fix not declared variable in view engine (#14045) (d3a3a8e)
  • upgrade/static: ensure upgraded injector is initialized early enough (#14065) (6152eb2), closes #13811

Features

  • core: add event support to view engine (0adb97b)
  • core: add initial view engine (#14014) (2f87eb5)
  • core: add pure expression support to view engine (6541737)
  • tsc-wrapped: Support of vinyl like config file was added (#13987) (0c7726d)
  • upgrade: Support ng-model in downgraded components (#10578) (e21e9c5)

DEPRECATIONS

  • OpaqueToken is now deprecated, use InjectionToken<T> instead.
  • Injector.get(token: any, notFoundValue?: any): any is now deprecated use the same method which is now overloaded as Injector.get<T>(token: Type<T>|InjectionToken<T>, notFoundValue?: T): T;

BREAKING CHANGES

  • core: - Because injector.get() is now parameterize it is possible that code which used to work no longer type checks. Example would be if one injects Foo but configures it as {provide: Foo, useClass: MockFoo}. The injection instance will be that of MockFoo but the type will be Foo instead of any as in the past. This means that it was possible to call a method on MockFoo in the past which now will fail type check. See this example:
class Foo {}
class MockFoo extends Foo {
  setupMock();
}

var PROVIDERS = [
  {provide: Foo, useClass: MockFoo}
];

...

function myTest(injector: Injector) {
  var foo = injector.get(Foo);
  // This line used to work since `foo` used to be `any` before this
  // change, it will now be `Foo`, and `Foo` does not have `setUpMock()`.
  // The fix is to downcast: `injector.get(Foo) as MockFoo`.
  foo.setUpMock();
}
<!-- CHANGELOG SPLIT MARKER -->

<a name="2.4.5"></a>

2.4.5 (2017-01-25)

Bug Fixes

  • compiler: [i18n] XMB/XTB placeholder names can contain only A-Z, 0-9, _n (5492fad)
  • compiler: fix regexp to support firefox 31 (#14082) (bd2eecb), closes #14029 #13900
  • core: export animation classes required for Renderer impl (#14002) (fd4f9ac), closes #14001
  • upgrade: ensure upgraded injector is initialized early enough (#14065) (3b2fb23), closes #13811
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.0.0-beta.4"></a>

4.0.0-beta.4 (2017-01-19)

Bug Fixes

Features

BREAKING CHANGES

  • core: - Because injector.get() is now parameterized it is possible that code which used to work no longer type checks. Example would be if one injects Foo but configures it as {provide: Foo, useClass: MockFoo}. The injection instance will be that of MockFoo but the type will be Foo instead of any as in the past. This means that it was possible to call a method on MockFoo in the past which now will fail type check. See this example:
class Foo {}
class MockFoo extends Foo {
  setupMock();
}

var PROVIDERS = [
  {provide: Foo, useClass: MockFoo}
];

...

function myTest(injector: Injector) {
  var foo = injector.get(Foo);
  // This line used to work since `foo` used to be `any` before this
  // change, it will now be `Foo`, and `Foo` does not have `setUpMock()`.
  // The fix is to downcast: `injector.get(Foo) as MockFoo`.
  foo.setUpMock();
}
<!-- CHANGELOG SPLIT MARKER -->

<a name="2.4.4"></a>

2.4.4 (2017-01-19)

<!-- CHANGELOG SPLIT MARKER -->

<a name="4.0.0-beta.3"></a>

4.0.0-beta.3 (2017-01-11)

Bug Fixes

Features

  • animations: expose the element value within transition events (4bae4b3)
  • animations: expose the triggerName within the transition event (3f67ab0), closes #13600
  • animations: support function types in transitions (9211a22), closes #13538 #13537
  • language-service: support TS2.2 plugin model (99aa49a)
  • NgComponentOutlet: add NgComponentOutlet directive (8578682), closes #11168
  • NgTemplateOutlet: Make NgTemplateOutlet compatible with * syntax (c0178de)
  • router: call resolver when upstream params change (#12942) (d4d3782)

BREAKING CHANGES

  • core: - IterableChangeRecord is now an interface and parameterized on <V>. This should not be an issue unless your code does new IterableChangeRecord which it should not have a reason to do.
  • KeyValueChangeRecord is now an interface and parameterized on <V>. This should not be an issue unless your code does new KeyValueChangeRecord which it should not have a reason to do.

DEPRECATION

  • Deprecate ngOutletContext. Use ngTemplateOutletContext instead.
  • CollectionChangeRecord is renamed to IterableChangeRecord. CollectionChangeRecord is aliased to IterableChangeRecord and is marked as @deprecated. It will be removed in v6.x.x.
  • Deprecate DefaultIterableDiffer as it is private class which was erroneously exposed.
  • Deprecate KeyValueDiffers#factories as it is private field which was erroneously exposed.
  • Deprecate IterableDiffers#factories as it is private field which was erroneously exposed.
<!-- CHANGELOG SPLIT MARKER -->

<a name="2.4.3"></a>

2.4.3 (2017-01-11)

Bug Fixes

  • compiler: avoid evaluating arguments to unknown decorators (5e9d3db), closes #13605
  • compiler: fix template binding parsing (*directive="-...") (7dc12b9), closes #13800
  • compiler-cli: add support for more than 2 levels of nested lazy routes (6164eb2), closes angular/angular-cli#3663
  • compiler-cli: avoid handling functions in loadChildren as lazy load routes paths (313683f), closes angular/angular-cli#3204
  • i18n: translate attributes inside elements marked for translation (d7f2a3c)
  • router: RouterLink mirrors input target as attribute (1c82b58), closes #13837
  • router: throw an error when navigate to null/undefined path (61ba223), closes #10560 #13384
  • router: fix checking for object intersection (1692265)
<!-- CHANGELOG SPLIT MARKER -->

<a name="2.4.2"></a>

2.4.2 (2017-01-06)

Bug Fixes

  • common: add link to trackBy docs from the error message (#13634) (f723437)
  • common: do not override locale provided on bootstrap (#13654) (5f49c3e), closes #13607
  • common: allow null/undefined values for NgForTrackBy (6be55cc), closes #13641
  • compiler: don’t throw when using ANALYZE_FOR_ENTRY_COMPONENTS with user classes (#13679) (230e33f), closes #13565
  • compiler: query <template> elements before their children. (#13677) (1cd73c7), closes #13118 #13167
  • compiler: allow "." in attribute selectors (#13653) (29ffdfd), closes #13645 #13982
  • core: animations no longer silently exits if the element is not apart of the DOM (#13763) (f1cde43)
  • core: animations should blend in all previously transitioned styles into next animation if interrupted (#13148) (b245b92)
  • core: remove reference to "Angular 2" in dev mode warning (#13751) (21f5f05)
  • core/testing: improve misleading error message when don't call compileComponents (#13543) (0e7f9f0), closes #11301
  • forms: Validators.required properly validate arrays (#13362) (17c5fa9), closes #12274
  • language-service: support TypeScript 2.1 (#13655) (56b4296)
  • router: fix lazy loaded module with wildcard route (#13649) (5754ecc), closes #12955
  • router: routerLink support of null (#13380) (018865e), closes #6971
  • router: update route snapshot before emit new values (#13558) (9f6a647), closes #12912
  • upgrade: fix/improve support for lifecycle hooks (#13020) (21942a8)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.0.0-beta.2"></a>

4.0.0-beta.2 (2017-01-06)

Features

  • compiler: generate less code for bindings to DOM elements (db49d42)
  • compiler: generate proper reexports in .ngfactory.ts files to not need transitive deps for compiling .ngfactory.ts files. (#13524) (9c69703), closes #12787
  • router: add an extra argument to CanDeactivate interface (#13560) (69fa3bb), closes #9853

Bug Fixes

  • compiler: improve error message for undefined providers (#13546) (6b02b80), closes #10835
  • compiler: improve the error when template is not a string (2c0c86e), closes #8708 #13377
  • compiler: throw an error for invalid provider (#13544) (445ed43), closes #8870
  • i18n: parse ICU messages while normalizing templates (e74d8aa)

Note: 4.0.0-beta.2 release also contains all the changes present in the 2.4.2 release.

BREAKING CHANGES

  • core: SimpleChange now takes an additional argument that defines whether this is the first change or not. This is a low profile API and we don't expect anyone to be affected by this change. If you are impacted by this change please file an issue. (465516b)
<!-- CHANGELOG SPLIT MARKER -->

<a name="4.0.0-beta.1"></a>

4.0.0-beta.1 (2016-12-22)

Features

  • upgrade: support the $doCheck() lifecycle hook in UpgradeComponent (#13015) (9da4c25)

Note: 4.0.0-beta.1 release also contains all the changes present in the 2.4.0 and the 2.4.1 releases.

<!-- CHANGELOG SPLIT MARKER -->

<a name="2.4.1"></a>

2.4.1 (2016-12-21)

Bug Fixes

  • animations: always quote string map key values in AOT code (#13602) (6a5e46c)
  • animations: always recover from a failed animation step (#13604) (d788c67)
  • compiler: ignore @import in comments (#13368) (6316e5d), closes #12196
  • core: improve error message when component factory cannot be found (#13541) (b9e979e), closes #12678
  • router: should reset location if a navigation by location is successful (#13545) (a38f14b), closes #13491
<!-- CHANGELOG SPLIT MARKER -->

<a name="2.4.0"></a>

2.4.0 stability-interjection (2016-12-20)

Bug Fixes

Features

<!-- CHANGELOG SPLIT MARKER -->

<a name="4.0.0-beta.0"></a>

4.0.0-beta.0 (2016-12-15)

Features

Note: 4.0.0-beta.0 release also contains all the changes present in the 2.3.1 release.

<!-- CHANGELOG SPLIT MARKER -->

<a name="2.3.1"></a>

2.3.1 (2016-12-15)

Bug Fixes

Performance Improvements

  • animations: always run the animation queue outside of zones (e2622ad), closes #13440

Note

Due to regression in the 2.3.0 release that was fixed by #13464, components that have been compiled using 2.3.0 and published to npm will need to be recompiled and republished.

The >=2.3.1 compiler will issue is the following error if it encounters components compiled with 2.3.0: Unsupported metadata version 2 for module ${module}. This module should be compiled with a newer version of ngc.

We are adding more tests to our test suite to catch these kinds of problems before we cut a release.

<!-- CHANGELOG SPLIT MARKER -->

<a name="2.3.0"></a>

2.3.0 (2016-12-07)

Bug Fixes

  • common: make sure the plural category exists (#13169) (82c81cd), closes #12379
  • compiler: include the summaries of reexported modules / directives / pipes (#13196) (75d1617)
  • compiler: serialize any StaticSymbol correctly, not matter in which context (5614c4f)
  • compiler: short-circuit expressions with an index (#13263) (f31c947), closes #13254
  • core: display framework version on bootstrapped component (#13252) (16efb13)
  • facade: cache original format string (#12764) (a132287)
  • http: set the default Accept header (#12989) (986abbe), closes #6354
  • language-service: avoid throwing for invalid class declarations (#13257) (93556a5), closes #13253
  • language-service: do not throw for invalid metadata (#13261) (4a09c81), closes #13255
  • language-service: remove incompletely used parameter from createLanguageServiceFromTypescript() (#13278) (25c2141), closes #13277
  • language-service: update to use CompilerHost from compiler-cli (#13189) (3ff6554)
  • router: allow specifying a matcher without specifying a path (bbb7a39), closes #12972
  • router: fix replaceUrl on RouterLink directives (349ad75)
  • router: fix skipLocationChanges on RouterLink directives (f562cbf), closes #13156
  • router: make setUpLocationChangeListener idempotent (25e5b2f)
  • router: runs guards every time when unsuccessfully navigating to the same url over and over again (#13209) (d46b8de)
  • router: throw a better error message when AngularJS is not bootstraped (c767df0)
  • router: validate nested routes (#13224) (2893c2c), closes #12827
  • tsc-wrapped: have UserError display the actual error (393c100)

Features

  • compiler: read and write .ngsummary.json files (614a35d), closes #12787
<!-- CHANGELOG SPLIT MARKER -->

<a name="2.3.0-rc.0"></a>

2.3.0-rc.0 (2016-11-30)

Bug Fixes

  • animations: blend in all previously transitioned styles into next animation if interrupted (#13014) (ef96763), closes #13013
  • benchmarks: use sanitized style values (#12943) (fc5ac1e)
  • build: update versions of umd bundles (#13038) (86ffa88), closes #13037
  • changelog: replace beta.1 with beta.0 (#12961) (07a986d)
  • ci: pin version of npm on CircleCI (#12954) (a3884db)
  • closure: quote date pattern aliases (#13012) (7dcca30)
  • common: update DatePipe to allow closure compilation (b2b7219)
  • compiler: correctly evaluate references to static functions (#13133) (627282d)
  • compiler: fix performance regression caused by 5b0f9e2 (43c0e9a), closes #13146
  • compiler: fix versions of @angular/tsc-wrapped (bccf0e6)
  • compiler-cli: fix paths in source maps to be relative (2a3ca7b), closes #13040
  • compiler-cli: pin the version of tsc-wrapped (966bcba)
  • language-service: harden against partial normalization of directives (2975d89)
  • core: shrinkwrap was out of date with packages. (e45b7ff)
  • language-service: make link check pass (7194fc2)
  • router: guards restore an incorrect url when used with skipLocationChange (ad20d7d), closes #12825
  • router: support redirects to named outlets (602522b), closes #12740 #9921
  • tsc-wrapped: set correct version number (897555c)
  • tsc-wrapped: still emit version 1 metadata to allow use of new components in old setups (bc69c74)
  • upgrade: call ng1 lifecycle hooks (#12875) (1ef4696)
  • version: take all of version string after patch version (f275f36)

Features

  • core: update RxJS peer dependency to 5.0.0-rc.4 Please see this gist if you depend on the cache operator (2d6a003), closes #13125
  • core: upgrade zone.js to v0.7.1 (c4bbafc)
  • build: record angular version in the dom (#13164) (e628b66)
  • core: expose destroy() method on ViewRef (808275a)
  • core: properly support inheritance (f5c8e09), closes #11606 #12892
  • language-service: add services to support editors (#12987) (519a324)
  • router: add support for custom route reuse strategies (42cf06f)
  • tools: allow disabling annotation lowering (c1a62e2)
<!-- CHANGELOG SPLIT MARKER -->

<a name="2.2.4"></a>

2.2.4 (2016-11-30)

Bug Fixes

  • common: update DatePipe to allow closure compilation (eba53fd)
  • compiler: fix performance regression caused by 5b0f9e2 (ee2d6e5), closes #13146
  • compiler-cli: fix paths in source maps to be relative (eb173bc), closes #13040
<!-- CHANGELOG SPLIT MARKER -->

<a name="2.2.3"></a>

2.2.3 (2016-11-23)

Bug Fixes

  • compiler: Revert: fix versions of @angular/tsc-wrapped (015ca47)
  • animations: Revert: blend in all previously transitioned styles into next animation if interrupted (c12e56e)
<!-- CHANGELOG SPLIT MARKER -->

<a name="2.2.2"></a>

2.2.2 (2016-11-22)

Bug Fixes

  • animations: blend in all previously transitioned styles into next animation if interrupted (#13014) (ea4fc9b), closes #13013
  • benchmarks: use sanitized style values (#12943) (33a7902)
  • closure: quote date pattern aliases (#13012) (0956ace)
  • compiler: fix versions of @angular/tsc-wrapped (2fe6fb1)
  • router: add a banner file for the router (#12919) (8df328b)
  • router: add a banner file for the router (#12919) (511cd4d)
  • router: removes a peer dependency from router to upgrade (115f18f)
  • router: removes a peer dependency from router to upgrade (87d5d49)
  • router: support redirects to named outlets (09226d9), closes #12740 #9921
  • upgrade: call ng1 lifecycle hooks (#12875) (462316b)
<!-- CHANGELOG SPLIT MARKER -->

<a name="2.3.0-beta.0"></a>

2.3.0-beta.0 (2016-11-17)

Bug Fixes

  • compiler: assert xliff messages have translations (7908679), closes #12815 #12604
  • compiler: updates hash algo for xmb/xtb files (2f14415)
  • core: fix placeholders handling in i18n. (76e4911), closes #12512
  • core: misc i18n fixes (ed5e98d)
  • core: xmb serializer uses decimal messaged IDs (08c038e), closes #12511
  • platform-browser: enable AOT (efbbefd), closes #12783

Features

  • core: add attachView / detachView to ApplicationRef (9f7d32a), closes #9293
  • core: expose ViewRef as ChangeDetectorRef (1b5384e), closes #12722
  • core: implements a decimal fingerprint for i18n (582550a)
  • router: register router with ngprobe (c2fae72)
  • router_link: add skipLocationChange and replaceUrl inputs (#12850) (46d1502)

Note: The 2.3.0-beta.0 release also contains all the changes present in the 2.2.1 release.

<!-- CHANGELOG SPLIT MARKER -->

<a name="2.2.1"></a>

2.2.1 (2016-11-17)

Bug Fixes

  • animations: only pass in same typed players as previous players into web-animations (#12907) (583d283)
  • animations: retain styling when transition destinations are changed (#12208) (5c46c49), closes #9661
  • core: support ngTemplateOutlet in production mode (#12921) (4628798), closes #12911
  • http: correctly handle response body for 204 status code (21a4de9), closes #12830 #12393
  • http: return request url if it cannot be retrieved from response (845ea23), closes #12837
  • upgrade: make AoT ngUpgrade work with the testability API and resumeBootstrap() (#12910) (dc1662a)
  • platform-browser: fix disableDebugTools() (#12918) (7b67bad)
  • router: add a banner file for the router (#12919) (364642d)
  • router: removes a peer dependency from router to upgrade (1dcf1f4)
  • forms allow for null values in HTML select options bound with ngValue (e0ce545), closes #10349
  • router: should not create a route state if navigation is canceled (#12868) (dabaf85), closes #12776
  • common: select should allow for null values in HTML select options bound with ngValue (e02c180), closes #12829
  • compiler-cli: support ctorParams in function closure (#12876) (6cdc3b5)
<!-- CHANGELOG SPLIT MARKER -->

<a name="2.2.0"></a>

2.2.0 upgrade-firebooster (2016-11-14)

Features (summary of all features from 2.2.0-beta.0 - 2.2.0-rc.0 releases)

  • core: map 'for' attribute to 'htmlFor' property (#10546) (634b3bb), closes #7516
  • core: add the find method to QueryList (7c16ef9)
  • forms: add emitEvent to AbstractControl methods (#11949) (b9fc090)
  • router: add a provider making angular1/angular2 integration easier (#12769) (6e35d13)
  • router: add support for custom url matchers (7340735), closes #12442 #12772
  • router: export routerLinkActive w/ isActive property (c9f58cf)
  • upgrade: add support for require in UpgradeComponent (fe1d0e2)
  • upgrade: add/improve support for lifecycle hooks in UpgradeComponent (469010e)

Performance Improvements

  • compiler: introduce direct rendering (9c23884)
  • core: don’t use DomAdapter nor zone for regular events (648ce59)
  • core: use array.push / array.pop instead of splice if possible (0fc11a4)
  • platform-browser: cache plugin resolution in the EventManager (73593d4), closes #12824
  • platform-browser: don’t use DomAdapter any more (d708a88)

Bug Fixes

  • animations: allow animations to be destroyed manually (#12719) (fe35bc3), closes #12456
  • animations: always normalize style properties and values during compilation (#12755) (a0e9fde), closes #11582 #12481
  • animations: always trigger animations after the change detection check (#12713) (383f23b)
  • animations: ensure animations work with web-workers (#12656) (19e869e)
  • animations: ensure web-animations are caught within the Angular zone (f80a157), closes #11881 #11712 #12355 #11881 #12546 #12707 #12774
  • common: NgSwitch - don’t create the default case if another case matches (#12726) (d8f23f4), closes #11297 #9420
  • common: I18nSelectPipe selects other case on default (4708b24)
  • common: no TZ Offset added by DatePipe for dates without time (#12380) (2aba8b0)
  • common: NgClass should throw a descriptive error when CSS class is not a string (#12662) (f3793b5), closes #12586
  • common: DatePipe should handle empty string (#12374) (3dc6177)
  • compiler: don't convert undefined to null literals (#11503) (f0cdb42), closes #11493
  • compiler: generate safe access strictNullChecks compatible code (#12800) (a965d11), closes #12795
  • compiler: support more than 9 interpolations (#12710) (22c021c), closes #10253
  • compiler: use the other case by default in ICU messages (55dc0e4)
  • compiler-cli: suppress closure compiler suspiciousCode check in codegen (#12666) (7103754)
  • compiler-cli: suppress two more closure compiler checks in codegen (#12698) (77cbf7f)
  • core: allow to query content of templates that are stamped out at a different place (f2bbef3), closes #12283 #12094
  • core: apply host attributes to root elements (#12761) (ad3bf6c), closes #12744
  • core: ensure that component views that have no bindings recurse into nested components / view containers. (051d748)
  • core: fix pseudo-selector shimming (#12754) (acbf1d8), closes #12730 #12354
  • forms: check if registerOnValidatorChange exists on validator before trying to invoke it (#12801) (ef88147), closes #12593
  • forms: getRawValue returns any instead of Object (#12599) (09092ac)
  • http: preserve header case when copying headers (#12697) (121e508)
  • router: advance a route only after its children have been deactivated (#12676) (9ddf9b3), closes #11715
  • router: avoid router initialization for non root components (2a4bf9a), closes #12338 #12814
  • router: check if windows.console exists before using it (#12348) (7886561)
  • router: correctly export concatMap operator in es5 (#12430) (e25baa0)
  • router: do not require the creation of empty-path routes when no url left (2c11093), closes #12133
  • router: ignore null or undefined query parameters (#12333) (3052fb2)
  • router: incorrect injector is used when instantiating components loaded lazily (#12817) (52be848)
  • router: resolve guard observables on the first emit (#10412) (2e78b76)
  • router: Route.isActive also compares query params (#12321) (785b7b6)
  • router: router should not swallow "unhandled" errors (e5a753e), closes #12802
  • router: throw an error when encounter undefined route (#12389) (77dc1ab)
  • platform-browser: enableDebugTools should create AngularTools by merging into context.ng (#12003) (b2cf379), closes #12002
  • platform-browser: provide the ability to register global hammer.js events (768cddb), closes #12797
  • tsc-wrapped: harden collector against invalid asts (#12793) (69f87ca)
<!-- CHANGELOG SPLIT MARKER -->

<a name="2.2.0-rc.0"></a>

2.2.0-rc.0 (2016-11-02)

Bug Fixes

  • compiler: dedupe NgModule declarations, … (a178bc6)
  • compiler: don’t double bind functions (e391cac)
  • compiler: Don’t throw on empty property bindings (642c1db), closes #12583
  • compiler: support multiple components in a view container (6fda972)
  • core: improve error when multiple components match the same element (e9fd864), closes #7067
  • router: call data observers when the path changes (1de04b2)
  • router: CanDeactivate receives a wrong component (830a780), closes #12592
  • router: rerun resolvers when url changes (fe47e6b), closes #12603
  • router: reset URL to the stable state when a navigation gets canceled (d509ee0), closes #10321
  • router: routerLink should not prevent default on non-link elements (8e221b8)
  • router: run navigations serially (091c390), closes #11754
  • upgrade: silent bootstrap failures (fa93fd6), closes #12062

Features

  • core: add the find method to QueryList (7c16ef9)
<!-- CHANGELOG SPLIT MARKER -->

<a name="2.1.2"></a>

2.1.2 (2016-10-27)

Bug Fixes

  • compiler: don't access view local variables nor pipes in host expressions (#12396) (867494a), closes #12004 #12071
  • compiler: walk third party modules (#12453) (a838aba), closes #11889 #12428
  • compiler: remove double exports of template_ast (7742ec0)
  • compiler: use Maps instead of objects in selector implementation (d321b0e)
  • compiler-cli: fix types (ef15364)
  • compiler-cli: assert that all pipes and directives are declared by a module (7221632)
  • http: overwrite already set xsrf header (b4265e0)
  • router: add a test to make sure canDeactivate guards are called for aux routes (fc60fa7), closes #11345
  • router: canDeactivate guards are not triggered for componentless routes (b741853), closes #12375
  • router: change router not to deactivate aux routes when navigating from a componentless routes (52a853e)
  • router: disallow component routes with named outlets (8f2fa0f), closes #11208 #11082
  • router: preserve resolve data (6ccbfd4), closes #12306
<!-- CHANGELOG SPLIT MARKER -->

<a name="2.2.0-beta.1"></a>

2.2.0-beta.1 (2016-10-27)

Code Refactoring

  • upgrade: re-export the new static upgrade APIs on new entry (a26dd28)

Features

  • router: export routerLinkActive w/ isActive property (c9f58cf)

BREAKING CHANGES (only for beta version users)

  • upgrade: Four newly added APIs in 2.2.0-beta: downgradeComponent, downgradeInjectable, UpgradeComponent, and UpgradeModule are no longer exported by @angular/upgrade. Import these from @angular/upgrade/static instead.

Note: The 2.2.0-beta.1 release also contains all the changes present in the 2.1.2 release.

2.1.1 (2016-10-20)

Bug Fixes

  • compiler: generate aot code for animation trigger output events (#12291) (6e5f8b5), closes #11707
  • compiler: don't redeclare a var in the same scope (#12386) (cca4a5c)
  • core: fix decorator default values (bd1dcb5)
  • core: fix property decorators (3993279), closes #12224
  • http: make normalizeMethodName optimizer-compatible. (#12370) (8409b65)
  • router: correctly export filter operator in es5 (#12286) (27d7677)
  • router: do not update primary route if only secondary outlet is given (#11797) (da5fc69)
  • router: fix lazy loading triggered by redirects from wildcard routes (5ae6915), closes #12183
  • router: module loader should start compiling modules when stubbedModules are set (#11742) (b44b6ef)

Performance Improvements

  • common: optimize NgSwitch default case (fdf4309)
<!-- CHANGELOG SPLIT MARKER -->

<a name="2.2.0-beta.0"></a>

2.2.0-beta.0 (2016-10-20)

Features

  • common: support narrow forms for month and weekdays in DatePipe (#12297) (f77ab6a), closes #12294
  • forms: add hasError and getError to AbstractControlDirective (#11985) (592f40a), closes #7255
  • forms: add ng-pending CSS class during async validation (#11243) (97bc971), closes #10336
  • forms: Added emitEvent to AbstractControl methods (#11949) (b9fc090)
  • forms: make 'parent' a public property of 'AbstractControl' (#11855) (445e592)
  • forms: Validator.pattern accepts a RegExp (#12323) (bf60418)
  • upgrade: add support for AoT compiled upgrade applications (d6791ff), closes #12239
  • router: add support for ng1/ng2 migration (#12160) (8b9ab44)

Note: The 2.2.0-beta.0 release also contains all the changes present in the 2.1.1 release.

<!-- CHANGELOG SPLIT MARKER -->

<a name="2.1.0"></a>

2.1.0 incremental-metamorphosis (2016-10-12)

Bug Fixes

  • compiler: allow whitespace as <ng-content> content (#12225) (df1718d)
  • compiler: interpolation expressions report the correct offset (#12125) (d641c36)
  • compiler: properly shim :host:before and :host(:before) (#12171) (aa92512), closes #12165
  • compiler: validate @HostBinding name (#12139) (13ecc14)
  • compiler-cli: don't clone static symbols when simplifying annotation metadata (#12158) (8c477b2)
  • compiler-cli: remove peerDependency on @angular/platform-server (#12122) (71b7654)
  • compiler-cli: remove unused parse5 dependency from package.json (eaaec69)
  • forms: allow optional fields with pattern and minlength validators (#12147) (d22eeb7)
  • forms: properly validate blank strings with minlength (#12091) (f50c1da)
  • http: fix Headers initialization from Headers and Object (#12106) (f4566f8)
  • http: Headers.append should append to the list (a67c067)
  • platform-browser-dynamic: mark platformBrowserDynamic as stable API (#12154) (bcef5ef)
  • router: improve error message (#12102) (e06303a)
  • router: parent resolve should complete before merging resolved data (1681e4f), closes #12032
  • router: wildcards routes should support lazy loading (40b92dd), closes #12024
  • upgrade: allow compilerOptions in bootstrap (#10575) (5effc33)
<!-- CHANGELOG SPLIT MARKER -->

<a name="2.1.0-rc.0"></a>

2.1.0-rc.0 (2016-10-05)

Features

  • animations: provide aliases for :enter and :leave transitions (#11991) (e884f48)

Note: 2.1.0-rc.0 release also contains all the changes present in the 2.0.2 release.

<!-- CHANGELOG SPLIT MARKER -->

<a name="2.1.0-beta.0"></a>

2.1.0-beta.0 (2016-09-23)

Features

  • router: add router preloader to optimistically preload routes (5a84982)

Bug Fixes

  • router: update the router not to reset router state when updating root component (#11799) (31dce72)

Note: 2.1.0-beta.0 release also contains all the changes present in the 2.0.1 release.

<!-- CHANGELOG SPLIT MARKER -->

<a name="2.0.2"></a>

2.0.2 (2016-10-05)

Bug Fixes

  • common: correctly removes styles on IE (#11953), closes #7916
  • compiler: do not embed templateUrl in view factories in non-debug mode. (#11818) (51e1994), closes #11117
  • compiler: move detection of unsafe properties for binding to ElementSchemaRegistry (#11378) (5911c3b)
  • compiler: fix :host(tag) and :host-context(tag) (a6bb84e0), closes #11972
  • compiler: fix attribute selectors in :host and :host-context (#12056) (6f7ed32), closes #11917
  • compiler: support @page and @document CSS rules (#11878) (c99ef49), closes #11860
  • compiler: support [attr="value with space"] (bd012ef), closes #6249
  • compiler: support quoted attribute values (7395400), closes #6085
  • compiler: fix <x> ctype names (7578d85), closes #12000
  • compiler-cli: allow ReflectorHost passed as argument to CodeGenerator#create (#11951) (826c98e)
  • forms: properly validate empty strings with patterns (#11450) (e00de0c)
  • http: preserve case of the first init, set() or append() (#12023) (adb17fe), closes #11624
  • http: remove url params if provided value is null or undefined (#11990) (9cc0a4e)
  • router: do not reset the router state when updating the component (#11867) (cf750e1)
  • upgrade: bind optional properties when upgrading from ng1 (#11411) (0851238), closes #10181
<!-- CHANGELOG SPLIT MARKER -->

<a name="2.0.1"></a>

2.0.1 (2016-09-23)

Bug Fixes

  • common: fix ngOnChanges signature of NgTemplateOutlet directive (14ee759)
  • compiler: [attribute~=value] selector (#11696) (734b8b8), closes #9644
  • compiler: safe property access expressions work in event bindings (#11724) (a95d652)
  • compiler: throw when Component.moduleId is not a string (bd4045b), closes #11590
  • compiler: do not provide I18N values when they're not specified (03aedbe), closes #11643
  • core: ContentChild descendants should be queried by default (0dc15eb), closes #11645
  • forms: disable all radios with disable() (2860418)
  • forms: make setDisabledState optional for reactive form directives (#11731) (51d73d3), closes #11719
  • forms: support unbound disabled in ngModel (#11736) (39e251e)
  • upgrade: allow attribute selectors for components in ng2 which are not part of upgrade (#11808) (b81e2e7), closes #11280
<!-- CHANGELOG SPLIT MARKER -->

<a name="2.0.0"></a>

2.0.0 proprioception-reinforcement (2016-09-14)