Skip to content

Commit 47ad448

Browse files
npm-robotdanielleadams
authored andcommitted
deps: upgrade npm to 7.15.1
PR-URL: #38880 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Ruy Adorno <[email protected]>
1 parent 48ebebd commit 47ad448

Some content is hidden

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

91 files changed

+1604
-813
lines changed

deps/npm/AUTHORS

+6
Original file line numberDiff line numberDiff line change
@@ -777,3 +777,9 @@ wangsai <[email protected]>
777777
Luke Hefson <[email protected]>
778778
779779
Juan Picado <[email protected]>
780+
Kevin Cormier <[email protected]>
781+
Nariyasu Heseri <[email protected]>
782+
783+
Spencer Wilson <[email protected]>
784+
Daniel Park <[email protected]>
785+
Daniel Park <[email protected]>

deps/npm/CHANGELOG.md

+87
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,90 @@
1+
## v7.15.1 (2021-05-31)
2+
3+
### BUG FIXES
4+
5+
* [`598a17a26`](https://github.com/npm/cli/commit/598a17a2671c9e3bc204dddd6488169c9a72c6a1)
6+
[#3329](https://github.com/npm/cli/issues/3329)
7+
fix(libnpmexec): don't detach output from npm
8+
([@wraithgar](https://github.com/wraithgar))
9+
10+
### DEPENDENCIES
11+
12+
* [`c4fc03e9e`](https://github.com/npm/cli/commit/c4fc03e9eb3a6386e8feacb67c19f0a1578dfe38)
13+
14+
* fixes reifying deps with mismatching version ranges between
15+
actual and virtual trees
16+
* [`9159fa62a`](https://github.com/npm/cli/commit/9159fa62a10dee09daef178fc7be161a02824004)
17+
18+
19+
## v7.15.0 (2021-05-27)
20+
21+
### FEATURES
22+
23+
* [`399ff8cbc`](https://github.com/npm/cli/commit/399ff8cbccd5198f637518ccafa86c43bab47a4a)
24+
[#3312](https://github.com/npm/cli/issues/3312)
25+
feat(link): add workspace support
26+
([@isaacs](https://github.com/isaacs))
27+
28+
### BUG FIXES
29+
30+
* [`46a9bcbcb`](https://github.com/npm/cli/commit/46a9bcbcb0bb2435dca6f45a61b8631f580c7f06)
31+
[#3282](https://github.com/npm/cli/issues/3282)
32+
fix(docs): proper postinstall script file name
33+
([@KevinFCormier](https://github.com/KevinFCormier))
34+
* [`83590d40f`](https://github.com/npm/cli/commit/83590d40f94347f21714dbd158b9ddcad9c82de9)
35+
[#3272](https://github.com/npm/cli/issues/3272)
36+
fix(ls): show relative paths from root
37+
([@isaacs](https://github.com/isaacs))
38+
* [`a574b518a`](https://github.com/npm/cli/commit/a574b518ae5b8f0664ed388cf1be6288d8c2e68d)
39+
[#3304](https://github.com/npm/cli/issues/3304)
40+
fix(completion): restore IFS even if `npm completion` returns error
41+
([@NariyasuHeseri](https://github.com/NariyasuHeseri))
42+
* [`554e8a5cd`](https://github.com/npm/cli/commit/554e8a5cd7034052a59a9ada31e4b8f73712211a)
43+
[#3311](https://github.com/npm/cli/issues/3311)
44+
set audit exit code properly
45+
([@isaacs](https://github.com/isaacs))
46+
* [`4a4fbe33c`](https://github.com/npm/cli/commit/4a4fbe33c51413adcd558b4af6f1e204b1b87e41)
47+
[#3268](https://github.com/npm/cli/issues/3268)
48+
[#3285](https://github.com/npm/cli/issues/3285)
49+
fix(publish): skip private workspaces
50+
([@ruyadorno](https://github.com/ruyadorno))
51+
52+
### DOCUMENTATION
53+
54+
* [`3c53d631f`](https://github.com/npm/cli/commit/3c53d631f557cf2484e2f6a6172c44e36aea4817)
55+
[#3307](https://github.com/npm/cli/issues/3307)
56+
fix(docs): typo in package-lock.json docs
57+
([@rethab](https://github.com/rethab))
58+
* [`96367f93f`](https://github.com/npm/cli/commit/96367f93f46c24494d084c8b8d34e4de9cd375da)
59+
rebuild npm-pack doc
60+
([@isaacs](https://github.com/isaacs))
61+
* [`64b13dd10`](https://github.com/npm/cli/commit/64b13dd1082b6ca7eac4e8e329bfdd8cd8daf157)
62+
[#3313](https://github.com/npm/cli/issues/3313)
63+
Drop stale Python 3<->node-gyp remark
64+
([@spencerwilson](https://github.com/spencerwilson))
65+
66+
### DEPENDENCIES
67+
68+
* [`7b56bfdf3`](https://github.com/npm/cli/commit/7b56bfdf3f2ac67a926fc7893b883a16b46eb3fd)
69+
70+
* feat: allow fully deleting indices
71+
* feat: add a validateEntry option to compact
72+
* chore: lint
73+
* chore: use standard npm style release scripts
74+
* [`dbbc151a3`](https://github.com/npm/cli/commit/dbbc151a3bcf89e2627dc267063edd185ead1cb8)
75+
76+
* fix(exit-code): account for null auditLevel default (#46)
77+
* [`5b2604507`](https://github.com/npm/cli/commit/5b26045076477d3d350f539e60adf48a80376fda)
78+
chore(package-lock): update devDependencies
79+
([@Gar](https://github.com/Gar))
80+
81+
### AUTOMATION
82+
83+
* [`3d5df0082`](https://github.com/npm/cli/commit/3d5df0082ae904dacdea8644286e8362d4a2ed50)
84+
[#3294](https://github.com/npm/cli/issues/3294)
85+
chore(ci): move node release PR workflow to cli repo
86+
([@gimli01](https://github.com/gimli01))
87+
188
## v7.14.0 (2021-05-20)
289

390
### FEATURES

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

+42
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,16 @@ relevant metadata by running `npm install <dep> --package-lock-only`.
9999
If you _want_ to save the `file:` reference in your `package.json` and
100100
`package-lock.json` files, you can use `npm link <dep> --save` to do so.
101101

102+
### Workspace Usage
103+
104+
`npm link <pkg> --workspace <name>` will link the relevant package as a
105+
dependency of the specified workspace(s). Note that It may actually be
106+
linked into the parent project's `node_modules` folder, if there are no
107+
conflicting dependencies.
108+
109+
`npm link --workspace <name>` will create a global link to the specified
110+
workspace(s).
111+
102112
### Configuration
103113

104114
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
@@ -261,6 +271,38 @@ commands that modify your local installation, eg, `install`, `update`,
261271
Note: This is NOT honored by other network related commands, eg `dist-tags`,
262272
`owner`, etc.
263273

274+
#### `workspace`
275+
276+
* Default:
277+
* Type: String (can be set multiple times)
278+
279+
Enable running a command in the context of the configured workspaces of the
280+
current project while filtering by running only the workspaces defined by
281+
this configuration option.
282+
283+
Valid values for the `workspace` config are either:
284+
285+
* Workspace names
286+
* Path to a workspace directory
287+
* Path to a parent workspace directory (will result to selecting all of the
288+
nested workspaces)
289+
290+
When set for the `npm init` command, this may be set to the folder of a
291+
workspace which does not yet exist, to create the folder and set it up as a
292+
brand new workspace within the project.
293+
294+
This value is not exported to the environment for child processes.
295+
296+
#### `workspaces`
297+
298+
* Default: false
299+
* Type: Boolean
300+
301+
Enable running a command in the context of **all** the configured
302+
workspaces.
303+
304+
This value is not exported to the environment for child processes.
305+
264306
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
265307

266308
### See Also

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

+9
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ commands that modify your local installation, eg, `install`, `update`,
2727
Note: This is NOT honored by other network related commands, eg `dist-tags`,
2828
`owner`, etc.
2929

30+
#### `json`
31+
32+
* Default: false
33+
* Type: Boolean
34+
35+
Whether or not to output JSON data, rather than the normal output.
36+
37+
Not supported by all npm commands.
38+
3039
#### `workspace`
3140

3241
* Default:

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

+2-4
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,8 @@ requires compiling of C++ Code, npm will use
6262
[node-gyp](https://github.com/nodejs/node-gyp) for that task.
6363
For a Unix system, [node-gyp](https://github.com/nodejs/node-gyp)
6464
needs Python, make and a buildchain like GCC. On Windows,
65-
Python and Microsoft Visual Studio C++ are needed. Python 3 is
66-
not supported by [node-gyp](https://github.com/nodejs/node-gyp).
67-
For more information visit
68-
[the node-gyp repository](https://github.com/nodejs/node-gyp) and
65+
Python and Microsoft Visual Studio C++ are needed. For more information
66+
visit [the node-gyp repository](https://github.com/nodejs/node-gyp) and
6967
the [node-gyp Wiki](https://github.com/nodejs/node-gyp/wiki).
7068

7169
### Directories

deps/npm/docs/content/configuring-npm/package-lock-json.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ various purposes:
3636
Both of these files have the same format, and perform similar functions in
3737
the root of a project.
3838

39-
The difference is that `package-lock.json` is that it cannot be published,
40-
and it will be ignored if found in any place other than the root project.
39+
The difference is that `package-lock.json` cannot be published, and it will
40+
be ignored if found in any place other than the root project.
4141

4242
In contrast, [npm-shrinkwrap.json](/configuring-npm/npm-shrinkwrap-json) allows
4343
publication, and defines the dependency tree from the point encountered.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ For example, if your package.json contains this:
304304
{
305305
"scripts" : {
306306
"install" : "scripts/install.js",
307-
"postinstall" : "scripts/postinstall.js",
307+
"postinstall" : "scripts/install.js",
308308
"uninstall" : "scripts/uninstall.js"
309309
}
310310
}

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

+35-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ <h1 id="npm-link">npm-link</h1>
141141

142142
<section id="table_of_contents">
143143
<h2 id="table-of-contents">Table of contents</h2>
144-
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#caveat">Caveat</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#save"><code>save</code></a></li><li><a href="#save-exact"><code>save-exact</code></a></li><li><a href="#global"><code>global</code></a></li><li><a href="#global-style"><code>global-style</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#strict-peer-deps"><code>strict-peer-deps</code></a></li><li><a href="#package-lock"><code>package-lock</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#audit"><code>audit</code></a></li><li><a href="#bin-links"><code>bin-links</code></a></li><li><a href="#fund"><code>fund</code></a></li><li><a href="#dry-run"><code>dry-run</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
144+
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#caveat">Caveat</a></li><li><a href="#workspace-usage">Workspace Usage</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#save"><code>save</code></a></li><li><a href="#save-exact"><code>save-exact</code></a></li><li><a href="#global"><code>global</code></a></li><li><a href="#global-style"><code>global-style</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#strict-peer-deps"><code>strict-peer-deps</code></a></li><li><a href="#package-lock"><code>package-lock</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#audit"><code>audit</code></a></li><li><a href="#bin-links"><code>bin-links</code></a></li><li><a href="#fund"><code>fund</code></a></li><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
145145
</section>
146146

147147
<div id="_content"><h3 id="synopsis">Synopsis</h3>
@@ -209,6 +209,13 @@ <h3 id="caveat">Caveat</h3>
209209
relevant metadata by running <code>npm install &lt;dep&gt; --package-lock-only</code>.</p>
210210
<p>If you <em>want</em> to save the <code>file:</code> reference in your <code>package.json</code> and
211211
<code>package-lock.json</code> files, you can use <code>npm link &lt;dep&gt; --save</code> to do so.</p>
212+
<h3 id="workspace-usage">Workspace Usage</h3>
213+
<p><code>npm link &lt;pkg&gt; --workspace &lt;name&gt;</code> will link the relevant package as a
214+
dependency of the specified workspace(s). Note that It may actually be
215+
linked into the parent project’s <code>node_modules</code> folder, if there are no
216+
conflicting dependencies.</p>
217+
<p><code>npm link --workspace &lt;name&gt;</code> will create a global link to the specified
218+
workspace(s).</p>
212219
<h3 id="configuration">Configuration</h3>
213220
<!-- raw HTML omitted -->
214221
<!-- raw HTML omitted -->
@@ -347,6 +354,33 @@ <h4 id="dry-run"><code>dry-run</code></h4>
347354
<code>dedupe</code>, <code>uninstall</code>, as well as <code>pack</code> and <code>publish</code>.</p>
348355
<p>Note: This is NOT honored by other network related commands, eg <code>dist-tags</code>,
349356
<code>owner</code>, etc.</p>
357+
<h4 id="workspace"><code>workspace</code></h4>
358+
<ul>
359+
<li>Default:</li>
360+
<li>Type: String (can be set multiple times)</li>
361+
</ul>
362+
<p>Enable running a command in the context of the configured workspaces of the
363+
current project while filtering by running only the workspaces defined by
364+
this configuration option.</p>
365+
<p>Valid values for the <code>workspace</code> config are either:</p>
366+
<ul>
367+
<li>Workspace names</li>
368+
<li>Path to a workspace directory</li>
369+
<li>Path to a parent workspace directory (will result to selecting all of the
370+
nested workspaces)</li>
371+
</ul>
372+
<p>When set for the <code>npm init</code> command, this may be set to the folder of a
373+
workspace which does not yet exist, to create the folder and set it up as a
374+
brand new workspace within the project.</p>
375+
<p>This value is not exported to the environment for child processes.</p>
376+
<h4 id="workspaces"><code>workspaces</code></h4>
377+
<ul>
378+
<li>Default: false</li>
379+
<li>Type: Boolean</li>
380+
</ul>
381+
<p>Enable running a command in the context of <strong>all</strong> the configured
382+
workspaces.</p>
383+
<p>This value is not exported to the environment for child processes.</p>
350384
<!-- raw HTML omitted -->
351385
<h3 id="see-also">See Also</h3>
352386
<ul>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ <h3 id="description">Description</h3>
159159
the results to only the paths to the packages named. Note that nested
160160
packages will <em>also</em> show the paths to the specified packages. For
161161
example, running <code>npm ls promzard</code> in npm’s source tree will show:</p>
162-
<pre lang="bash"><code>npm@7.14.0 /path/to/npm
162+
<pre lang="bash"><code>npm@7.15.1 /path/to/npm
163163
164164
165165
</code></pre>

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

+8-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ <h1 id="npm-pack">npm-pack</h1>
141141

142142
<section id="table_of_contents">
143143
<h2 id="table-of-contents">Table of contents</h2>
144-
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li></ul><li><a href="#description">Description</a></li><li><a href="#see-also">See Also</a></li></ul></div>
144+
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#json"><code>json</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li></ul><li><a href="#description">Description</a></li><li><a href="#see-also">See Also</a></li></ul></div>
145145
</section>
146146

147147
<div id="_content"><h3 id="synopsis">Synopsis</h3>
@@ -161,6 +161,13 @@ <h4 id="dry-run"><code>dry-run</code></h4>
161161
<code>dedupe</code>, <code>uninstall</code>, as well as <code>pack</code> and <code>publish</code>.</p>
162162
<p>Note: This is NOT honored by other network related commands, eg <code>dist-tags</code>,
163163
<code>owner</code>, etc.</p>
164+
<h4 id="json"><code>json</code></h4>
165+
<ul>
166+
<li>Default: false</li>
167+
<li>Type: Boolean</li>
168+
</ul>
169+
<p>Whether or not to output JSON data, rather than the normal output.</p>
170+
<p>Not supported by all npm commands.</p>
164171
<h4 id="workspace"><code>workspace</code></h4>
165172
<ul>
166173
<li>Default:</li>

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

+3-5
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.14.0</p>
151+
<p>7.15.1</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
@@ -183,10 +183,8 @@ <h3 id="dependencies">Dependencies</h3>
183183
<a href="https://github.com/nodejs/node-gyp">node-gyp</a> for that task.
184184
For a Unix system, <a href="https://github.com/nodejs/node-gyp">node-gyp</a>
185185
needs Python, make and a buildchain like GCC. On Windows,
186-
Python and Microsoft Visual Studio C++ are needed. Python 3 is
187-
not supported by <a href="https://github.com/nodejs/node-gyp">node-gyp</a>.
188-
For more information visit
189-
<a href="https://github.com/nodejs/node-gyp">the node-gyp repository</a> and
186+
Python and Microsoft Visual Studio C++ are needed. For more information
187+
visit <a href="https://github.com/nodejs/node-gyp">the node-gyp repository</a> and
190188
the <a href="https://github.com/nodejs/node-gyp/wiki">node-gyp Wiki</a>.</p>
191189
<h3 id="directories">Directories</h3>
192190
<p>See <a href="../configuring-npm/folders.html"><code>folders</code></a> to learn about where npm puts

deps/npm/docs/output/configuring-npm/package-lock-json.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ <h2 id="table-of-contents">Table of contents</h2>
178178
<h3 id="package-lockjson-vs-npm-shrinkwrapjson"><code>package-lock.json</code> vs <code>npm-shrinkwrap.json</code></h3>
179179
<p>Both of these files have the same format, and perform similar functions in
180180
the root of a project.</p>
181-
<p>The difference is that <code>package-lock.json</code> is that it cannot be published,
182-
and it will be ignored if found in any place other than the root project.</p>
181+
<p>The difference is that <code>package-lock.json</code> cannot be published, and it will
182+
be ignored if found in any place other than the root project.</p>
183183
<p>In contrast, <a href="../configuring-npm/npm-shrinkwrap-json.html">npm-shrinkwrap.json</a> allows
184184
publication, and defines the dependency tree from the point encountered.
185185
This is not recommended unless deploying a CLI tool or otherwise using the

deps/npm/docs/output/using-npm/scripts.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ <h3 id="examples">Examples</h3>
406406
<pre lang="json"><code>{
407407
"scripts" : {
408408
"install" : "scripts/install.js",
409-
"postinstall" : "scripts/postinstall.js",
409+
"postinstall" : "scripts/install.js",
410410
"uninstall" : "scripts/uninstall.js"
411411
}
412412
}

deps/npm/lib/base-command.js

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ class BaseCommand {
77
this.wrapWidth = 80
88
this.npm = npm
99
this.workspaces = null
10+
this.workspacePaths = null
1011
}
1112

1213
get name () {

deps/npm/lib/diff.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const npmlog = require('npmlog')
88
const pacote = require('pacote')
99
const pickManifest = require('npm-pick-manifest')
1010

11-
const readLocalPkg = require('./utils/read-local-package.js')
11+
const readPackageName = require('./utils/read-package-name.js')
1212
const BaseCommand = require('./base-command.js')
1313

1414
class Diff extends BaseCommand {
@@ -97,7 +97,7 @@ class Diff extends BaseCommand {
9797
let noPackageJson
9898
let pkgName
9999
try {
100-
pkgName = await readLocalPkg(this.npm)
100+
pkgName = await readPackageName(this.npm.prefix)
101101
} catch (e) {
102102
npmlog.verbose('diff', 'could not read project dir package.json')
103103
noPackageJson = true
@@ -120,7 +120,7 @@ class Diff extends BaseCommand {
120120
let noPackageJson
121121
let pkgName
122122
try {
123-
pkgName = await readLocalPkg(this.npm)
123+
pkgName = await readPackageName(this.npm.prefix)
124124
} catch (e) {
125125
npmlog.verbose('diff', 'could not read project dir package.json')
126126
noPackageJson = true
@@ -238,7 +238,7 @@ class Diff extends BaseCommand {
238238
if (semverA && semverB) {
239239
let pkgName
240240
try {
241-
pkgName = await readLocalPkg(this.npm)
241+
pkgName = await readPackageName(this.npm.prefix)
242242
} catch (e) {
243243
npmlog.verbose('diff', 'could not read project dir package.json')
244244
}

0 commit comments

Comments
 (0)