Skip to content

fix(@angular/cli): ensure group members are updated to targeted version#32642

Merged
alan-agius4 merged 1 commit intoangular:mainfrom
alan-agius4:update-version
Mar 2, 2026
Merged

fix(@angular/cli): ensure group members are updated to targeted version#32642
alan-agius4 merged 1 commit intoangular:mainfrom
alan-agius4:update-version

Conversation

@alan-agius4
Copy link
Collaborator

@alan-agius4 alan-agius4 commented Mar 2, 2026

When performing an update, all members of a package group should be updated to the same version as the targeted packages in that group, even if they are not explicitly passed as arguments to the command.

This change separates the package group expansion and peer dependency resolution into two distinct loops. By completing the package group expansion first, we ensure that all group members are added to the update list with their group-synced versions before Evaluate peer dependencies. This prevents cases where a peer dependency might be pulled in at a newer (latest) version before its membership in a targeted group update is recognized.

Closes #32576

@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Mar 2, 2026
@alan-agius4 alan-agius4 requested a review from clydin March 2, 2026 13:12
@alan-agius4 alan-agius4 changed the title fix(@angular/cku): ensure group members are updated to targeted version fix(@angular/cli): ensure group members are updated to targeted version Mar 2, 2026
When performing an update, all members of a package group should be updated to the same version as the targeted packages in that group, even if they are not explicitly passed as arguments to the command.

This change separates the package group expansion and peer dependency resolution into two distinct loops. By completing the package group expansion first, we ensure that all group members are added to the update list with their group-synced versions before Evaluate peer dependencies. This prevents cases where a peer dependency might be pulled in at a newer (latest) version before its membership in a targeted group update is recognized.

Closes angular#32576
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 2, 2026
@alan-agius4 alan-agius4 merged commit 363fd37 into angular:main Mar 2, 2026
35 checks passed
@alan-agius4 alan-agius4 deleted the update-version branch March 2, 2026 14:52
@alan-agius4
Copy link
Collaborator Author

This PR was merged into the repository. The changes were merged into the following branches:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/cli target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ng update installs @angular packages in too high versions

2 participants