Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2014-07-25 04:51:29 +0400
committerisaacs <i@izs.me>2014-07-25 04:52:02 +0400
commitea547e29f1245e516fc67641875841c10f04e1ee (patch)
treed4ee0d8a6c49f20ce4a402f17bd4e350136c1a7b /doc
parent33ccd13d161ff185d9c9c545013e0775f86c13ac (diff)
Bump semver to version 3
This makes the '^' operator stricter for 0.x.y versions, even if 'x' is not 0. As a direct result, several *other* deps had to be updated, because they either depended on semver 2.x, or because the new stricter rules meant that they (or their deps) were no longer valid. The update to 'read-installed', in particular, causes a test failure. That update must be rolled back, or the test made to pass, prior to a stable npm 2.0.0 release going out.
Diffstat (limited to 'doc')
-rw-r--r--doc/misc/semver.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/misc/semver.md b/doc/misc/semver.md
index 6c7d28061..67ba52e95 100644
--- a/doc/misc/semver.md
+++ b/doc/misc/semver.md
@@ -66,11 +66,11 @@ The following range styles are supported:
prerelease) will be supported up to, but not including, the next
major version (or its prereleases). `1.5.1` will satisfy `^1.2.3`,
while `1.2.2` and `2.0.0-beta` will not.
-* `^0.1.3` := `>=0.1.3-0 <0.2.0-0` "Compatible with `0.1.3`". `0.x.x` versions are
- special: the first non-zero component indicates potentially breaking changes,
- meaning the caret operator matches any version with the same first non-zero
- component starting at the specified version.
-* `^0.0.2` := `=0.0.2` "Only the version `0.0.2` is considered compatible"
+* `^0.1.3` := `0.1.3` "Compatible with `0.1.3`". `0.x.x` versions are
+ special: since the semver spec specifies that `0.x.x` versions make
+ no stability guarantees, only the version specified is considered
+ valid.
+* `^0.0.2` := `0.0.2` "Only the version `0.0.2` is considered compatible"
* `~1.2` := `>=1.2.0-0 <1.3.0-0` "Any version starting with `1.2`"
* `^1.2` := `>=1.2.0-0 <2.0.0-0` "Any version compatible with `1.2`"
* `1.2.x` := `>=1.2.0-0 <1.3.0-0` "Any version starting with `1.2`"