Angular 15

https://github.com/angular/angular

15.2.9 (2023-05-03)

common

Commit Description
fix - 9107e931ca fix incorrectly reported distortion for padded images (#49889)

compiler-cli

Commit Description
fix - 7c58885797 catch fatal diagnostic when getting diagnostics for components (#50046)

15.2.8 (2023-04-19)

core

Commit Description
fix - 2fff8fadbe handle invalid classes in class array bindings (#49924)

http

Commit Description
fix - 05a0225deb prevent headers from throwing an error when initializing numerical values (#49379)

router

Commit Description
fix - 09a42d988e canceledNavigationResolution: 'computed' with redirects to the current URL (#49793)

15.2.7 (2023-04-12)

compiler

Commit Description
fix - b0c1a90f55 Produce diagnositc if directive used in host binding is not exported (#49792)

compiler-cli

Commit Description
fix - a40529af2e Catch FatalDiagnosticError during template type checking (#49792)

core

Commit Description
fix - 702ec90110 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 Description
feat - d9efa1b0d7 change the URL sanitization to only block javascript: URLs (#49659)

router

Commit Description
fix - cad7274ef9 create correct URL relative to path with empty child (#49691)
fix - 9b61379096 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 Description
fix - ca5acadb78 invalid ImageKit transformation (#49201)

compiler

Commit Description
fix - 077f6b4674 do not unquote CSS values (#49460)
fix - c3cff35869 handle trailing comma in object literal (#49535)

core

Commit Description
fix - d201fc2dec set style property value to empty string instead of an invalid value (#49460)

router

Commit Description
fix - 978d37f324 Ensure Router preloading works with lazy component and static children (#49571)
fix - a844435514 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 Description
fix - bae6b5ceb1 Allow TestBed.configureTestingModule to work with recursive cycle of standalone components. (#49473)
fix - 087f4412af more accurate matching of classes during content projection (#48888)

migrations

Commit Description
fix - bf4d856834 preserve trailing commas in code generated by standalone migration (#49533)

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 Description
fix - 6207d6f1f0 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 Description
fix - f0e926074d make Location.normalize() return the correct path when the base path contains characters that interfere with regex syntax. (#49181)

compiler-cli

Commit Description
fix - 04d8b6c61a do not persist component analysis if template/styles are missing (#49184)

core

Commit Description
fix - d60ea6ab5a update zone.js peerDependencies ranges (#49244)

migrations

Commit Description
fix - 44d095a61c avoid migrating the same class multiple times in standalone migration (#49245)
fix - 92b0bda9e4 delete barrel exports in standalone migration (#49176)

router

Commit Description
fix - 3062442728 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 Description
docs - 926c35f4ac Deprecate class and InjectionToken and resolvers (#47924)

common

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

compiler-cli

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

core

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

language-service

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

migrations

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

platform-browser

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

platform-server

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

router

Commit Description
feat - 31b94c762f Add a withNavigationErrorHandler feature to provideRouter (#48551)
feat - dedac8d3f7 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.2.0-rc.0 (2023-02-15)

forms

Commit Description
fix - 59685614f8 Make radio buttons respect [attr.disabled] (#48864)

migrations

Commit Description
fix - 816e76a578 automatically prune root module after bootstrap step (#49030)
fix - 521ccfbe6c avoid interrupting the migration if language service lookup fails (#49010)
fix - ebae506d89 use import remapper in root component (#49046)
fix - 40c976c909 use NgForOf instead of NgFor (#49022)
perf - 4ac25b2aff avoid re-traversing nodes when resolving bootstrap call dependencies (#49010)
perf - 26cb7ab2e6 speed up language service lookups (#49010)

Special Thanks

AleksanderBodurri, Alvaro Junqueira, Dylan Hunn, Joey Perrott, Kristiyan Kostadinov, Matthieu Riegler, PaloMiklo, Paul Gschwendtner, Pawel Kozlowski and cexbrayat

15.1.5 (2023-02-15)

forms

Commit Description
fix - 5f2a3edcf2 Make radio buttons respect [attr.disabled] (#48864)

Special Thanks

AleksanderBodurri, Alvaro Junqueira, Dylan Hunn, Joey Perrott, Matthieu Riegler, PaloMiklo and Paul Gschwendtner

15.2.0-next.4 (2023-02-08)

common

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

compiler-cli

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

language-service

Commit Description
fix - d0145033bd generate forwardRef for same file imports (#48898)

migrations

Commit Description
fix - bdbf21d04b avoid generating imports with forward slashes (#48993)
fix - 32cf4e5cb9 avoid internal modules when generating imports (#48958)
fix - 1afa6ed322 don't add ModuleWithProviders to standalone test components (#48987)
fix - 759db12e0b duplicated comments on migrated classes (#48966)
fix - ba38178d19 generate forwardRef for same file imports (#48898)
fix - 2de6dae16d migrate RouterModule.forRoot with a config object to use features (#48935)
fix - 770191cf1f migrate tests when switching to standalone bootstrap API (#48987)
fix - c7926b5773 move standalone migrations into imports (#48987)
fix - 6377487b1a only exclude bootstrapped declarations from initial standalone migration (#48987)
fix - e9e4449a43 preserve tsconfig in standalone migration (#48987)
fix - ffad1b49d9 reduce number of files that need to be checked (#48987)
fix - 49a7c9f94a standalone migration incorrectly throwing path error for multi app projects (#48958)

Special Thanks

Alex Castle, Andrew Scott, Dylan Hunn, Jessica Janiuk, Kian Yang Lee, Kristiyan Kostadinov, Matthieu Riegler, Pawel Kozlowski, Redouane Bekkouche, Simona Cotin and Walid Bouguima

15.1.4 (2023-02-08)

Special Thanks

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

15.2.0-next.3 (2023-02-02)

animations

Commit Description
fix - b4187548ca fix non-animatable warnings for easing (#48583)

common

Commit Description
fix - a055196c55 warn if using ngSrcset without a configured image loader (#48804)

compiler

Commit Description
fix - 06e161f2dd incorrect code when non-null assertion is used after a safe access (#48801)

core

Commit Description
feat - 345e737daa add ng generate schematic to convert to standalone bootstrapping APIs (#48848)

migrations

Commit Description
fix - 2796230e95 add enum in mode option in standalone schema (#48851)
fix - a40cd47aa7 avoid modifying testing modules without declarations (#48921)
fix - 8389557848 don't copy unmigrated declarations into imports array (#48882)
fix - f82bdc4b01 don't delete classes that may provide dependencies transitively (#48866)
fix - 04e0ac3d7c migration host incorrectly reading empty files (#48849)
fix - 65c74ed93e normalize paths to posix (#48850)
fix - 584976e6c8 support --defaults in standalone migration (#48921)
fix - 03f47ac901 use consistent quotes in generated imports (#48876)

platform-server

Commit Description
fix - 2fc5b70fce insert transfer state script before other script tags (#48868)

router

Commit Description
feat - dedac8d3f7 Add test helper for trigger navigations in tests (#48552)
fix - 16ef770db8 Handle routerLink directive on svg anchors. (#48857)

Special Thanks

Alan Agius, Andrew Scott, Besim Gürbüz, Brecht Billiet, Dario Piotrowicz, Dylan Hunn, Iván Navarro, Kristiyan Kostadinov, Matthieu Riegler, Onkar Ruikar, Payam Valadkhan, Santosh Yadav, Virginia Dooley and Walid Bouguima

15.1.3 (2023-02-02)

animations

Commit Description
fix - d36dfd4b62 fix non-animatable warnings for easing (#48583)

common

Commit Description
fix - a334e4efbe warn if using ngSrcset without a configured image loader (#48804)

compiler

Commit Description
fix - 171b4d4640 incorrect code when non-null assertion is used after a safe access (#48801)

migrations

Commit Description
fix - 9e86dd231b Fixed file format issue with lint (#48859)
fix - af31f98b00 migration host incorrectly reading empty files (#48849)

platform-server

Commit Description
fix - 73972c684e insert transfer state script before other script tags (#48868)

router

Commit Description
fix - d5b2c249a3 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.2.0-next.2 (2023-01-25)

compiler

Commit Description
fix - bc8cfa2552 handle css selectors with space after an escaped character. (#48558)

compiler-cli

Commit Description
fix - 4da1f2948c resolve deprecation warning (#48812)

core

Commit Description
feat - a154db8a81 add ng generate schematic to convert declarations to standalone (#48790)
feat - e7318fc758 add ng generate schematic to remove unnecessary modules (#48832)

router

Commit Description
fix - 4dcab333ae 'createUrlTreeFromSnapshot' with empty paths and named outlets (#48734)

Special Thanks

Alan Agius, AleksanderBodurri, Andrew Kushnir, Andrew Scott, Charles Lyding, Dylan Hunn, Jessica Janiuk, JoostK, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner, Payam Valadkhan, Virginia Dooley, Yann Thomas LE MOIGNE and dario-piotrowicz

15.1.2 (2023-01-25)

compiler

Commit Description
fix - 98ccb57117 handle css selectors with space after an escaped character. (#48558)

compiler-cli

Commit Description
fix - 145f848a10 resolve deprecation warning (#48812)

router

Commit Description
fix - a6b10f6e59 '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.2.0-next.1 (2023-01-18)

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 Description
docs - 926c35f4ac Deprecate class and InjectionToken and resolvers (#47924)

common

Commit Description
fix - 8802b4aab9 Update Location to get a normalized URL valid in case a represented URL starts with the substring equals APP_BASE_HREF (#48489)
perf - 5f21c6d627 avoid excessive DOM mutation in NgClass (#48433)

core

Commit Description
fix - f00bf71411 makeEnvironmentProviders should accept EnvironmentProviders (#48720)

language-service

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

Special Thanks

Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Aristeidis Bampakos, Bob Watson, Dylan Hunn, Jens, Konstantin Kharitonov, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner, Pawel Kozlowski, Vladyslav Slipchenko, ced, dario-piotrowicz, mgechev and ノウラ

15.1.1 (2023-01-18)

common

Commit Description
fix - 68ce4f6ab4 Update Location to get a normalized URL valid in case a represented URL starts with the substring equals APP_BASE_HREF (#48489)
perf - 032b2bd689 avoid excessive DOM mutation in NgClass (#48433)

core

Commit Description
fix - dd54f6bd96 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.2.0-next.0 (2023-01-11)

router

Commit Description
feat - 31b94c762f Add a withNavigationErrorHandler feature to provideRouter (#48551)

Special Thanks

Alan Agius, Alex Rickabaugh, Andrew Scott, Paul Gschwendtner and angular-robot[bot]

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 Description
feat - fe50813664 Add BrowserPlatformLocation to the public API (#48488)
fix - 2f4f0638c7 Add data attribtue to NgOptimizedImage (#48497)

compiler

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

compiler-cli

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

core

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

forms

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

language-service

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

localize

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

migrations

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

router

Commit Description
docs - 228e992db7 Deprecate canLoad guards in favor of canMatch (#48180)
docs - 0a8b8a66cd Deprecate public members of Router that are meant to be configured elsewhere (#48006)
feat - 332461bd0c Add ability to override onSameUrlNavigation default per-navigation (#48050)
feat - f58ad86e51 Add feature provider for enabling hash navigation (#48301)
feat - 73f03ad2d2 Add new NavigationSkipped event for ignored navigations (#48024)
fix - 3fe75710d9 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.1.0-rc.0 (2023-01-05)

common

Commit Description
fix - 2f4f0638c7 Add data attribtue to NgOptimizedImage (#48497)

compiler

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

compiler-cli

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

localize

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

migrations

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

Special Thanks

Alan Agius, Alex Castle, Andrew Kushnir, Derek Cormier, Joey Perrott, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner, Pawel Kozlowski, Renan Ferro, Vadim, ced, mgechev, piyush132000 and robertIsaac

15.1.0-next.3 (2022-12-14)

animations

Commit Description
fix - c86484507f fix incorrect handling of camel-case css properties (#48436)

common

Commit Description
feat - fe50813664 Add BrowserPlatformLocation to the public API (#48488)
fix - e362214924 Fix TestBed.overrideProvider type to include multi (#48424)
fix - d87285c363 Update Location to get a normalized URL valid in case a represented URL starts with the substring equals APP_BASE_HREF (#48394)

compiler-cli

Commit Description
fix - a6849f27af evaluate const tuple types statically (#48091)

router

Commit Description
feat - f58ad86e51 Add feature provider for enabling hash navigation (#48301)

Special Thanks

Alan Agius, Andrew Kushnir, Andrew Scott, Aristeidis Bampakos, Bob Watson, BrowserPerson, Jens, Jessica Janiuk, Joey Perrott, JoostK, Konstantin Kharitonov, Lukas Matta, Matthieu Riegler, Piotr Kowalski, Virginia Dooley, Yannick Baron, dario-piotrowicz, lsst25, piyush132000 and why520crazy

15.0.4 (2022-12-14)

animations

Commit Description
fix - 6c1064c72f fix incorrect handling of camel-case css properties (#48436)

common

Commit Description
fix - f30d18a942 Fix TestBed.overrideProvider type to include multi (#48424)
fix - 59c6bfb632 Update Location to get a normalized URL valid in case a represented URL starts with the substring equals APP_BASE_HREF (#48394)

compiler-cli

Commit Description
fix - b55d2dab5d 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.1.0-next.2 (2022-12-07)

common

Commit Description
fix - 8e52ca2714 Don't generate srcsets with very large sources (#47997)
fix - f8ecc194e9 Update Location to support base href containing origin (#48327)

compiler

Commit Description
fix - 4c023956d8 make sure selectors inside container queries are correctly scoped (#48353)

compiler-cli

Commit Description
fix - 27eaded62d Produce diagnostic rather than crash when using invalid hostDirective (#48314)

core

Commit Description
feat - 38421578a2 Make the isStandalone() function available in public API (#48114)
feat - dd42974b07 support TypeScript 4.9 (#48005)
fix - 5f9c7ceb90 unable to inject ChangeDetectorRef inside host directives (#48355)

Special Thanks

Alan Agius, Alex Castle, Andrew Kushnir, Andrew Scott, Bob Watson, Charles Lyding, Derek Cormier, Joey Perrott, Konstantin Kharitonov, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner, Pawel Kozlowski, dario-piotrowicz, piyush132000 and sr5434

15.0.3 (2022-12-07)

common

Commit Description
fix - 50b1c2bf52 Don't generate srcsets with very large sources (#47997)
fix - bf44dc234a Update Location to support base href containing origin (#48327)

compiler

Commit Description
fix - 9a5d84249a make sure selectors inside container queries are correctly scoped (#48353)

compiler-cli

Commit Description
fix - 167bc0d163 Produce diagnostic rather than crash when using invalid hostDirective (#48314)

core

Commit Description
fix - e4dcaa513e 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.1.0-next.1 (2022-11-30)

Deprecations

router

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

compiler-cli

Commit Description
fix - 7d88700933 accept inheriting the constructor from a class in a library (#48156)

router

Commit Description
docs - 228e992db7 Deprecate canLoad guards in favor of canMatch (#48180)
feat - 332461bd0c Add ability to override onSameUrlNavigation default per-navigation (#48050)

Special Thanks

Alan Agius, Andrew Scott, Aristeidis Bampakos, Bob Watson, Derek Cormier, Dylan Hunn, JoostK, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner, Pawel Kozlowski, Rokas Brazdžionis and piyush132000

15.0.2 (2022-11-30)

compiler-cli

Commit Description
fix - 86a21f5569 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.1.0-next.0 (2022-11-22)

Deprecations

router

  • 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 Description
fix - b0a62bea47 Fix MockPlatformLocation events and missing onPopState implementation (#48113)

core

Commit Description
feat - 6acae1477a Add TestBed.runInInjectionContext to help test functions which use inject (#47955)

forms

Commit Description
fix - 0329c13e95 don't mutate validators array (#47830)
fix - d321880440 FormBuilder.group return right type with shorthand parameters. (#48084)

language-service

Commit Description
feat - 5f0b53c735 Allow auto-imports to suggest multiple possible imports. (#47787)
fix - fd2eea5961 correctly handle host directive inputs/outputs (#48147)
fix - ce8160ecb2 Prevent crashes on unemitable references (#47938)
fix - 764fa3d9c3 update packages/language-service/build.sh script to work with vscode-ng-language-service's new Bazel build (#48120)

router

Commit Description
docs - 0a8b8a66cd Deprecate public members of Router that are meant to be configured elsewhere (#48006)
feat - 73f03ad2d2 Add new NavigationSkipped event for ignored navigations (#48024)
fix - b51929a394 correct type of nextState parameter in canDeactivate (#48038)
fix - 1df0ed7d6e Ensure renavigating in component init works with enabledBlocking (#48063)
fix - 1976e37475 restore 'history.state' on popstate even if navigationId missing (#48033)

Special Thanks

Alan Agius, Andrew Kushnir, Andrew Scott, Bjarki, Bob Watson, Brooke, Derek Cormier, Dylan Hunn, George Kalpakas, Greg Magolan, Ikko Ashimine, Ivan Rodriguez, Jessica Janiuk, JiaLiPassion, Joe Roxbury, Joey Perrott, Kristiyan Kostadinov, Matthieu Riegler, Mikhail Savchuk, Nebojsa Cvetkovic, Pawel Kozlowski, Volodymyr, Wooshaah and mgechev

15.0.1 (2022-11-22)

common

Commit Description
fix - 930af9dd26 Fix MockPlatformLocation events and missing onPopState implementation (#48113)

forms

Commit Description
fix - b342e55509 don't mutate validators array (#47830)
fix - a12a120272 FormBuilder.group return right type with shorthand parameters. (#48084)

language-service

Commit Description
fix - cc8b76ef7c correctly handle host directive inputs/outputs (#48147)
fix - a8c33bf931 update packages/language-service/build.sh script to work with vscode-ng-language-service's new Bazel build (#48120)

router

Commit Description
fix - e4309d57d8 correct type of nextState parameter in canDeactivate (#48038)
fix - 9baefd085f Ensure renavigating in component init works with enabledBlocking (#48063)
fix - fa5528fb5f 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

15.0.0 (2022-11-16)

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

compiler

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

compiler-cli

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

core

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

forms

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

http

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

language-service

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

localize

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

platform-server

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

router

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

15.0.0-rc.4 (2022-11-14)

common

Commit Description
fix - 449d29b701 Add fetchpriority to ngOptimizedImage preloads (#48010)
fix - edea15f2c6 export the IMAGE_CONFIG token (#48051)
fix - 945432e3fa Warn on fill ngOptimizedImage without height (#48036)

Special Thanks

Alan Agius, Alex Castle, Andrew Kushnir, Mujo Osmanovic and ced

15.0.0-rc.3 (2022-11-09)

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 Description
fix - 37a25486cf add zone.js version 0.12.x as a valid peer dependency (#48002)
fix - 28f289b825 hardening attribute and property binding rules for elements (#47964)

forms

Commit Description
fix - 2625dc1312 Improve a very commonly viewed error message by adding a guide. (#47969)
fix - ae29f98c20 Runtime error pages must begin with leading zero (#47991)

http

Commit Description
fix - e7b48da713 rename withLegacyInterceptors to withInterceptorsFromDi (#47901)

router

Commit Description
fix - b8a6f7491b fix redirectTo on named outlets - resolves #33783 (#47927)

Special Thanks

Alan Agius, Albert Szekely, Alex Castle, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Doug Parker, Dylan Hunn, Kristiyan Kostadinov, Markus Eckstein, Matthieu Riegler, Paul Gschwendtner, Peter Scriven and abergquist

15.0.0-rc.2 (2022-11-04)

Breaking Changes

core

  • 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.

core

Commit Description
fix - 96c0e42e61 allow readonly arrays for standalone imports (#47851)
fix - d4b3c0b47c hardening rules related to the attribute order on iframe elements (#47935)

platform-browser

Commit Description
perf - d5cd79f885 resolve memory leak when using animations with shadow DOM (#47903)

platform-server

Commit Description
fix - 31a7ce1268 call onSerialize when state is empty (#47888)

Special Thanks

Alan Agius, Alex Rickabaugh, Andrew Kushnir, Charles Lyding, Kristiyan Kostadinov, Paul Gschwendtner, Pawel Kozlowski, Virginia Dooley and mgechev

15.0.0-rc.1 (2022-10-26)

common

Commit Description
fix - 3a18398d83 Don't warn about image distortion is fill mode is enabled (#47824)

forms

Commit Description
fix - a99d9d67f3 don't mutate validators array (#47830)

platform-server

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

Special Thanks

Alan Agius, Alex Castle, Andrew Scott, Balaji, George Kalpakas, Kristiyan Kostadinov, Paul Gschwendtner, Pawel Kozlowski, WD Snoeijer, onrails and vyom1611

15.0.0-rc.0 (2022-10-19)

common

Commit Description
fix - 4f52d4e474 don't generate srcset if noopImageLoader is used (#47804)
fix - fa4798095e update size error to mention 'fill' mode (#47797)
fix - 23f210c0ab warn if using supported CDN but not built-in loader (#47330)

compiler-cli

Commit Description
fix - 309b2cde51 implement more host directive validations as diagnostics (#47768)

localize

Commit Description
fix - b6fd814542 update ng add schematic to support Angular CLI version 15 (#47763)

router

Commit Description
fix - 79e9e8ab77 Delay router scroll event until navigated components have rendered (#47563)

Special Thanks

Alan Agius, Alex Castle, Andrew Kushnir, Andrew Scott, Bob Watson, Charles Barnes, Charles Lyding, Kara Erickson, Kristiyan Kostadinov, Paul Gschwendtner, Virginia Dooley, WD Snoeijer, abergquist and urugator

15.0.0-next.6 (2022-10-12)

Breaking Changes

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.

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.

forms

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

router

  • 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.

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 Description
feat - c0c7efaf7c add provideLocationMocks() function to provide Location mocks (#47674)
feat - 75e6297f09 add preload tag on server for priority img (#47343)
feat - 4fde292bb5 Add automatic srcset generation to ngOptimizedImage (#47547)
feat - 9483343ebf Add fill mode to NgOptimizedImage (#47738)
feat - bdb5371033 add injection token for default DatePipe configuration (#47157)

compiler

Commit Description
fix - 39b72e208b update element schema (#47552)
fix - 48b354a83e update element schema (#47552)

compiler-cli

Commit Description
fix - 38078e7adb add missing period to error message (#47744)
fix - bc54687c7b exclude abstract classes from strictInjectionParameters requirement (#44615)
fix - 19ad4987f9 use @ts-ignore. (#47636)
perf - a792bf1703 minimize filesystem calls when generating shims (#47682)

core

Commit Description
feat - 1b9fd46d14 add support for Node.js version 18 (#47730)
feat - ed11a13c3c drop support for TypeScript 4.6 and 4.7 (#47690)
feat - db28badfe6 enable the new directive composition API (#47642)
feat - 7de1469be6 introduce EnvironmentProviders wrapper type (#47669)

forms

Commit Description
feat - a8569e3802 export forms utility functions: isFormArray, isFormGroup… (#47718)
fix - 96b7fe93af call setDisabledState on ControlValueAcessor when control is enabled (#47576)

http

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

language-service

Commit Description
feat - bebef5fb43 Quick fix to import a component when its selector is used (#47088)

router

Commit Description
feat - 7bee28d037 add a migration to remove relativeLinkResolution usages (#47604)
feat - f73ef21442 merge RouterLinkWithHref into RouterLink (#47630)
feat - 16c8f55663 migrate RouterLinkWithHref references to RouterLink (#47599)
feat - 07017a7bd3 prevent provideRouter() from usage in @Component (#47669)
fix - 7b89d95c0e Remove deprecated relativeLinkResolution (#47623)

Special Thanks

Alan Agius, AleksanderBodurri, Alex Castle, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Aristeidis Bampakos, Bob Watson, Charles Lyding, Dylan Hunn, Ferdinand Malcher, George Kalpakas, Jessica Janiuk, Joey Perrott, JoostK, Joshua Morony, Kristiyan Kostadinov, Martin Probst, Mathew Berg, Matthias Weiß, Paul Gschwendtner, Peter Dickten, Renan Ferro, Sri Ram, WD Snoeijer, arturovt, jaybell, markostanimirovic and Álvaro Martínez

15.0.0-next.5 (2022-10-05)

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.

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.

Deprecations

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.

compiler

Commit Description
fix - 051f75648d scope css keyframes in emulated view encapsulation (#42608)

compiler-cli

Commit Description
fix - 2e1dddec45 support hasInvalidatedResolutions. (#47585)

core

Commit Description
docs - e3cef4a784 deprecate providedIn: NgModule and providedIn: 'any' (#47616)

localize

Commit Description
fix - 400a6b5e37 add polyfill in polyfills array instead of polyfills.ts (#47569)

router

Commit Description
feat - da58801f95 auto-unwrap default exports when lazy loading (#47586)
feat - c3f857975d make RouterOutlet name an Input so it can be set dynamically (#46569)

Special Thanks

Alan Agius, Alex Rickabaugh, Alexander Wiebe, Andrew Kushnir, Andrew Scott, Ciprian Sauliuc, Dmytro Mezhenskyi, Dylan Hunn, George Kalpakas, Joe Martin (Crowdstaffing), Jordan, Kristiyan Kostadinov, Martin Probst, Ole M, Paul Gschwendtner, Pawel Kozlowski, dario-piotrowicz and mgechev

15.0.0-next.4 (2022-09-28)

Breaking Changes

router

  • The title property is now required on ActivatedRouteSnapshot

Deprecations

core

  • 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.

core

Commit Description
feat - 841c8e5138 support object-based DI flags in Injector.get() (#46761)
feat - 120555a626 support object-based DI flags in TestBed.inject() (#46761)
fix - aef8d0bb02 correctly check for typeof of undefined in ngDevMode check (#47480)
fix - 85330f3fd9 update isDevMode to rely on ngDevMode (#47475)

language-service

Commit Description
feat - e7ee53c541 support to fix invalid banana in box (#47393)

router

Commit Description
fix - 6a88bad019 Ensure ActivatedRouteSnapshot#title has correct value (#47481)

Special Thanks

Alan Agius, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Ashley Hunter, Doug Parker, Jessica Janiuk, JiaLiPassion, Kristiyan Kostadinov, Rokas Brazdžionis, Simona Cotin and ivanwonder

15.0.0-next.3 (2022-09-21)

animations

Commit Description
fix - d11b1d99b0 make sure that the useAnimation function delay is applied (#47468)

compiler-cli

Commit Description
perf - 8fcadaad48 cache source file for reporting type-checking diagnostics (#47471)

Special Thanks

AleksanderBodurri, Andrew Kushnir, Andrew Scott, Bob Watson, George Kalpakas, JiaLiPassion, Joey Perrott, JoostK, Kristiyan Kostadinov, Mauro Mattos, Pawel Kozlowski, Sabareesh Kappagantu, angular-robot[bot], dario-piotrowicz, fabioemoutinho and famzila

15.0.0-next.2 (2022-09-14)

animations

Commit Description
fix - 7ec196e0fb make sure that the animation function delay is applied (#47285)

common

Commit Description
fix - ca7bf65933 rename rawSrc -> ngSrc in NgOptimizedImage directive (#47362)

core

Commit Description
fix - 4e10a74941 imply @Optional flag when a default value is provided (#47242)

forms

Commit Description
fix - 4a13210ecd don't prevent default behavior for forms with method="dialog" (#47308)

Special Thanks

Abhishek Rawat, Andrew Kushnir, Benjamin Chanudet, Bob Watson, Dylan Hunn, George Kalpakas, Ikko Ashimine, Joey Perrott, Kristiyan Kostadinov, Marc Wrobel, Mariia Subkov, Pawel Kozlowski, Sebastian, abergquist, dario-piotrowicz, onrails and vyom1611

15.0.0-next.1 (2022-09-07)

Breaking Changes

compiler-cli

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

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.

common

Commit Description
fix - 220d1203e6 improve formatting of image warnings (#47299)
fix - 93d7d9101e use DOCUMENT token to query for preconnect links (#47353)

compiler

Commit Description
fix - cf0c53aa1c avoid errors for inputs with Object-builtin names (#47220)

compiler-cli

Commit Description
refactor - 16f96eeabf remove enableIvy options (#47346)

localize

Commit Description
refactor - d36fd3d9e4 remove deprecated canParse method from TranslationParsers (#47275)

service-worker

Commit Description
fix - e1bb638e0b include headers in requests for assets (#47260)
fix - a0c3326485 only consider GET requests as navigation requests (#47263)

Special Thanks

Alan Agius, Andrew Kushnir, Aristeidis Bampakos, Asaf M, Bingo's Code, Bob Watson, Daniel Ostrovsky, George Kalpakas, Giovanni Alberto Rivas, Jeremy Elbourn, JiaLiPassion, Jobayer Hossain, Joe Martin (Crowdstaffing), Joey Perrott, JoostK, Kara Erickson, Kristiyan Kostadinov, Maina Wycliffe, Sabareesh Kappagantu, Simona Cotin, Sonu Sindhu, Yann Provoost, abergquist, angular-robot[bot], jaybell and vyom1611

15.0.0-next.0 (2022-08-25)

common

Commit Description
fix - 8abf1c844c fix formatting on oversized image error (#47188)
fix - b3879dbf14 support density descriptors with 2+ decimals (#47197)

router

Commit Description
feat - 5163e3d876 Add UrlTree constructor to public API (#47186)

Special Thanks

Alan Agius, Alex Rickabaugh, Andrew Scott, Joey Perrott, Kara Erickson, Kristiyan Kostadinov and Pawel Kozlowski