This repository has been archived by the owner on Apr 27, 2022. It is now read-only.
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:
11.2.14
->13.3.4
11.2.14
->13.3.4
11.2.14
->13.3.4
11.2.14
->13.3.4
11.2.14
->13.3.4
11.2.14
->13.3.4
11.2.14
->13.3.4
11.2.14
->13.3.4
11.2.14
->13.3.4
11.2.14
->13.3.4
Release Notes
angular/angular
v13.3.4
Compare 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.3
Compare 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.2
Compare Source
animations
Special Thanks
Alan Agius, Andrew Kushnir, Christoph Guttandin, Cédric Exbrayat, mgechev and piyush132000
v13.3.1
Compare Source
bazel
compiler
@layer
blocks (#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.0
Compare Source
core
Special Thanks
Alistair Kane, Andrew Scott and Kristiyan Kostadinov
v13.2.7
Compare Source
forms
Special Thanks
Alistair Kane, Amer Yousuf, Andrew Scott, Jessica Janiuk, Lee Cooper, alirezaghey and why520crazy
v13.2.6
Compare 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.5
Compare Source
animations
common
NgLocalization
token tree-shakable (#45118) (#45226)compiler-cli
core
Compiler
,ApplicationRef
andApplicationInitStatus
tree-shakable (#45102) (#45222)LOCALE_ID
and other tokens fromApplicationModule
tree-shakable (#45102) (#45222)localize
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
v13.2.4
Compare Source
animations
core
IterableDiffers
andKeyValueDiffers
tree-shakable (#45094) (#45115)Special Thanks
Alan Cohen, AlirezaEbrahimkhani, Andrew Kushnir, Daniele Maltese, David Wolf, JoostK, Paul Gschwendtner, dario-piotrowicz and manuelkroiss
v13.2.3
Compare Source
animations
compiler
core
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
v13.2.2
Compare 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.1
Compare 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.0
Compare Source
Deprecations
The
CachedResourceLoader
andRESOURCE_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
andComponentFactoryResolver
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
andCompilerOptions.missingTranslation
config options are unused, passing them has no effect.CachedResourceLoader
andRESOURCE_CACHE_PROVIDER
symbols (#44749)ComponentFactory
andComponentFactoryResolver
symbols (#44749)CompilerOptions
interface (#44749)compiler
compiler-cli
DirectiveMeta
(#44630)ng-template
with structural directive in indexer (#44788)_extendedTemplateDiagnostics
requirements (#44777)ExtendedTemplateCheckerImpl
construction if there were configuration errors (#44778)core
forms
router
Route
data
andresolve
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
v13.1.3
Compare 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.2
Compare Source
animations
compiler
compiler-cli
ThisReceiver
in 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.1
Compare Source
animations
forms
_reduceValue
arrow 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.0
Compare Source
Deprecations
downgradeModule
function calls with NgModule factories are deprecated. Please use NgModule class baseddowngradeModule
calls instead.common
TestRequest
from@angular/common/http/testing
no longeraccepts
ErrorEvent
when simulating XHR errors. Instead instances ofProgressEvent
should be passed, matching with the native browser behavior.downgradeModule
function (#44090)common
TestRequest
(#36082)ngFor
directive (#44315)compiler
core
http
has()
method toHttpContext
class (#43887)localize
ngcc
upgrade
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
v13.0.3
Compare Source
compiler-cli
core
useClass
provider usingforwardRef
(#44281)forms
FormControlStatus
available 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.2
Compare 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.1
Compare Source
compiler
compiler-cli
strictNullInputTypes
is 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.0
Compare Source
Blog post "Angular v13 is now available".
Breaking Changes
common
SpyLocation
used by theRouterTestingModule
has changedto match the behavior of browsers. It no longer emits a 'popstate' event
when
Location.go
is called. In addition,simulateHashChange
nowtriggers both a
hashchange
and apopstate
event.Tests which use
location.go
and expect the changes to be picked up bythe
Router
should likely change tosimulateHashChange
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
tosimulate 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 longersupported 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 ofWrappedValue
should be removed as no replacement is available.forms
FormControlStatus
has been introduced, which is a union of all possible status strings for form controls.AbstractControl.status
has been narrowed fromstring
toFormControlStatus
, andstatusChanges
has 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.status
against a string which is not a valid status; or, (2) the app is usingstatusChanges
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 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
null
andundefined
inputs forrouterLink
wereequivalent to empty string and there was no way to disable the link's
navigation.
In addition, the
href
is changed from a propertyHostBinding()
to anattribute binding (
HostBinding('attr.href')
). The effect of thischange is that
DebugElement.properties['href']
will now return thehref
value returned by the native element which will be the full URLrather than the internal value of the
RouterLink
href
property.When storing and retrieving a
DetachedRouteHandle
, the Router traversesthe
Route
children in order to correctly allow storing a parent route whenthere are several possible child
Route
configs that can be stored. This allowsa
RouteReuseStrategy
to store a parentRoute
and a child, while preservingthe ability to change the child route while restoring the parent. Some
implementations of
RouteReuseStrategy
will need to be updated to correctlystore and retrieve the
DetachedRouteHandle
of descendants as well as the storedparent
ActivatedRouteSnapshot
. Previously, theRouter
would 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
navigationId
being present on initialnavigations that were handled by the Angular router should instead
subscribe to
NavigationCancel
events and perform thelocation.replaceState
themselves to addnavigationId
to the Routerstate.
In addition, tests which assert
urlChanges
on theSpyLocation
mayneed to be adjusted to account for the
replaceState
which is no longertriggered.
It is no longer possible to use
Route.loadChildren
using a stringvalue. 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 itsNgModuleFactoryLoader
parameter, as an argument for that parameter can no longer be created.
service-worker
SwUpdate#activateUpdate
andSwUpdate#checkForUpdate
changed 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.createComponent
function is deprecated in favor of a different signature that allows passing component classes instead.The
getModuleFactory
function is deprecated in favor of thegetNgModuleById
one. With Ivy it's possible to work with NgModule classes directly, without retrieving corresponding factories, so thegetNgModuleById
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 theApplicationRef.bootstrap
method are now obsolete and are now deprecated. ThePlatformRef.bootstrapModuleFactory
calls can be replaced withPlatformRef.bootstrapModule
ones. TheApplicationRef.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).
aotSummaries
usage in TestBed is deprecated and will be removed in a future version of Angular.platform-server
renderModuleFactory
symbol in@angular/platform-server
is no longer necessary as of Angular v13.The
renderModuleFactory
calls can be replaced withrenderModule
.service-worker
SwUpdate#activated
observable is deprecated.The
SwUpdate#activated
observable 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#activated
does not offer any benefit.SwUpdate#availalbe
observable is deprecated.The new
SwUpdate#versionUpdates
observable provides the same information and more. Therefore, itis possible to rebuild the same behavior as
SwUpdate#availalbe
using the events emitted bySwUpdate#versionUpdates
and filtering forVersionReadyEvent
events.As a result, the
SwUpdate#availalbe
observable is now redundant.renderModuleFactory
(#43757)bazel
strict_templates
andexperimental_extended_template_diagnostics
tong_module()
rule (#43582)ng_package
targets (#43764)esm2020
andes2020
conditions in APF package exports (#43740)ng_package
rule (#43431)ng_module
(#43431)common
compiler
compiler-cli
ngc
to pass the build when only warnings are emitted (#43673)core
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.