Skip to content

fix(@angular/cli): respect release age policy in update bootstrapping logic#33463

Merged
clydin merged 1 commit into
angular:mainfrom
clydin:fix-update-bootstrap-release-age
Jun 25, 2026
Merged

fix(@angular/cli): respect release age policy in update bootstrapping logic#33463
clydin merged 1 commit into
angular:mainfrom
clydin:fix-update-bootstrap-release-age

Conversation

@clydin

@clydin clydin commented Jun 25, 2026

Copy link
Copy Markdown
Member

Querying version target returns the resolved range/tag specifier instead of the resolved specific version number if the installed CLI version is outdated. This allows the package manager to natively enforce release-age policies (like pnpm's minimum-release-age or yarn's npmMinimalAgeGate) and select an appropriate older version during temporary installation rather than crashing.

… logic

Querying version target returns the resolved range/tag specifier instead of the resolved specific version number if the installed CLI version is outdated. This allows the package manager to natively enforce release-age policies (like pnpm's `minimum-release-age` or yarn's `npmMinimalAgeGate`) and select an appropriate older version during temporary installation rather than crashing.
@clydin clydin added the target: patch This PR is targeted for the next patch release label Jun 25, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the checkCLIVersion function in packages/angular/cli/src/commands/update/utilities/cli-version.ts to return the string representation of runnerVersion instead of version when the full version does not match. There are no review comments, so no feedback is provided.

@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Jun 25, 2026
@clydin clydin requested a review from alan-agius4 June 25, 2026 15:27
@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 Jun 25, 2026
@clydin clydin merged commit edb4594 into angular:main Jun 25, 2026
43 checks passed
@clydin

clydin commented Jun 25, 2026

Copy link
Copy Markdown
Member Author

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

@clydin clydin deleted the fix-update-bootstrap-release-age branch June 25, 2026 16:30
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.

2 participants