You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Return the version incremented by the release type (major, premajor, minor, preminor, patch, prepatch, or prerelease), or null if it's not valid
In the case above inc() is not returning null, even though the resulting version is not a valid semver. Either the documentation needs to be changed to 'or null if the ReleaseType is not valid' or inc() needs to check the validity of the semver before returning it.
The text was updated successfully, but these errors were encountered:
What / Why
Given an identifier I want to increment a prerelease version.
Current Behavior
Given an 'invalid' identifier,
inc()
will produce an invalidsemver
.Steps to Reproduce
Expected Behavior
The documentation of
inc()
specifies this:In the case above
inc()
is not returning null, even though the resulting version is not a validsemver.
Either the documentation needs to be changed to 'or null if the ReleaseType is not valid' orinc()
needs to check the validity of thesemver
before returning it.The text was updated successfully, but these errors were encountered: