diff options
author | isaacs <i@izs.me> | 2014-07-25 04:51:29 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2014-07-25 04:52:02 +0400 |
commit | ea547e29f1245e516fc67641875841c10f04e1ee (patch) | |
tree | d4ee0d8a6c49f20ce4a402f17bd4e350136c1a7b /node_modules/semver/test | |
parent | 33ccd13d161ff185d9c9c545013e0775f86c13ac (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 'node_modules/semver/test')
-rw-r--r-- | node_modules/semver/test/index.js | 14 | ||||
-rw-r--r-- | node_modules/semver/test/ltr.js | 3 |
2 files changed, 11 insertions, 6 deletions
diff --git a/node_modules/semver/test/index.js b/node_modules/semver/test/index.js index 6285b693f..abd9713d0 100644 --- a/node_modules/semver/test/index.js +++ b/node_modules/semver/test/index.js @@ -1,3 +1,5 @@ +'use strict'; + var tap = require('tap'); var test = tap.test; var semver = require('../semver.js'); @@ -327,10 +329,12 @@ test('\nincrement versions test', function(t) { ['1.2.3-alpha.9.beta', 'prerelease', '1.2.3-alpha.10.beta'], ['1.2.3-alpha.10.beta', 'prerelease', '1.2.3-alpha.11.beta'], ['1.2.3-alpha.11.beta', 'prerelease', '1.2.3-alpha.12.beta'], + ['1.2.0', 'prepatch', '1.2.1-0'], + ['1.2.0-1', 'prepatch', '1.2.1-0'], ['1.2.0', 'preminor', '1.3.0-0'], + ['1.2.0-1', 'preminor', '1.3.0-0'], ['1.2.0', 'premajor', '2.0.0-0'], - ['1.2.0', 'preminor', '1.3.0-0'], - ['1.2.0', 'premajor', '2.0.0-0'] + ['1.2.0-1', 'premajor', '2.0.0-0'] ].forEach(function(v) { @@ -404,9 +408,9 @@ test('\nvalid range test', function(t) { ['^0.1', '>=0.1.0-0 <0.2.0-0'], ['^1.0', '>=1.0.0-0 <2.0.0-0'], ['^1.2', '>=1.2.0-0 <2.0.0-0'], - ['^0.0.1', '=0.0.1'], - ['^0.0.1-beta', '=0.0.1-beta'], - ['^0.1.2', '>=0.1.2-0 <0.2.0-0'], + ['^0.0.1', '0.0.1'], + ['^0.0.1-beta', '0.0.1-beta'], + ['^0.1.2', '0.1.2'], ['^1.2.3', '>=1.2.3-0 <2.0.0-0'], ['^1.2.3-beta.4', '>=1.2.3-beta.4 <2.0.0-0'], ['<1', '<1.0.0-0'], diff --git a/node_modules/semver/test/ltr.js b/node_modules/semver/test/ltr.js index a4f503a3c..d1461371b 100644 --- a/node_modules/semver/test/ltr.js +++ b/node_modules/semver/test/ltr.js @@ -162,7 +162,8 @@ test('\nnegative ltr tests', function(t) { ['^0.1.0 || ~3.0.1 || 5.0.0', '3.2.0'], ['^0.1.0 || ~3.0.1 || 5.0.0', '1.0.0beta', true], ['^0.1.0 || ~3.0.1 || 5.0.0', '5.0.0-0', true], - ['^0.1.0 || ~3.0.1 || >4 <=5.0.0', '3.5.0'] + ['^0.1.0 || ~3.0.1 || >4 <=5.0.0', '3.5.0'], + ['=0.1.0', '1.0.0'] ].forEach(function(tuple) { var range = tuple[0]; var version = tuple[1]; |