-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include prerelease versions when deprecating
PR-URL: #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 `[email protected]`, then presumably `[email protected]` has the same expectation.
- Loading branch information
Showing
3 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ description: Deprecate a version of a package | |
### Synopsis | ||
|
||
```bash | ||
npm deprecate <pkg>[@<version>] <message> | ||
npm deprecate <pkg>[@<version range>] <message> | ||
``` | ||
|
||
### Description | ||
|
@@ -22,8 +22,17 @@ versions, so you can do something like this: | |
npm deprecate my-thing@"< 0.2.3" "critical bug fixed in v0.2.3" | ||
``` | ||
|
||
Note that you must be the package owner to deprecate something. See the | ||
`owner` and `adduser` help topics. | ||
SemVer ranges passed to this command are interpreted such that they *do* | ||
include prerelease versions. For example: | ||
|
||
```bash | ||
npm deprecate [email protected] "1.x is no longer supported" | ||
``` | ||
|
||
In this case, a version `[email protected]` will also be deprecated. | ||
|
||
You must be the package owner to deprecate something. See the `owner` and | ||
`adduser` help topics. | ||
|
||
To un-deprecate a package, specify an empty string (`""`) for the `message` | ||
argument. Note that you must use double quotes with no space between them to | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters