semver-resource
semver-resource copied to clipboard
bump final and pre should guarantee an advancement of version
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.