0
0
mirror of https://github.com/semver/semver.git synced 2025-08-25 23:35:30 +00:00

Section 11: A larger set of pre-release is higher

Clarifies the comparison between, eg 1.0.0-a vs 1.0.0-a.b
This commit is contained in:
isaacs 2013-06-05 17:42:19 -07:00 committed by Haacked
parent 62c2005379
commit 9dcea3c170

View File

@ -99,8 +99,10 @@ numerically. Pre-release precedence MUST be determined by comparing each dot
separated identifier as follows: identifiers consisting of only digits are
compared numerically and identifiers with letters or hyphens are compared
lexically in ASCII sort order. Numeric identifiers always have lower precedence
than non-numeric identifiers. Example: 1.0.0-alpha < 1.0.0-alpha.1 <
1.0.0-beta.2 < 1.0.0-beta.11 < 1.0.0-rc.1 < 1.0.0.
than non-numeric identifiers. A larger set of pre-release fields has a
higher precedence than a smaller set, if all of the existing fields are
equal. Example: 1.0.0-alpha < 1.0.0-alpha.beta < 1.0.0-alpha.1 <
1.0.0-beta < 1.0.0-beta.2 < 1.0.0-beta.11 < 1.0.0-rc.1 < 1.0.0.
Why Use Semantic Versioning?
----------------------------