We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A bump from an alpha of a major release to the actual major release is considered a prerelease by diff when it's actually a major release.
diff
diff('2.0.0-alpha.15', '2.0.0')
prerelease
const semver = require('semver'); semver.diff('2.0.0-alpha.15', '2.0.0'); // == prerelease
major
inc('2.0.0-alpha.15', 'major')
2.0.0-alpha.15
2.0.0
The text was updated successfully, but these errors were encountered:
Closing as a duplicate of #333 which we'll use to track this bug.
Sorry, something went wrong.
No branches or pull requests
What / Why
When
Where
How
Current Behavior
diff('2.0.0-alpha.15', '2.0.0')
returnsprerelease
Steps to Reproduce
Expected Behavior
diff('2.0.0-alpha.15', '2.0.0')
returnsmajor
diff('2.0.0-alpha.15', '2.0.0')
should be consistent withinc('2.0.0-alpha.15', 'major')
.2.0.0-alpha.15
bymajor
, we get2.0.0
, and when we diff2.0.0-alpha.15
against2.0.0
, we should also getmajor
.Who
References
The text was updated successfully, but these errors were encountered: