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

[BUG] X-Range with Prerelease Ignores Prerelease #510

Open
1 task done
WalkerCodeRanger opened this issue Dec 26, 2022 · 0 comments
Open
1 task done

[BUG] X-Range with Prerelease Ignores Prerelease #510

WalkerCodeRanger opened this issue Dec 26, 2022 · 0 comments
Labels
Bug thing that needs fixing Needs Triage needs an initial review

Comments

@WalkerCodeRanger
Copy link

WalkerCodeRanger commented Dec 26, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

A range like >=1.x.x-rc appears to ignore the -rc and be treated as equal to >=1.x.x. For example, it does not match the version 1.0.0-rc.1.

Expected Behavior

Since it isn't clear what prerelease versions >=1.x.x-rc should match, I think it should be an invalid range. If one really wanted to support it, then it would need to match multiple prerelease ranges (e.g. 1.0.0-rc, 1.0.5-rc, 1.5.6-rc, etc.).

Steps To Reproduce

As I am not a Node developer but rather a maintainer of a semver package for C# that needs to support npm style version ranges, I am using https://semver.npmjs.com/ to test. Simply put the listed versions into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs an initial review
Projects
None yet
Development

No branches or pull requests

1 participant