Skip to content

Commit 649e04c

Browse files
committed
deps: upgrade npm to 7.7.4
PR-URL: #37897 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 3ab223d commit 649e04c

File tree

82 files changed

+1001
-2204
lines changed

Some content is hidden

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

82 files changed

+1001
-2204
lines changed

deps/npm/AUTHORS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,3 +765,5 @@ Jan Sepke <[email protected]>
765765
Augusto Moura <[email protected]>
766766
Eric Chow <[email protected]>
767767
kbayrhammer <[email protected]>
768+
James Chen-Smith <[email protected]>
769+
Yash Singh <[email protected]>

deps/npm/CHANGELOG.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,80 @@
1+
## v7.7.4 (2021-03-24)
2+
3+
### BUG FIXES
4+
5+
* [`200bee74b`](https://github.com/npm/cli/commit/200bee74b31a738687446b7b535cac67b1c582fd)
6+
[#2951](https://github.com/npm/cli/issues/2951)
7+
fix(config): accept explicit `production=false`
8+
([@wraithgar](https://github.com/wraithgar))
9+
* [`7b45e9df6`](https://github.com/npm/cli/commit/7b45e9df6102c7bd6e403d1fdc9939581c38f546)
10+
[#2950](https://github.com/npm/cli/issues/2950)
11+
warn if using workspaces config options in `npm config`
12+
([@ruyadorno](https://github.com/ruyadorno))
13+
14+
## v7.7.3 (2021-03-24)
15+
16+
### BUG FIXES
17+
18+
* [`c76f04ac2`](https://github.com/npm/cli/commit/c76f04ac28ddf2ae4df4b3ce0aec684a118de1b5)
19+
[#2925](https://github.com/npm/cli/issues/2925)
20+
fix(set-script): add completion
21+
([@Yash-Singh1](https://github.com/Yash-Singh1))
22+
* [`0379eab69`](https://github.com/npm/cli/commit/0379eab698b78ae4aa89bbe2043607f420e52f11)
23+
[#2929](https://github.com/npm/cli/issues/2929)
24+
fix(install): ignore auditLevel
25+
`npm install` should not be affected by the `auditLevel` config, as the
26+
results of audit do not change its exit status.
27+
([@wraithgar](https://github.com/wraithgar))
28+
* [`98efadeb4`](https://github.com/npm/cli/commit/98efadeb4b2ae9289f14ed6f42a169230faf7239)
29+
[#2923](https://github.com/npm/cli/issues/2923)
30+
fix(audit-level): add `info` audit level
31+
This is a valid level but wasn't configured to be allowed.
32+
Also added this param to the usage output for `npm audit`
33+
([@wraithgar](https://github.com/wraithgar))
34+
* [`e8d2adcf4`](https://github.com/npm/cli/commit/e8d2adcf40ad63030f844c9aa44c6d16e2146797)
35+
[#2945](https://github.com/npm/cli/issues/2945)
36+
config should not error when workspaces are configured
37+
([@nlf](https://github.com/nlf))
38+
* [`aba2bc623`](https://github.com/npm/cli/commit/aba2bc623ea99e563b1b15b81dbb4ba94f86fe4c)
39+
[#2944](https://github.com/npm/cli/issues/2944)
40+
fix(progress): re-add progress bar to reify
41+
The logger was no longer in flatOptions, we pass it in explicitly now
42+
([@wraithgar](https://github.com/wraithgar))
43+
* [`877b4ed29`](https://github.com/npm/cli/commit/877b4ed2925c97b5249a4d33575420dda64f7339)
44+
[#2946](https://github.com/npm/cli/issues/2946)
45+
fix(flatOptions): re-add `_auth`
46+
This was not being added to flatOptions, and things like
47+
`npm-registry-fetch` are looking for it.
48+
([@wraithgar](https://github.com/wraithgar))
49+
50+
## v7.7.2 (2021-03-24)
51+
52+
### BUG FIXES
53+
* [`a4df2b98d`](https://github.com/npm/cli/commit/a4df2b98d89429b19cd29b5fc895cdbfc0a6bd78)
54+
[#2942](https://github.com/npm/cli/issues/2942)
55+
Restore --dev flag, unify --omit flatteners
56+
([@isaacs](https://github.com/isaacs))
57+
58+
### DEPENDENCIES
59+
* [`2cbfaac0e`](https://github.com/npm/cli/commit/2cbfaac0ecd5810316f6d76168ed9618bd11bf3a)
60+
61+
* [#83](https://github.com/npm/hosted-git-info/pull/83) Do not parse
62+
urls for gitlab
63+
([@nlf](https://github.com/nlf))
64+
65+
## v7.7.1 (2021-03-24)
66+
67+
### BUG FIXES
68+
69+
* [`543b0e39b`](https://github.com/npm/cli/commit/543b0e39bcb94fc408804b01ca9c0d7b960b2681)
70+
[#2930](https://github.com/npm/cli/issues/2930)
71+
fix(uninstall): use correct local prefix
72+
([@jameschensmith](https://github.com/jameschensmith))
73+
* [`dce4960ef`](https://github.com/npm/cli/commit/dce4960ef6d52af128affe7755b2ca72de913b6c)
74+
[#2932](https://github.com/npm/cli/issues/2932)
75+
fix(config): flatten savePrefix properly
76+
([@wraithgar](https://github.com/wraithgar))
77+
178
## v7.7.0 (2021-03-23)
279

380
### FEATURES

deps/npm/docs/content/commands/npm-find-dupes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ duplications, without actually changing the package tree.
2121
* [npm ls](/cli-commands/ls)
2222
* [npm update](/cli-commands/update)
2323
* [npm install](/cli-commands/install)
24+

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ registry and all registries configured for scopes. See the documentation for
185185
#### `audit-level`
186186

187187
* Default: null
188-
* Type: "low", "moderate", "high", "critical", "none", or null
188+
* Type: "info", "low", "moderate", "high", "critical", "none", or null
189189

190190
The minimum level of vulnerability for `npm audit` to exit with a non-zero
191191
exit code.
@@ -1382,6 +1382,14 @@ What authentication strategy to use with `adduser`/`login`.
13821382

13831383
`--cache-min=9999 (or bigger)` is an alias for `--prefer-offline`.
13841384

1385+
#### `dev`
1386+
1387+
* Default: false
1388+
* Type: Boolean
1389+
* DEPRECATED: Please use --include=dev instead.
1390+
1391+
Alias for `--include=dev`.
1392+
13851393
#### `init.author.email`
13861394

13871395
* Default: ""
@@ -1451,8 +1459,8 @@ Alias for --include=optional or --omit=optional
14511459

14521460
#### `production`
14531461

1454-
* Default: false
1455-
* Type: Boolean
1462+
* Default: null
1463+
* Type: null or Boolean
14561464
* DEPRECATED: Use `--omit=dev` instead.
14571465

14581466
Alias for `--omit=dev`

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

Lines changed: 1 addition & 1 deletion
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>[email protected].0 /path/to/npm
162+
<pre lang="bash"><code>[email protected].4 /path/to/npm
163163
164164
165165
</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.7.0</p>
151+
<p>7.7.4</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

Lines changed: 11 additions & 4 deletions
Large diffs are not rendered by default.

deps/npm/lib/audit.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class Audit extends BaseCommand {
1818
/* istanbul ignore next - see test/lib/load-all-commands.js */
1919
static get params () {
2020
return [
21+
'audit-level',
2122
'dry-run',
2223
'force',
2324
'json',

deps/npm/lib/ci.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,14 @@ class CI extends BaseCommand {
4242
}
4343

4444
const where = this.npm.prefix
45-
const arb = new Arborist({ ...this.npm.flatOptions, path: where })
45+
const opts = {
46+
...this.npm.flatOptions,
47+
path: where,
48+
log: this.npm.log,
49+
save: false, // npm ci should never modify the lockfile or package.json
50+
}
4651

52+
const arb = new Arborist(opts)
4753
await Promise.all([
4854
arb.loadVirtual().catch(er => {
4955
log.verbose('loadVirtual', er.stack)
@@ -55,8 +61,7 @@ class CI extends BaseCommand {
5561
}),
5662
removeNodeModules(where),
5763
])
58-
// npm ci should never modify the lockfile or package.json
59-
await arb.reify({ ...this.npm.flatOptions, save: false })
64+
await arb.reify(opts)
6065

6166
const ignoreScripts = this.npm.config.get('ignore-scripts')
6267
// run the same set of scripts that `npm install` runs.

deps/npm/lib/config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ class Config extends BaseCommand {
8888
this.config(args).then(() => cb()).catch(cb)
8989
}
9090

91+
execWorkspaces (args, filters, cb) {
92+
this.npm.log.warn('config', 'This command does not support workspaces.')
93+
this.exec(args, cb)
94+
}
95+
9196
async config ([action, ...args]) {
9297
this.npm.log.disableProgress()
9398
try {

0 commit comments

Comments
 (0)