Semantic Versioning
Semantic Versioning 2.0.0 | Semantic Versioning
Precendence:
Major, minor, path compared numerically, eg 1.0.0
> 0.2.0
> 0.0.4
When major, minor, patch are equal, pre-release version has lower precendence
1.0.0
> 1.0.0-alpha
When pre-release version is equal, the dot afterwards is compared. If number, it’s compares numerically, if string, it’s compared lexically.
1.0.0
> 1.0.0-rc.1
> 1.0.0-beta.11
> 1.0.0-beta.2
> 1.0.0-alpha.1
> 1.0.0-alpha
TLDR;
[major].[minor].[patch]-[pre-release?].[pre-release version?]