From 05a00df02db3d4ba83e0caaff6b31c10c77f7d3d Mon Sep 17 00:00:00 2001 From: Tom Preston-Werner Date: Sun, 19 Jun 2011 22:31:16 +0200 Subject: [PATCH] Delimit pre-release versions by dash instead of dot. --- semver.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/semver.md b/semver.md index 6b61235..a64447e 100644 --- a/semver.md +++ b/semver.md @@ -53,12 +53,11 @@ patch version MUST be reset to zero. For instance: 1.1.3 -> 2.0.0 and 2.1.7 -> 2.2.0. 1. A pre-release version number MAY be denoted by appending an arbitrary -string immediately following the patch version and a decimal point. The string -MUST be comprised of only alphanumerics plus dash [0-9A-Za-z-] and MUST begin -with an alpha character [A-Za-z]. Pre-release versions satisfy but have a -lower precedence than the associated normal version. Precedence SHOULD be -determined by lexicographic ASCII sort order. For instance: 1.0.0.alpha1 < -1.0.0.beta1 < 1.0.0.beta2 < 1.0.0.rc1 < 1.0.0. +string immediately following the patch version and a dash. The string MUST be +comprised of only alphanumerics plus dash [0-9A-Za-z-]. Pre-release versions +satisfy but have a lower precedence than the associated normal version. +Precedence SHOULD be determined by lexicographic ASCII sort order. For +instance: 1.0.0-alpha1 < 1.0.0-beta1 < 1.0.0-beta2 < 1.0.0-rc1 < 1.0.0. 1. Once a versioned package has been released, the contents of that version MUST NOT be modified. Any modifications must be released as a new version.