Skip to content

Commit b796d35

Browse files
npm-cli-botMoLow
authored andcommitted
deps: upgrade npm to 9.6.6
PR-URL: #47862 Reviewed-By: Debadree Chatterjee <debadree333@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luke Karrys <luke@lukekarrys.com>
1 parent 30b7133 commit b796d35

File tree

533 files changed

+18469
-5703
lines changed

Some content is hidden

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

533 files changed

+18469
-5703
lines changed

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

-34
Original file line numberDiff line numberDiff line change
@@ -72,40 +72,6 @@ cache:
7272

7373
### Configuration
7474

75-
#### `save`
76-
77-
* Default: `true` unless when using `npm update` where it defaults to `false`
78-
* Type: Boolean
79-
80-
Save installed packages to a `package.json` file as dependencies.
81-
82-
When used with the `npm rm` command, removes the dependency from
83-
`package.json`.
84-
85-
Will also prevent writing to `package-lock.json` if set to `false`.
86-
87-
#### `save-exact`
88-
89-
* Default: false
90-
* Type: Boolean
91-
92-
Dependencies saved to package.json will be configured with an exact version
93-
rather than using npm's default semver range operator.
94-
95-
#### `global`
96-
97-
* Default: false
98-
* Type: Boolean
99-
100-
Operates in "global" mode, so that packages are installed into the `prefix`
101-
folder instead of the current working directory. See
102-
[folders](/configuring-npm/folders) for more on the differences in behavior.
103-
104-
* packages are installed into the `{prefix}/lib/node_modules` folder, instead
105-
of the current working directory.
106-
* bin files are linked to `{prefix}/bin`
107-
* man pages are linked to `{prefix}/share/man`
108-
10975
#### `install-strategy`
11076

11177
* Default: "hoisted"

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ npm set key=value [key=value...]
4646
4747
Sets each of the config keys to the value provided.
4848
49-
If value is omitted, then it sets it to an empty string.
49+
If value is omitted, the key will be removed from your config file entirely.
5050
5151
Note: for backwards compatibility, `npm config set key value` is supported
5252
as an alias for `npm config set key=value`.

deps/npm/docs/content/commands/npm-install-ci-test.md

-34
Original file line numberDiff line numberDiff line change
@@ -18,40 +18,6 @@ This command runs `npm ci` followed immediately by `npm test`.
1818

1919
### Configuration
2020

21-
#### `save`
22-
23-
* Default: `true` unless when using `npm update` where it defaults to `false`
24-
* Type: Boolean
25-
26-
Save installed packages to a `package.json` file as dependencies.
27-
28-
When used with the `npm rm` command, removes the dependency from
29-
`package.json`.
30-
31-
Will also prevent writing to `package-lock.json` if set to `false`.
32-
33-
#### `save-exact`
34-
35-
* Default: false
36-
* Type: Boolean
37-
38-
Dependencies saved to package.json will be configured with an exact version
39-
rather than using npm's default semver range operator.
40-
41-
#### `global`
42-
43-
* Default: false
44-
* Type: Boolean
45-
46-
Operates in "global" mode, so that packages are installed into the `prefix`
47-
folder instead of the current working directory. See
48-
[folders](/configuring-npm/folders) for more on the differences in behavior.
49-
50-
* packages are installed into the `{prefix}/lib/node_modules` folder, instead
51-
of the current working directory.
52-
* bin files are linked to `{prefix}/bin`
53-
* man pages are linked to `{prefix}/share/man`
54-
5521
#### `install-strategy`
5622

5723
* Default: "hoisted"

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ packages will *also* show the paths to the specified packages. For
2727
example, running `npm ls promzard` in npm's source tree will show:
2828

2929
```bash
30-
npm@9.6.4 /path/to/npm
30+
npm@9.6.6 /path/to/npm
3131
└─┬ init-package-json@0.0.4
3232
└── promzard@0.1.5
3333
```

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ This value is not exported to the environment for child processes.
199199
* Default: false
200200
* Type: Boolean
201201

202-
Indicates that a provenance statement should be generated.
202+
When publishing from a supported cloud CI/CD system, the package will be
203+
publicly linked to where it was built and published from.
203204

204205
### See Also
205206

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Note: This command is unaware of workspaces.
1414

1515
### Version
1616

17-
9.6.4
17+
9.6.6
1818

1919
### Description
2020

deps/npm/docs/content/configuring-npm/folders.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Man pages are not installed on Windows systems.
7272
#### Cache
7373

7474
See [`npm cache`](/commands/npm-cache). Cache files are stored in `~/.npm` on Posix, or
75-
`%AppData%/npm-cache` on Windows.
75+
`%LocalAppData%/npm-cache` on Windows.
7676

7777
This is controlled by the [`cache` config](/using-npm/config#cache) param.
7878

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,8 @@ Set to `false` to suppress the progress bar.
10101010
* Default: false
10111011
* Type: Boolean
10121012

1013-
Indicates that a provenance statement should be generated.
1013+
When publishing from a supported cloud CI/CD system, the package will be
1014+
publicly linked to where it was built and published from.
10141015

10151016
#### `proxy`
10161017

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

+1-31
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ <h1 id="npm-ci">npm-ci</h1>
142142

143143
<section id="table_of_contents">
144144
<h2 id="table-of-contents">Table of contents</h2>
145-
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#example">Example</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="#install-strategy"><code>install-strategy</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#global-style"><code>global-style</code></a></li><li><a href="#omit"><code>omit</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="#foreground-scripts"><code>foreground-scripts</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><li><a href="#include-workspace-root"><code>include-workspace-root</code></a></li><li><a href="#install-links"><code>install-links</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
145+
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#example">Example</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#install-strategy"><code>install-strategy</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#global-style"><code>global-style</code></a></li><li><a href="#omit"><code>omit</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="#foreground-scripts"><code>foreground-scripts</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><li><a href="#include-workspace-root"><code>include-workspace-root</code></a></li><li><a href="#install-links"><code>install-links</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
146146
</section>
147147

148148
<div id="_content"><h3 id="synopsis">Synopsis</h3>
@@ -196,36 +196,6 @@ <h3 id="example">Example</h3>
196196
- "$HOME/.npm"
197197
</code></pre>
198198
<h3 id="configuration">Configuration</h3>
199-
<h4 id="save"><code>save</code></h4>
200-
<ul>
201-
<li>Default: <code>true</code> unless when using <code>npm update</code> where it defaults to <code>false</code></li>
202-
<li>Type: Boolean</li>
203-
</ul>
204-
<p>Save installed packages to a <code>package.json</code> file as dependencies.</p>
205-
<p>When used with the <code>npm rm</code> command, removes the dependency from
206-
<code>package.json</code>.</p>
207-
<p>Will also prevent writing to <code>package-lock.json</code> if set to <code>false</code>.</p>
208-
<h4 id="save-exact"><code>save-exact</code></h4>
209-
<ul>
210-
<li>Default: false</li>
211-
<li>Type: Boolean</li>
212-
</ul>
213-
<p>Dependencies saved to package.json will be configured with an exact version
214-
rather than using npm's default semver range operator.</p>
215-
<h4 id="global"><code>global</code></h4>
216-
<ul>
217-
<li>Default: false</li>
218-
<li>Type: Boolean</li>
219-
</ul>
220-
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
221-
folder instead of the current working directory. See
222-
<a href="../configuring-npm/folders.html">folders</a> for more on the differences in behavior.</p>
223-
<ul>
224-
<li>packages are installed into the <code>{prefix}/lib/node_modules</code> folder, instead
225-
of the current working directory.</li>
226-
<li>bin files are linked to <code>{prefix}/bin</code></li>
227-
<li>man pages are linked to <code>{prefix}/share/man</code></li>
228-
</ul>
229199
<h4 id="install-strategy"><code>install-strategy</code></h4>
230200
<ul>
231201
<li>Default: "hoisted"</li>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ <h4 id="set">set</h4>
172172
npm set key=value [key=value...]
173173
</code></pre>
174174
<p>Sets each of the config keys to the value provided.</p>
175-
<p>If value is omitted, then it sets it to an empty string.</p>
175+
<p>If value is omitted, the key will be removed from your config file entirely.</p>
176176
<p>Note: for backwards compatibility, <code>npm config set key value</code> is supported
177177
as an alias for <code>npm config set key=value</code>.</p>
178178
<h4 id="get">get</h4>

deps/npm/docs/output/commands/npm-install-ci-test.html

+1-31
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ <h1 id="npm-install-ci-test">npm-install-ci-test</h1>
142142

143143
<section id="table_of_contents">
144144
<h2 id="table-of-contents">Table of contents</h2>
145-
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</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="#install-strategy"><code>install-strategy</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#global-style"><code>global-style</code></a></li><li><a href="#omit"><code>omit</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="#foreground-scripts"><code>foreground-scripts</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><li><a href="#include-workspace-root"><code>include-workspace-root</code></a></li><li><a href="#install-links"><code>install-links</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
145+
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#install-strategy"><code>install-strategy</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#global-style"><code>global-style</code></a></li><li><a href="#omit"><code>omit</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="#foreground-scripts"><code>foreground-scripts</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><li><a href="#include-workspace-root"><code>include-workspace-root</code></a></li><li><a href="#install-links"><code>install-links</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
146146
</section>
147147

148148
<div id="_content"><h3 id="synopsis">Synopsis</h3>
@@ -153,36 +153,6 @@ <h2 id="table-of-contents">Table of contents</h2>
153153
<h3 id="description">Description</h3>
154154
<p>This command runs <code>npm ci</code> followed immediately by <code>npm test</code>.</p>
155155
<h3 id="configuration">Configuration</h3>
156-
<h4 id="save"><code>save</code></h4>
157-
<ul>
158-
<li>Default: <code>true</code> unless when using <code>npm update</code> where it defaults to <code>false</code></li>
159-
<li>Type: Boolean</li>
160-
</ul>
161-
<p>Save installed packages to a <code>package.json</code> file as dependencies.</p>
162-
<p>When used with the <code>npm rm</code> command, removes the dependency from
163-
<code>package.json</code>.</p>
164-
<p>Will also prevent writing to <code>package-lock.json</code> if set to <code>false</code>.</p>
165-
<h4 id="save-exact"><code>save-exact</code></h4>
166-
<ul>
167-
<li>Default: false</li>
168-
<li>Type: Boolean</li>
169-
</ul>
170-
<p>Dependencies saved to package.json will be configured with an exact version
171-
rather than using npm's default semver range operator.</p>
172-
<h4 id="global"><code>global</code></h4>
173-
<ul>
174-
<li>Default: false</li>
175-
<li>Type: Boolean</li>
176-
</ul>
177-
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
178-
folder instead of the current working directory. See
179-
<a href="../configuring-npm/folders.html">folders</a> for more on the differences in behavior.</p>
180-
<ul>
181-
<li>packages are installed into the <code>{prefix}/lib/node_modules</code> folder, instead
182-
of the current working directory.</li>
183-
<li>bin files are linked to <code>{prefix}/bin</code></li>
184-
<li>man pages are linked to <code>{prefix}/share/man</code></li>
185-
</ul>
186156
<h4 id="install-strategy"><code>install-strategy</code></h4>
187157
<ul>
188158
<li>Default: "hoisted"</li>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ <h3 id="description">Description</h3>
160160
the results to only the paths to the packages named. Note that nested
161161
packages will <em>also</em> show the paths to the specified packages. For
162162
example, running <code>npm ls promzard</code> in npm's source tree will show:</p>
163-
<pre><code class="language-bash">npm@9.6.4 /path/to/npm
163+
<pre><code class="language-bash">npm@9.6.6 /path/to/npm
164164
└─┬ init-package-json@0.0.4
165165
└── promzard@0.1.5
166166
</code></pre>

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ <h4 id="provenance"><code>provenance</code></h4>
311311
<li>Default: false</li>
312312
<li>Type: Boolean</li>
313313
</ul>
314-
<p>Indicates that a provenance statement should be generated.</p>
314+
<p>When publishing from a supported cloud CI/CD system, the package will be
315+
publicly linked to where it was built and published from.</p>
315316
<h3 id="see-also">See Also</h3>
316317
<ul>
317318
<li><a href="../using-npm/package-spec.html">package spec</a></li>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ <h2 id="table-of-contents">Table of contents</h2>
150150
</code></pre>
151151
<p>Note: This command is unaware of workspaces.</p>
152152
<h3 id="version">Version</h3>
153-
<p>9.6.4</p>
153+
<p>9.6.6</p>
154154
<h3 id="description">Description</h3>
155155
<p>npm is the package manager for the Node JavaScript platform. It puts
156156
modules in place so that node can find them, and manages dependency

deps/npm/docs/output/configuring-npm/folders.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ <h4 id="man-pages">Man Pages</h4>
194194
<p>Man pages are not installed on Windows systems.</p>
195195
<h4 id="cache">Cache</h4>
196196
<p>See <a href="../commands/npm-cache.html"><code>npm cache</code></a>. Cache files are stored in <code>~/.npm</code> on Posix, or
197-
<code>%AppData%/npm-cache</code> on Windows.</p>
197+
<code>%LocalAppData%/npm-cache</code> on Windows.</p>
198198
<p>This is controlled by the <a href="../using-npm/config#cache.html"><code>cache</code> config</a> param.</p>
199199
<h4 id="temp-files">Temp Files</h4>
200200
<p>Temporary files are stored by default in the folder specified by the

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,8 @@ <h4 id="provenance"><code>provenance</code></h4>
994994
<li>Default: false</li>
995995
<li>Type: Boolean</li>
996996
</ul>
997-
<p>Indicates that a provenance statement should be generated.</p>
997+
<p>When publishing from a supported cloud CI/CD system, the package will be
998+
publicly linked to where it was built and published from.</p>
998999
<h4 id="proxy"><code>proxy</code></h4>
9991000
<ul>
10001001
<li>Default: null</li>

deps/npm/lib/commands/audit.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const Arborist = require('@npmcli/arborist')
21
const auditReport = require('npm-audit-report')
32
const fetch = require('npm-registry-fetch')
43
const localeCompare = require('@isaacs/string-locale-compare')('en')
@@ -413,6 +412,7 @@ class Audit extends ArboristWorkspaceCmd {
413412

414413
async auditAdvisories (args) {
415414
const reporter = this.npm.config.get('json') ? 'json' : 'detail'
415+
const Arborist = require('@npmcli/arborist')
416416
const opts = {
417417
...this.npm.flatOptions,
418418
audit: true,
@@ -445,6 +445,7 @@ class Audit extends ArboristWorkspaceCmd {
445445
}
446446

447447
log.verbose('loading installed dependencies')
448+
const Arborist = require('@npmcli/arborist')
448449
const opts = {
449450
...this.npm.flatOptions,
450451
path: this.npm.prefix,

deps/npm/lib/commands/cache.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const cacache = require('cacache')
2-
const Arborist = require('@npmcli/arborist')
32
const pacote = require('pacote')
43
const fs = require('fs/promises')
54
const { join } = require('path')
@@ -162,7 +161,7 @@ class Cache extends BaseCommand {
162161
return pacote.tarball.stream(spec, stream => {
163162
stream.resume()
164163
return stream.promise()
165-
}, { ...this.npm.flatOptions, Arborist })
164+
}, { ...this.npm.flatOptions })
166165
}))
167166
}
168167

