-
Notifications
You must be signed in to change notification settings - Fork 1
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
SemverUtil next() function to get the next version #3
Comments
Some tests:
Even though the code is really messy I think I hacked together semver.next(). |
Rewrote the
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HoN client semver
HoN uses 3 and 4 digit semantic versioning:
Hotfix versions don't always exist for a specific patch version.
We need to define some basic functionality for fetching next version for a given one. I just hacked together a very messy way that I believe works for the
next()
function on SemverUtil. It takes as a parameter anexists
boolean, because the next version depends on if the current version exists. For example:1.0.1
next() is1.0.1.0
if it exists,1.1.0
if it doesn't.1.0.1.0
next() is1.0.1.1
if it exists, or1.0.2
if it doesn't. Feel free to clean up the messy function:The text was updated successfully, but these errors were encountered: