semver-resource icon indicating copy to clipboard operation
semver-resource copied to clipboard

bump final and pre should guarantee an advancement of version

Open william-tran opened this issue 6 years ago • 2 comments

When you bump final a semver that's already final, I want the patch to be bumped. Currently, a new version is not produced.

Current:
1.0.0 --> bump final --> 1.0.0

Proposed:
1.0.0 --> bump final --> 1.0.1

When you bump pre a semver that's already final, I want the patch to be bumped, with the pre applied after. Currently, the pre is applied to the final semver, going backwards.

Current:
1.0.0 --> bump pre build --> 1.0.0-build.1

Proposed:
1.0.0 --> bump pre build --> 1.0.1-build.1

I'm using a script to to work around this currently, it would be nice to get away from that so I can have the above behaviour applied atomically.

william-tran avatar Nov 10 '17 14:11 william-tran