Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Oct 25, 2022

When the CLI is a prerelease version, the ng add command will now consider the
use of prerelease versions of requested packages. Without this behavior, attempting
to install a package without a version specifier (e.g., ng add @angular/material)
will install an older stable version of the requested package instead of the expected
prerelease version compatible with the prerelease Angular project.

…e discovery

`@angular/material@7.x` uses unbounded ranges for its framework peer dependencies.
This can cause `ng add` to pick these versions of the package if the newer versions
are not compatible since the peer dependency ranges would match any newer stable
framework version.
…I is prerelease

When the CLI is a prerelease version, the `ng add` command will now consider the
use of prerelease versions of requested packages. Without this behavior, attempting
to install a package without a version specifier (e.g., `ng add @angular/material`)
will install an older stable version of the requested package instead of the expected
prerelease version compatible with the prerelease Angular project.
@clydin clydin added the target: rc This PR is targeted for the next release-candidate label Oct 25, 2022
@clydin clydin requested a review from alan-agius4 October 25, 2022 16:54
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Oct 25, 2022
@dgp1130 dgp1130 merged commit 56cb767 into angular:main Oct 25, 2022
@clydin clydin deleted the add/prerelease-support branch October 25, 2022 17:53
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: rc This PR is targeted for the next release-candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants