-
Notifications
You must be signed in to change notification settings - Fork 515
feat: allow identifierBase to be false #548
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 5 commits
0c69881
14a3913
871dc9d
570f32c
4246523
d0399b5
136de01
ac3016b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,4 +101,19 @@ module.exports = [ | |
['1.2.3-dev.bar', 'prerelease', '1.2.3-dev.0', false, 'dev', '0'], | ||
['1.2.0', 'preminor', '1.3.0-dev.1', false, 'dev', '1'], | ||
['1.2.3-1', 'preminor', '1.3.0-dev.0', false, 'dev'], | ||
|
||
['1.2.0-1', 'prerelease', '1.2.0-alpha', false, 'alpha', false], | ||
['1.2.1', 'prerelease', '1.2.2-alpha', false, 'alpha', false], | ||
['1.2.2', 'prerelease', '1.2.3-alpha', false, 'alpha', false], | ||
['1.2.0', 'prepatch', '1.2.1-dev', false, 'dev', false], | ||
['1.2.0-1', 'prepatch', '1.2.1-dev', false, 'dev', false], | ||
['1.2.0', 'premajor', '2.0.0-dev', false, 'dev', false], | ||
['1.2.3-1', 'premajor', '2.0.0-dev', false, 'dev', false], | ||
['1.2.3-dev.bar', 'prerelease', '1.2.3-dev', false, 'dev', false], | ||
['1.2.0', 'preminor', '1.3.0-dev', false, 'dev', false], | ||
['1.2.3-1', 'preminor', '1.3.0-dev', false, 'dev', false], | ||
['1.2.3-dev', 'prerelease', '1.2.3-dev.1', false, 'dev', false], | ||
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. @nlf what do you think about this? If they have said "increase the prerelease" but also asked for there not to be a prerelease base, do we default to 1 or should we throw? 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. my gut reaction is we should throw because they've asked for us to do something that doesn't make sense. going from no number to adding a number when we've been asked to not add numbers feels wrong 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. I agree, let's throw in this situation. No more guessing user intent! 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. just to clarify do we want to throw also in: ['1.2.0', 'prerelease', '1.2.1-1', false, '', false], ? 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. Oooh good point. We sure do! "increase the prerelease with no identifier and no identifierBase" sure sounds impossible. 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. i updated it to throw on both cases |
||
['1.2.0-dev', 'premajor', '2.0.0-dev', false, 'dev', false], | ||
['1.2.0-dev', 'preminor', '1.3.0-beta', false, 'beta', false], | ||
['1.2.0-dev', 'prepatch', '1.2.1-dev', false, 'dev', false], | ||
] |
Uh oh!
There was an error while loading. Please reload this page.