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:
parent
62c2005379
commit
9dcea3c170
@ -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
|
separated identifier as follows: identifiers consisting of only digits are
|
||||||
compared numerically and identifiers with letters or hyphens are compared
|
compared numerically and identifiers with letters or hyphens are compared
|
||||||
lexically in ASCII sort order. Numeric identifiers always have lower precedence
|
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 <
|
than non-numeric identifiers. A larger set of pre-release fields has a
|
||||||
1.0.0-beta.2 < 1.0.0-beta.11 < 1.0.0-rc.1 < 1.0.0.
|
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?
|
Why Use Semantic Versioning?
|
||||||
----------------------------
|
----------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user