diff options
author | Tieg Zaharia <tieg@tidelift.com> | 2020-12-17 03:50:35 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2020-12-18 22:46:59 +0300 |
commit | 44d4331058c53909ada62470b23b2185102b2128 (patch) | |
tree | d7824dd3265e3e0ef3f10986e3a45aa974674565 /test | |
parent | a9b8bf2634c627fbb16ca3a6bb2c2f1058c3e586 (diff) |
Include prerelease versions when deprecating
PR-URL: https://github.com/npm/cli/pull/2366
Credit: @tiegz
Close: #2366
Reviewed-by: @isaacs
EDIT(@isaacs): updated to make _all_ deprecation ranges include
prereleases. If `foo@*` would be expected to deprecate
`foo@1.0.0-beta`, then presumably `foo@1.x` has the same expectation.
Diffstat (limited to 'test')
-rw-r--r-- | test/lib/deprecate.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lib/deprecate.js b/test/lib/deprecate.js index 3908254ed..229cb9137 100644 --- a/test/lib/deprecate.js +++ b/test/lib/deprecate.js @@ -13,6 +13,7 @@ npmFetch.json = async (uri, opts) => { versions: { '1.0.0': {}, '1.0.1': {}, + '1.0.1-pre': {}, }, } } @@ -126,6 +127,9 @@ test('deprecates all versions when no range is specified', t => { '1.0.1': { deprecated: 'this version is deprecated', }, + '1.0.1-pre': { + deprecated: 'this version is deprecated', + }, }, }) |