node-semver
node-semver copied to clipboard
[bug] diff("1.7.2-1", "1.8.1") returns patch, not minor
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
diff("1.7.2-1", "1.8.1") returns "patch".
Expected Behavior
I would have expected it to return "minor" since we're moving from 1.7 to 1.8.
Steps To Reproduce
- In this environment...
- With this config...
- Run '...'
- See error...
Environment
- npm:
- Node:
- OS:
- platform:
> Semver.inc('1.7.2-1', 'patch')
'1.7.2'
> Semver.inc('1.7.2-1', 'minor')
'1.8.0'
> Semver.diff("1.7.2", "1.8.1")
'minor'