deps/npm/lib/commands/ci.js

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
1-
const Arborist = require('@npmcli/arborist')
21
const reifyFinish = require('../utils/reify-finish.js')
32
const runScript = require('@npmcli/run-script')
43
const fs = require('fs/promises')
54
const log = require('../utils/log-shim.js')
65
const validateLockfile = require('../utils/validate-lockfile.js')
76

87
const ArboristWorkspaceCmd = require('../arborist-cmd.js')
9-
const Install = require('./install.js')
108

119
class CI extends ArboristWorkspaceCmd {
1210
static description = 'Clean install a project'
1311
static name = 'ci'
1412

15-
static params = Install.params
13+
// These are in the order they will show up in when running "-h"
14+
static params = [
15+
'install-strategy',
16+
'legacy-bundling',
17+
'global-style',
18+
'omit',
19+
'strict-peer-deps',
20+
'package-lock',
21+
'foreground-scripts',
22+
'ignore-scripts',
23+
'audit',
24+
'bin-links',
25+
'fund',
26+
'dry-run',
27+
...super.params,
28+
]
1629

1730
async exec () {
1831
if (this.npm.global) {
@@ -22,6 +35,7 @@ class CI extends ArboristWorkspaceCmd {
2235
}
2336

2437
const where = this.npm.prefix
38+
const Arborist = require('@npmcli/arborist')
2539
const opts = {
2640
...this.npm.flatOptions,
2741
packageLock: true, // npm ci should never skip lock files

deps/npm/lib/commands/config.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,13 @@ class Config extends BaseCommand {
163163
`The \`${baseKey}\` option is deprecated, and can not be set in this way${deprecated}`
164164
)
165165
}
166-
this.npm.config.set(key, val || '', where)
166+
167+
if (val === '') {
168+
this.npm.config.delete(key, where)
169+
} else {
170+
this.npm.config.set(key, val, where)
171+
}
172+
167173
if (!this.npm.config.validate(where)) {
168174
log.warn('config', 'omitting invalid config values')
169175
}

deps/npm/lib/commands/dedupe.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// dedupe duplicated packages, or find them in the tree
2-
const Arborist = require('@npmcli/arborist')
32
const reifyFinish = require('../utils/reify-finish.js')
43

54
const ArboristWorkspaceCmd = require('../arborist-cmd.js')
@@ -31,6 +30,7 @@ class Dedupe extends ArboristWorkspaceCmd {
3130

3231
const dryRun = this.npm.config.get('dry-run')
3332
const where = this.npm.prefix
33+
const Arborist = require('@npmcli/arborist')
3434
const opts = {
3535
...this.npm.flatOptions,
3636
path: where,

0 commit comments

Comments
 (0)