-
Notifications
You must be signed in to change notification settings - Fork 588
fix: incorrect results from diff sometimes with prerelease versions #546
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
Changes from 1 commit
65b34a8
891b7da
f8c38e9
2c37998
f584c08
89ae1fe
f3fd4db
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
I.e. `1.0.0-1` => `2.0.0-1` should be `major` not `premajor`, because the biggest change is the major version
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,6 +29,9 @@ test('diff versions test', (t) => { | |
| ['1.0.1-1', '1.0.1', 'patch'], | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| ['0.0.0-1', '0.0.0', 'major'], | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| ['1.0.0-1', '2.0.0', 'major'], | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again this is two major |
||
| ['1.0.0-1', '2.0.0-1', 'major'], | ||
| ['1.0.0-1', '1.1.0-1', 'minor'], | ||
| ['1.0.0-1', '1.0.1-1', 'patch'], | ||
|
wraithgar marked this conversation as resolved.
Outdated
|
||
| ].forEach((v) => { | ||
| const version1 = v[0] | ||
| const version2 = v[1] | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.