Packages

@angular/upgrade

22.2.3 · 14 Oct 2026MIT104.4k / weekRepositoryHomepagenpmAtom feed

Your version

15.2.0

22 Feb 2023Where it was published

15.2.10 is the newest release of 15.x.

In short

1 deprecated

  • deprecated

    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) |

Release note

Deprecations

  • deprecated

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

    CommitDescription
    docs - 926c35f4acDeprecate class and InjectionToken and resolvers (#47924)

common

CommitDescription
feat - 54b24eb40fAdd loaderParams attribute to NgOptimizedImage (#48907)

compiler-cli

CommitDescription
fix - 0cf11167f1incorrectly detecting forward refs when symbol already exists in file (#48988)

core

CommitDescription
feat - a154db8a81add ng generate schematic to convert declarations to standalone (#48790)
feat - 345e737daaadd ng generate schematic to convert to standalone bootstrapping APIs (#48848)
feat - e7318fc758add ng generate schematic to remove unnecessary modules (#48832)

language-service

CommitDescription
feat - 4ae384fd61Allow auto-imports of a pipe via quick fix when its selector is used, both directly and via reexports. (#48354)
feat - 141333411eIntroduce a new NgModuleIndex, and use it to suggest re-exports. (#48354)
fix - d0145033bdgenerate forwardRef for same file imports (#48898)

migrations

CommitDescription
fix - 2796230e95add enum in mode option in standalone schema (#48851)
fix - 816e76a578automatically prune root module after bootstrap step (#49030)
fix - bdbf21d04bavoid generating imports with forward slashes (#48993)
fix - 32cf4e5cb9avoid internal modules when generating imports (#48958)
fix - 521ccfbe6cavoid interrupting the migration if language service lookup fails (#49010)
fix - a40cd47aa7avoid modifying testing modules without declarations (#48921)
fix - 1afa6ed322don't add ModuleWithProviders to standalone test components (#48987)
fix - c98c6a8452don't copy animations modules into the imports of test components (#49147)
fix - 8389557848don't copy unmigrated declarations into imports array (#48882)
fix - f82bdc4b01don't delete classes that may provide dependencies transitively (#48866)
fix - 759db12e0bduplicated comments on migrated classes (#48966)
fix - ba38178d19generate forwardRef for same file imports (#48898)
fix - 03fcb36cfdmigrate HttpClientModule to provideHttpClient() (#48949)
fix - 2de6dae16dmigrate RouterModule.forRoot with a config object to use features (#48935)
fix - 770191cf1fmigrate tests when switching to standalone bootstrap API (#48987)
fix - c7926b5773move standalone migrations into imports (#48987)
fix - 65c74ed93enormalize paths to posix (#48850)
fix - 6377487b1aonly exclude bootstrapped declarations from initial standalone migration (#48987)
fix - e9e4449a43preserve tsconfig in standalone migration (#48987)
fix - ffad1b49d9reduce number of files that need to be checked (#48987)
fix - ba7a757cc5return correct alias when conflicting import exists (#49139)
fix - 49a7c9f94astandalone migration incorrectly throwing path error for multi app projects (#48958)
fix - 584976e6c8support --defaults in standalone migration (#48921)
fix - 03f47ac901use consistent quotes in generated imports (#48876)
fix - ebae506d89use import remapper in root component (#49046)
fix - 40c976c909use NgForOf instead of NgFor (#49022)
perf - 4ac25b2affavoid re-traversing nodes when resolving bootstrap call dependencies (#49010)
perf - 26cb7ab2e6speed up language service lookups (#49010)

platform-browser

CommitDescription
fix - bf4ad38117remove styles from DOM of destroyed components (#48298)

platform-server

CommitDescription
fix - 25e220a23aavoid duplicate TransferState info after renderApplication call (#49094)

router

CommitDescription
feat - 31b94c762fAdd a withNavigationErrorHandler feature to provideRouter (#48551)
feat - dedac8d3f7Add 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