chore(deps): update angular monorepo to v13 (major) #1340
Merged
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.2.15->13.0.212.2.15->13.0.212.2.15->13.0.212.2.15->13.0.212.2.15->13.0.212.2.15->13.0.212.2.15->13.0.212.2.15->13.0.212.2.15->13.0.2Release Notes
angular/angular
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
13.0.0 (2021-11-03)
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 forrouterLinkwereequaivalent 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.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
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
SafePropertyReadwhen applying the optional chaining (#43321)migrations
router
popstateevents fromLocationsubscription (#43328)loadChildrenstring syntax (#43591)service-worker
SwUpdate#activeUpdateandSwUpdate#checkForUpdateshould have a meaningful outcome (#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
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by WhiteSource Renovate. View repository job log here.