This repository was archived by the owner on Oct 16, 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:
9.1.13
->14.2.3
9.1.13
->14.2.3
9.1.13
->14.2.3
9.1.12
->14.2.3
9.1.13
->14.2.3
9.1.13
->14.2.3
9.1.13
->14.2.3
9.1.13
->14.2.3
9.1.13
->14.2.3
Release Notes
angular/angular
v14.2.3
Compare Source
animations
Special Thanks
AleksanderBodurri, Andrew Kushnir, Andrew Scott, Bob Watson, George Kalpakas, Joey Perrott, Mauro Mattos, dario-piotrowicz, fabioemoutinho and famzila
v14.2.2
Compare Source
animations
common
rawSrc
->ngSrc
in NgOptimizedImage directive (#47362) (#47396)core
forms
Special Thanks
Abhishek Rawat, Andrew Kushnir, Benjamin Chanudet, Bob Watson, George Kalpakas, Ikko Ashimine, Kristiyan Kostadinov, Marc Wrobel, Mariia Subkov, Pawel Kozlowski, Sebastian, abergquist, dario-piotrowicz, onrails and vyom1611
v14.2.1
Compare Source
common
compiler
service-worker
Special Thanks
Aristeidis Bampakos, Asaf M, Bingo's Code, Bob Watson, Daniel Ostrovsky, George Kalpakas, Giovanni Alberto Rivas, Jeremy Elbourn, Jobayer Hossain, Joe Martin (Crowdstaffing), Joey Perrott, JoostK, Kara Erickson, Kristiyan Kostadinov, Maina Wycliffe, Sabareesh Kappagantu, Simona Cotin, Sonu Sindhu, Yann Provoost, abergquist, jaybell and vyom1611
router
Special Thanks
Alan Agius, Alex Rickabaugh, Andrew Scott, Joey Perrott, Kara Erickson, Kristiyan Kostadinov and Pawel Kozlowski
v14.2.0
Compare Source
animations
common
NgOptimizedImage
and assert ifpriority
is set (#47082)data:
andblob:
inputs inNgOptimizedImage
directive (#47082)rawSrc
andrawSrcset
values in NgOptimizedImage directive (#47082)priority
attribute (#47082)compiler-cli
tsickle
(#47018)core
createComponent
function (#46685)reflectComponentType
function (#46685)forms
FormBuilder.record()
method (#46485)FormBuilder
types involving[value, validators]
shorthand in more cases. (#47034)language-service
platform-browser
isEmpty
method to theTransferState
class (#46915)platform-server
router
Routes
used by theRouter
(#46913)service-worker
sendRequest
as anotificationclick
action (#46912)index.md
(#47044)Special Thanks
Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Bob Watson, Cédric Exbrayat, Dylan Hunn, Emmanuel Roux, FatalMerlin, George Kalpakas, Ilia Mirkin, Jan Kuehle, Jeremy Elbourn, Jessica Janiuk, JiaLiPassion, Kalbarczyk, Kara Erickson, Katie Hempenius, Kristiyan Kostadinov, Merlin, Paul Gschwendtner, Pawel Kozlowski, Tristan Sprößer, Victor Porof, angular-robot[bot], dario-piotrowicz, ivanwonder and vyom
v14.1.3
Compare Source
compiler
Special Thanks
AlirezaEbrahimkhani, Alma Eyre, Andrew Scott, Bob Watson, George Kalpakas, Kalbarczyk, Kristiyan Kostadinov, Leosvel Pérez Espinosa, Roman Matusevich and Sonu Kapoor
v14.1.2
Compare Source
core
router
Special Thanks
4javier, Andrew Kushnir, Andrew Scott, AntonioCardenas, Bob Watson, Bruno Barbosa, Eduardo Speroni, Edward, George Kalpakas, Jan Melcher, Kristiyan Kostadinov, Mladen Jakovljević, Paul Gschwendtner, Pawel Kozlowski, Roman Matusevich, Vovch, ashide2729, ileil and onrails
v14.1.1
Compare Source
core
router
Special Thanks
Alan Agius, Andrew Kushnir, Andrew Quinn, Andrew Scott, Aristeidis Bampakos, Asaf M, Bob Watson, Cédric Exbrayat, Durairaj Subramaniam, George Kalpakas, Ivaylo Kirov, J Rob Gant, Kristiyan Kostadinov, Marek Hám, Paul Gschwendtner, Roman Matusevich and Simona Cotin
v14.1.0
Compare Source
Deprecations
core
createNgModuleRef
is deprecated in favor of newly addedcreateNgModule
one.inject()
has been deprecated, in favor of thenew options object. Correspondingly,
InjectFlags
is deprecated as well.animations
provideAnimations()
andprovideNoopAnimations()
functions (#46793)common
CommonModule
pipes standalone (#46401)compiler
compiler-cli
core
createComponent
functionreflectComponentType
functioncreateNgModuleRef
ascreateNgModule
(#46789)EnvironmentInjector.runInContext
API (#46653)inject()
(#46649)runInContext
forNgModuleRef
injector (#46877)createEnvironmentInjector
(#46397)http
router
UrlTree
from anyActivatedRouteSnapshot
(#45877)NavigationCancel
event (#46675)RouterStateSnapshot
toNavigationError
(#46731)UrlTree
fromCanMatchFn
(#46455)APP_INITIALIZER
ofenabledBlocking
option completes (#46026)RouterStateSnapshot
is defined inNavigationError
(#46842)upgrade
UpgradeModule#bootstrap()
withangular.bootstrap()
(#46214)Special Thanks
AleksanderBodurri, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Cédric Exbrayat, Dmitrij Kuba, Dylan Hunn, George Kalpakas, Jessica Janiuk, JiaLiPassion, Joey Perrott, John Vandenberg, JoostK, Keith Li, Or'el Ben-Ya'ir, Paul Gschwendtner, Pawel Kozlowski, SyedAhm3r, arturovt, mariu, markostanimirovic and mgechev
v14.0.7
Compare Source
animations
compiler
core
done
callback multiple times withwaitForAsync
Special Thanks
Andrew Kushnir, Andrew Scott, Bob Watson, Cédric Exbrayat, Doug Parker, George Kalpakas, Jessica Janiuk, Kristiyan Kostadinov, Paul Gschwendtner, acvi, dario-piotrowicz, jnizet and piyush132000
v14.0.6
Compare Source
compiler-cli
forms
localize
--project
option tong-add
schematic (#46664)Special Thanks
Alan Agius, Andrew Scott, Bob Watson, Dylan Hunn, George Kalpakas, Ivaylo Kirov, Jessica Janiuk, JoostK, Joshua VanAllen, Lukas Matta, Marcin Wosinek, Nicolas Molina Monroy, Paul Gschwendtner, SoulsMark, Uday Sony, dario-piotrowicz, markostanimirovic and zhysky
v14.0.5
Compare Source
router
APP_INITIALIZER
ofenabledBlocking
option completes (#46634)Special Thanks
Alan Agius, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Aristeidis Bampakos, Bob Watson, George Kalpakas, Paul Gschwendtner and Pawel Kozlowski
v14.0.4
Compare Source
animations
common
core
ApplicationRef.destroy
when Platform is destroyed (#46497)forms
router
RouterOutlet
instances work after old ones are destroyed (#46554)Special Thanks
Alan Agius, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Bezael, Chad Ramos, Chellappan, Cédric Exbrayat, Dylan Hunn, George Kalpakas, Jeremy Meiss, Jessica Janiuk, Joey Perrott, KMathy, Kristiyan Kostadinov, Paul Gschwendtner, Pawel Kozlowski, Ramesh Thiruchelvam, Vaibhav Kumar, arturovt, dario-piotrowicz and renovate[bot]
v14.0.3
Compare Source
animations
core
platform-server
Special Thanks
4javier, Aakash, Alan Agius, Andrew Kushnir, Aristeidis Bampakos, Dany Paredes, Derek Cormier, JoostK, Kristiyan Kostadinov, Paul Gschwendtner, Ramesh Thiruchelvam, behrooz bozorg chami, dario-piotrowicz, markostanimirovic, renovate[bot] and web-dave
v14.0.2
Compare Source
common
compiler-cli
rootDir
(#46096)core
Special Thanks
Alex Rickabaugh, Andrew Scott, Badawi7, Daniel Schmitz, Derek Cormier, JoostK, Kevin Davila, Kristiyan Kostadinov, Paul Draper, Paul Gschwendtner, Tom Eustace, Totati, Younes Jaaidi, alefra, dario-piotrowicz, markostanimirovic, mgechev, piyush132000, sten-bone and vivekkoya
v14.0.1
Compare Source
bazel
ng_package
rollup and type bundle actions (#46187)forms
Special Thanks
Adrien Crivelli, Alan Agius, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Dylan Hunn, Fabrizio Fallico, George Kalpakas, Jelle Bruisten, JoostK, Kristiyan Kostadinov, Krzysztof Platis, Paul Gschwendtner, Phalgun Vaddepalli, San Leen, dario-piotrowicz, mgechev and wellWINeo
v14.0.0
Compare Source
Blog post "Angular v14 is now available".
Breaking Changes
animations
AnimationDriver.getParentElement
method has become required, so anyimplementors of this interface are now required to provide an implementation
for this method. This breakage is unlikely to affect application developers,
as
AnimationDriver
is not expected to be implemented in user code.common
Location does not depend on PlatformLocation anymore.
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:
None
orShadowDom
core
Support for Node.js v12 has been removed as it will become EOL on 2022-04-30. Please use Node.js v14.15 or later.
TypeScript versions older than 4.6 are no longer supported.
Forms [email] input coercion
Forms [email] input value will be considered as true if it is defined with any value rather
than false and 'false'.
Since Ivy, TestBed doesn't use AOT summaries. The
aotSummaries
fields in TestBed APIs were present, but unused. The fields were deprecated in previous major version and in v14 those fields are removed. TheaotSummaries
fields were completely unused, so you can just drop them from the TestBed APIs usage.forms
Forms classes accept a generic.
Forms model classes now accept a generic type parameter. Untyped versions of these classes are available to opt-out of the new, stricter behavior.
objects with a length key set to zero will no longer validate as empty.
This is technically a breaking change, since objects with a key
length
and value0
will no longer validate as empty. This is a very minor change, and any reliance on this behavior is probably a bug anyway.http
Queries including + will now actually query for + instead of space.
Most workarounds involving custom codecs will be unaffected.
Possible server-side workarounds will need to be undone.
JSONP will throw an error when headers are set on a reques
JSONP does not support headers being set on requests. Before when
a request was sent to a JSONP backend that had headers set the headers
were ignored. The JSONP backend will now throw an error if it
receives a request that has any headers set. Any uses of JSONP
on requests with headers set will need to remove the headers
to avoid the error.
platform-browser
This change may cause a breaking change in unit tests that are implicitly depending on a specific
number and sequence of change detections in order for their assertions to pass.
This may break invalid calls to
TransferState
methods.This tightens parameter types of
TransferState
usage, and is a minor breaking change which may reveal existing problematic calls.router
Route.pathMatch
is now stricter. Places that usepathMatch
will likely need to be updated to have an explicitRoute
/Routes
type so that TypeScript does not infer the type asstring
.Promise
from theLoadChildrenCallback
, the possible type is now restricted toType<any>|NgModuleFactory<any>
rather thanany
.initialNavigation: 'enabled'
was deprecated in v11 and is replaced byinitialNavigation: 'enabledBlocking'
.component
onActivatedRoute
andActivatedRouteSnapshot
includes
string
. In reality, this is not the case. The componentcannot be anything other than a component class.
initialUrl
is set tostring|UrlTree
but in reality,the
Router
only sets it to a value that will always beUrlTree
initialUrl
is documented as "The target URL passed into theRouter#navigateByUrl()
call before navigation" but the valueactually gets set to something completely different. It's set to the
current internal
UrlTree
of the Router at the time navigationoccurs.
With this change, there is no exact replacement for the old value of
initialUrl
because it was never intended to be exposed.Router.url
is likely the best replacement for this.In more specific use-cases, tracking the
finalUrl
between successfulnavigations can also be used as a replacement.
initial set of routes are. Lazy loaded modules which have invalid Route
configs will now error. Note that this is only done in dev mode so
there is no production impact of this change.
UrlTree
, the router would previously schedulethe redirect navigation within a
setTimeout
. This timeout is now removed,which can result in test failures due to incorrectly written tests.
Tests which perform navigations should ensure that all timeouts are
flushed before making assertions. Tests should ensure they are capable
of handling all redirects from the original navigation.
before proceeding with the navigation and the Router would take the last
value emitted from the resolver.
The router now takes only the first emitted value by the resolvers
and then proceeds with navigation. This is now consistent with
Observables
returned by other guards: only the first value is used.
zone.js
in TaskTrackingZoneSpec track a periodic task until it is cancelled
The breaking change is scoped only to the plugin
zone.js/plugins/task-tracking
. If you usedTaskTrackingZoneSpec
andchecked the pending macroTasks e.g. using
(this.ngZone as any)._inner ._parent._properties.TaskTrackingZone.getTasksFor('macroTask')
, thenits behavior slightly changed for periodic macrotasks. For example,
previously the
setInterval
macrotask was no longer tracked after itscallback was executed for the first time. Now it's tracked until
the task is explicitly cancelled, e.g with
clearInterval(id)
.Deprecations
common
ngModuleFactory
input of theNgComponentOutlet
directive is deprecated in favor of a newly addedngModule
input. ThengModule
input accepts references to the NgModule class directly, without the need to resolve module factory first.forms
initialValueIsDefault
option has been deprecated and replaced with the otherwise-identicalnonNullable
option, for the sake of naming consistency.AbstractControlOption
s and an async validators argument to a FormControl. Previously, the async validators would just be silently dropped, resulting in a probably buggy forms. Now, the constructor call is deprecated, and Angular will print a warning in devmode.router
resolver
argument of theRouterOutletContract.activateWith
function and theresolver
field of theOutletContext
class are deprecated. Passing component factory resolvers are no longer needed. TheComponentFactoryResolver
-related symbols were deprecated in@angular/core
package since v13.animations
AnimationDriver.getParentElement
required (#45114)common
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - 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 Mend Renovate. View repository job log here.