You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change will trigger the nullishCoalescingNotNullable and optionalChainNotNullable diagnostics on exisiting projects.
You might want to disable those 2 diagnotiscs in your tsconfig temporarily.
data prefixed attribute no-longer bind inputs nor outputs.
The compiler will throw when there a when inputs, outputs or model are binding to the same input/outputs.
in variables will throw in template expressions.
compiler-cli
Elements with multiple matching selectors will now throw at compile time.
core
The second arguement of appRef.bootstrap does not accept any anymore. Make sure the element you pass is not nullable.
TypeScript versions older than 6.0 are no longer supported.
Leave animations are no longer limited to the element being removed.
Component with undefined changeDetection property are now OnPush by default. Specify changeDetection: ChangeDetectionStrategy.Eager to keep the previous behavior.
ChangeDetectorRef.checkNoChanges was removed. In tests use fixture.detectChanges() instead.
createNgModuleRef was removed, use createNgModule instead
ComponentFactoryResolver and ComponentFactory are no longer available. Pass the component class directly to APIs that previously required a factory, such as ViewContainerRef.createComponent or use the standalone createComponentFunction.
ComponentFactoryResolver and ComponentFactory are no longer available. Pass the component class directly to APIs that previously required a factory, such as ViewContainerRef.createComponent or use the standalone createComponent function.
forms
min and max validation rules no longer support
string values. Bound values must be numbers or null.
http
Use the HttpXhrBackend with provideHttpClient(withXhr) if you want to keep supporting upload progress reports.
platform-browser
This removes styles when they appear to no longer be used by an associated host. However other DOM on the page may still be affected by those styles if not leveraging ViewEncapsulation.Emulated or if those styles are used by elements outside of Angular, potentially causing other DOM to appear unstyled.
Hammer.js integration has been removed. Use your own implementation.
router
The return type for TitleStrategy.getResolvedTitleForRoute
was previously 'any' while the actual return type could only be either string
or undefined. The return type now reflects the possible values correctly.
Code that reads the value may need to be adjusted.
The currentSnapshot parameter in CanMatchFn and the canMatch method of the CanMatch interface is now required. While this was already the behavior of the Router at runtime, existing class implementations of CanMatch must now include the third argument to satisfy the interface.
paramsInheritanceStrategy now defaults to 'always'
The default value of paramsInheritanceStrategy has been changed from 'emptyOnly' to 'always'. This means that route parameters are inherited from all parent routes by default. To restore the previous behavior, set paramsInheritanceStrategy to 'emptyOnly' in your router configuration.
provideRoutes() has been removed. Use provideRouter() or ROUTES as multi token if necessary.
upgrade
Deprecated getAngularLib/setAngularLib have been removed use getAngularJSGlobal/setAngularJSGlobal instead.
Deprecations
http
withFetch is now deprecated, it can be safely removed.
The reportProgress option is deprecated please use reportUploadProgress & reportDownloadProgress instead.
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer TIP This summary will be updated as you push new changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:
21.2.17→22.1.221.2.17→22.1.221.2.17→22.1.221.2.17→22.1.221.2.17→22.1.221.2.17→22.1.2Release Notes
angular/angular (@angular/animations)
v22.1.2Compare Source
v22.1.1Compare Source
core
http
v22.1.0Compare Source
Deprecations
http
HttpClient.jsonp,HttpClientJsonpModule, and related JSONP classes/functions are deprecated. Use standard HTTP requests instead.common
compiler
compiler-cli
core
@contentforms
http
language-service
migrations
then/elsekeywords in control flow migrationplatform-server
router
v22.0.8Compare Source
common
core
forms
pendingstatus propagates to the root form in signal formshttp
migrations
v22.0.7Compare Source
common
compiler
compiler-cli
core
forms
http
localize
platform-browser
v22.0.6Compare Source
compiler
compiler-cli
forms/signals
migrations
router
v22.0.5Compare Source
common
compiler-cli
core
router
v22.0.4Compare Source
migrations
v22.0.3Compare Source
compiler
compiler-cli
core
http
service-worker
upgrade
v22.0.2Compare Source
common
compiler
core
http
migrations
v22.0.1Compare Source
Deprecations
platform-server
@angular/platform-serveris deprecated. Use standardfetchAPIs instead.(cherry picked from commit
8446e46)common
compiler
href/xlink:hrefattributes of any element of the MathML namespacecompiler-cli
core
forms
tickadditionalProperties: falseon generated WebMCP formhttp
reportUploadProgressandreportDownloadProgresson post/patch requestslanguage-service
platform-server
router
service-worker
v22.0.0Compare Source
Blog post "Announcing Angular v22".
Breaking Changes
compiler
nullishCoalescingNotNullableandoptionalChainNotNullablediagnostics on exisiting projects.You might want to disable those 2 diagnotiscs in your
tsconfigtemporarily.invariables will throw in template expressions.compiler-cli
core
anyanymore. Make sure the element you pass is not nullable.changeDetectionproperty are nowOnPushby default. SpecifychangeDetection: ChangeDetectionStrategy.Eagerto keep the previous behavior.ChangeDetectorRef.checkNoChangeswas removed. In tests usefixture.detectChanges()instead.createNgModuleRefwas removed, usecreateNgModuleinsteadComponentFactoryResolverandComponentFactoryare no longer available. Pass the component class directly to APIs that previously required a factory, such asViewContainerRef.createComponentor use the standalonecreateComponentFunction.ComponentFactoryResolverandComponentFactoryare no longer available. Pass the component class directly to APIs that previously required a factory, such asViewContainerRef.createComponentor use the standalonecreateComponentfunction.forms
minandmaxvalidation rules no longer supportstring values. Bound values must be numbers or null.
http
HttpXhrBackendwithprovideHttpClient(withXhr)if you want to keep supporting upload progress reports.platform-browser
host. However other DOM on the page may still be affected by those styles if not leveragingViewEncapsulation.Emulatedor if those styles are used by elements outside of Angular, potentially causing other DOM to appear unstyled.router
The return type for
TitleStrategy.getResolvedTitleForRoutewas previously 'any' while the actual return type could only be either
stringor
undefined. The return type now reflects the possible values correctly.Code that reads the value may need to be adjusted.
(cherry picked from commit
ad37f52)The
currentSnapshotparameter inCanMatchFnand thecanMatchmethod of theCanMatchinterface is now required. While this was already the behavior of the Router at runtime, existing class implementations ofCanMatchmust now include the third argument to satisfy the interface.paramsInheritanceStrategy now defaults to 'always'
The default value of paramsInheritanceStrategy has been changed from 'emptyOnly' to 'always'. This means that route parameters are inherited from all parent routes by default. To restore the previous behavior, set paramsInheritanceStrategy to 'emptyOnly' in your router configuration.
provideRoutes()has been removed. UseprovideRouter()orROUTESas multi token if necessary.upgrade
getAngularLib/setAngularLibhave been removed usegetAngularJSGlobal/setAngularJSGlobalinstead.Deprecations
http
withFetchis now deprecated, it can be safely removed.reportProgressoption is deprecated please usereportUploadProgress&reportDownloadProgressinstead.compiler
undefinedConfiguration
📅 Schedule: (UTC)
🚦 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 was generated by Mend Renovate. View the repository job log.