chore(deps): update dependency @angular/core to v13 #636
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
This PR contains the following updates:
^12.0.4->^13.3.8Release Notes
angular/angular
v13.3.8Compare Source
language-service
Special Thanks
Andrew Scott, George Kalpakas and Joey Perrott
v13.3.7Compare Source
core
checkNoChangesmode to be tree-shaken in production (#45936)language-service
Special Thanks
Andrew Kushnir, Andrew Scott, George Kalpakas, JayMartMedia, JoostK, Paul Gschwendtner, Ted.chang, Thomas Mair, Will 保哥, dario-piotrowicz, mgechev and ᚷᛁᛟᚱᚷᛁ ᛒᚨᛚᚨᚲᚻᚨᛞᛉᛖ
v13.3.6Compare Source
Special Thanks
Andrew Kushnir, Andrew Scott, George Kalpakas, Paul Gschwendtner, Pawel Kozlowski, Ryan Day and dario-piotrowicz
v13.3.5Compare Source
bazel
Special Thanks
Andrew Kushnir, George Kalpakas, Joey Perrott and dario-piotrowicz
v13.3.4Compare Source
core
language-service
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
v13.3.3Compare Source
compiler
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
v13.3.2Compare Source
animations
Special Thanks
Alan Agius, Andrew Kushnir, Christoph Guttandin, Cédric Exbrayat, mgechev and piyush132000
v13.3.1Compare Source
bazel
compiler
@layerblocks (#45396)compiler-cli
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
v13.3.0Compare Source
core
Special Thanks
Alistair Kane, Andrew Scott and Kristiyan Kostadinov
v13.2.7Compare Source
forms
Special Thanks
Alistair Kane, Amer Yousuf, Andrew Scott, Jessica Janiuk, Lee Cooper, alirezaghey and why520crazy
v13.2.6Compare Source
compiler
language-service
service-worker
Special Thanks
Andrew Scott, Anner Visser, Aristeidis Bampakos, JiaLiPassion, Joey Perrott, Kristiyan Kostadinov, Luca, Mladen Jakovljević, Paul Gschwendtner, Srikanth Kolli and nanda18
v13.2.5Compare Source
animations
common
NgLocalizationtoken tree-shakable (#45118) (#45226)compiler-cli
core
Compiler,ApplicationRefandApplicationInitStatustree-shakable (#45102) (#45222)LOCALE_IDand other tokens fromApplicationModuletree-shakable (#45102) (#45222)localize
compiler-clipackage (#45180)Special Thanks
Andrew Kushnir, Andrew Scott, Charles Lyding, Guillaume Bonnet, Jessica Janiuk, JoostK, Martin Sikora, Paul Gschwendtner, Theodore Brown, dario-piotrowicz and ivanwonder
v13.2.4Compare Source
animations
core
IterableDiffersandKeyValueDifferstree-shakable (#45094) (#45115)Special Thanks
Alan Cohen, AlirezaEbrahimkhani, Andrew Kushnir, Daniele Maltese, David Wolf, JoostK, Paul Gschwendtner, dario-piotrowicz and manuelkroiss
v13.2.3Compare Source
animations
compiler
core
ViewContainerRef.createComponentshould 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
v13.2.2Compare Source
compiler
forms
http
upgrade
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
v13.2.1Compare Source
animations
common
verify(#44917)compiler-cli
strictNullChecks(#44862)core
forms
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
v13.2.0Compare Source
Deprecations
The
CachedResourceLoaderandRESOURCE_CACHE_PROVIDERsymbols were previously necessary in some cases to test AOT-compiled components with View Engine, but they are no longer needed since Ivy.The
ComponentFactoryandComponentFactoryResolverclasses 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.useJitandCompilerOptions.missingTranslationconfig options are unused, passing them has no effect.CachedResourceLoaderandRESOURCE_CACHE_PROVIDERsymbols (#44749)ComponentFactoryandComponentFactoryResolversymbols (#44749)CompilerOptionsinterface (#44749)compiler
compiler-cli
DirectiveMeta(#44630)ng-templatewith structural directive in indexer (#44788)_extendedTemplateDiagnosticsrequirements (#44777)ExtendedTemplateCheckerImplconstruction if there were configuration errors (#44778)core
forms
router
Routedataandresolveproperties (#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
v13.1.3Compare Source
animations
compiler-cli
ngcc
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
v13.1.2Compare Source
animations
compiler
compiler-cli
ThisReceiverin the indexer (#44678)language-service
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
v13.1.1Compare Source
animations
forms
_reduceValuearrow function now has correct types. (#44483)Special Thanks
Aristeidis Bampakos, Dylan Hunn, George Kalpakas, JoostK, Kristiyan Kostadinov, Paul Gschwendtner, Spej, Yousaf Nawaz, dario-piotrowicz, faso-dev, jaybell and zuckjet
v13.1.0Compare Source
Deprecations
downgradeModulefunction calls with NgModule factories are deprecated. Please use NgModule class baseddowngradeModulecalls instead.common
TestRequestfrom@angular/common/http/testingno longeraccepts
ErrorEventwhen simulating XHR errors. Instead instances ofProgressEventshould be passed, matching with the native browser behavior.downgradeModulefunction (#44090)common
TestRequest(#36082)ngFordirective (#44315)compiler
core
http
has()method toHttpContextclass (#43887)localize
ngcc
upgrade
downgradeModulefunction (#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
v13.0.3Compare Source
compiler-cli
core
useClassprovider usingforwardRef(#44281)forms
FormControlStatusavailable as a public API (#44183)language-service
ngcc
router
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
v13.0.2Compare Source
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
v13.0.1Compare Source
compiler
compiler-cli
strictNullInputTypesis disabled (#38305)core
platform-browser
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
v13.0.0Compare Source
Blog post "Angular v13 is now available".
Breaking Changes
common
SpyLocationused by theRouterTestingModulehas changedto match the behavior of browsers. It no longer emits a 'popstate' event
when
Location.gois called. In addition,simulateHashChangenowtriggers both a
hashchangeand apopstateevent.Tests which use
location.goand expect the changes to be picked up bythe
Routershould likely change tosimulateHashChangeinstead.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
SpyLocationtosimulate 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.0are no longersupported due to the Angular packages using the NodeJS package exports
feature with subpath patterns.
The
WrappedValueclass 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 ofWrappedValueshould be removed as no replacement is available.forms
FormControlStatushas been introduced, which is a union of all possible status strings for form controls.AbstractControl.statushas been narrowed fromstringtoFormControlStatus, andstatusChangeshas been narrowed fromObservable<any>toObservable<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 comparingAbstractControl.statusagainst a string which is not a valid status; or, (2) the app is usingstatusChangesevents 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 queryparams would be parsed to just
{q: 'hello'}. This isincorrect 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
nullandundefinedinputs forrouterLinkwereequivalent to empty string and there was no way to disable the link's
navigation.
In addition, the
hrefis changed from a propertyHostBinding()to anattribute binding (
HostBinding('attr.href')). The effect of thischange is that
DebugElement.properties['href']will now return thehrefvalue returned by the native element which will be the full URLrather than the internal value of the
RouterLinkhrefproperty.When storing and retrieving a
DetachedRouteHandle, the Router traversesthe
Routechildren in order to correctly allow storing a parent route whenthere are several possible child
Routeconfigs that can be stored. This allowsa
RouteReuseStrategyto store a parentRouteand a child, while preservingthe ability to change the child route while restoring the parent. Some
implementations of
RouteReuseStrategywill need to be updated to correctlystore and retrieve the
DetachedRouteHandleof descendants as well as the storedparent
ActivatedRouteSnapshot. Previously, theRouterwould only storethe 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
navigationIdbeing present on initialnavigations that were handled by the Angular router should instead
subscribe to
NavigationCancelevents and perform thelocation.replaceStatethemselves to addnavigationIdto the Routerstate.
In addition, tests which assert
urlChangeson theSpyLocationmayneed to be adjusted to account for the
replaceStatewhich is no longertriggered.
It is no longer possible to use
Route.loadChildrenusing a stringvalue. The following supporting classes were removed from
@angular/core:NgModuleFactoryLoaderSystemJsNgModuleFactoryLoaderThe
@angular/routerpackage no longer exports these symbols:SpyNgModuleFactoryLoaderDeprecatedLoadChildrenThe signature of the
setupTestingRouterfunction from@angular/core/testinghas been changed to drop itsNgModuleFactoryLoaderparameter, as an argument for that parameter can no longer be created.
service-worker
SwUpdate#activateUpdateandSwUpdate#checkForUpdatechanged toPromise<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.createComponentfunction is deprecated in favor of a different signature that allows passing component classes instead.The
getModuleFactoryfunction is deprecated in favor of thegetNgModuleByIdone. With Ivy it's possible to work with NgModule classes directly, without retrieving corresponding factories, so thegetNgModuleByIdshould 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.bootstrapModuleFactoryand a factory-based signature of theApplicationRef.bootstrapmethod are now obsolete and are now deprecated. ThePlatformRef.bootstrapModuleFactorycalls can be replaced withPlatformRef.bootstrapModuleones. TheApplicationRef.bootstrapmethod 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:ModuleWithComponentFactoriesCompilerCompilerFactoryJitCompilerFactoryNgModuleFactoryImportant note: this deprecation doesn't affect JIT mode in Ivy (JIT remains available with Ivy).
aotSummariesusage in TestBed is deprecated and will be removed in a future version of Angular.platform-server
renderModuleFactorysymbol in@angular/platform-serveris no longer necessary as of Angular v13.The
renderModuleFactorycalls can be replaced withrenderModule.service-worker
SwUpdate#activatedobservable is deprecated.The
SwUpdate#activatedobservable only emits values as a direct response to callingSwUpdate#activateUpdate()and was only useful for determining whether the call resulted in anupdate or not. Now, the return value of
SwUpdate#activateUpdate()can be used to determine theoutcome of the operation and therefore using
SwUpdate#activateddoes not offer any benefit.SwUpdate#availalbeobservable is deprecated.The new
SwUpdate#versionUpdatesobservable provides the same information and more. Therefore, itis possible to rebuild the same behavior as
SwUpdate#availalbeusing the events emitted bySwUpdate#versionUpdatesand filtering forVersionReadyEventevents.As a result, the
SwUpdate#availalbeobservable is now redundant.renderModuleFactory(#43757)bazel
strict_templatesandexperimental_extended_template_diagnosticstong_module()rule (#43582)ng_packagetargets (#43764)esm2020andes2020conditions in APF package exports (#43740)ng_packagerule (#43431)ng_module(#43431)common
compiler
compiler-cli
ngcto pass the build when only warnings are emitted (#43673)core
createNgModuleReffunction to createNgModuleRefbased on NgModule class (#43580)getNgModuleByIdfunction to retrieve loaded NgModules by id (#43580)InjectFlagsargument inNodeInjector.get()(#41592)WrappedValue(#43507)elements
ng-addschematic (#43975)@angular/platform-browserpeer dependency (#43975)forms
null) (#42978)language-service
Configuration
📅 Schedule: "after 10pm every weekday,before 4am every weekday,every weekend" in timezone UTC.
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.