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

1.0.1-a vs 1.0.0 #3

Open
kt3k opened this issue Jul 4, 2024 · 0 comments · May be fixed by #4
Open

1.0.1-a vs 1.0.0 #3

kt3k opened this issue Jul 4, 2024 · 0 comments · May be fixed by #4

Comments

@kt3k
Copy link

kt3k commented Jul 4, 2024

a.mjs

import semver from "semver";
import semiver from "semiver";

console.log(semver.compare("1.0.1-a", "1.0.0"));
console.log(semiver("1.0.1-a", "1.0.0"));

prints:

1
-1
@kt3k kt3k linked a pull request Jul 4, 2024 that will close this issue
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 a pull request may close this issue.

1 participant