semver icon indicating copy to clipboard operation
semver copied to clipboard

Functions to decrease version numbers

Open nikoksr opened this issue 5 years ago • 0 comments

Problem: In one of my projects I need an internal fallback version to the current version. This fallback version should be the direct minor or major predecessor of the current version. In my case I would need the possibility to reduce the number of the major or minor version.

Example: Current version: v0.20.0 Fallback version: v0.19.0

Proposed solution: We would need the exact opposite of the functions IncMajor, IncMinor, IncPatch (e.g. DecMajor, DecMinor, DecPatch) which would decrease the version numbers respectively.

nikoksr avatar May 25 '20 11:05 nikoksr