Skip to content

Commit 27f1bc0

Browse files
darcyclarkecodebytere
authored andcommitted
deps: upgrade npm to 7.0.11
PR-URL: #36112 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 9ce9b01 commit 27f1bc0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+993
-320
lines changed

deps/npm/AUTHORS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,3 +730,6 @@ Michele Azzolari <[email protected]>
730730
731731
732732
Jan Tojnar <[email protected]>
733+
Jason Attwood <[email protected]>
734+
Vlad GURDIGA <[email protected]>
735+
Sébastien Puech <[email protected]>

deps/npm/CHANGELOG.md

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,115 @@
1+
## 7.0.11 (2020-11-13)
2+
3+
### DEPENDENCIES
4+
5+
* [`629a667a9`](https://github.com/npm/cli/commit/629a667a9b30b0b870075da965606979622a5e2e)
6+
7+
* [`de9891bd2`](https://github.com/npm/cli/commit/de9891bd2a16fe890ff5cfb140c7b1209aeac0de)
8+
9+
* [`c3e7aa31c`](https://github.com/npm/cli/commit/c3e7aa31c565dfe21cd1f55a8433bfbcf58aa289)
10+
[#2123](https://github.com/npm/cli/issues/2123)
11+
[#1957](https://github.com/npm/cli/issues/1957)
12+
13+
14+
### BUG FIXES
15+
16+
* [`a8aa38513`](https://github.com/npm/cli/commit/a8aa38513ad5c4ad44e6bb3e1499bfc40c31e213)
17+
[#2134](https://github.com/npm/cli/issues/2134)
18+
[#2156](https://github.com/npm/cli/issues/2156)
19+
Fix `cannot read property length of undefined` in `ERESOLVE` explanation code
20+
([@isaacs](https://github.com/isaacs))
21+
* [`1dbf0f9bb`](https://github.com/npm/cli/commit/1dbf0f9bb26ba70f4c6d0a807701d7652c31d7d4)
22+
[#2150](https://github.com/npm/cli/issues/2150)
23+
[#2155](https://github.com/npm/cli/issues/2155)
24+
send json errors to stderr, not stdout
25+
([@isaacs](https://github.com/isaacs))
26+
* [`fd1d7a21b`](https://github.com/npm/cli/commit/fd1d7a21b247bb35d112c51ff8d8a06fd83c8b44)
27+
[#1927](https://github.com/npm/cli/issues/1927)
28+
[#2154](https://github.com/npm/cli/issues/2154)
29+
Set process.title a bit more usefully
30+
([@isaacs](https://github.com/isaacs))
31+
* [`2a80c67ef`](https://github.com/npm/cli/commit/2a80c67ef8c12c3d9d254f5be6293a6461067d99)
32+
[#2008](https://github.com/npm/cli/issues/2008)
33+
[#2153](https://github.com/npm/cli/issues/2153)
34+
Support legacy auth tokens for registries that use them
35+
([@ruyadorno](https://github.com/ruyadorno))
36+
* [`786e36404`](https://github.com/npm/cli/commit/786e36404068fd51657ddac766e066a98754edbf)
37+
[#2017](https://github.com/npm/cli/issues/2017)
38+
[#2159](https://github.com/npm/cli/issues/2159)
39+
pass all options to Arborist for `npm ci`
40+
([@darcyclarke](https://github.com/darcyclarke))
41+
* [`b47ada7d1`](https://github.com/npm/cli/commit/b47ada7d1623e9ee586ee0cf781ee3ac5ea3c223)
42+
[#2161](https://github.com/npm/cli/issues/2161)
43+
fixed typo
44+
([@scarabedore](https://github.com/scarabedore))
45+
46+
## 7.0.10 (2020-11-10)
47+
48+
### DOCUMENTATION
49+
50+
* [`e48badb03`](https://github.com/npm/cli/commit/e48badb03058286a557584d7319db4143049cc6b)
51+
[#2148](https://github.com/npm/cli/issues/2148)
52+
Fix link in documentation
53+
([@gurdiga](https://github.com/gurdiga))
54+
55+
### BUG FIXES
56+
57+
* [`8edbbdc70`](https://github.com/npm/cli/commit/8edbbdc706694fa32f52d0991c76ae9f207b7bbc)
58+
[#1972](https://github.com/npm/cli/issues/1972)
59+
Support exec auto pick bin when all bin is alias
60+
([@dr-js](https://github.com/dr-js))
61+
62+
### DEPENDENCIES
63+
64+
* [`04a3e8c10`](https://github.com/npm/cli/commit/04a3e8c10c3f38e1c7a35976d77c2929bdc39868)
65+
[#1962](https://github.com/npm/cli/issues/1962)
66+
`@npmcli/[email protected]`:
67+
* prevent self-assignment of parent/fsParent
68+
* Support update options in global package space
69+
70+
## 7.0.9 (2020-11-06)
71+
72+
### BUG FIXES
73+
74+
* [`96a0d2802`](https://github.com/npm/cli/commit/96a0d2802d3e619c6ea47290f5c460edfe94070a)
75+
default the 'start' script when server.js present
76+
([@isaacs](https://github.com/isaacs))
77+
* [`7716e423e`](https://github.com/npm/cli/commit/7716e423ee92a81730c0dfe5b9ecb4bb41a3f947)
78+
[#2075](https://github.com/npm/cli/issues/2075)
79+
[#2071](https://github.com/npm/cli/issues/2071) print the registry when
80+
using 'npm login' ([@Wicked7000](https://github.com/Wicked7000))
81+
* [`7046fe10c`](https://github.com/npm/cli/commit/7046fe10c5035ac57246a31ca8a6b09e3f5562bf)
82+
[#2122](https://github.com/npm/cli/issues/2122) tests for `npm cache`
83+
command ([@nlf](https://github.com/nlf))
84+
85+
### DEPENDENCIES
86+
87+
* [`74325f53b`](https://github.com/npm/cli/commit/74325f53b9d813b0e42203c037189418fad2f64a)
88+
[#2124](https://github.com/npm/cli/issues/2124)
89+
`@npmcli/[email protected]`:
90+
* Export the `isServerPackage` method
91+
* Proxy signals to and from foreground child processes
92+
* [`0e58e6f6b`](https://github.com/npm/cli/commit/0e58e6f6b8f0cd62294642a502c17561aaf46553)
93+
[#1984](https://github.com/npm/cli/issues/1984)
94+
[#2079](https://github.com/npm/cli/issues/2079)
95+
[#1923](https://github.com/npm/cli/issues/1923)
96+
[#606](https://github.com/npm/cli/issues/606)
97+
[#2031](https://github.com/npm/cli/issues/2031) `@npmcli/[email protected]`:
98+
* Process deps for all link nodes
99+
* Use junctions instead of symlinks
100+
* Use @npmcli/move-file instead of fs.rename
101+
* [`1dad328a1`](https://github.com/npm/cli/commit/1dad328a17d93def7799545596b4eba9833b35aa)
102+
[#1865](https://github.com/npm/cli/issues/1865)
103+
[#2106](https://github.com/npm/cli/issues/2106)
104+
[#2084](https://github.com/npm/cli/issues/2084) `[email protected]`:
105+
* Properly set the installation command for `prepare` scripts when
106+
installing git/dir deps
107+
* [`e090d706c`](https://github.com/npm/cli/commit/e090d706ca637d4df96d28bff1660590aa3f3b62)
108+
[#2097](https://github.com/npm/cli/issues/2097) `[email protected]`:
109+
* Do not crash when the package.json file lacks a 'version' field
110+
* [`8fa541a10`](https://github.com/npm/cli/commit/8fa541a10dbdc09376175db7a378cc9b33e8b17b)
111+
112+
1113
## 7.0.8 (2020-11-03)
2114

3115
### DOCUMENTATION

deps/npm/docs/content/commands/npm-exec.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ the package specifier provided as the first positional argument according
5454
to the following heuristic:
5555

5656
- If the package has a single entry in its `bin` field in `package.json`,
57-
then that command will be used.
57+
or if all entries are aliases of the same command, then that command
58+
will be used.
5859
- If the package has multiple `bin` entries, and one of them matches the
5960
unscoped portion of the `name` field, then that command will be used.
6061
- If this does not result in exactly one option (either because there are

deps/npm/docs/content/commands/npx.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ description: Run a command from a local or remote npm package
88

99
```bash
1010
npm exec -- <pkg>[@<version>] [args...]
11-
npm exec -p <pkg>[@<version>] -- <cmd> [args...]
11+
npm exec --package=<pkg>[@<version>] -- <cmd> [args...]
1212
npm exec -c '<cmd> [args...]'
13-
npm exec -p foo -c '<cmd> [args...]'
13+
npm exec --package=foo -c '<cmd> [args...]'
1414

1515
npx <pkg>[@<specifier>] [args...]
1616
npx -p <pkg>[@<specifier>] <cmd> [args...]
@@ -19,7 +19,8 @@ npx -p <pkg>[@<specifier>] -c '<cmd> [args...]'
1919

2020
alias: npm x, npx
2121

22-
-p <pkg> --package=<pkg> (may be specified multiple times)
22+
--package=<pkg> (may be specified multiple times)
23+
-p is a shorthand for --package only when using npx executable
2324
-c <cmd> --call=<cmd> (may not be mixed with positional arguments)
2425
```
2526

@@ -29,9 +30,9 @@ This command allows you to run an arbitrary command from an npm package
2930
(either one installed locally, or fetched remotely), in a similar context
3031
as running it via `npm run`.
3132

32-
Whatever packages are specified by the `--package` or `-p` option will be
33+
Whatever packages are specified by the `--package` option will be
3334
provided in the `PATH` of the executed command, along with any locally
34-
installed package executables. The `--package` or `-p` option may be
35+
installed package executables. The `--package` option may be
3536
specified multiple times, to execute the supplied command in an environment
3637
where all specified packages are available.
3738

@@ -47,13 +48,14 @@ only be considered a match if they have the exact same name and version as
4748
the local dependency.
4849

4950
If no `-c` or `--call` option is provided, then the positional arguments
50-
are used to generate the command string. If no `-p` or `--package` options
51+
are used to generate the command string. If no `--package` options
5152
are provided, then npm will attempt to determine the executable name from
5253
the package specifier provided as the first positional argument according
5354
to the following heuristic:
5455

5556
- If the package has a single entry in its `bin` field in `package.json`,
56-
then that command will be used.
57+
or if all entries are aliases of the same command, then that command
58+
will be used.
5759
- If the package has multiple `bin` entries, and one of them matches the
5860
unscoped portion of the `name` field, then that command will be used.
5961
- If this does not result in exactly one option (either because there are

deps/npm/docs/content/using-npm/developers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ create an empty `.npmignore` file to override it. Like `git`, `npm` looks
109109
for `.npmignore` and `.gitignore` files in all subdirectories of your
110110
package, not only the root directory.
111111

112-
`.npmignore` files follow the [same pattern rules](https://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository#Ignoring-Files)
112+
`.npmignore` files follow the [same pattern rules](https://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository#_ignoring)
113113
as `.gitignore` files:
114114

115115
* Blank lines or lines starting with `#` are ignored.

deps/npm/docs/content/using-npm/scripts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: How npm handles the "scripts" field
66

77
### Description
88

9-
The `"scripts"` property of of your `package.json` file supports a number of built-in scripts and their preset life cycle events as well as arbitrary scripts. These all can be executed by running `npm run-script <stage>` or `npm run <stage>` for short. *Pre* and *post* commands with matching names will be run for those as well (e.g. `premyscript`, `myscript`, `postmyscript`). Scripts from dependencies can be run with `npm explore <pkg> -- npm run <stage>`.
9+
The `"scripts"` property of your `package.json` file supports a number of built-in scripts and their preset life cycle events as well as arbitrary scripts. These all can be executed by running `npm run-script <stage>` or `npm run <stage>` for short. *Pre* and *post* commands with matching names will be run for those as well (e.g. `premyscript`, `myscript`, `postmyscript`). Scripts from dependencies can be run with `npm explore <pkg> -- npm run <stage>`.
1010

1111
### Pre & Post Scripts
1212

deps/npm/docs/output/commands/npm-exec.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ <h3 id="description">Description</h3>
186186
to the following heuristic:</p>
187187
<ul>
188188
<li>If the package has a single entry in its <code>bin</code> field in <code>package.json</code>,
189-
then that command will be used.</li>
189+
or if all entries are aliases of the same command, then that command
190+
will be used.</li>
190191
<li>If the package has multiple <code>bin</code> entries, and one of them matches the
191192
unscoped portion of the <code>name</code> field, then that command will be used.</li>
192193
<li>If this does not result in exactly one option (either because there are

deps/npm/docs/output/commands/npm-ls.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ <h3 id="description">Description</h3>
156156
limit the results to only the paths to the packages named. Note that
157157
nested packages will <em>also</em> show the paths to the specified packages.
158158
For example, running <code>npm ls promzard</code> in npm’s source tree will show:</p>
159-
<pre lang="bash"><code> [email protected].8 /path/to/npm
159+
<pre lang="bash"><code> [email protected].11 /path/to/npm
160160
161161
162162
</code></pre>

deps/npm/docs/output/commands/npm.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ <h2 id="table-of-contents">Table of contents</h2>
148148
<pre lang="bash"><code>npm &lt;command&gt; [args]
149149
</code></pre>
150150
<h3 id="version">Version</h3>
151-
<p>7.0.8</p>
151+
<p>7.0.11</p>
152152
<h3 id="description">Description</h3>
153153
<p>npm is the package manager for the Node JavaScript platform. It puts
154154
modules in place so that node can find them, and manages dependency

deps/npm/docs/output/commands/npx.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ <h2 id="table-of-contents">Table of contents</h2>
146146

147147
<div id="_content"><h3 id="synopsis">Synopsis</h3>
148148
<pre lang="bash"><code>npm exec -- &lt;pkg&gt;[@&lt;version&gt;] [args...]
149-
npm exec -p &lt;pkg&gt;[@&lt;version&gt;] -- &lt;cmd&gt; [args...]
149+
npm exec --package=&lt;pkg&gt;[@&lt;version&gt;] -- &lt;cmd&gt; [args...]
150150
npm exec -c '&lt;cmd&gt; [args...]'
151-
npm exec -p foo -c '&lt;cmd&gt; [args...]'
151+
npm exec --package=foo -c '&lt;cmd&gt; [args...]'
152152

153153
npx &lt;pkg&gt;[@&lt;specifier&gt;] [args...]
154154
npx -p &lt;pkg&gt;[@&lt;specifier&gt;] &lt;cmd&gt; [args...]
@@ -157,16 +157,17 @@ <h2 id="table-of-contents">Table of contents</h2>
157157

158158
alias: npm x, npx
159159

160-
-p &lt;pkg&gt; --package=&lt;pkg&gt; (may be specified multiple times)
160+
--package=&lt;pkg&gt; (may be specified multiple times)
161+
-p is a shorthand for --package only when using npx executable
161162
-c &lt;cmd&gt; --call=&lt;cmd&gt; (may not be mixed with positional arguments)
162163
</code></pre>
163164
<h3 id="description">Description</h3>
164165
<p>This command allows you to run an arbitrary command from an npm package
165166
(either one installed locally, or fetched remotely), in a similar context
166167
as running it via <code>npm run</code>.</p>
167-
<p>Whatever packages are specified by the <code>--package</code> or <code>-p</code> option will be
168+
<p>Whatever packages are specified by the <code>--package</code> option will be
168169
provided in the <code>PATH</code> of the executed command, along with any locally
169-
installed package executables. The <code>--package</code> or <code>-p</code> option may be
170+
installed package executables. The <code>--package</code> option may be
170171
specified multiple times, to execute the supplied command in an environment
171172
where all specified packages are available.</p>
172173
<p>If any requested packages are not present in the local project
@@ -179,13 +180,14 @@ <h3 id="description">Description</h3>
179180
only be considered a match if they have the exact same name and version as
180181
the local dependency.</p>
181182
<p>If no <code>-c</code> or <code>--call</code> option is provided, then the positional arguments
182-
are used to generate the command string. If no <code>-p</code> or <code>--package</code> options
183+
are used to generate the command string. If no <code>--package</code> options
183184
are provided, then npm will attempt to determine the executable name from
184185
the package specifier provided as the first positional argument according
185186
to the following heuristic:</p>
186187
<ul>
187188
<li>If the package has a single entry in its <code>bin</code> field in <code>package.json</code>,
188-
then that command will be used.</li>
189+
or if all entries are aliases of the same command, then that command
190+
will be used.</li>
189191
<li>If the package has multiple <code>bin</code> entries, and one of them matches the
190192
unscoped portion of the <code>name</code> field, then that command will be used.</li>
191193
<li>If this does not result in exactly one option (either because there are

0 commit comments

Comments
 (0)