0
0
mirror of https://github.com/semver/semver.git synced 2025-08-26 15:55:30 +00:00

Be more precise about version precedence

This commit is contained in:
Haacked 2013-06-10 09:08:07 -07:00
parent 3071b5d2d5
commit ec887c3b97

View File

@ -88,9 +88,9 @@ associated normal version. Examples: 1.0.0-alpha, 1.0.0-alpha.1,
separated identifiers immediately following the patch or pre-release version. separated identifiers immediately following the patch or pre-release version.
Identifiers MUST comprise only ASCII alphanumerics and hyphen [0-9A-Za-z-]. Identifiers MUST comprise only ASCII alphanumerics and hyphen [0-9A-Za-z-].
Identifiers MUST NOT be empty. Build metadata SHOULD be ignored when determining Identifiers MUST NOT be empty. Build metadata SHOULD be ignored when determining
version precedence. Thus two packages with the same version, but different build version precedence. Thus two versions that differ only in the build metadata,
metadata, have the same precedence. Examples: 1.0.0-alpha+001, have the same precedence. Examples: 1.0.0-alpha+001, 1.0.0+20130313144700,
1.0.0+20130313144700, 1.0.0-beta+exp.sha.5114f85. 1.0.0-beta+exp.sha.5114f85.
1. Precedence refers to how versions are compared to each other when ordered. 1. Precedence refers to how versions are compared to each other when ordered.
Precedence MUST be calculated by separating the version into major, minor, patch Precedence MUST be calculated by separating the version into major, minor, patch