build: update cross-repo angular dependencies#3625
build: update cross-repo angular dependencies#3625angular-robot wants to merge 1 commit intoangular:mainfrom
Conversation
See associated pull request for more information.
|
There was a problem hiding this comment.
Code Review
This pull request updates various Angular dependencies to version 22.0.0-next.9 across several packages and integration tests. A critical breaking change was identified in the router's parameter inheritance strategy, which now defaults to inheriting from all parent routes. To maintain existing behavior, the strategy should be explicitly set to 'emptyOnly' in the router configuration.
| "@angular/core": "22.0.0-next.9", | ||
| "@angular/forms": "22.0.0-next.9", | ||
| "@angular/platform-browser": "22.0.0-next.9", | ||
| "@angular/router": "22.0.0-next.9", |
There was a problem hiding this comment.
This update to @angular/router@22.0.0-next.9 introduces a significant breaking change regarding route parameter inheritance.
The default value for paramsInheritanceStrategy has been changed from 'emptyOnly' to 'always'. This means that child routes will now inherit parameters from all parent routes by default, which could alter your application's routing behavior unexpectedly.
To maintain the previous behavior, you must explicitly configure the strategy in your router setup:
RouterModule.forRoot(routes, {
paramsInheritanceStrategy: 'emptyOnly'
})It is crucial to review all router module configurations across the application to prevent potential issues.
This PR contains the following updates:
22.0.0-next.8→22.0.0-next.922.0.0-next.5→22.0.0-next.622.0.0-next.8→22.0.0-next.922.0.0-next.8→22.0.0-next.922.0.0-next.8→22.0.0-next.922.0.0-next.8→22.0.0-next.922.0.0-next.8→22.0.0-next.922.0.0-next.5→22.0.0-next.622.0.0-next.8→22.0.0-next.922.0.0-next.8→22.0.0-next.9Release Notes
angular/angular (@angular/animations)
v22.0.0-next.9Compare Source
Breaking Changes
router
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.
core
@Servicedecoratordocs
migrations
router
browserUrlis usedangular/components (@angular/cdk)
v22.0.0-next.6Compare Source
aria