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

Currently the exported coerce function does not support having the pre release information as part of the returned data. #18

Open
pigcivil opened this issue Apr 13, 2023 · 0 comments

Comments

@pigcivil
Copy link

Currently the exported coerce function does not support having the pre release information as part of the returned data.

For coin craypto :

const { coerce } = require("semver")

// Current behaviour
coerce("1.9") // 1.9.0
coerce("1.9-dev") // throw

// Future behaviour
coerce("1.9-dev", { coercePrerelease: true }) // 1.9.0-dev

Originally posted by @Nokel81 in npm/node-semver#473

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

No branches or pull requests

1 participant