Semantic Version Bumper

Bump a version by major, minor, patch or pre-release and compare two versions using SemVer rules.

Optional v prefix; build metadata is dropped on bump.

Used by the pre-* bumps, for example rc, beta or alpha.

Patch
1.4.3
Minor
1.5.0
Major
2.0.0
Pre-patch
1.4.3-rc.0
Pre-minor
1.5.0-rc.0
Pre-major
2.0.0-rc.0
Pre-release
1.4.3-rc.0

1.4.2 is older than 1.5.0.

How to use

1

Enter the current version, for example 1.4.2.

2

Copy the bumped version you need from the list.

3

Optionally enter a second version to see which one has higher precedence.

Example

Release candidate to release

Bumping a pre-release to its own release drops the suffix instead of jumping to 3.0.0.

Input
2.0.0-rc.1 with a major bump
Output
2.0.0

Frequently Asked Questions

No. SemVer ignores the part after + when deciding precedence, so 1.0.0+a and 1.0.0+b are equal.

Explore

Connected career roadmaps, algorithmic problems, and real-world curricula related to Semantic Version Bumper.