Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple versions for external mismatch rule #131

Open
wants to merge 25 commits into
base: main
Choose a base branch
from

Conversation

cheesehary
Copy link

#13 (comment)

We added an extra option to allow multiple versions for the external mismatch check. This allows to upgrade packages incrementally

@changeset-bot
Copy link

changeset-bot bot commented Feb 3, 2022

🦋 Changeset detected

Latest commit: 2034c99

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@manypkg/cli Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@fbartho
Copy link
Contributor

fbartho commented Feb 7, 2022

This looks like it's the building blocks of what I'd need to implement #129 -- did I read this code correctly?

@cheesehary
Copy link
Author

@fbartho Yes, the current logic is to clamp the version back to the most commonly used one if it breaks the rule. We are thinking to change it to the highest version in the allowed list by default.

Developers might want the highest allowed version most of the time. We can also save some migrations in the incremental upgrade if we install the highest version in the first place.

@fbartho
Copy link
Contributor

fbartho commented Feb 9, 2022

That sounds great! I certainly vote for this PR and for changing the default, or adding an option.

Not sure who is a contributor/maintainer here @cheesehary! Do you think anybody from @Thinkmill will approve/merge this?

@cheesehary
Copy link
Author

@fbartho I'm not sure if anyone is reviewing/will approve this.

mblaszczyk-atlassian and others added 13 commits June 13, 2023 11:00
The previous check only handled version ranges with a single leading
character. To fix all other cases, we use the semver.minVersion fn
instead to get the minimum version of a range and then return that.
The previous check only handled version ranges with a single leading
character. To fix all other cases, we use the semver.minVersion fn
instead to get the minimum version of a range and then return that.
# Conflicts:
#	packages/cli/src/checks/EXTERNAL_MISMATCH.ts
#	packages/cli/src/checks/utils.ts
Upgrade from 0.19.1 to 0.21.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants