Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@angular/bazel

angular11.2kMIT15.2.9TypeScript support: included

Angular - bazel build rules

readme

Angular - The modern web developer's platform

angular-logo
Angular is a development platform for building mobile and desktop web applications
using TypeScript/JavaScript and other languages.

www.angular.io

Contributing Guidelines · Submit an Issue · Blog

CI status   Angular on npm   Discord conversation

InsightsSnapshot


Documentation

Get started with Angular, learn the fundamentals and explore advanced topics on our documentation website.

Advanced

Development Setup

Prerequisites

Setting Up a Project

Install the Angular CLI globally:

npm install -g @angular/cli

Create workspace:

ng new [PROJECT NAME]

Run the application:

cd [PROJECT NAME]
ng serve

Angular is cross-platform, fast, scalable, has incredible tooling, and is loved by millions.

Quickstart

Get started in 5 minutes.

Ecosystem

angular ecosystem logos

Changelog

Learn about the latest improvements.

Upgrading

Check out our upgrade guide to find out the best way to upgrade your project.

Contributing

Contributing Guidelines

Read through our contributing guidelines to learn about our submission process, coding rules, and more.

Want to Help?

Want to report a bug, contribute some code, or improve the documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues labeled as <kbd>help wanted</kbd> or <kbd>good first issue</kbd>.

Code of Conduct

Help us keep Angular open and inclusive. Please read and follow our Code of Conduct.

Community

Join the conversation and help the community.

Love Angular badge

Love Angular? Give our repo a star :star: :arrow_up:.

changelog

15.2.9 (2023-05-03)

common

Commit Type Description
9107e931ca fix fix incorrectly reported distortion for padded images (#49889)
### compiler-cli
Commit Type Description
-- -- --
7c58885797 fix catch fatal diagnostic when getting diagnostics for components (#50046)

15.2.8 (2023-04-19)

core

Commit Type Description
2fff8fadbe fix handle invalid classes in class array bindings (#49924)
### http
Commit Type Description
-- -- --
05a0225deb fix prevent headers from throwing an error when initializing numerical values (#49379)
### router
Commit Type Description
-- -- --
09a42d988e fix canceledNavigationResolution: 'computed' with redirects to the current URL (#49793)

15.2.7 (2023-04-12)

compiler

Commit Type Description
b0c1a90f55 fix Produce diagnositc if directive used in host binding is not exported (#49792)
### compiler-cli
Commit Type Description
-- -- --
a40529af2e fix Catch FatalDiagnosticError during template type checking (#49792)
### core
Commit Type Description
-- -- --
702ec90110 fix When using setInput, mark view dirty in same way as markForCheck (#49747)
## Special Thanks
Alan Agius, Andrew Kushnir, Andrew Scott, Kristiyan Kostadinov, Matthieu Riegler and Nikola Kološnjaji

15.2.6 (2023-04-05)

core

Commit Type Description
d9efa1b0d7 feat change the URL sanitization to only block javascript: URLs (#49659)
### router
Commit Type Description
-- -- --
cad7274ef9 fix create correct URL relative to path with empty child (#49691)
9b61379096 fix Ensure initial navigation clears current navigation when blocking (#49572)
## Special Thanks
Andrew Scott, Guillaume Weghsteen, John Manners, Johnny Gérard, Matthieu Riegler, Robin Richtsfeld, Sandra Limacher, Sarthak Thakkar, Vinit Neogi and vikram menon

15.2.5 (2023-03-29)

common

Commit Type Description
ca5acadb78 fix invalid ImageKit transformation (#49201)
### compiler
Commit Type Description
-- -- --
077f6b4674 fix do not unquote CSS values (#49460)
c3cff35869 fix handle trailing comma in object literal (#49535)
### core
Commit Type Description
-- -- --
d201fc2dec fix set style property value to empty string instead of an invalid value (#49460)
### router
Commit Type Description
-- -- --
978d37f324 fix Ensure Router preloading works with lazy component and static children (#49571)
a844435514 fix fix #49457 outlet activating with old info (#49459)
## Special Thanks
Alan Agius, Andrew Scott, Asaf Malin, Jan Cabadaj, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner, Sid and Tano Abeleyra

15.2.4 (2023-03-22)

core

Commit Type Description
bae6b5ceb1 fix Allow TestBed.configureTestingModule to work with recursive cycle of standalone components. (#49473)
087f4412af fix more accurate matching of classes during content projection (#48888)
## Special Thanks
Aditya Srinivasan, Alex Rickabaugh, Andrew Scott, Kristiyan Kostadinov, Masaoki Kobayashi, Matthieu Riegler, Paul Gschwendtner, Peter Götz, Thomas Pischke, Virginia Dooley and avmaxim

15.2.3 (2023-03-16)

Special Thanks

Alan Agius, Esteban Gehring, Matthieu Riegler and Virginia Dooley

15.2.2 (2023-03-08)

migrations

Commit Type Description
6207d6f1f0 fix add protractor support if protractor imports are detected (#49274)
## Special Thanks
Alan Agius, Andrew Kushnir, Andrew Scott, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner, Sai Kartheek Bommisetty and Vinit Neogi

15.2.1 (2023-03-01)

common

Commit Type Description
f0e926074d fix make Location.normalize() return the correct path when the base path contains characters that interfere with regex syntax. (#49181)
### compiler-cli
Commit Type Description
-- -- --
04d8b6c61a fix do not persist component analysis if template/styles are missing (#49184)
### core
Commit Type Description
-- -- --
d60ea6ab5a fix update zone.js peerDependencies ranges (#49244)
### migrations
Commit Type Description
-- -- --
44d095a61c fix avoid migrating the same class multiple times in standalone migration (#49245)
92b0bda9e4 fix delete barrel exports in standalone migration (#49176)
### router
Commit Type Description
-- -- --
3062442728 fix add error message when using loadComponent with a NgModule (#49164)
## Special Thanks
Alan Agius, Andrew Kushnir, Aristeidis Bampakos, Craig Spence, Doug Parker, Iván Navarro, Joey Perrott, Kristiyan Kostadinov, Matthieu Riegler, Michael Ziluck, Paul Gschwendtner, Stephanie Tuerk, Vincent and Virginia Dooley

15.2.0 (2023-02-22)

Deprecations

  • Class and InjectionToken guards and resolvers are deprecated. Instead, write guards as plain JavaScript functions and inject dependencies with inject from @angular/core.

    | Commit | Type | Description | | -- | -- | -- | | 926c35f4ac | docs | Deprecate class and InjectionToken and resolvers (#47924) |

    common

    | Commit | Type | Description | | -- | -- | -- | | 54b24eb40f | feat | Add loaderParams attribute to NgOptimizedImage (#48907) |

    compiler-cli

    | Commit | Type | Description | | -- | -- | -- | | 0cf11167f1 | fix | incorrectly detecting forward refs when symbol already exists in file (#48988) |

    core

    | Commit | Type | Description | | -- | -- | -- | | a154db8a81 | feat | add ng generate schematic to convert declarations to standalone (#48790) | | 345e737daa | feat | add ng generate schematic to convert to standalone bootstrapping APIs (#48848) | | e7318fc758 | feat | add ng generate schematic to remove unnecessary modules (#48832) |

    language-service

    | Commit | Type | Description | | -- | -- | -- | | 4ae384fd61 | feat | Allow auto-imports of a pipe via quick fix when its selector is used, both directly and via reexports. (#48354) | | 141333411e | feat | Introduce a new NgModuleIndex, and use it to suggest re-exports. (#48354) | | d0145033bd | fix | generate forwardRef for same file imports (#48898) |

    migrations

    | Commit | Type | Description | | -- | -- | -- | | 2796230e95 | fix | add enum in mode option in standalone schema (#48851) | | 816e76a578 | fix | automatically prune root module after bootstrap step (#49030) | | bdbf21d04b | fix | avoid generating imports with forward slashes (#48993) | | 32cf4e5cb9 | fix | avoid internal modules when generating imports (#48958) | | 521ccfbe6c | fix | avoid interrupting the migration if language service lookup fails (#49010) | | a40cd47aa7 | fix | avoid modifying testing modules without declarations (#48921) | | 1afa6ed322 | fix | don't add ModuleWithProviders to standalone test components (#48987) | | c98c6a8452 | fix | don't copy animations modules into the imports of test components (#49147) | | 8389557848 | fix | don't copy unmigrated declarations into imports array (#48882) | | f82bdc4b01 | fix | don't delete classes that may provide dependencies transitively (#48866) | | 759db12e0b | fix | duplicated comments on migrated classes (#48966) | | ba38178d19 | fix | generate forwardRef for same file imports (#48898) | | 03fcb36cfd | fix | migrate HttpClientModule to provideHttpClient() (#48949) | | 2de6dae16d | fix | migrate RouterModule.forRoot with a config object to use features (#48935) | | 770191cf1f | fix | migrate tests when switching to standalone bootstrap API (#48987) | | c7926b5773 | fix | move standalone migrations into imports (#48987) | | 65c74ed93e | fix | normalize paths to posix (#48850) | | 6377487b1a | fix | only exclude bootstrapped declarations from initial standalone migration (#48987) | | e9e4449a43 | fix | preserve tsconfig in standalone migration (#48987) | | ffad1b49d9 | fix | reduce number of files that need to be checked (#48987) | | ba7a757cc5 | fix | return correct alias when conflicting import exists (#49139) | | 49a7c9f94a | fix | standalone migration incorrectly throwing path error for multi app projects (#48958) | | 584976e6c8 | fix | support --defaults in standalone migration (#48921) | | 03f47ac901 | fix | use consistent quotes in generated imports (#48876) | | ebae506d89 | fix | use import remapper in root component (#49046) | | 40c976c909 | fix | use NgForOf instead of NgFor (#49022) | | 4ac25b2aff | perf | avoid re-traversing nodes when resolving bootstrap call dependencies (#49010) | | 26cb7ab2e6 | perf | speed up language service lookups (#49010) |

    platform-browser

    | Commit | Type | Description | | -- | -- | -- | | bf4ad38117 | fix | remove styles from DOM of destroyed components (#48298) |

    platform-server

    | Commit | Type | Description | | -- | -- | -- | | 25e220a23a | fix | avoid duplicate TransferState info after renderApplication call (#49094) |

    router

    | Commit | Type | Description | | -- | -- | -- | | 31b94c762f | feat | Add a withNavigationErrorHandler feature to provideRouter (#48551) | | dedac8d3f7 | feat | Add test helper for trigger navigations in tests (#48552) |

    Special Thanks

    Alan Agius, Alex Castle, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Dylan Hunn, Ikko Eltociear Ashimine, Ilyass, Jessica Janiuk, Joey Perrott, John Manners, Kalbarczyk, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner, Pawel Kozlowski, Virginia Dooley, Walid Bouguima, cexbrayat and mgechev

15.1.5 (2023-02-15)

forms

Commit Type Description
5f2a3edcf2 fix Make radio buttons respect [attr.disabled] (#48864)
## Special Thanks
AleksanderBodurri, Alvaro Junqueira, Dylan Hunn, Joey Perrott, Matthieu Riegler, PaloMiklo and Paul Gschwendtner

15.1.4 (2023-02-08)

Special Thanks

Jessica Janiuk, Kian Yang Lee, Matthieu Riegler, Redouane Bekkouche and Simona Cotin

15.1.3 (2023-02-02)

animations

Commit Type Description
d36dfd4b62 fix fix non-animatable warnings for easing (#48583)
### common
Commit Type Description
-- -- --
a334e4efbe fix warn if using ngSrcset without a configured image loader (#48804)
### compiler
Commit Type Description
-- -- --
171b4d4640 fix incorrect code when non-null assertion is used after a safe access (#48801)
### migrations
Commit Type Description
-- -- --
9e86dd231b fix Fixed file format issue with lint (#48859)
af31f98b00 fix migration host incorrectly reading empty files (#48849)
### platform-server
Commit Type Description
-- -- --
73972c684e fix insert transfer state script before other script tags (#48868)
### router
Commit Type Description
-- -- --
d5b2c249a3 fix Handle routerLink directive on svg anchors. (#48857)
## Special Thanks
Alan Agius, Besim Gürbüz, Brecht Billiet, Dario Piotrowicz, Dylan Hunn, Iván Navarro, Jessica Janiuk, Kristiyan Kostadinov, Matthieu Riegler, Onkar Ruikar, Payam Valadkhan, Santosh Yadav, Virginia Dooley and Walid Bouguima

15.1.2 (2023-01-25)

compiler

Commit Type Description
98ccb57117 fix handle css selectors with space after an escaped character. (#48558)
### compiler-cli
Commit Type Description
-- -- --
145f848a10 fix resolve deprecation warning (#48812)
### router
Commit Type Description
-- -- --
a6b10f6e59 fix 'createUrlTreeFromSnapshot' with empty paths and named outlets (#48734)
## Special Thanks
Alan Agius, AleksanderBodurri, Andrew Kushnir, Andrew Scott, Charles Lyding, Dylan Hunn, JoostK, Matthieu Riegler, Paul Gschwendtner, Payam Valadkhan, Virginia Dooley, Yann Thomas LE MOIGNE and dario-piotrowicz

15.1.1 (2023-01-18)

common

Commit Type Description
68ce4f6ab4 fix Update Location to get a normalized URL valid in case a represented URL starts with the substring equals APP_BASE_HREF (#48489)
032b2bd689 perf avoid excessive DOM mutation in NgClass (#48433)
### core
Commit Type Description
-- -- --
dd54f6bd96 fix makeEnvironmentProviders should accept EnvironmentProviders (#48720)
## Special Thanks
Alan Agius, Alex Rickabaugh, Andrew Scott, Aristeidis Bampakos, Bob Watson, Jens, Konstantin Kharitonov, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner, Pawel Kozlowski, Vladyslav Slipchenko, ced, dario-piotrowicz, mgechev and ノウラ

15.1.0 (2023-01-10)

Deprecations

router

  • CanLoad guards in the Router are deprecated. Use CanMatch instead.
  • router writable properties

    The following strategies are meant to be configured by registering the application strategy in DI via the providers in the root NgModule or bootstrapApplication:

    • routeReuseStrategy
    • titleStrategy
    • urlHandlingStrategy

    The following options are meant to be configured using the options available in RouterModule.forRoot or provideRouter.

    • onSameUrlNavigation
    • paramsInheritanceStrategy
    • urlUpdateStrategy
    • canceledNavigationResolution

    The following options are available in RouterModule.forRoot but not available in provideRouter:

    • malformedUriErrorHandler - This was found to not be used anywhere internally.
    • errorHandler - Developers can instead subscribe to Router.events and filter for NavigationError.

      common

      | Commit | Type | Description | | -- | -- | -- | | fe50813664 | feat | Add BrowserPlatformLocation to the public API (#48488) | | 2f4f0638c7 | fix | Add data attribtue to NgOptimizedImage (#48497) |

      compiler

      | Commit | Type | Description | | -- | -- | -- | | a532d71975 | feat | allow self-closing tags on custom elements (#48535) | | caf7228f8a | fix | resolve deprecation warning (#48652) | | 33f35b04ef | fix | type-only symbols incorrectly retained when downlevelling custom decorators (#48638) |

      compiler-cli

      | Commit | Type | Description | | -- | -- | -- | | caedef0f5b | fix | update @babel/core dependency and lock version (#48634) |

      core

      | Commit | Type | Description | | -- | -- | -- | | 6acae1477a | feat | Add TestBed.runInInjectionContext to help test functions which use inject (#47955) | | 38421578a2 | feat | Make the isStandalone() function available in public API (#48114) | | dd42974b07 | feat | support TypeScript 4.9 (#48005) |

      forms

      | Commit | Type | Description | | -- | -- | -- | | 8aa8b4b77c | fix | Form provider FormsModule.withConfig return a FormsModule (#48526) |

      language-service

      | Commit | Type | Description | | -- | -- | -- | | 5f0b53c735 | feat | Allow auto-imports to suggest multiple possible imports. (#47787) | | 6a8ea29a04 | fix | expose package.json for vscode extension resolution (#48678) | | ce8160ecb2 | fix | Prevent crashes on unemitable references (#47938) | | e615b598ba | fix | ship /api entry-point (#48670) | | 6ce7d76a0e | fix | update packages/language-service/build.sh script to work with vscode-ng-language-service's new Bazel build (#48663) |

      localize

      | Commit | Type | Description | | -- | -- | -- | | a1a8e91eca | fix | add triple slash type reference on @angular/localize on `ng add (#48502) |

      migrations

      | Commit | Type | Description | | -- | -- | -- | | cc284afbbc | fix | combine newly-added imports in import manager (#48620) |

      router

      | Commit | Type | Description | | -- | -- | -- | | 228e992db7 | docs | Deprecate canLoad guards in favor of canMatch (#48180) | | 0a8b8a66cd | docs | Deprecate public members of Router that are meant to be configured elsewhere (#48006) | | 332461bd0c | feat | Add ability to override onSameUrlNavigation default per-navigation (#48050) | | f58ad86e51 | feat | Add feature provider for enabling hash navigation (#48301) | | 73f03ad2d2 | feat | Add new NavigationSkipped event for ignored navigations (#48024) | | 3fe75710d9 | fix | page refresh should not destroy history state (#48540) |

      Special Thanks

      Alan Agius, Alex Castle, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Bob Watson, Charles Lyding, Derek Cormier, Doug Parker, Dylan Hunn, George Kalpakas, Greg Magolan, Jessica Janiuk, JiaLiPassion, Joey Perrott, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner, Pawel Kozlowski, Renan Ferro, Tim Gates, Vadim, Virginia Dooley, ced, mgechev, piyush132000, robertIsaac and sr5434

15.0.4 (2022-12-14)

animations

Commit Type Description
6c1064c72f fix fix incorrect handling of camel-case css properties (#48436)
### common
Commit Type Description
-- -- --
f30d18a942 fix Fix TestBed.overrideProvider type to include multi (#48424)
### compiler-cli
Commit Type Description
-- -- --
b55d2dab5d fix evaluate const tuple types statically (#48091)
## Special Thanks
Alan Agius, Andrew Kushnir, Andrew Scott, Aristeidis Bampakos, Bob Watson, BrowserPerson, Jens, Jessica Janiuk, Joey Perrott, JoostK, Konstantin Kharitonov, Lukas Matta, Piotr Kowalski, Virginia Dooley, Yannick Baron, dario-piotrowicz, lsst25, piyush132000 and why520crazy

15.0.3 (2022-12-07)

common

Commit Type Description
50b1c2bf52 fix Don't generate srcsets with very large sources (#47997)
bf44dc234a fix Update Location to support base href containing origin (#48327)
### compiler
Commit Type Description
-- -- --
9a5d84249a fix make sure selectors inside container queries are correctly scoped (#48353)
### compiler-cli
Commit Type Description
-- -- --
167bc0d163 fix Produce diagnostic rather than crash when using invalid hostDirective (#48314)
### core
Commit Type Description
-- -- --
e4dcaa513e fix unable to inject ChangeDetectorRef inside host directives (#48355)
## Special Thanks
Alan Agius, Alex Castle, Andrew Kushnir, Andrew Scott, Bob Watson, Derek Cormier, Joey Perrott, Konstantin Kharitonov, Kristiyan Kostadinov, Paul Gschwendtner, Pawel Kozlowski, dario-piotrowicz and piyush132000

15.0.2 (2022-11-30)

compiler-cli

Commit Type Description
86a21f5569 fix accept inheriting the constructor from a class in a library (#48156)
## Special Thanks
Alan Agius, Andrew Scott, Aristeidis Bampakos, Bob Watson, Derek Cormier, JoostK, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner, Pawel Kozlowski, Rokas Brazdžionis, mgechev and piyush132000

15.0.1 (2022-11-22)

common

Commit Type Description
930af9dd26 fix Fix MockPlatformLocation events and missing onPopState implementation (#48113)
### forms
Commit Type Description
-- -- --
b342e55509 fix don't mutate validators array (#47830)
a12a120272 fix FormBuilder.group return right type with shorthand parameters. (#48084)
### language-service
Commit Type Description
-- -- --
cc8b76ef7c fix correctly handle host directive inputs/outputs (#48147)
a8c33bf931 fix update packages/language-service/build.sh script to work with vscode-ng-language-service's new Bazel build (#48120)
### router
Commit Type Description
-- -- --
e4309d57d8 fix correct type of nextState parameter in canDeactivate (#48038)
9baefd085f fix Ensure renavigating in component init works with enabledBlocking (#48063)
fa5528fb5f fix restore 'history.state' on popstate even if navigationId missing (#48033)
## Special Thanks
Alan Agius, Andrew Scott, Bjarki, Bob Watson, Brooke, Derek Cormier, Dylan Hunn, George Kalpakas, Greg Magolan, Ikko Ashimine, Ivan Rodriguez, Jessica Janiuk, Joe Roxbury, Joey Perrott, Kristiyan Kostadinov, Matthieu Riegler, Mikhail Savchuk, Nebojsa Cvetkovic, Pawel Kozlowski, Volodymyr and Wooshaah

12.2.17 (2022-11-22)

Breaking Changes

core

  • Existing iframe usages may have security-sensitive attributes applied as an attribute or property binding in a template or via host bindings in a directive. Such usages would require an update to ensure compliance with the new stricter rules around iframe bindings.

    core

    | Commit | Type | Description | | -- | -- | -- | | b871db57da | fix | hardening attribute and property binding rules for <iframe> elements (#48059) |

    Special Thanks

    Andrew Kushnir, Andrew Scott, George Looshch, Joey Perrott and Paul Gschwendtner

13.3.12 (2022-11-21)

Breaking Changes

core

  • Existing iframe usages may have security-sensitive attributes applied as an attribute or property binding in a template or via host bindings in a directive. Such usages would require an update to ensure compliance with the new stricter rules around iframe bindings.

    core

    | Commit | Type | Description | | -- | -- | -- | | b1d7b79ff4 | fix | hardening attribute and property binding rules for <iframe> elements (#48029) |

    Special Thanks

    Andrew Kushnir, Andrew Scott, George Looshch, Joey Perrott and Paul Gschwendtner

14.2.12 (2022-11-21)

Breaking Changes

core

  • Existing iframe usages may have security-sensitive attributes applied as an attribute or property binding in a template or via host bindings in a directive. Such usages would require an update to ensure compliance with the new stricter rules around iframe bindings.

    core

    | Commit | Type | Description | | -- | -- | -- | | 54814c8e9b | fix | hardening attribute and property binding rules for <iframe> elements (#48028) |

    Special Thanks

    Andrew Kushnir

15.0.0 (2022-11-16)

Blog post "Angular v15 is now available".

Breaking Changes

compiler

  • Keyframes names are now prefixed with the component's "scope name". For example, the following keyframes rule in a component definition, whose "scope name" is host-my-cmp:

    @keyframes foo { ... }

    will become:

    @keyframes host-my-cmp_foo { ... }

    Any TypeScript/JavaScript code which relied on the names of keyframes rules will no longer match.

    The recommended solutions in this case are to either:

    • change the component's view encapsulation to the None or ShadowDom
    • define keyframes rules in global stylesheets (e.g styles.css)
    • define keyframes rules programmatically in code.

      compiler-cli

  • Invalid constructors for DI may now report compilation errors

    When a class inherits its constructor from a base class, the compiler may now report an error when that constructor cannot be used for DI purposes. This may either be because the base class is missing an Angular decorator such as @Injectable() or @Directive(), or because the constructor contains parameters which do not have an associated token (such as primitive types like string). These situations used to behave unexpectedly at runtime, where the class may be constructed without any of its constructor parameters, so this is now reported as an error during compilation.

    Any new errors that may be reported because of this change can be resolved either by decorating the base class from which the constructor is inherited, or by adding an explicit constructor to the class for which the error is reported.

  • Angular compiler option enableIvy has been removed as Ivy is the only rendering engine.

    core

  • Angular no longer supports Node.js versions 14.[15-19].x and 16.[10-12].x. Current supported versions of Node.js are 14.20.x, 16.13.x and 18.10.x.
  • TypeScript versions older than 4.8 are no longer supported.
  • Existing iframe usages may have security-sensitive attributes applied as an attribute or property binding in a template or via host bindings in a directive. Such usages would require an update to ensure compliance with the new stricter rules around iframe bindings.
  • Existing iframe usages may have src or srcdoc preceding other attributes. Such usages may need to be updated to ensure compliance with the new stricter rules around iframe bindings.

    forms

  • setDisabledState will always be called when a ControlValueAccessor is attached. You can opt-out with FormsModule.withConfig or ReactiveFormsModule.withConfig.

    localize

    • canParse method has been removed from all translation parsers in @angular/localize/tools. analyze should be used instead.
    • the hint parameter in theparse methods is now mandatory.

      router

  • Previously, the RouterOutlet would immediately instantiate the component being activated during navigation. Now the component is not instantiated until the change detection runs. This could affect tests which do not trigger change detection after a router navigation. In rarer cases, this can affect production code that relies on the exact timing of component availability.
  • The title property is now required on ActivatedRouteSnapshot
  • relativeLinkResolution is no longer configurable in the Router. This option was used as a means to opt out of a bug fix.

    Deprecations

    common

  • The DATE_PIPE_DEFAULT_TIMEZONE token is now deprecated in favor of the DATE_PIPE_DEFAULT_OPTIONS token, which accepts an object as a value and the timezone can be defined as a field (called timezone) on that object.

    core

    • The ability to pass an NgModule to the providedIn option for @Injectable and InjectionToken is now deprecated.

    providedIn: NgModule was intended to be a tree-shakable alternative to NgModule providers. It does not have wide usage, and in most cases is used incorrectly, in circumstances where providedIn: 'root' should be preferred. If providers should truly be scoped to a specific NgModule, use NgModule.providers instead.

    • The ability to set providedIn: 'any' for an @Injectable or InjectionToken is now deprecated.

    providedIn: 'any' is an option with confusing semantics and is almost never used apart from a handful of esoteric cases internal to the framework.

  • The bit field signature of Injector.get() has been deprecated, in favor of the new options object.
  • The bit field signature of TestBed.inject() has been deprecated, in favor of the new options object.

    router

  • The RouterLinkWithHref directive is deprecated, use the RouterLink directive instead. The RouterLink contains the code from the RouterLinkWithHref to handle elements with href attributes.

    common

    | Commit | Type | Description | | -- | -- | -- | | c0c7efaf7c | feat | add provideLocationMocks() function to provide Location mocks (#47674) | | 75e6297f09 | feat | add <link> preload tag on server for priority img (#47343) | | 4fde292bb5 | feat | Add automatic srcset generation to ngOptimizedImage (#47547) | | 9483343ebf | feat | Add fill mode to NgOptimizedImage (#47738) | | bdb5371033 | feat | add injection token for default DatePipe configuration (#47157) | | 449d29b701 | fix | Add fetchpriority to ngOptimizedImage preloads (#48010) | | 4f52d4e474 | fix | don't generate srcset if noopImageLoader is used (#47804) | | 3a18398d83 | fix | Don't warn about image distortion is fill mode is enabled (#47824) | | edea15f2c6 | fix | export the IMAGE_CONFIG token (#48051) | | 8abf1c844c | fix | fix formatting on oversized image error (#47188) | | ca7bf65933 | fix | rename rawSrc -> ngSrc in NgOptimizedImage directive (#47362) | | b3879dbf14 | fix | support density descriptors with 2+ decimals (#47197) | | fa4798095e | fix | update size error to mention 'fill' mode (#47797) | | 23f210c0ab | fix | warn if using supported CDN but not built-in loader (#47330) | | 945432e3fa | fix | Warn on fill ngOptimizedImage without height (#48036) |

    compiler

    | Commit | Type | Description | | -- | -- | -- | | 051f75648d | fix | scope css keyframes in emulated view encapsulation (#42608) | | 39b72e208b | fix | update element schema (#47552) | | 48b354a83e | fix | update element schema (#47552) |

    compiler-cli

    | Commit | Type | Description | | -- | -- | -- | | bc54687c7b | fix | exclude abstract classes from strictInjectionParameters requirement (#44615) | | 309b2cde51 | fix | implement more host directive validations as diagnostics (#47768) | | 2e1dddec45 | fix | support hasInvalidatedResolutions. (#47585) | | 19ad4987f9 | fix | use @ts-ignore. (#47636) | | 8fcadaad48 | perf | cache source file for reporting type-checking diagnostics (#47471) | | 16f96eeabf | refactor | remove enableIvy options (#47346) |

    core

    | Commit | Type | Description | | -- | -- | -- | | e3cef4a784 | docs | deprecate providedIn: NgModule and providedIn: 'any' (#47616) | | 1b9fd46d14 | feat | add support for Node.js version 18 (#47730) | | ed11a13c3c | feat | drop support for TypeScript 4.6 and 4.7 (#47690) | | db28badfe6 | feat | enable the new directive composition API (#47642) | | 7de1469be6 | feat | introduce EnvironmentProviders wrapper type (#47669) | | 841c8e5138 | feat | support object-based DI flags in Injector.get() (#46761) | | 120555a626 | feat | support object-based DI flags in TestBed.inject() (#46761) | | 96c0e42e61 | fix | allow readonly arrays for standalone imports (#47851) | | 28f289b825 | fix | hardening attribute and property binding rules for <iframe> elements (#47964) | | d4b3c0b47c | fix | hardening rules related to the attribute order on iframe elements (#47935) | | 85330f3fd9 | fix | update isDevMode to rely on ngDevMode (#47475) |

    forms

    | Commit | Type | Description | | -- | -- | -- | | a8569e3802 | feat | export forms utility functions: isFormArray, isFormGroup… (#47718) | | 96b7fe93af | fix | call setDisabledState on ControlValueAcessor when control is enabled (#47576) | | a99d9d67f3 | fix | don't mutate validators array (#47830) | | 2625dc1312 | fix | Improve a very commonly viewed error message by adding a guide. (#47969) | | ae29f98c20 | fix | Runtime error pages must begin with leading zero (#47991) |

    http

    | Commit | Type | Description | | -- | -- | -- | | 3ba99e286a | feat | allow for child HttpClients to request via parents (#47502) | | 84d0d33c35 | feat | introduce provideHttpClientTesting provider function (#47502) | | 62c7a7a16e | feat | introduce functional interceptors (#47502) | | e47b129070 | feat | introduce the provideHttpClient() API (#47502) | | ea16a98dfe | fix | better handle unexpected undefined XSRF tokens (#47683) | | e7b48da713 | fix | rename withLegacyInterceptors to withInterceptorsFromDi (#47901) |

    language-service

    | Commit | Type | Description | | -- | -- | -- | | bebef5fb43 | feat | Quick fix to import a component when its selector is used (#47088) | | e7ee53c541 | feat | support to fix invalid banana in box (#47393) |

    localize

    | Commit | Type | Description | | -- | -- | -- | | 400a6b5e37 | fix | add polyfill in polyfills array instead of polyfills.ts (#47569) | | b6fd814542 | fix | update ng add schematic to support Angular CLI version 15 (#47763) | | d36fd3d9e4 | refactor | remove deprecated canParse method from TranslationParsers (#47275) |

    platform-server

    | Commit | Type | Description | | -- | -- | -- | | 2908eba59c | fix | align server renderer interface with base renderer (#47868) |

    router

    | Commit | Type | Description | | -- | -- | -- | | 7bee28d037 | feat | add a migration to remove relativeLinkResolution usages (#47604) | | 5163e3d876 | feat | Add UrlTree constructor to public API (#47186) | | da58801f95 | feat | auto-unwrap default exports when lazy loading (#47586) | | c3f857975d | feat | make RouterOutlet name an Input so it can be set dynamically (#46569) | | f73ef21442 | feat | merge RouterLinkWithHref into RouterLink (#47630) | | 16c8f55663 | feat | migrate RouterLinkWithHref references to RouterLink (#47599) | | 07017a7bd3 | feat | prevent provideRouter() from usage in @Component (#47669) | | 79e9e8ab77 | fix | Delay router scroll event until navigated components have rendered (#47563) | | 6a88bad019 | fix | Ensure ActivatedRouteSnapshot#title has correct value (#47481) | | 7b89d95c0e | fix | Remove deprecated relativeLinkResolution (#47623) |

    Special Thanks

    Alan Agius, AleksanderBodurri, Alex Castle, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Charles Lyding, Dylan Hunn, Ferdinand Malcher, George Kalpakas, Jeremy Elbourn, Jessica Janiuk, JiaLiPassion, Joey Perrott, JoostK, Kara Erickson, Kristiyan Kostadinov, Martin Probst, Matthias Weiß, Matthieu Riegler, Paul Gschwendtner, Pawel Kozlowski, Sabareesh Kappagantu, WD Snoeijer, angular-robot[bot], arturovt, ced, dario-piotrowicz, ivanwonder and jaybell

14.2.11 (2022-11-16)

router

Commit Type Description
aef353c143 fix Ensure renavigating in component init works with enabledBlocking (#48066)
## Special Thanks
Alan Agius, Andrew Scott and Mujo Osmanovic

14.2.10 (2022-11-09)

core

Commit Type Description
a4312e1be5 fix addzone.js version 0.12.x as a valid peer dependency (#48002)
### router
Commit Type Description
-- -- --
db867fee77 fix fix redirectTo on named outlets - resolves #33783 (#47927)
## Special Thanks
Alan Agius, Albert Szekely, Andrew Scott, Doug Parker, Kristiyan Kostadinov, Markus Eckstein, Peter Scriven and abergquist

14.2.9 (2022-11-03)

platform-browser

Commit Type Description
92d28bdd99 perf resolve memory leak when using animations with shadow DOM (#47903)
### platform-server
Commit Type Description
-- -- --
d2d9bbf5ce fix call onSerialize when state is empty (#47888)
## Special Thanks
Alan Agius, Kristiyan Kostadinov, Virginia Dooley and mgechev

14.2.8 (2022-10-26)

Special Thanks

Andrew Scott, Balaji, Paul Gschwendtner, WD Snoeijer, onrails and vyom1611

14.2.7 (2022-10-19)

Special Thanks

Bob Watson, Charles Barnes, Joey Perrott, Virginia Dooley, WD Snoeijer, abergquist and urugator

14.2.6 (2022-10-12)

compiler-cli

Commit Type Description
3fd176a905 fix add missing period to error message (#47744)
c3821f5ab5 perf minimize filesystem calls when generating shims (#47682)
## Special Thanks
Alan Agius, Andrew Kushnir, Andrew Scott, Aristeidis Bampakos, Bob Watson, Charles Lyding, Joey Perrott, Joshua Morony, Mathew Berg, Paul Gschwendtner, Peter Dickten, Renan Ferro, Sri Ram, WD Snoeijer, markostanimirovic and Álvaro Martínez

14.2.5 (2022-10-05)

This release contains various API docs improvements.

Special Thanks

Alexander Wiebe, Ciprian Sauliuc, Dmytro Mezhenskyi, George Kalpakas, Joe Martin (Crowdstaffing), Jordan, Ole M, Paul Gschwendtner, Pawel Kozlowski and mgechev

14.2.4 (2022-09-28)

compiler-cli

Commit Type Description
a4b66fe1e5 perf cache source file for reporting type-checking diagnostics (#47508)
### core
Commit Type Description
-- -- --
2c46b5ab24 fix correctly check for typeof of undefined in ngDevMode check (#47480)
## Special Thanks
Alan Agius, Ashley Hunter, Doug Parker, Jessica Janiuk, JoostK, Kristiyan Kostadinov, Rokas Brazdžionis and Simona Cotin

14.2.3 (2022-09-21)

animations

Commit Type Description
bba2dae812 fix make sure that the useAnimation function delay is applied (#47468)
## Special Thanks
AleksanderBodurri, Andrew Kushnir, Andrew Scott, Bob Watson, George Kalpakas, Joey Perrott, Mauro Mattos, dario-piotrowicz, fabioemoutinho and famzila

14.2.2 (2022-09-14)

animations

Commit Type Description
937e6c5b3d fix make sure that the animation function delay is applied (#47285)
### common
Commit Type Description
-- -- --
c9bdf9bab1 fix rename rawSrc -> ngSrc in NgOptimizedImage directive (#47362) (#47396)
### core
Commit Type Description
-- -- --
a3e1303f04 fix imply @Optional flag when a default value is provided (#47242)
### forms
Commit Type Description
-- -- --
80c66a1e57 fix don't prevent default behavior for forms with method="dialog" (#47308)
## Special Thanks
Abhishek Rawat, Andrew Kushnir, Benjamin Chanudet, Bob Watson, George Kalpakas, Ikko Ashimine, Kristiyan Kostadinov, Marc Wrobel, Mariia Subkov, Pawel Kozlowski, Sebastian, abergquist, dario-piotrowicz, onrails and vyom1611

14.2.1 (2022-09-07)

common

Commit Type Description
c0d7ac9ec2 fix improve formatting of image warnings (#47299)
1875ce520a fix use DOCUMENT token to query for preconnect links (#47353)
### compiler
Commit Type Description
-- -- --
0e35829580 fix avoid errors for inputs with Object-builtin names (#47220)
### service-worker
Commit Type Description
-- -- --
6091786696 fix include headers in requests for assets (#47260)
28d33505fd fix only consider GET requests as navigation requests (#47263)
## Special Thanks
Aristeidis Bampakos, Asaf M, Bingo's Code, Bob Watson, Daniel Ostrovsky, George Kalpakas, Giovanni Alberto Rivas, Jeremy Elbourn, Jobayer Hossain, Joe Martin (Crowdstaffing), Joey Perrott, JoostK, Kara Erickson, Kristiyan Kostadinov, Maina Wycliffe, Sabareesh Kappagantu, Simona Cotin, Sonu Sindhu, Yann Provoost, abergquist, jaybell and vyom1611

14.2.0 (2022-08-25)

animations

Commit Type Description
b96e571897 fix fix stagger timing not handling params (#47208)
### common
Commit Type Description
-- -- --
b380fdd59e feat add a density cap for image srcsets (#47082)
7ce497e5bc feat add built-in Imgix loader (#47082)
bff870db61 feat add cloudflare loader (#47082)
86e77a5d55 feat add Image directive skeleton (#45627) (#47082)
0566205a02 feat Add image lazy loading and fetchpriority (#47082)
4e952ba216 feat add loaders for cloudinary & imagekit (#47082)
e854a8cdde feat add loading attr to NgOptimizedImage (#47082)
8d3701cb4c feat add warnings re: image distortion (#47082)
d5f7da2120 feat define public API surface for NgOptimizedImage directive (#47082)
d3c3426aa4 feat detect LCP images in NgOptimizedImage and assert if priority is set (#47082)
451b85ca17 feat explain why width/height is required (#47082)
586274fe65 feat provide an ability to exclude origins from preconnect checks in NgOptimizedImage (#47082)
57f3386e5b feat support custom srcset attributes in NgOptimizedImage (#47082)
7baf9a46cd feat verify that priority images have preconnect links (#47082)
f81765b333 feat warn if rendered size is much smaller than intrinsic (#47082)
e2ab99b95e fix allow null/undefined to be passed to ngClass input (#39280) (#46906)
bedf537951 fix allow null/undefined to be passed to ngStyle input (#47069)
f9511bf6e8 fix avoid interacting with a destroyed injector (#47243)
dc29e21b14 fix consider density descriptors with multiple digits as valid (#47230)
801daf82d1 fix detect data: and blob: inputs in NgOptimizedImage directive (#47082)
fff8056e7f fix fix formatting on oversized image error (#47188) (#47232)
1ca2ce19ab fix remove default for image width (#47082)
c5db867ddc fix remove duplicate deepForEach (#47189)
1cf43deb18 fix sanitize rawSrc and rawSrcset values in NgOptimizedImage directive (#47082)
d71dfe931f fix set bound width and height onto host element (#47082)
32caa8b669 fix support density descriptors with 2+ decimals (#47197) (#47232)
ae4405f0bf fix throw if srcset is used with rawSrc (#47082)
0c8eb8bc82 perf monitor LCP only for images without priority attribute (#47082)
### compiler-cli
Commit Type Description
-- -- --
ea89677c12 feat support more recent version of tsickle (#47018)
### core
Commit Type Description
-- -- --
d1e83e1b30 feat add createComponent function (#46685)
10becab70e feat add reflectComponentType function (#46685)
4b377d3a6d feat introduce createApplication API (#46475)
31429eaccc feat support TypeScript 4.8 (#47038)
796840209c fix align TestBed interfaces and implementation (#46635)
### forms
Commit Type Description
-- -- --
426af91a42 feat add FormBuilder.record() method (#46485)
b302797de4 fix Correctly infer FormBuilder types involving [value, validators] shorthand in more cases. (#47034)
### language-service
Commit Type Description
-- -- --
598b72bd05 feat support fix the component missing member (#46764)
### platform-browser
Commit Type Description
-- -- --
07606e3181 feat add isEmpty method to the TransferState class (#46915)
### platform-server
Commit Type Description
-- -- --
2b4d7f6733 feat support document reference in render functions (#47032)
### router
Commit Type Description
-- -- --
0abb67af59 feat allow guards and resolvers to be plain functions (#46684)
75df404467 feat Create APIs for using Router without RouterModule (#47010)
10289f1f6e feat expose resolved route title (#46826)
8600732b09 feat Expose the default matcher for Routes used by the Router (#46913)
422323cee0 feat improve typings for RouterLink boolean inputs (#47101)
26ea97688c feat Make router directives standalone (#46758)
2a43beec15 fix Fix route recognition behavior with some versions of rxjs (#47098)
### service-worker
Commit Type Description
-- -- --
383090858c feat support sendRequest as a notificationclick action (#46912)
3f548610dd fix export NoNewVersionDetectedEvent (#47044)
482b6119c2 fix update golden index.md (#47044)
## Special Thanks
Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Bob Watson, Cédric Exbrayat, Dylan Hunn, Emmanuel Roux, FatalMerlin, George Kalpakas, Ilia Mirkin, Jan Kuehle, Jeremy Elbourn, Jessica Janiuk, JiaLiPassion, Kalbarczyk, Kara Erickson, Katie Hempenius, Kristiyan Kostadinov, Merlin, Paul Gschwendtner, Pawel Kozlowski, Tristan Sprößer, Victor Porof, angular-robot[bot], dario-piotrowicz, ivanwonder and vyom

14.1.3 (2022-08-17)

compiler

Commit Type Description
0583227708 fix infinite loop in parser assignment expression with invalid left-hand expression (#47151)
## Special Thanks
AlirezaEbrahimkhani, Alma Eyre, Andrew Scott, Bob Watson, George Kalpakas, Kalbarczyk, Kristiyan Kostadinov, Leosvel Pérez Espinosa, Roman Matusevich and Sonu Kapoor

14.1.2 (2022-08-10)

core

Commit Type Description
5ff715c549 fix check if transplanted views are attached to change detector (#46974)
### router
Commit Type Description
-- -- --
439d77e852 fix Fix route recognition behavior with some versions of rxjs (#47098) (#47112)
## Special Thanks
4javier, Andrew Kushnir, Andrew Scott, AntonioCardenas, Bob Watson, Bruno Barbosa, Eduardo Speroni, Edward, George Kalpakas, Jan Melcher, Kristiyan Kostadinov, Mladen Jakovljević, Paul Gschwendtner, Pawel Kozlowski, Roman Matusevich, Vovch, ashide2729, ileil and onrails

14.1.1 (2022-08-03)

core

Commit Type Description
3606917732 fix improve the missing control flow directive message (#46903)
### router
Commit Type Description
-- -- --
79825d3f10 fix Do not call preload method when not necessary (#47007)
05f3f7445a fix Use correct return type for provideRoutes function (#46941)
## Special Thanks
Alan Agius, Andrew Kushnir, Andrew Quinn, Andrew Scott, Aristeidis Bampakos, Asaf M, Bob Watson, Cédric Exbrayat, Durairaj Subramaniam, George Kalpakas, Ivaylo Kirov, J Rob Gant, Kristiyan Kostadinov, Marek Hám, Paul Gschwendtner, Roman Matusevich and Simona Cotin

14.1.0 (2022-07-20)

Deprecations

core

  • The createNgModuleRef is deprecated in favor of newly added createNgModule one.
  • The bit field signature of inject() has been deprecated, in favor of the new options object. Correspondingly, InjectFlags is deprecated as well.

    animations

    | Commit | Type | Description | | -- | -- | -- | | 55308f2df5 | feat | add provideAnimations() and provideNoopAnimations() functions (#46793) |

    common

    | Commit | Type | Description | | -- | -- | -- | | 4a2e7335b1 | feat | make the CommonModule pipes standalone (#46401) | | a7597dd080 | feat | make the CommonModule directives standalone (#46469) |

    compiler

    | Commit | Type | Description | | -- | -- | -- | | 33ce3883a5 | feat | Add extended diagnostic to warn when missing let on ngForOf (#46683) | | 6f11a58040 | feat | Add extended diagnostic to warn when text attributes are intended to be bindings (#46161) | | 9e836c232f | feat | warn when style suffixes are used with attribute bindings (#46651) |

    compiler-cli

    | Commit | Type | Description | | -- | -- | -- | | 93c65e7b14 | feat | add extended diagnostic for non-nullable optional chains (#46686) | | 131d029da1 | feat | detect missing control flow directive imports in standalone components (#46146) | | 6b8e60c06a | fix | improve the missingControlFlowDirective message (#46846) |

    core

    | Commit | Type | Description | | -- | -- | -- | | e8e8e5f171 | feat | add createComponent function | | b5153814af | feat | add reflectComponentType function | | 96c6139c9a | feat | add ability to set inputs on ComponentRef (#46641) | | a6d5fe202c | feat | alias createNgModuleRef as createNgModule (#46789) | | 71e606d3c3 | feat | expose EnvironmentInjector on ApplicationRef (#46665) | | 19e6d9ccd3 | feat | import AsyncStackTaggingZone if available (#46693) | | a7a14df5f8 | feat | introduce EnvironmentInjector.runInContext API (#46653) | | fa52b6e906 | feat | options object to supersede bit flags for inject() (#46649) | | af20112222 | feat | support the descendants option for ContentChild queries (#46638) | | 945a3ad359 | fix | Fix runInContext for NgModuleRef injector (#46877) | | bb7c80477b | fix | make parent injector argument required in createEnvironmentInjector (#46397) |

    http

    | Commit | Type | Description | | -- | -- | -- | | 82acbf919b | feat | improve error message for nullish header (#46059) |

    router

    | Commit | Type | Description | | -- | -- | -- | | 53ca936366 | feat | Add ability to create UrlTree from any ActivatedRouteSnapshot (#45877) | | de058bba99 | feat | Add CanMatch guard to control whether a Route should match (#46021) | | 6c1357dd7d | feat | Add stable cancelation code to NavigationCancel event (#46675) | | a4ce273e50 | feat | Add the target RouterStateSnapshot to NavigationError (#46731) | | abe3759e24 | fix | allow to return UrlTree from CanMatchFn (#46455) | | e8c7dd10e9 | fix | Ensure APP_INITIALIZER of enabledBlocking option completes (#46026) | | ce20ed067f | fix | Ensure Route injector is created before running CanMatch guards (#46394) | | 6a7b818d94 | fix | Ensure target RouterStateSnapshot is defined in NavigationError (#46842) | | f94c6f433d | fix | Expose CanMatchFn as public API (#46394) | | e8ae0fe3e9 | fix | Fix cancelation code for canLoad rejections (#46752) |

    upgrade

    | Commit | Type | Description | | -- | -- | -- | | e9cb0454dc | feat | more closely align UpgradeModule#bootstrap() with angular.bootstrap() (#46214) |

    Special Thanks

    AleksanderBodurri, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Cédric Exbrayat, Dmitrij Kuba, Dylan Hunn, George Kalpakas, Jessica Janiuk, JiaLiPassion, Joey Perrott, John Vandenberg, JoostK, Keith Li, Or'el Ben-Ya'ir, Paul Gschwendtner, Pawel Kozlowski, SyedAhm3r, arturovt, mariu, markostanimirovic and mgechev

14.0.7 (2022-07-20)

animations

Commit Type Description
5bdbb6285b fix make sure falsy values are added to _globalTimelineStyles (#46863)
### compiler
Commit Type Description
-- -- --
41253f9c46 fix inputs/outputs incorrectly parsed in jit mode (#46813)
### core
Commit Type Description
-- -- --
4e77c7fbf3 fix do not invoke jasmine done callback multiple times with waitForAsync
## Special Thanks
Andrew Kushnir, Andrew Scott, Bob Watson, Cédric Exbrayat, Doug Parker, George Kalpakas, Jessica Janiuk, Kristiyan Kostadinov, Paul Gschwendtner, acvi, dario-piotrowicz, jnizet and piyush132000

14.0.6 (2022-07-13)

compiler-cli

Commit Type Description
99697dae66 fix only consider used pipes for inline type-check requirement (#46807)
### forms
Commit Type Description
-- -- --
4f469cbef3 fix expose ControlConfig in public API (#46594)
e8c8b695f2 fix Move all remaining errors in Forms to use RuntimeErrorCode. (#46654)
### localize
Commit Type Description
-- -- --
14863acb1a fix add --project option to ng-add schematic (#46664)
## Special Thanks
Alan Agius, Andrew Scott, Bob Watson, Dylan Hunn, George Kalpakas, Ivaylo Kirov, Jessica Janiuk, JoostK, Joshua VanAllen, Lukas Matta, Marcin Wosinek, Nicolas Molina Monroy, Paul Gschwendtner, SoulsMark, Uday Sony, dario-piotrowicz, markostanimirovic and zhysky

14.0.5 (2022-07-06)

router

Commit Type Description
a3bd65e2b8 fix Ensure APP_INITIALIZER of enabledBlocking option completes (#46634)
## Special Thanks
Alan Agius, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Aristeidis Bampakos, Bob Watson, George Kalpakas, Paul Gschwendtner and Pawel Kozlowski

14.0.4 (2022-06-29)

animations

Commit Type Description
51be9bbe29 fix cleanup DOM elements when the root view is removed (#45143)
999aca86c8 fix enable shadowElements to leave when their parent does (#46459)
### common
Commit Type Description
-- -- --
42aed6b13e fix handle CSS custom properties in NgStyle (#46451)
### core
Commit Type Description
-- -- --
1e7f22f00a fix trigger ApplicationRef.destroy when Platform is destroyed (#46497)
8bde2dbc71 fix Update ngfor error code to be negative (#46555)
57e8fc00eb fix Updates error to use RuntimeError code (#46526)
### forms
Commit Type Description
-- -- --
74a26d870e fix Convert existing reactive errors to use RuntimeErrorCode. (#46560)
747872212d fix Update a Forms validator error to use RuntimeError (#46537)
### router
Commit Type Description
-- -- --
d6fac9e914 fix Ensure that new RouterOutlet instances work after old ones are destroyed (#46554)
## Special Thanks
Alan Agius, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Bezael, Chad Ramos, Chellappan, Cédric Exbrayat, Dylan Hunn, George Kalpakas, Jeremy Meiss, Jessica Janiuk, Joey Perrott, KMathy, Kristiyan Kostadinov, Paul Gschwendtner, Pawel Kozlowski, Ramesh Thiruchelvam, Vaibhav Kumar, arturovt, dario-piotrowicz and renovate[bot]

14.0.3 (2022-06-22)

animations

Commit Type Description
3dd7bb3f8f fix reset the start and done fns on player reset (#46364)
### core
Commit Type Description
-- -- --
c086653655 fix deduplicate imports of standalone components in JIT compiler (#46439)
5d3b97e1f8 fix handle NgModules with standalone pipes in TestBed correctly (#46407)
### platform-server
Commit Type Description
-- -- --
6ad7b40a6f fix invalid style attribute being generated for null values (#46433)
## Special Thanks
4javier, Aakash, Alan Agius, Andrew Kushnir, Aristeidis Bampakos, Dany Paredes, Derek Cormier, JoostK, Kristiyan Kostadinov, Paul Gschwendtner, Ramesh Thiruchelvam, behrooz bozorg chami, dario-piotrowicz, markostanimirovic, renovate[bot] and web-dave

14.0.2 (2022-06-15)

common

Commit Type Description
ef5cba3df7 fix allow null in ngComponentOutlet (#46280)
### compiler-cli
Commit Type Description
-- -- --
8ecfd71fd7 fix don't emit empty providers array (#46301)
b92c1a6ada fix use inline type-check blocks for components outside rootDir (#46096)
### core
Commit Type Description
-- -- --
3fd8948b4a fix Resolve forwardRef declarations for jit (#46334)
## Special Thanks
Alex Rickabaugh, Andrew Scott, Badawi7, Daniel Schmitz, Derek Cormier, JoostK, Kevin Davila, Kristiyan Kostadinov, Paul Draper, Paul Gschwendtner, Tom Eustace, Totati, Younes Jaaidi, alefra, dario-piotrowicz, markostanimirovic, mgechev, piyush132000, sten-bone and vivekkoya

14.0.1 (2022-06-08)

bazel

Commit Type Description
b00d237c0e fix update API extractor version (#46259)
9a0a7bac21 perf reduce input files for ng_package rollup and type bundle actions (#46187)
### forms
Commit Type Description
-- -- --
dde0b7f4b3 fix allow FormBuilder.group(...) to accept optional fields. (#46253)
## Special Thanks
Adrien Crivelli, Alan Agius, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Dylan Hunn, Fabrizio Fallico, George Kalpakas, Jelle Bruisten, JoostK, Kristiyan Kostadinov, Krzysztof Platis, Paul Gschwendtner, Phalgun Vaddepalli, San Leen, dario-piotrowicz, mgechev and wellWINeo

14.0.0 (2022-06-02)

Blog post "Angular v14 is now available".

Breaking Changes

animations

  • The AnimationDriver.getParentElement method has become required, so any implementors of this interface are now required to provide an implementation for this method. This breakage is unlikely to affect application developers, as AnimationDriver is not expected to be implemented in user code.

    common

  • Adds new required class member that any implementors of the LocationStrategy will need to satisfy. Location does not depend on PlatformLocation anymore.

    compiler

  • Keyframes names are now prefixed with the component's "scope name". For example, the following keyframes rule in a component definition, whose "scope name" is host-my-cmp:

    @keyframes foo { ... }

    will become:

    @keyframes host-my-cmp_foo { ... }

    Any TypeScript/JavaScript code which relied on the names of keyframes rules will no longer match.

    The recommended solutions in this case are to either:

    • change the component's view encapsulation to the None or ShadowDom
    • define keyframes rules in global stylesheets (e.g styles.css)
    • define keyframes rules programmatically in code.

core

  • Support for Node.js v12 has been removed as it will become EOL on 2022-04-30. Please use Node.js v14.15 or later.
  • TypeScript versions older than 4.6 are no longer supported.
  • Forms [email] input coercion

    Forms [email] input value will be considered as true if it is defined with any value rather than false and 'false'.

  • Since Ivy, TestBed doesn't use AOT summaries. The aotSummaries fields in TestBed APIs were present, but unused. The fields were deprecated in previous major version and in v14 those fields are removed. The aotSummaries fields were completely unused, so you can just drop them from the TestBed APIs usage.

    forms

  • Forms classes accept a generic.

    Forms model classes now accept a generic type parameter. Untyped versions of these classes are available to opt-out of the new, stricter behavior.

  • objects with a length key set to zero will no longer validate as empty.

    This is technically a breaking change, since objects with a key length and value 0 will no longer validate as empty. This is a very minor change, and any reliance on this behavior is probably a bug anyway.

    http

  • Queries including + will now actually query for + instead of space. Most workarounds involving custom codecs will be unaffected. Possible server-side workarounds will need to be undone.
  • JSONP will throw an error when headers are set on a reques

    JSONP does not support headers being set on requests. Before when a request was sent to a JSONP backend that had headers set the headers were ignored. The JSONP backend will now throw an error if it receives a request that has any headers set. Any uses of JSONP on requests with headers set will need to remove the headers to avoid the error.

    platform-browser

  • This change may cause a breaking change in unit tests that are implicitly depending on a specific number and sequence of change detections in order for their assertions to pass.
  • This may break invalid calls to TransferState methods.

    This tightens parameter types of TransferState usage, and is a minor breaking change which may reveal existing problematic calls.

    router

  • The type of Route.pathMatch is now stricter. Places that use pathMatch will likely need to be updated to have an explicit Route/Routes type so that TypeScript does not infer the type as string.
  • When returning a Promise from the LoadChildrenCallback, the possible type is now restricted to Type<any>|NgModuleFactory<any> rather than any.
  • initialNavigation: 'enabled' was deprecated in v11 and is replaced by initialNavigation: 'enabledBlocking'.
  • The type of component on ActivatedRoute and ActivatedRouteSnapshot includes string. In reality, this is not the case. The component cannot be anything other than a component class.
    • The type of initialUrl is set to string|UrlTree but in reality, the Router only sets it to a value that will always be UrlTree
    • initialUrl is documented as "The target URL passed into the Router#navigateByUrl() call before navigation" but the value actually gets set to something completely different. It's set to the current internal UrlTree of the Router at the time navigation occurs.

    With this change, there is no exact replacement for the old value of initialUrl because it was never intended to be exposed. Router.url is likely the best replacement for this. In more specific use-cases, tracking the finalUrl between successful navigations can also be used as a replacement.

  • Lazy loaded configs are now also validated once loaded like the initial set of routes are. Lazy loaded modules which have invalid Route configs will now error. Note that this is only done in dev mode so there is no production impact of this change.
  • When a guard returns a UrlTree, the router would previously schedule the redirect navigation within a setTimeout. This timeout is now removed, which can result in test failures due to incorrectly written tests. Tests which perform navigations should ensure that all timeouts are flushed before making assertions. Tests should ensure they are capable of handling all redirects from the original navigation.
  • Previously, resolvers were waiting to be completed before proceeding with the navigation and the Router would take the last value emitted from the resolver. The router now takes only the first emitted value by the resolvers and then proceeds with navigation. This is now consistent with Observables returned by other guards: only the first value is used.

    zone.js

  • in TaskTrackingZoneSpec track a periodic task until it is cancelled

    The breaking change is scoped only to the plugin zone.js/plugins/task-tracking. If you used TaskTrackingZoneSpec and checked the pending macroTasks e.g. using (this.ngZone as any)._inner ._parent._properties.TaskTrackingZone.getTasksFor('macroTask'), then its behavior slightly changed for periodic macrotasks. For example, previously the setInterval macrotask was no longer tracked after its callback was executed for the first time. Now it's tracked until the task is explicitly cancelled, e.g with clearInterval(id).

Deprecations

common

  • The ngModuleFactory input of the NgComponentOutlet directive is deprecated in favor of a newly added ngModule input. The ngModule input accepts references to the NgModule class directly, without the need to resolve module factory first.

    forms

  • The initialValueIsDefault option has been deprecated and replaced with the otherwise-identical nonNullable option, for the sake of naming consistency.
  • It is now deprecated to provide both AbstractControlOptions and an async validators argument to a FormControl. Previously, the async validators would just be silently dropped, resulting in a probably buggy forms. Now, the constructor call is deprecated, and Angular will print a warning in devmode.

    router

  • The resolver argument of the RouterOutletContract.activateWith function and the resolver field of the OutletContext class are deprecated. Passing component factory resolvers are no longer needed. The ComponentFactoryResolver-related symbols were deprecated in @angular/core package since v13.

    animations

    | Commit | Type | Description | | -- | -- | -- | | a6fa37bc6e | feat | make validateStyleProperty check dev-mode only (#45570) | | 79d334b138 | feat | provide warnings for non-animatable CSS properties (#45212) | | f8dc660605 | fix | allow animations with unsupported CSS properties (#44729) | | 2a75754ee8 | fix | apply default params when resolved value is null or undefined (#45339) | | e46b379204 | fix | implement missing transition delay (#44799) | | 5c7c56bc85 | perf | improve algorithm to balance animation namespaces (#45057) | | 4c778cdb28 | perf | made errors in the animations package tree shakeable (#45004) | | 7a81481fb2 | perf | Remove generic objects in favor of Maps (#44482) | | 6642e3c8fd | perf | remove no longer needed CssKeyframes classes (#44903) | | 59559fdbac | refactor | make AnimationDriver.getParentElement required (#45114) |

    common

    | Commit | Type | Description | | -- | -- | -- | | 31d7c3bd71 | feat | add getState method to LocationStrategy interface (#45648) | | c89cf63059 | feat | support NgModule as an input to the NgComponentOutlet (#44815) | | 38c03a2035 | feat | support years greater than 9999 (#43622) | | bedb257afc | fix | cleanup URL change listeners when the root view is removed (#44901) | | 10691c626b | fix | properly cast http param values to strings (#42643) | | 05d50b849b | perf | make NgLocalization token tree-shakable (#45118) |

    compiler

    | Commit | Type | Description | | -- | -- | -- | | bb8d7091c6 | fix | exclude empty styles from emitted metadata (#45459) | | 4d6a1d6722 | fix | scope css keyframes in emulated view encapsulation (#42608) | | f03e313f24 | fix | scope css keyframes in emulated view encapsulation (#42608) |

    compiler-cli

    | Commit | Type | Description | | -- | -- | -- | | 9cf14ff03d | feat | exclude abstract classes from strictInjectionParameters requirement (#44615) | | 0072eb48ba | feat | initial implementation of standalone components (#44812) | | 2142ffd295 | feat | propagate standalone flag to runtime (#44973) | | 6f653e05f9 | feat | standalone types imported into NgModule scopes (#44973) | | 752ddbc165 | feat | Support template binding to protected component members (#45823) | | 3d13343975 | fix | better error messages for NgModule structural issues (#44973) | | 046dad1a8d | fix | fix issue with incremental tracking of APIs for pipes (#45672) | | 27b4af7240 | fix | full side-effectful registration of NgModules with ids (#45024) | | 32c625d027 | fix | handle forwardRef in imports of standalone component (#45869) | | 06050ac2b4 | fix | handle inline type-check blocks in nullish coalescing extended check (#45454) | | a524a50361 | fix | handle standalone components with cycles (#46029) | | 724e88e042 | fix | preserve forwardRef for component scopes (#46139) | | 9cfea3d522 | fix | report invalid imports in standalone components during resolve phase (#45827) | | c0778b4dfc | fix | Support resolve animation name from the DTS (#45107) | | f2e5234e07 | fix | update unknown tag error for aot standalone components (#45919) | | 35f20afcac | fix | use existing imports for standalone dependencies (#46029) | | 8155428ba6 | perf | ignore the module.id anti-pattern for NgModule ids (#45024) |

    core

    | Commit | Type | Description | | -- | -- | -- | | 174ce7dd13 | feat | add ApplicationRef.destroy method (#45624) | | 5771b18a98 | feat | add the bootstrapApplication function (#45674) | | 69018c9f42 | feat | allow for injector to be specified when creating an embedded view (#45156) | | 94c949a60a | feat | allow for injector to be specified when creating an embedded view (#45156) | | e702cafcf2 | feat | allow to throw on unknown elements in tests (#45479) | | 6662a97c61 | feat | allow to throw on unknown elements in tests (#45479) | | a6675925b0 | feat | allow to throw on unknown properties in tests (#45853) | | 6eaaefd22e | feat | drop support for Node.js 12 (#45286) | | c9d566ce4b | feat | drop support for TypeScript 4.4 and 4.5 (#45394) | | b568a5e708 | feat | implement importProvidersFrom function (#45626) | | d5a6cd1111 | feat | implement EnvironmentInjector with adapter to NgModuleRef (#45626) | | 5a10fc4f82 | feat | implement standalone directives, components, and pipes (#45687) | | e461f716d4 | feat | move ANIMATION_MODULE_TYPE injection token into core (#44970) | | 94bba76a4a | feat | support TypeScript 4.6 (#45190) | | 29039fcdbc | feat | support TypeScript 4.7 (#45749) | | 225e4f2dbe | feat | triggerEventHandler accept optional eventObj (#45279) | | 401dec46eb | feat | update TestBed to recognize Standalone Components (#45809) | | 35653ce337 | fix | add more details to the MISSING_INJECTION_CONTEXT error (#46166) | | d36fa111eb | fix | avoid Closure Compiler error in restoreView (#45445) | | 0bc77f4cab | fix | better error message when unknown property is present (#46147) | | f3eb7d9ecb | fix | Ensure the StandaloneService is retained after closure minification (#45783) | | 701405fa71 | fix | handle AOT-compiled standalone components in TestBed correctly (#46052) | | ddce357d1d | fix | improve TestBed declarations standalone error message (#45999) | | ba9f30c9a6 | fix | include component name into unknown element/property error message (#46160) | | 9fa6f5a552 | fix | incorrectly inserting elements inside <template> element (#43429) | | d5719c2e0f | fix | input coercion (#42803) | | be161bef79 | fix | memory leak in event listeners inside embedded views (#43075) | | fa755b2a54 | fix | prevent BrowserModule providers from being loaded twice (#45826) | | 3172b4cc99 | fix | produce proper error message for unknown props on <ng-template>s (#46068) | | 4f1a813596 | fix | restore NgModule state correctly after TestBed overrides (#46049) | | 3f7ecec59b | fix | set correct context for inject() for component ctors (#45991) | | 4e413d9240 | fix | support nested arrays of providers in EnvironmentInjector (#45789) | | fde4942cdf | fix | throw if standalone components are present in `@NgModule.bootstrap([#45825](https://github.com/angular/angular/pull/45825)) | | [560188bf12](https://github.com/angular/angular/commit/560188bf126f259328477773cabb367587a257d5) | fix | update unknown property error to account for standalone components in AOT ([#46159](https://github.com/angular/angular/pull/46159)) | | [df339d8abf](https://github.com/angular/angular/commit/df339d8abf979c715c35db813c5a80252a92eba7) | fix | update unknown tag error for jit standalone components ([#45920](https://github.com/angular/angular/pull/45920)) | | [aafac7228f](https://github.com/angular/angular/commit/aafac7228f3d18bb720e85d2b889df446122f4c7) | fix | verify standalone component imports in JiT ([#45777](https://github.com/angular/angular/pull/45777)) | | [e9317aee71](https://github.com/angular/angular/commit/e9317aee71f64f4aadea0529601e589b37f6b46f) | perf | allowcheckNoChangesmode to be tree-shaken in production ([#45913](https://github.com/angular/angular/pull/45913)) | | [071c8af8ba](https://github.com/angular/angular/commit/071c8af8ba89163270f17657c0c7f1c944f186f7) | perf | avoid storing LView inngContext([#45051](https://github.com/angular/angular/pull/45051)) | | [a96c4827c4](https://github.com/angular/angular/commit/a96c4827c4f62e1d665d8544a3e66c51d2644c88) | perf | makeCompiler,ApplicationRefandApplicationInitStatustree-shakable ([#45102](https://github.com/angular/angular/pull/45102)) | | [45d98e7ca5](https://github.com/angular/angular/commit/45d98e7ca5accf918e2602cbc17805e11e18896b) | perf | makeIterableDiffersandKeyValueDifferstree-shakable ([#45094](https://github.com/angular/angular/pull/45094)) | | [1e60fe0a3e](https://github.com/angular/angular/commit/1e60fe0a3eeb6bd46997f7eeb4825351cfbe3c44) | perf | makeLOCALE_IDand other tokens fromApplicationModuletree-shakable ([#45102](https://github.com/angular/angular/pull/45102)) | | [88f1168506](https://github.com/angular/angular/commit/88f1168506befd0665125da1fca2a719cb27dbb5) | perf | only track LViews that are referenced inngContext([#45172](https://github.com/angular/angular/pull/45172)) | | [9add714b13](https://github.com/angular/angular/commit/9add714b13740db621eb2b200d72be74cc7eb630) | refactor | remove deprecatedaotSummaries` fields in TestBed config (#45487) |

    devtools tabs

    | Commit | Type | Description | | -- | -- | -- | | 6c284ef32e | fix | stop scroll occuring at tabs level |

    forms

    | Commit | Type | Description | | -- | -- | -- | | 2dbdebc646 | feat | Add FormBuilder.nonNullable. (#45852) | | e0a2248b32 | feat | Add a FormRecord type. (#45607) | | 7ee121f595 | feat | Add untyped versions of the model classes for use in migration. (#45205) | | 89d299105a | feat | Implement strict types for the Angular Forms package. (#43834) | | f490c2de4e | feat | support negative indices in FormArray methods. (#44848) | | 39be06037d | fix | Add a nonNullable option to FormControl for consistency. | | 4332897baa | fix | Add UntypedFormBuilder (#45268) | | 5d13e58aed | fix | Allow NonNullableFormBuilder to be injected. (#45904) | | 8dd3f82f94 | fix | Correct empty validator to handle objects with a property length: 0. (#33729) | | ff3f5a8d12 | fix | Fix a typing bug in FormBuilder. (#45684) | | fe0e42a996 | fix | Make UntypedFormBuilder assignable to FormBuilder, and vice versa. (#45421) | | b36dec6b5b | fix | not picking up disabled state if group is swapped out and disabled (#43499) | | 9f6fa5b746 | fix | Prevent FormBuilder from distributing unions to control types. (#45942) | | aa7b857be8 | fix | Property renaming safe code (#45271) | | cae1e44608 | fix | Update the typed forms migration to use FormArray<T> instead of FormArray<T[]>. (#44933) | | d336ba96d9 | fix | Update the typed forms migration. (#45281) | | 018550ed50 | fix | Value and RawValue should be part of the public API. (#45978) | | 2e96cede3e | fix | Warn on FormControls that are constructed with both options and asyncValidators. |

    http

    | Commit | Type | Description | | -- | -- | -- | | 76a9a24cdc | fix | encode + signs in query params as %2B (angular#11058) (#45111) | | d43c0e973f | fix | Throw error when headers are supplied in JSONP request (#45210) |

    language-service

    | Commit | Type | Description | | -- | -- | -- | | 9d4af65e34 | feat | Provide plugin to delegate rename requests to Angular (#44696) | | 3ae133c69e | fix | Fix detection of Angular for v14+ projects (#45998) |

    localize

    | Commit | Type | Description | | -- | -- | -- | | a50e2da64a | fix | ensure transitively loaded compiler code is tree-shakable (#45405) |

    migrations

    | Commit | Type | Description | | -- | -- | -- | | d56a537196 | feat | Add migration to add explicit Route/Routes type (#45084) |

    ngcc

    | Commit | Type | Description | | -- | -- | -- | | 74a2e2e2ec | fix | cope with packages following APF v14+ (#45833) |

    platform-browser

    | Commit | Type | Description | | -- | -- | -- | | a01bcb8e7e | fix | do not run change detection when loading Hammer (#44921) | | b32647dc68 | fix | Make transfer state key typesafe. (#23020) | | c7bf75dd5e | fix | remove obsolete shim for Map comparison in Jasmine (#45521) | | 23c4c9601e | perf | avoid including Testability by default in bootstrapApplication (#45885) |

    platform-server

    | Commit | Type | Description | | -- | -- | -- | | dff5586d52 | feat | implement renderApplication function (#45785) | | 22c71be94c | fix | update renderApplication to move appId to options (#45844) |

    router

    | Commit | Type | Description | | -- | -- | -- | | f4fd1a8262 | feat | Add EnvironmentInjector to RouterOutlet.activateWith (#45597) | | 910de8bc33 | feat | Add Route.title with a configurable TitleStrategy (#43307) | | 4e0957a4e1 | feat | Add ability to specify providers on a Route (#45673) | | dea8c86cd5 | feat | add ariaCurrentWhenActive input to RouterLinkActive directive (#45167) | | 41e2a68e30 | feat | add type properties to all router events (#44189) | | 4962a4a332 | feat | Allow loadChildren to return a Route array (#45700) | | 791bd31424 | feat | set stricter type for Route.title (#44939) | | 50004c143b | feat | Support lazy loading standalone components with loadComponent (#45705) | | 7fd416d060 | fix | Fix type of Route.pathMatch to be more accurate (#45176) | | 1c11a57155 | fix | merge interited resolved data and static data (#45276) | | f8f3ab377b | fix | Remove any from LoadChildrenCallback type (#45524) | | d4fc12fa19 | fix | Remove deprecated initialNavigation option (#45729) | | 989e840cce | fix | Remove unused string type for ActivatedRoute.component (#45625) | | 64f837d2c0 | fix | Update Navigation#initialUrl to match documentation and reality (#43863) | | 96fd29c6d2 | fix | validate lazy loaded configs (#45526) | | f13295f3a3 | perf | cancel the navigation instantly if at least one resolver doesn't emit any value (#45621) | | 1d2f5c1101 | refactor | deprecate no longer needed resolver fields (#45597) | | 7b367d9d90 | refactor | Remove unnecessary setTimeout in UrlTree redirects (#45735) | | c9679760b2 | refactor | take only the first emitted value of every resolver to make it consistent with guards (#44573) |

    service-worker

    | Commit | Type | Description | | -- | -- | -- | | ec0a0e0669 | feat | add cacheOpaqueResponses option for data-groups (#44723) | | bd04fbc05b | feat | emit a notification when the service worker is already up-to-date after check (#45216) |

    Special Thanks

    Adrian Kunz, Alan Agius, AleksanderBodurri, Alex Rickabaugh, AlirezaEbrahimkhani, Amir Rustamzadeh, Andrew Kushnir, Andrew Scott, Chabbey François, Charles Lyding, Cédric Exbrayat, Daan De Smedt, David Schmidt, Derek Cormier, Dmitrij Kuba, Doug Parker, Dylan Hunn, Emma Twersky, George Kalpakas, George Looshch, Jan Kuehle, Jessica Janiuk, JiaLiPassion, JimMorrison723, Joe Martin (Crowdstaffing), Joey Perrott, JoostK, Kristiyan Kostadinov, Krzysztof Platis, Leosvel Pérez Espinosa, Maddie Klein, Mark Whitfeld, Martin Sikora, Michael-Doner, Michal Materowski, Minko Gechev, Paul Gschwendtner, Pawel Kozlowski, Payam Shahidi, Pusztai Tibor, Ricardo Mattiazzi Baumgartner, Roy Dorombozi, Ruslan Lekhman, Samuel Littley, Sergej Grilborzer, Sumit Arora, Tobias Speicher, Virginia Dooley, Zack Elliott, alirezaghey, ananyahs96, arturovt, cexbrayat, dario-piotrowicz, ivanwonder, kamikopi, markostanimirovic, markwhitfeld, mgechev, renovate[bot], twerske and zverbeta

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

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

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

13.3.8 (2022-05-12)

language-service

Commit Type Description
b4eb9ed884 fix Prevent TSServer from removing templates from project (#45965)
## Special Thanks
Andrew Scott, George Kalpakas and Joey Perrott

13.3.7 (2022-05-11)

core

Commit Type Description
73bbee2c0d perf allow checkNoChanges mode to be tree-shaken in production (#45936)
### language-service
Commit Type Description
-- -- --
5ca3bcf4f8 fix Add 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 ᚷᛁᛟᚱᚷᛁ ᛒᚨᛚᚨᚲᚻᚨᛞᛉᛖ

13.3.6 (2022-05-04)

Special Thanks

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

13.3.5 (2022-04-27)

bazel

Commit Type Description
63398e0eb4 fix add this_is_bazel marker (#45728)
## Special Thanks
Andrew Kushnir, George Kalpakas, Joey Perrott and dario-piotrowicz

13.3.4 (2022-04-20)

core

Commit Type Description
9317f513d5 fix better error message when directive extends a component (#45658)
4766817f02 fix improve multiple components match error (#45645)
### language-service
Commit Type Description
-- -- --
d68333e508 fix two-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

13.3.3 (2022-04-13)

compiler

Commit Type Description
e50fd9ee87 fix avoid 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

13.3.2 (2022-04-06)

animations

Commit Type Description
b46b25c562 fix handle structured AnimateTimings (#31107)
## Special Thanks
Alan Agius, Andrew Kushnir, Christoph Guttandin, Cédric Exbrayat, mgechev and piyush132000

13.3.1 (2022-03-30)

bazel

Commit Type Description
960e42b2ac fix ng module compilation workers are subject to linker race-conditions (#45393)
### compiler
Commit Type Description
-- -- --
3714305f84 fix scope css rules within @layer blocks (#45396)
### compiler-cli
Commit Type Description
-- -- --
7f53c0f4ac fix handle 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

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

core

Commit Type Description
b5bb614c74 feat support TypeScript 4.6 (#45190)
## Special Thanks
Alistair Kane, Andrew Scott and Kristiyan Kostadinov

13.2.7 (2022-03-16)

forms

Commit Type Description
eac94f0945 fix improve error message for invalid value accessors (#45192)
## Special Thanks
Alistair Kane, Amer Yousuf, Andrew Scott, Jessica Janiuk, Lee Cooper, alirezaghey and why520crazy

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

core

Commit Type Description
b5bb614c74 feat support TypeScript 4.6 (#45190)
## Special Thanks
Alistair Kane, Andrew Scott and Kristiyan Kostadinov

13.2.6 (2022-03-09)

compiler

Commit Type Description
6efa366e2c fix compute correct offsets when interpolations have HTML entities (#44811)
### language-service
Commit Type Description
-- -- --
9bce9ce89e fix Prioritize Angular-specific completions over DOM completions (#45293)
### service-worker
Commit Type Description
-- -- --
cff1c5622f fix file 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

13.2.5 (2022-03-02)

animations

Commit Type Description
6c61d20476 fix allow animations with unsupported CSS properties (#45185)
### common
Commit Type Description
-- -- --
64da1daa78 fix canceled JSONP requests won't throw console error with missing callback function (#36807)
56ca7d385b perf make NgLocalization token tree-shakable (#45118) (#45226)
### compiler-cli
Commit Type Description
-- -- --
6c906a5bb9 fix Support resolve animation name from the DTS (#45169)
### core
Commit Type Description
-- -- --
e8fd452bd2 fix remove individual commands for updating gold files (#45198)
82d772857c perf make Compiler, ApplicationRef and ApplicationInitStatus tree-shakable (#45102) (#45222)
71ff12c1cc perf make LOCALE_ID and other tokens from ApplicationModule tree-shakable (#45102) (#45222)
### localize
Commit Type Description
-- -- --
d388522745 fix avoid 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

13.2.4 (2022-02-23)

animations

Commit Type Description
1a4b489692 perf improve algorithm to balance animation namespaces (#45113)
### core
Commit Type Description
-- -- --
cbd23ee0de perf make 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

13.2.3 (2022-02-16)

animations

Commit Type Description
0050b01b62 perf made errors in the animations package tree shakeable (#45079)
### compiler
Commit Type Description
-- -- --
09f0254bdd perf chain element start/end instructions (#44994)
### core
Commit Type Description
-- -- --
92cf9fbebe fix ViewContainerRef.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

13.2.2 (2022-02-08)

compiler

Commit Type Description
37af6abb49 fix allow banana-in-a-box bindings to end with non-null assertion (#37809)
### forms
Commit Type Description
-- -- --
b75e90f809 fix incorrectly keeping track of ngModel with ngFor inside a form (#40459)
### http
Commit Type Description
-- -- --
3fae6637e7 perf remove IE special status handling (#44354)
### upgrade
Commit Type Description
-- -- --
b9aab0c87b fix Do 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

13.2.1 (2022-02-02)

animations

Commit Type Description
4644886aaf perf remove no longer needed CssKeyframes classes (#44903) (#44919)
### common
Commit Type Description
-- -- --
b4e4617807 fix include query parameters for open HTTP requests in verify (#44917)
### compiler-cli
Commit Type Description
-- -- --
0778e6f7d7 fix accept nullish coalescing operator for any and unknown types (#44862)
07185f4ed1 fix enable nullish coalescing check only with strictNullChecks (#44862)
4a5ad1793f fix ensure casing of logical paths is preserved (#44798)
### core
Commit Type Description
-- -- --
7ec482d9c2 fix Add back support for namespace URIs in createElement of dom renderer (#44914)
250dc40a46 fix flush delayed scoping queue while setting up TestBed (#44814)
### forms
Commit Type Description
-- -- --
1aebbf8714 fix ensure OnPush ancestors are marked dirty when the promise resolves (#44886)
6b7fffcbeb fix Update 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

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.

    | Commit | Type | Description | | -- | -- | -- | | 9c11183e74 | docs | deprecate CachedResourceLoader and RESOURCE_CACHE_PROVIDER symbols (#44749) | | 9f12e7fea4 | docs | deprecate ComponentFactory and ComponentFactoryResolver symbols (#44749) | | 4e95a316ce | docs | deprecate unused config options from the CompilerOptions interface (#44749) |

    compiler

    | Commit | Type | Description | | -- | -- | -- | | a4ab6d6b72 | feat | add support for safe calls in templates (#44580) | | abd1bc8039 | fix | correct spans when parsing bindings with comments (#44785) | | ed67a074ce | fix | properly compile DI factories when coverage reporting is enabled (#44732) |

    compiler-cli

    | Commit | Type | Description | | -- | -- | -- | | fa835b5a29 | feat | enable extended diagnostics by default (#44712) | | 73424def13 | feat | provide the animations for DirectiveMeta (#44630) | | fe3e4d6865 | fix | Handle ng-template with structural directive in indexer (#44788) | | 7316e72ec5 | fix | properly index <svg> elements when on a template (#44785) | | 100091ebf0 | fix | remove leftover _extendedTemplateDiagnostics requirements (#44777) | | d2ae96f742 | fix | skip ExtendedTemplateCheckerImpl construction if there were configuration errors (#44778) |

    core

    | Commit | Type | Description | | -- | -- | -- | | 5626b34264 | fix | consistently use namespace short name rather than URI (#44766) | | 94bfcdd9de | fix | error if NgZone.isInAngularZone is called with a noop zone (#44800) |

    forms

    | Commit | Type | Description | | -- | -- | -- | | 72092ebd26 | feat | Allow a FormControl to use initial value as default. (#44434) | | f7aa937cac | fix | Make some minor fixups for forward-compatibility with typed forms. (#44540) |

    router

    | Commit | Type | Description | | -- | -- | -- | | 5a4ddfd4f5 | feat | Allow 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

13.1.3 (2022-01-19)

animations

Commit Type Description
af0a152a2c fix apply setStyles to only rootTimelines (#44515)
### compiler-cli
Commit Type Description
-- -- --
626f3f230b perf reduce analysis work during incremental rebuilds (#44731)
### ngcc
Commit Type Description
-- -- --
f9ca4d8499 fix support 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

13.1.2 (2022-01-12)

animations

Commit Type Description
abc217b28e fix retain triggers values for moved tracked list items (#44578)
### compiler
Commit Type Description
-- -- --
59eef29a6c fix correct spans when parsing bindings with comments (#44678)
### compiler-cli
Commit Type Description
-- -- --
08049fa23f fix enable narrowing of using type guard methods (#44447)
a26afce68c fix fix crash during type-checking of library builds (#44587)
1e918b6f31 fix handle property reads of ThisReceiver in the indexer (#44678)
63c8e56a3a fix incorrectly interpreting $any calls with a property read (#44657)
60fb27f12d fix properly index <svg> elements (#44678)
### language-service
Commit Type Description
-- -- --
f5addee488 fix revert 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

13.1.1 (2021-12-15)

animations

Commit Type Description
bb1d4ff315 fix don't consume instructions for animateChild (#44357)
d8b6adb7bc fix should not invoke disabled child animations (#37724)
### forms
Commit Type Description
-- -- --
bce108ab49 fix _reduceValue arrow function now has correct types. (#44483)
998c1e63fe fix I 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

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.

    | Commit | Type | Description | | -- | -- | -- | | dbc46d68b9 | docs | deprecate factory-based signature of the downgradeModule function (#44090) |

    common

    | Commit | Type | Description | | -- | -- | -- | | 489cf42cd0 | fix | incorrect error type for XHR errors in TestRequest (#36082) | | 13362972bb | perf | code size reduction of ngFor directive (#44315) |

    compiler

    | Commit | Type | Description | | -- | -- | -- | | c85bcb0c63 | feat | reference ICU message IDs from their placeholders (#43534) |

    core

    | Commit | Type | Description | | -- | -- | -- | | 5dff077d50 | feat | add migration to remove entryComponents (#44308) | | e65a245a0b | feat | add migration to remove entryComponents (#44322) | | d56e3f43a1 | feat | support TypeScript 4.5 (#44164) |

    http

    | Commit | Type | Description | | -- | -- | -- | | d452b388bd | feat | add has() method to HttpContext class (#43887) |

    localize

    | Commit | Type | Description | | -- | -- | -- | | d3cf222a81 | feat | support "associated message ids" for placeholders (#43534) |

    ngcc

    | Commit | Type | Description | | -- | -- | -- | | 41265919aa | fix | correctly resolve UMD dependencies (#44381) |

    upgrade

    | Commit | Type | Description | | -- | -- | -- | | 34f990986c | feat | support 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

13.0.3 (2021-12-01)

compiler-cli

Commit Type Description
6cdbfdbe6e fix downlevel transform incorrectly extracting constructor parameters for nested classes (#44281)
305b76b45f fix interpret string concat calls (#44167)
### core
Commit Type Description
-- -- --
0ca5c5bd09 fix add missing info about a component in the "pipe could not be found" error message (#44081)
907da3977a fix destroy hooks not set up for useClass provider using forwardRef (#44281)
bcd3b4959b fix support cyclic metadata in TestBed overrides (#44215)
### forms
Commit Type Description
-- -- --
96fedd249e fix make the FormControlStatus available as a public API (#44183)
### language-service
Commit Type Description
-- -- --
cabc1786de fix Correctly parse inputs and selectors with dollar signs (#44268)
### ngcc
Commit Type Description
-- -- --
b68994d20a fix correctly report error when collecting dependencies of UMD module (#44245)
6f5c0c1515 fix ensure that ngcc does not write a lock-file into node_modules package directories (#44228)
bf5f734e9c fix support the UMD wrapper function format emitted by Webpack (#44245)
### router
Commit Type Description
-- -- --
d265d0d241 fix prevent 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

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

13.0.1 (2021-11-10)

compiler

Commit Type Description
ee2031d9f4 fix ensure that partially compiled queries can handle forward references (#44113)
e5a960b159 fix generate correct code for safe method calls (#44088)
### compiler-cli
Commit Type Description
-- -- --
dede29e4f3 fix ensure literal types are retained when strictNullInputTypes is disabled (#38305)
04df3a0b92 fix handle pre-release versions when checking version (#44109)
### core
Commit Type Description
-- -- --
4c700b6244 fix do not use Function constructors in development mode to avoid CSP violations (#43587)
### platform-browser
Commit Type Description
-- -- --
30a27adf9a fix use 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

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

compiler

Commit Type Description
c85bcb0c63 feat reference ICU message IDs from their placeholders (#43534)
### localize
Commit Type Description
-- -- --
d3cf222a81 feat support "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

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.

#

Commit Type Description
747553dd68 docs deprecate ViewEngine-based renderModuleFactory (#43757)
### bazel
Commit Type Description
-- -- --
62d7005a52 feat add strict_templates and experimental_extended_template_diagnostics to ng_module() rule (#43582)
d977701a43 feat allow for custom conditions to be set in ng_package targets (#43764)
4886585875 feat create transition for enabling partial compilation (#43431)
cd1b52483e feat expose esm2020 and es2020 conditions in APF package exports (#43740)
49b82ae561 feat implement partial compilation APF v13 for ng_package rule (#43431)
274cb38e0b feat switch prodmode output to ES2020 (#43431)
73ac50c447 feat wire up partial compilation build setting in ng_module (#43431)
e0a72857cc fix construct a manifest file even when warnings are emitted (#43582)
dbe656d1e0 fix ngc-wrapped should not rely on linker for external workspaces (#43690)
### common
Commit Type Description
-- -- --
adf4481211 feat add injection token for default date pipe timezone (#43611)
c6a93001eb fix synchronise location mock behavior with the navigators (#41730)
### compiler
Commit Type Description
-- -- --
14b492df26 fix do not error if $any is used inside a listener (#43866)
### compiler-cli
Commit Type Description
-- -- --
bed121c34f feat inline resources when generating class metadata calls (#43178)
263feba5c2 fix handle nullable expressions correctly in the nullish coalescing extended template diagnostic (#43572)
8f7fdc59af fix not evaluating new signature for __spreadArray (#43618)
426a3ecae7 fix updates ngc to pass the build when only warnings are emitted (#43673)
### core
Commit Type Description
-- -- --
a3960846da feat add createNgModuleRef function to create NgModuleRef based on NgModule class (#43580)
fe1f6421d2 feat add getNgModuleById function to retrieve loaded NgModules by id (#43580)
81c7eb813c feat add migration to opt out existing apps from new test module teardown behavior (#43353)
e57691c9c5 feat Add migration to update empty routerLinks in templates (#43176)
7dccbdd27b feat add support for Types in ViewContainerRef.createComponent (#43022)
c14085e434 feat drop support for TypeScript 4.2 and 4.3 (#43642)
94ba59bc9d feat enable test module teardown by default (#43353)
ea61ec2562 feat support TypeScript 4.4 (#43281)
e0a0d05d45 feat update node version support range to support v16 (#43740)
7396021e4b fix avoid duplicating comments in TestBed teardown migration (#43776)
7fd0428aae fix don't rethrow errors if test teardown has been disabled (#43635)
66fb311d20 fix incorrect signature for initTestEnvironment (#43615)
8ae99821d6 fix support InjectFlags argument in NodeInjector.get() (#41592)
8878183521 perf remove support for the deprecated WrappedValue (#43507)
### elements
Commit Type Description
-- -- --
a468213f34 fix remove ng-add schematic (#43975)
f544a53f5f fix remove incorrect @angular/platform-browser peer dependency (#43975)
### forms
Commit Type Description
-- -- --
d9d8f950e9 feat allow disabling min/max validators dynamically (by setting the value to null) (#42978)
e49fc96ed3 feat Make Form Statuses use stricter types. (#42952)
### language-service
Commit Type Description
-- -- --
b10d90bef6 feat Add method for retrieving the component template at the cursor location (#43208)
d5f9890c92 feat auto-apply optional chaining on nullable symbol (#42995)
69957f72e2 feat provide snippets for attribute (#43590)
fc3b50e427 fix exclude the SafePropertyRead when applying the optional chaining (#43321)
### migrations
Commit Type Description
-- -- --
95a68c5dc3 fix account for CRLF characters in template migrations (#44013)
77bd2538cb fix apply individual expression edits to preserve newline characters (#43519)
d849350c7b fix Ensure routerLink migration doesn't update unrelated files (#43519)
2efc18e675 fix migration failed finding tsconfig file (#43343)
b6f2a55147 fix prevent migrations from updating external templates multiple times (#44013)
### router
Commit Type Description
-- -- --
4f3beffdbf feat emit activate/deactivate events when an outlet gets attached/detached (#43333)
faf9f5a3bc feat new output that would notify when link is activated (#43280)
3c6b653089 feat Option to correctly restore history on failed navigation (#43289)
784671597e fix Allow question marks in query param values (#31187)
796da641f0 fix Do not modify parts of URL excluded from with 'eager' updates (#43421)
772e08d14e fix fix Router's public API for canceledNavigationResolution (#43842)
ccb09b4558 fix null/undefined routerLink should disable navigation (#43087)
9e039ca68b fix Only trigger router navigation on popstate events from Location subscription (#43328)
c5d0bd4966 fix Prevent URL flicker when new navigations cancel ongoing ones (#43496)
adc68b100b fix reuse route strategy fix (#43791)
361273fad5 refactor remove support for loadChildren string syntax (#43591)
### service-worker
Commit Type Description
-- -- --
59225f5586 feat SwUpdate#activeUpdate and SwUpdate#checkForUpdate should have a meaningful outcome (#43668)
0dc45446fe feat expose 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

12.2.15 (2021-12-08)

ngcc

Commit Type Description
b6554d75cd fix correctly resolve UMD dependencies (#44382)
## Special Thanks
George Kalpakas

12.2.14 (2021-12-01)

compiler

Commit Type Description
e3db0385b6 fix ensure that partially compiled queries can handle forward references (#44124)
### ngcc
Commit Type Description
-- -- --
a8be244113 fix correctly report error when collecting dependencies of UMD module (#44245)
fc072935ee fix support the UMD wrapper function format emitted by Webpack (#44245)
## Special Thanks
George Kalpakas, Pete Bacon Darwin and iRealNirmal

12.2.13 (2021-11-03)

compiler-cli

Commit Type Description
9a89db790f fix avoid broken references in .d.ts files due to @internal markers (#43965)
### core
Commit Type Description
-- -- --
8f402c9d06 fix support InjectFlags argument in NodeInjector.get() (#41592)
## Special Thanks
Alan Agius, George Kalpakas, Jochen Kraushaar, Joe Martin (Crowdstaffing), JoostK and vthinkxie

12.2.12 (2021-10-27)

compiler-cli

Commit Type Description
112557497c fix avoid broken references in .d.ts files due to @internal markers (#43527)
### ngcc
Commit Type Description
-- -- --
067ae54d46 fix support 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

12.2.11 (2021-10-20)

ngcc

Commit Type Description
cab21cea7a fix support alternate wrapper function layout for UMD (#43879)
### router
Commit Type Description
-- -- --
58c11865ac fix Do 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

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

12.2.9 (2021-10-06)

core

Commit Type Description
b4b441077a fix handle invalid constructor parameters in partial factory declarations (#43619)
### router
Commit Type Description
-- -- --
7f6050587d fix unset attachRef when router-outlet is destroyed to avoid mounting a destroyed component (#43697)
### service-worker
Commit Type Description
-- -- --
c4ecc07838 fix make 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

12.2.8 (2021-09-30)

compiler-cli

Commit Type Description
c1338bf837 fix correctly interpret token arrays in @Injectable deps (#43226)
### language-service
Commit Type Description
-- -- --
c8f8d7d3b1 fix provide dom event completions (#43299)
### ngcc
Commit Type Description
-- -- --
69299f7d4d fix do not fail for packages which correspond with Object members (#43589)
### service-worker
Commit Type Description
-- -- --
3cf41354ae fix do 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

12.2.7 (2021-09-22)

common

Commit Type Description
2bb4bf1468 fix titlecase pipe incorrectly handling numbers (#43476)
### compiler
Commit Type Description
-- -- --
9c8a1f8a71 fix include leading whitespace in source-spans of i18n messages (#43132)
### compiler-cli
Commit Type Description
-- -- --
defb02f11e fix handle directives that refer to a namespaced class in a type parameter bound (#43511)
### platform-browser
Commit Type Description
-- -- --
adc7c56ede fix improve 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

12.2.6 (2021-09-15)

animations

Commit Type Description
141fde1632 fix emit pure annotations to static property initializers (#43344)
### core
Commit Type Description
-- -- --
ca510c87c5 fix emit pure annotations to static property initializers (#43344)
### router
Commit Type Description
-- -- --
4034f252c9 fix Allow renavigating to failed URLs (#43424)
### service-worker
Commit Type Description
-- -- --
a102b27641 fix clear 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

12.2.5 (2021-09-08)

router

Commit Description
a0bd6e90f9 fix: 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

12.2.4 (2021-09-01)

compiler-cli

Commit Description
8233906be2 fix: Emit type annotations for synthesized decorator fields (#43021)
## Special Thanks:
Andrew Scott, Daniel Trevino, George Kalpakas, Joey Perrott, Kristiyan Kostadinov, nickreid and segunb

12.2.3 (2021-08-25)

service-worker

Commit Description
fc7f92159d fix: NPE if onActionClick is undefined (#43210)
## Special Thanks:
Daniel Trevino, Erik Slack, George Kalpakas, dario-piotrowicz and shlasouski

12.2.2 (2021-08-18)

animations

Commit Description
bb6555979d fix: add pure annotations to static property initializers (#43064)
### core
Commit Description
-- --
738b23347e fix: add pure annotations to static property initializers (#43064)
### platform-browser
Commit Description
-- --
535837e617 perf: avoid intermediate arrays in server transition (#43145)
### router
Commit Description
-- --
6449590ec8 fix: 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

12.2.1 (2021-08-11)

router

Commit Description
dd3abdb9d9 fix(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

12.2.0 (2021-08-04)

core

Commit Description
bd7f0d8b70 fix(core): incorrect error reported when trying to re-create view which had an error during creation (#43005)
### language-service
Commit Description
-- --
aace1e71d8 fix(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

12.1.5 (2021-08-04)

This release contains various API docs improvements.

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

compiler-cli

Commit Description
ed9cfb674f fix(compiler-cli): use correct module resolution context for absolute imports in .d.ts files (#42879)
5fb23eccea perf(compiler-cli): skip analysis in incremental builds for files without Angular behavior (#42562)
### core
Commit Description
-- --
eefe1682e8 fix(core): correctly handle null or undefined in ErrorHandler#handleError() (#42881)
### forms
Commit Description
-- --
1d9d02696e feat(forms): add hasValidators, addValidators, and removeValidators methods (for both sync and async) (#42838)
a502279592 feat(forms): allow minLength/maxLength validator to be bound to null (#42565)
### language-service
Commit Description
-- --
7c35ca0e00 feat(language-service): support autocomplete string literal union types in templates (#42729)
### router
Commit Description
-- --
0d81b007e4 fix(router): add missing outlet events to RouterOutletContract (#42431)
dbae00195e feat(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

12.1.4 (2021-07-28)

compiler-cli

Commit Description
77ae4459d3 fix(compiler-cli): use correct module resolution context for absolute imports in .d.ts files (#42879)
f589b01672 perf(compiler-cli): skip analysis in incremental builds for files without Angular behavior (#42562)
### core
Commit Description
-- --
a779a1029b fix(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

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

animations

Commit Description
f12c53342c fix(animations): normalize final styles in buildStyles (#42763)
### compiler-cli
Commit Description
-- --
70c3461be3 fix(compiler-cli): use correct module import for types behind a forwardRef (#42887)
07d7e6034f perf(compiler-cli): optimize cycle detection using a persistent cache (#41271)
### core
Commit Description
-- --
307dac67bc fix(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

12.1.3 (2021-07-21)

animations

Commit Description
3cddc3d6bc fix(animations): normalize final styles in buildStyles (#42763)
### compiler-cli
Commit Description
-- --
d207ea06d1 fix(compiler-cli): use correct module import for types behind a forwardRef (#42887)
e6d520f3d9 perf(compiler-cli): optimize cycle detection using a persistent cache (#41271)
### core
Commit Description
-- --
a6db152c78 fix(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

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

bazel

Commit Description
7e04116d15 fix(bazel): enable dts bundling for Ivy packages (#42728)
### common
Commit Description
-- --
e42aa6c13b fix(common): re-sort output of KeyValuePipe when compareFn changes (#42821)
### compiler
Commit Description
-- --
b33665ab2c fix(compiler): add mappings for all HTML entities (#42818)
404c8d0d88 fix(compiler): incorrect context object being referenced from listener instructions inside embedded views (#42755)
### compiler-cli
Commit Description
-- --
81dce5c664 fix(compiler-cli): check split two way binding (#42601)
4c482bf3f1 fix(compiler-cli): properly emit literal types when recreating type parameters in a different file (#42761)
30c82cd177 fix(compiler-cli): inline type checking instructions no longer prevent incremental reuse (#42759)
4c78984ad2 fix(compiler-cli): support reflecting namespace declarations (#42728)
74350a5cf1 fix(compiler-cli): return directives for an element on a microsyntax template (#42640)
### core
Commit Description
-- --
cd2d82a91a fix(core): associate the NgModule scope for an overridden component (#42817)
51156f3f07 fix(core): allow proper type inference when ngFor is used with a trackBy function (#42692)
0f23f7343e fix(core): error in TestBed if module is reset mid-compilation in ViewEngine (#42669)
### language-service
Commit Description
-- --
ffeea63f43 fix(language-service): Do not override TS LS methods not supported by VE NgLS (#42727)
### service-worker
Commit Description
-- --
cb2ca9a66e fix(service-worker): correctly handle unrecoverable state when a client no longer exists (#42736)
f592a12005 fix(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

12.1.2 (2021-07-14)

bazel

Commit Description
4a8ab4f149 fix(bazel): enable dts bundling for Ivy packages (#42728)
### common
Commit Description
-- --
d654c7933a fix(common): re-sort output of KeyValuePipe when compareFn changes (#42821)
### compiler
Commit Description
-- --
2566cbb48c fix(compiler): add mappings for all HTML entities (#42818)
65330f03a9 fix(compiler): incorrect context object being referenced from listener instructions inside embedded views (#42755)
### compiler-cli
Commit Description
-- --
17d3de25da fix(compiler-cli): properly emit literal types when recreating type parameters in a different file (#42761)
0a17e98ae2 fix(compiler-cli): inline type checking instructions no longer prevent incremental reuse (#42759)
45116097c1 fix(compiler-cli): support reflecting namespace declarations (#42728)
df5cc1fbbf fix(compiler-cli): return directives for an element on a microsyntax template (#42640)
### core
Commit Description
-- --
63013546e1 fix(core): associate the NgModule scope for an overridden component (#42817)
9ebd41e39c fix(core): allow proper type inference when ngFor is used with a trackBy function (#42692)
41c6877c01 fix(core): error in TestBed if module is reset mid-compilation in ViewEngine (#42669)
### language-service
Commit Description
-- --
97c18f4527 fix(language-service): Do not override TS LS methods not supported by VE NgLS (#42727)
### service-worker
Commit Description
-- --
d87917542a fix(service-worker): correctly handle unrecoverable state when a client no longer exists (#42736)
f2523a8fef fix(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

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

compiler

Commit Description
9f5cc7c808 feat(compiler): support number separators in templates (#42672)
### compiler-cli
Commit Description
-- --
37a740c659 fix(compiler-cli): add support for partially evaluating types (#41661)
### platform-browser
Commit Description
-- --
234b5edcc7 fix(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

12.1.1 (2021-06-30)

compiler-cli

Commit Description
f6b828e292 fix(compiler-cli): add support for partially evaluating types (#41661)
### platform-browser
Commit Description
-- --
d19ddd1a87 fix(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

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

This release contains the same set of changes as 12.1.0.

12.1.0 (2021-06-24)

compiler

Commit Description
9de65dbdce fix(compiler): should not break a text token on a non-valid start tag (#42605)
c873440ad2 fix(compiler): do not allow unterminated interpolation to leak into later tokens (#42605)
cc672f05bf feat(compiler): add support for shorthand property declarations in templates (#42421)
f52df99fe3 fix(compiler): generate view restoration for keyed write inside template listener (#42603)
### compiler-cli
Commit Description
-- --
874de59d35 fix(compiler-cli): change default ngcc hash algorithm to be FIPS compliant (#42582)
729eea5716 fix(compiler-cli): transform type references in generic type parameter default (#42492)
### core
Commit Description
-- --
873229f24b feat(core): add opt-in test module teardown configuration (#42566)
### router
Commit Description
-- --
07c1ddc487 fix(router): error if module is destroyed before location is initialized (#42560)
### service-worker
Commit Description
-- --
cc30dc0713 fix(service-worker): ensure obsolete caches are always cleaned up (#42622)
01128f5b5d fix(service-worker): ensure caches are cleaned up when failing to load state (#42622)
73b0275dc2 fix(service-worker): improve ServiceWorker cache names (#42622)
7507ed2e54 fix(service-worker): use correct names when listing CacheDatabase tables (#42622)
53fe557da7 feat(service-worker): include ServiceWorker version in debug info (#42622)
d546501ab5 feat(service-worker): add openWindow, focusLastFocusedOrOpen and navigateLastFocusedOrOpen (#42520)
9498da1038 fix(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

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

compiler

Commit Description
8c1e0e6ad0 fix(compiler): always match close tag to the nearest open element (#42554)
### compiler-cli
Commit Description
-- --
22bda2226b fix(compiler-cli): prevent prior compilations from being retained in watch builds (#42537)
### core
Commit Description
-- --
3961b3c360 fix(core): ensure that autoRegisterModuleById registration in ɵɵdefineNgModule is not DCE-ed by closure (#42529)
### forms
Commit Description
-- --
7180ec9e7c fix(forms): changes to status not always being emitted to statusChanges observable for async validators. (#42553)
### language-service
Commit Description
-- --
4001e9d808 fix(language-service): 'go to defininition' for objects defined in template (#42559)
228beeabd1 fix(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

12.0.5 (2021-06-16)

compiler

Commit Description
89fc131ef8 fix(compiler): always match close tag to the nearest open element (#42554)
### compiler-cli
Commit Description
-- --
60dbf017fb fix(compiler-cli): prevent prior compilations from being retained in watch builds (#42537)
### core
Commit Description
-- --
785da0f1bf fix(core): ensure that autoRegisterModuleById registration in ɵɵdefineNgModule is not DCE-ed by closure (#42529)
### forms
Commit Description
-- --
6f1b907b79 fix(forms): changes to status not always being emitted to statusChanges observable for async validators. (#42553)
### language-service
Commit Description
-- --
8192f1e1c2 fix(language-service): 'go to defininition' for objects defined in template (#42559)
11e0f53352 fix(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

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

common

Commit Description
85c7f7691e fix(common): infer correct type when trackBy is used in ngFor (#41995)
374fa2c26f fix(common): initialize currencyCode in currencyPipe (#40505)
### compiler
Commit Description
-- --
afd68e5674 feat(compiler): emit diagnostic for shadow dom components with an invalid selector (#42245)
ba084857ea feat(compiler): support safe keyed read expressions (#41911)
### compiler-cli
Commit Description
-- --
bd1836b999 fix(compiler-cli): exclude type-only imports from cycle analysis (#42453)
### core
Commit Description
-- --
25f763cff8 feat(core): support TypeScript 4.3 (#42022)
### forms
Commit Description
-- --
47270d9e63 feat(forms): add ng-submitted class to forms that have been submitted. (#42132)
751cd83ae3 fix(forms): the min and max validators should work correctly with 0 as a value (#42412)
### language-service
Commit Description
-- --
a493ea9bcb fix(language-service): fix autocomplete info display for some cases (#42472)
fe22c2b0b6 fix(language-service): Correct rename info for pipe name expressions (#41974)
### router
Commit Description
-- --
c44ab4f6da fix(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

12.0.4 (2021-06-09)

common

Commit Description
200cc31df4 fix(common): infer correct type when trackBy is used in ngFor (#41995)
0dad375de7 fix(common): initialize currencyCode in currencyPipe (#40505)
### compiler-cli
Commit Description
-- --
b6d6a34eef fix(compiler-cli): exclude type-only imports from cycle analysis (#42453)
### forms
Commit Description
-- --
50c87e86b6 fix(forms): the min and max validators should work correctly with 0 as a value (#42412)
### language-service
Commit Description
-- --
34dd3c360b fix(language-service): fix autocomplete info display for some cases (#42472)
### router
Commit Description
-- --
a77ec5bcab fix(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

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

compiler-cli

Commit Description
e039075a28 fix(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 不肖・高橋

12.0.3 (2021-06-02)

compiler-cli

Commit Description
8bdcca1e08 fix(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 不肖・高橋

12.0.2 (2021-05-26)

forms

Commit Description
19d7bf4162 fix(forms): Add float number support for min and max validator (#42223)
### migrations
Commit Description
-- --
11c7bec065 fix(migrations): add migration to replace /deep/ with ::ng-deep (#42214)
### platform-browser
Commit Description
-- --
84ab81c286 fix(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

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

forms

Commit Description
3d9062dad7 fix(forms): Add float number support for min and max validator (#42223)
### migrations
Commit Description
-- --
7f6213a2f4 fix(migrations): add migration to replace /deep/ with ::ng-deep (#42214)
### platform-browser
Commit Description
-- --
3a6af8e629 fix(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

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

common

Commit Description
4bc3cf216d feat(common): add URLSearchParams to request body (#37852)
### language-service
Commit Description
-- --
1be5d659a5 fix(language-service): fully de-duplicate reference and rename results (#40523)
a86ca4fe04 feat(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

12.0.1 (2021-05-19)

benchpress

Commit Description
28ee9864a4 fix(benchpress): update the check for start and end events (#42085)
### compiler
Commit Description
-- --
52c07e403e fix(compiler): unclear lexer error when using private identifier in expressions (#42027)
### core
Commit Description
-- --
3a46ad96ea fix(core): global listeners not being bound on non-node host elements (#42014)
### forms
Commit Description
-- --
9b90c03a9f fix(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

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 rules_nodejs@3.1.0 (#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 destorying 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

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

After

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.

11.2.14 (2021-05-12)

core

Commit Description
5bb7c0ef3a fix(core): do not retain dynamically compiled components and modules (#42003)
40cc29aa6e fix(core): invoke profiler around ngOnDestroy lifecycle hooks (#41969)
### platform-browser
Commit Description
-- --
f66c9ae749 fix(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)

11.2.1 (2021-02-17)

Bug Fixes

11.2.0 (2021-02-10)

Bug Fixes

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

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

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

Bug Fixes

Performance Improvements

  • language-service: update NgCompiler via resource-only path when able (#40585) (07a3d7a)

11.1.2 (2021-02-03)

Bug Fixes

Performance Improvements

  • language-service: update NgCompiler via resource-only path when able (#40680) (0047eb3)

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)

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

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)

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)

11.0.7 (2021-01-07)

Bug Fixes

11.0.6 (2021-01-06)

Bug Fixes

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

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)

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.

11.0.2 (2020-11-19)

Bug Fixes

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)

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