Skip to content

Commit 1c9ec25

Browse files
ruyadornodanielleadams
authored andcommitted
deps: upgrade npm to 7.4.0
PR-URL: #36829 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent c23cca2 commit 1c9ec25

File tree

129 files changed

+600
-889
lines changed

Some content is hidden

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

129 files changed

+600
-889
lines changed

deps/npm/AUTHORS

+5
Original file line numberDiff line numberDiff line change
@@ -741,3 +741,8 @@ Daniel Fischer <[email protected]>
741741
Yash-Singh1 <[email protected]>
742742
743743
Tieg Zaharia <[email protected]>
744+
745+
746+
747+
Jeff Griffiths <[email protected]>
748+
Michael Garvin <[email protected]>

deps/npm/CHANGELOG.md

+46
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,49 @@
1+
## v7.4.0 (2021-01-07)
2+
3+
### FEATURES
4+
5+
* [`47ed2dfd8`](https://github.com/npm/cli/commit/47ed2dfd865566643bc1d39e8a4f98d2e1add99a)
6+
[#2456](https://github.com/npm/cli/issues/2456) add
7+
`--foreground-scripts` option ([@isaacs](https://github.com/isaacs))
8+
9+
### BUG FIXES
10+
11+
* [`d01746a5a`](https://github.com/npm/cli/commit/d01746a5a6dde115ee6a600cdf54c9b35afcab3f)
12+
[#2444](https://github.com/npm/cli/issues/2444)
13+
[#1103](https://github.com/npm/cli/issues/1103) Remove deprecated
14+
`process.umask()` ([@isaacs](https://github.com/isaacs))
15+
* [`b2e2edf8a`](https://github.com/npm/cli/commit/b2e2edf8aee57347c96a61209c7a10139a0cc85a)
16+
[#2422](https://github.com/npm/cli/issues/2422) npm publish --dry-run
17+
should not check login status ([@buyan302](https://github.com/buyan302))
18+
* [`99156df80`](https://github.com/npm/cli/commit/99156df8099f55bc69dfa99d7ddcf8d1d569016e)
19+
[#2448](https://github.com/npm/cli/issues/2448)
20+
[#2425](https://github.com/npm/cli/issues/2425) pass extra arguments
21+
directly to run-script as an array ([@nlf](https://github.com/nlf))
22+
* [`907b34b2e`](https://github.com/npm/cli/commit/907b34b2ecc34ac376d989f824f7492064e43ef4)
23+
[#2455](https://github.com/npm/cli/issues/2455) fix(ci): pay attention to
24+
--ignore-scripts ([@wraithgar](https://github.com/wraithgar))
25+
26+
### DEPENDENCIES
27+
28+
* [`7a49fd4af`](https://github.com/npm/cli/commit/7a49fd4afc8cd24db40aee008031ea648583d0bc)
29+
30+
* [`54a7bd16c`](https://github.com/npm/cli/commit/54a7bd16c130525ade71ec9894af71c2825d8584)
31+
32+
33+
### DOCUMENTATION
34+
35+
* [`a390d7456`](https://github.com/npm/cli/commit/a390d74561b72f0b13cba65844ce60c379198087)
36+
[#2440](https://github.com/npm/cli/issues/2440) Updated the url for RFC
37+
19 so that it isn't a 404.
38+
([@therealjeffg](https://github.com/therealjeffg))
39+
* [`e02b46ad7`](https://github.com/npm/cli/commit/e02b46ad7acdeb9fbb63f782e546c2f8db94ae6e)
40+
[#2436](https://github.com/npm/cli/issues/2436) Grammatical Fix in npm-ls
41+
Documentation 'Therefore' is spelled 'Therefor'
42+
([@marsonya](https://github.com/marsonya))
43+
* [`0fed44dea`](https://github.com/npm/cli/commit/0fed44dea12f125b639b5e3575adcea74a86d3a0)
44+
[#2417](https://github.com/npm/cli/issues/2417) Fix npm bug reporting url
45+
([@AkiaCode](https://github.com/AkiaCode))
46+
147
## 7.3.0 (2020-12-18)
248

349
### FEATURES

deps/npm/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ you should [read this](https://docs.npmjs.com/misc/developers).
150150
When you find issues, please report them:
151151

152152
* web:
153-
<https://github.com/npm/npm/issues>
153+
<https://github.com/npm/cli/issues>
154154
* archived web:
155155
<https://npm.community/c/bugs>
156156

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ this gets even more curious, as `peerDependencies` are logically
6262
physically at or above their location on disk.
6363

6464
Also, in the years since npm got an `ls` command (in version 0.0.2!),
65-
dependency graphs have gotten much larger as a general rule. Therefor, in
65+
dependency graphs have gotten much larger as a general rule. Therefore, in
6666
order to avoid dumping an excessive amount of content to the terminal, `npm
6767
ls` now only shows the _top_ level dependencies, unless `--all` is
6868
provided.

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

+12
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,18 @@ mistakes, unnecessary performance degradation, and malicious input.
419419
If you don't have a clear idea of what you want to do, it is strongly
420420
recommended that you do not use this option!
421421

422+
#### foreground-scripts
423+
424+
* Default: false
425+
* Type: Boolean
426+
427+
Run all build scripts (ie, `preinstall`, `install`, and `postinstall`)
428+
scripts for installed packages in the foreground process, sharing standard
429+
input, output, and error with the main npm process.
430+
431+
Note that this will generally make installs run slower, and be much
432+
noisier, but can be useful for debugging.
433+
422434
#### format-package-lock
423435

424436
* Default: true

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

+2-2
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.3.0 /path/to/npm
162+
<pre lang="bash"><code>npm@7.4.0 /path/to/npm
163163
164164
165165
</code></pre>
@@ -185,7 +185,7 @@ <h3 id="note-design-changes-pending">Note: Design Changes Pending</h3>
185185
“underneath” their dependents in the dependency graph, but are always
186186
physically at or above their location on disk.</p>
187187
<p>Also, in the years since npm got an <code>ls</code> command (in version 0.0.2!),
188-
dependency graphs have gotten much larger as a general rule. Therefor, in
188+
dependency graphs have gotten much larger as a general rule. Therefore, in
189189
order to avoid dumping an excessive amount of content to the terminal, <code>npm ls</code> now only shows the <em>top</em> level dependencies, unless <code>--all</code> is
190190
provided.</p>
191191
<p>A thorough re-examination of the use cases, intention, behavior, and output

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

+1-1
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.3.0</p>
151+
<p>7.4.0</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/using-npm/config.html

+11-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ <h1 id="config">config</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="#description">Description</a></li><ul><li><a href="#command-line-flags">Command Line Flags</a></li><li><a href="#environment-variables">Environment Variables</a></li><li><a href="#npmrc-files">npmrc Files</a></li><li><a href="#default-configs">Default Configs</a></li></ul><li><a href="#shorthands-and-other-cli-niceties">Shorthands and Other CLI Niceties</a></li><li><a href="#config-settings">Config Settings</a></li><ul><li><a href="#access">access</a></li><li><a href="#all">all</a></li><li><a href="#allow-same-version">allow-same-version</a></li><li><a href="#always-auth">always-auth</a></li><li><a href="#also">also</a></li><li><a href="#audit">audit</a></li><li><a href="#audit-level">audit-level</a></li><li><a href="#auth-type">auth-type</a></li><li><a href="#before">before</a></li><li><a href="#bin-links">bin-links</a></li><li><a href="#browser">browser</a></li><li><a href="#ca">ca</a></li><li><a href="#cafile">cafile</a></li><li><a href="#cache">cache</a></li><li><a href="#cache-lock-stale">cache-lock-stale</a></li><li><a href="#cache-lock-retries">cache-lock-retries</a></li><li><a href="#cache-lock-wait">cache-lock-wait</a></li><li><a href="#cache-max">cache-max</a></li><li><a href="#cache-min">cache-min</a></li><li><a href="#call">call</a></li><li><a href="#cert">cert</a></li><li><a href="#cidr">cidr</a></li><li><a href="#commit-hooks">commit-hooks</a></li><li><a href="#color">color</a></li><li><a href="#depth">depth</a></li><li><a href="#description2">description</a></li><li><a href="#dev">dev</a></li><li><a href="#dry-run">dry-run</a></li><li><a href="#editor">editor</a></li><li><a href="#engine-strict">engine-strict</a></li><li><a href="#force">force</a></li><li><a href="#format-package-lock">format-package-lock</a></li><li><a href="#fund">fund</a></li><li><a href="#fetch-retries">fetch-retries</a></li><li><a href="#fetch-retry-factor">fetch-retry-factor</a></li><li><a href="#fetch-retry-mintimeout">fetch-retry-mintimeout</a></li><li><a href="#fetch-retry-maxtimeout">fetch-retry-maxtimeout</a></li><li><a href="#fetch-timeout">fetch-timeout</a></li><li><a href="#git">git</a></li><li><a href="#git-tag-version">git-tag-version</a></li><li><a href="#global">global</a></li><li><a href="#globalconfig">globalconfig</a></li><li><a href="#global-style">global-style</a></li><li><a href="#heading">heading</a></li><li><a href="#https-proxy">https-proxy</a></li><li><a href="#if-present">if-present</a></li><li><a href="#ignore-prepublish">ignore-prepublish</a></li><li><a href="#ignore-scripts">ignore-scripts</a></li><li><a href="#include">include</a></li><li><a href="#init-module">init-module</a></li><li><a href="#init-author-name">init-author-name</a></li><li><a href="#init-author-email">init-author-email</a></li><li><a href="#init-author-url">init-author-url</a></li><li><a href="#init-license">init-license</a></li><li><a href="#init-version">init-version</a></li><li><a href="#json">json</a></li><li><a href="#key">key</a></li><li><a href="#legacy-bundling">legacy-bundling</a></li><li><a href="#legacy-peer-deps">legacy-peer-deps</a></li><li><a href="#link">link</a></li><li><a href="#local-address">local-address</a></li><li><a href="#loglevel">loglevel</a></li><li><a href="#logs-max">logs-max</a></li><li><a href="#long">long</a></li><li><a href="#maxsockets">maxsockets</a></li><li><a href="#message">message</a></li><li><a href="#node-options">node-options</a></li><li><a href="#node-version">node-version</a></li><li><a href="#noproxy">noproxy</a></li><li><a href="#offline">offline</a></li><li><a href="#only">only</a></li><li><a href="#optional">optional</a></li><li><a href="#otp">otp</a></li><li><a href="#package-lock">package-lock</a></li><li><a href="#package-lock-only">package-lock-only</a></li><li><a href="#parseable">parseable</a></li><li><a href="#prefer-offline">prefer-offline</a></li><li><a href="#prefer-online">prefer-online</a></li><li><a href="#prefix">prefix</a></li><li><a href="#preid">preid</a></li><li><a href="#production">production</a></li><li><a href="#progress">progress</a></li><li><a href="#proxy">proxy</a></li><li><a href="#read-only">read-only</a></li><li><a href="#rebuild-bundle">rebuild-bundle</a></li><li><a href="#registry">registry</a></li><li><a href="#rollback">rollback</a></li><li><a href="#save">save</a></li><li><a href="#save-bundle">save-bundle</a></li><li><a href="#save-prod">save-prod</a></li><li><a href="#save-dev">save-dev</a></li><li><a href="#save-exact">save-exact</a></li><li><a href="#save-optional">save-optional</a></li><li><a href="#save-prefix">save-prefix</a></li><li><a href="#scope">scope</a></li><li><a href="#script-shell">script-shell</a></li><li><a href="#scripts-prepend-node-path">scripts-prepend-node-path</a></li><li><a href="#searchexclude">searchexclude</a></li><li><a href="#searchopts">searchopts</a></li><li><a href="#searchlimit">searchlimit</a></li><li><a href="#searchstaleness">searchstaleness</a></li><li><a href="#shell">shell</a></li><li><a href="#shrinkwrap">shrinkwrap</a></li><li><a href="#sign-git-commit">sign-git-commit</a></li><li><a href="#sign-git-tag">sign-git-tag</a></li><li><a href="#sso-poll-frequency">sso-poll-frequency</a></li><li><a href="#sso-type">sso-type</a></li><li><a href="#strict-peer-deps">strict-peer-deps</a></li><li><a href="#strict-ssl">strict-ssl</a></li><li><a href="#tag">tag</a></li><li><a href="#tag-version-prefix">tag-version-prefix</a></li><li><a href="#timing">timing</a></li><li><a href="#tmp">tmp</a></li><li><a href="#unicode">unicode</a></li><li><a href="#update-notifier">update-notifier</a></li><li><a href="#usage">usage</a></li><li><a href="#userconfig">userconfig</a></li><li><a href="#umask">umask</a></li><li><a href="#user-agent">user-agent</a></li><li><a href="#version">version</a></li><li><a href="#versions">versions</a></li><li><a href="#viewer">viewer</a></li></ul><li><a href="#see-also">See also</a></li></ul></div>
144+
<div id="_table_of_contents"><ul><li><a href="#description">Description</a></li><ul><li><a href="#command-line-flags">Command Line Flags</a></li><li><a href="#environment-variables">Environment Variables</a></li><li><a href="#npmrc-files">npmrc Files</a></li><li><a href="#default-configs">Default Configs</a></li></ul><li><a href="#shorthands-and-other-cli-niceties">Shorthands and Other CLI Niceties</a></li><li><a href="#config-settings">Config Settings</a></li><ul><li><a href="#access">access</a></li><li><a href="#all">all</a></li><li><a href="#allow-same-version">allow-same-version</a></li><li><a href="#always-auth">always-auth</a></li><li><a href="#also">also</a></li><li><a href="#audit">audit</a></li><li><a href="#audit-level">audit-level</a></li><li><a href="#auth-type">auth-type</a></li><li><a href="#before">before</a></li><li><a href="#bin-links">bin-links</a></li><li><a href="#browser">browser</a></li><li><a href="#ca">ca</a></li><li><a href="#cafile">cafile</a></li><li><a href="#cache">cache</a></li><li><a href="#cache-lock-stale">cache-lock-stale</a></li><li><a href="#cache-lock-retries">cache-lock-retries</a></li><li><a href="#cache-lock-wait">cache-lock-wait</a></li><li><a href="#cache-max">cache-max</a></li><li><a href="#cache-min">cache-min</a></li><li><a href="#call">call</a></li><li><a href="#cert">cert</a></li><li><a href="#cidr">cidr</a></li><li><a href="#commit-hooks">commit-hooks</a></li><li><a href="#color">color</a></li><li><a href="#depth">depth</a></li><li><a href="#description2">description</a></li><li><a href="#dev">dev</a></li><li><a href="#dry-run">dry-run</a></li><li><a href="#editor">editor</a></li><li><a href="#engine-strict">engine-strict</a></li><li><a href="#force">force</a></li><li><a href="#foreground-scripts">foreground-scripts</a></li><li><a href="#format-package-lock">format-package-lock</a></li><li><a href="#fund">fund</a></li><li><a href="#fetch-retries">fetch-retries</a></li><li><a href="#fetch-retry-factor">fetch-retry-factor</a></li><li><a href="#fetch-retry-mintimeout">fetch-retry-mintimeout</a></li><li><a href="#fetch-retry-maxtimeout">fetch-retry-maxtimeout</a></li><li><a href="#fetch-timeout">fetch-timeout</a></li><li><a href="#git">git</a></li><li><a href="#git-tag-version">git-tag-version</a></li><li><a href="#global">global</a></li><li><a href="#globalconfig">globalconfig</a></li><li><a href="#global-style">global-style</a></li><li><a href="#heading">heading</a></li><li><a href="#https-proxy">https-proxy</a></li><li><a href="#if-present">if-present</a></li><li><a href="#ignore-prepublish">ignore-prepublish</a></li><li><a href="#ignore-scripts">ignore-scripts</a></li><li><a href="#include">include</a></li><li><a href="#init-module">init-module</a></li><li><a href="#init-author-name">init-author-name</a></li><li><a href="#init-author-email">init-author-email</a></li><li><a href="#init-author-url">init-author-url</a></li><li><a href="#init-license">init-license</a></li><li><a href="#init-version">init-version</a></li><li><a href="#json">json</a></li><li><a href="#key">key</a></li><li><a href="#legacy-bundling">legacy-bundling</a></li><li><a href="#legacy-peer-deps">legacy-peer-deps</a></li><li><a href="#link">link</a></li><li><a href="#local-address">local-address</a></li><li><a href="#loglevel">loglevel</a></li><li><a href="#logs-max">logs-max</a></li><li><a href="#long">long</a></li><li><a href="#maxsockets">maxsockets</a></li><li><a href="#message">message</a></li><li><a href="#node-options">node-options</a></li><li><a href="#node-version">node-version</a></li><li><a href="#noproxy">noproxy</a></li><li><a href="#offline">offline</a></li><li><a href="#only">only</a></li><li><a href="#optional">optional</a></li><li><a href="#otp">otp</a></li><li><a href="#package-lock">package-lock</a></li><li><a href="#package-lock-only">package-lock-only</a></li><li><a href="#parseable">parseable</a></li><li><a href="#prefer-offline">prefer-offline</a></li><li><a href="#prefer-online">prefer-online</a></li><li><a href="#prefix">prefix</a></li><li><a href="#preid">preid</a></li><li><a href="#production">production</a></li><li><a href="#progress">progress</a></li><li><a href="#proxy">proxy</a></li><li><a href="#read-only">read-only</a></li><li><a href="#rebuild-bundle">rebuild-bundle</a></li><li><a href="#registry">registry</a></li><li><a href="#rollback">rollback</a></li><li><a href="#save">save</a></li><li><a href="#save-bundle">save-bundle</a></li><li><a href="#save-prod">save-prod</a></li><li><a href="#save-dev">save-dev</a></li><li><a href="#save-exact">save-exact</a></li><li><a href="#save-optional">save-optional</a></li><li><a href="#save-prefix">save-prefix</a></li><li><a href="#scope">scope</a></li><li><a href="#script-shell">script-shell</a></li><li><a href="#scripts-prepend-node-path">scripts-prepend-node-path</a></li><li><a href="#searchexclude">searchexclude</a></li><li><a href="#searchopts">searchopts</a></li><li><a href="#searchlimit">searchlimit</a></li><li><a href="#searchstaleness">searchstaleness</a></li><li><a href="#shell">shell</a></li><li><a href="#shrinkwrap">shrinkwrap</a></li><li><a href="#sign-git-commit">sign-git-commit</a></li><li><a href="#sign-git-tag">sign-git-tag</a></li><li><a href="#sso-poll-frequency">sso-poll-frequency</a></li><li><a href="#sso-type">sso-type</a></li><li><a href="#strict-peer-deps">strict-peer-deps</a></li><li><a href="#strict-ssl">strict-ssl</a></li><li><a href="#tag">tag</a></li><li><a href="#tag-version-prefix">tag-version-prefix</a></li><li><a href="#timing">timing</a></li><li><a href="#tmp">tmp</a></li><li><a href="#unicode">unicode</a></li><li><a href="#update-notifier">update-notifier</a></li><li><a href="#usage">usage</a></li><li><a href="#userconfig">userconfig</a></li><li><a href="#umask">umask</a></li><li><a href="#user-agent">user-agent</a></li><li><a href="#version">version</a></li><li><a href="#versions">versions</a></li><li><a href="#viewer">viewer</a></li></ul><li><a href="#see-also">See also</a></li></ul></div>
145145
</section>
146146

147147
<div id="_content"><h3 id="description">Description</h3>
@@ -488,6 +488,16 @@ <h4 id="force">force</h4>
488488
</ul>
489489
<p>If you don’t have a clear idea of what you want to do, it is strongly
490490
recommended that you do not use this option!</p>
491+
<h4 id="foreground-scripts">foreground-scripts</h4>
492+
<ul>
493+
<li>Default: false</li>
494+
<li>Type: Boolean</li>
495+
</ul>
496+
<p>Run all build scripts (ie, <code>preinstall</code>, <code>install</code>, and <code>postinstall</code>)
497+
scripts for installed packages in the foreground process, sharing standard
498+
input, output, and error with the main npm process.</p>
499+
<p>Note that this will generally make installs run slower, and be much
500+
noisier, but can be useful for debugging.</p>
491501
<h4 id="format-package-lock">format-package-lock</h4>
492502
<ul>
493503
<li>Default: true</li>

deps/npm/lib/ci.js

+21-19
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const ci = async () => {
2121
}
2222

2323
const where = npm.prefix
24-
const { scriptShell } = npm.flatOptions
24+
const { scriptShell, ignoreScripts } = npm.flatOptions
2525
const arb = new Arborist({ ...npm.flatOptions, path: where })
2626

2727
await Promise.all([
@@ -39,24 +39,26 @@ const ci = async () => {
3939
await arb.reify({ ...npm.flatOptions, save: false })
4040

4141
// run the same set of scripts that `npm install` runs.
42-
const scripts = [
43-
'preinstall',
44-
'install',
45-
'postinstall',
46-
'prepublish', // XXX should we remove this finally??
47-
'preprepare',
48-
'prepare',
49-
'postprepare',
50-
]
51-
for (const event of scripts) {
52-
await runScript({
53-
path: where,
54-
args: [],
55-
scriptShell,
56-
stdio: 'inherit',
57-
stdioString: true,
58-
event,
59-
})
42+
if (!ignoreScripts) {
43+
const scripts = [
44+
'preinstall',
45+
'install',
46+
'postinstall',
47+
'prepublish', // XXX should we remove this finally??
48+
'preprepare',
49+
'prepare',
50+
'postprepare',
51+
]
52+
for (const event of scripts) {
53+
await runScript({
54+
path: where,
55+
args: [],
56+
scriptShell,
57+
stdio: 'inherit',
58+
stdioString: true,
59+
event,
60+
})
61+
}
6062
}
6163
await reifyFinish(arb)
6264
}

0 commit comments

Comments
 (0)