Skip to content

Commit c3927aa

Browse files
npm-cli-botRafaelGSS
authored andcommitted
deps: upgrade npm to 11.2.0
PR-URL: #57334 Reviewed-By: Luigi Pinca <[email protected]>
1 parent 89be0f3 commit c3927aa

File tree

304 files changed

+4213
-2546
lines changed

Some content is hidden

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

304 files changed

+4213
-2546
lines changed

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

Lines changed: 30 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -11,59 +11,56 @@ npm cache add <package-spec>
1111
npm cache clean [<key>]
1212
npm cache ls [<name>@<version>]
1313
npm cache verify
14+
npm cache npx ls
15+
npm cache npx rm [<key>...]
16+
npm cache npx info <key>...
1417
```
1518

1619
Note: This command is unaware of workspaces.
1720

1821
### Description
1922

20-
Used to add, list, or clean the npm cache folder.
23+
Used to add, list, or clean the `npm cache` folder.
24+
Also used to view info about entries in the `npm exec` (aka `npx`) cache folder.
25+
26+
#### `npm cache`
2127

2228
* add:
23-
Add the specified packages to the local cache. This command is primarily
24-
intended to be used internally by npm, but it can provide a way to
25-
add data to the local installation cache explicitly.
29+
Add the specified packages to the local cache. This command is primarily intended to be used internally by npm, but it can provide a way to add data to the local installation cache explicitly.
2630

2731
* clean:
28-
Delete all data out of the cache folder. Note that this is typically
29-
unnecessary, as npm's cache is self-healing and resistant to data
30-
corruption issues.
32+
Delete a single entry or all entries out of the cache folder. Note that this is typically unnecessary, as npm's cache is self-healing and resistant to data corruption issues.
33+
34+
* ls:
35+
List given entries or all entries in the local cache.
3136

3237
* verify:
33-
Verify the contents of the cache folder, garbage collecting any unneeded
34-
data, and verifying the integrity of the cache index and all cached data.
38+
Verify the contents of the cache folder, garbage collecting any unneeded data, and verifying the integrity of the cache index and all cached data.
39+
40+
#### `npm cache npx`
41+
42+
* ls:
43+
List all entries in the npx cache.
44+
45+
* rm:
46+
Remove given entries or all entries from the npx cache.
47+
48+
* info:
49+
Get detailed information about given entries in the npx cache.
3550

3651
### Details
3752

38-
npm stores cache data in an opaque directory within the configured `cache`,
39-
named `_cacache`. This directory is a
40-
[`cacache`](http://npm.im/cacache)-based content-addressable cache that
41-
stores all http request data as well as other package-related data. This
42-
directory is primarily accessed through `pacote`, the library responsible
43-
for all package fetching as of npm@5.
53+
npm stores cache data in an opaque directory within the configured `cache`, named `_cacache`. This directory is a [`cacache`](http://npm.im/cacache)-based content-addressable cache that stores all http request data as well as other package-related data. This directory is primarily accessed through `pacote`, the library responsible for all package fetching as of npm@5.
4454

45-
All data that passes through the cache is fully verified for integrity on
46-
both insertion and extraction. Cache corruption will either trigger an
47-
error, or signal to `pacote` that the data must be refetched, which it will
48-
do automatically. For this reason, it should never be necessary to clear
49-
the cache for any reason other than reclaiming disk space, thus why `clean`
50-
now requires `--force` to run.
55+
All data that passes through the cache is fully verified for integrity on both insertion and extraction. Cache corruption will either trigger an error, or signal to `pacote` that the data must be refetched, which it will do automatically. For this reason, it should never be necessary to clear the cache for any reason other than reclaiming disk space, thus why `clean` now requires `--force` to run.
5156

52-
There is currently no method exposed through npm to inspect or directly
53-
manage the contents of this cache. In order to access it, `cacache` must be
54-
used directly.
57+
There is currently no method exposed through npm to inspect or directly manage the contents of this cache. In order to access it, `cacache` must be used directly.
5558

56-
npm will not remove data by itself: the cache will grow as new packages are
57-
installed.
59+
npm will not remove data by itself: the cache will grow as new packages are installed.
5860

5961
### A note about the cache's design
6062

61-
The npm cache is strictly a cache: it should not be relied upon as a
62-
persistent and reliable data store for package data. npm makes no guarantee
63-
that a previously-cached piece of data will be available later, and will
64-
automatically delete corrupted contents. The primary guarantee that the
65-
cache makes is that, if it does return data, that data will be exactly the
66-
data that was inserted.
63+
The npm cache is strictly a cache: it should not be relied upon as a persistent and reliable data store for package data. npm makes no guarantee that a previously-cached piece of data will be available later, and will automatically delete corrupted contents. The primary guarantee that the cache makes is that, if it does return data, that data will be exactly the data that was inserted.
6764

6865
To run an offline verification of existing cache contents, use `npm cache
6966
verify`.
@@ -88,6 +85,7 @@ The location of npm's cache directory.
8885
* [npm install](/commands/npm-install)
8986
* [npm publish](/commands/npm-publish)
9087
* [npm pack](/commands/npm-pack)
88+
* [npm exec](/commands/npm-exec)
9189
* https://npm.im/cacache
9290
* https://npm.im/pacote
9391
* https://npm.im/@npmcli/arborist

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,16 @@ more information, or [npm init](/commands/npm-init).
196196

197197

198198

199+
#### `init-type`
200+
201+
* Default: "commonjs"
202+
* Type: String
203+
204+
The value that `npm init` should use by default for the package.json type
205+
field.
206+
207+
208+
199209
#### `init-version`
200210

201211
* Default: "1.0.0"

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

Lines changed: 1 addition & 1 deletion
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@11.1.0 /path/to/npm
30+
npm@11.2.0 /path/to/npm
3131
3232
3333
```

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

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

1515
### Version
1616

17-
11.1.0
17+
11.2.0
1818

1919
### Description
2020

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,16 @@ more information, or [npm init](/commands/npm-init).
809809

810810

811811

812+
#### `init-type`
813+
814+
* Default: "commonjs"
815+
* Type: String
816+
817+
The value that `npm init` should use by default for the package.json type
818+
field.
819+
820+
821+
812822
#### `init-version`
813823

814824
* Default: "1.0.0"

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@
141141

142142
<section id="content">
143143
<header class="title">
144-
<h1 id="----npm-access----1110">
144+
<h1 id="----npm-access----1120">
145145
<span>npm-access</span>
146-
<span class="version">@11.1.0</span>
146+
<span class="version">@11.2.0</span>
147147
</h1>
148148
<span class="description">Set access level on published packages</span>
149149
</header>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@
141141

142142
<section id="content">
143143
<header class="title">
144-
<h1 id="----npm-adduser----1110">
144+
<h1 id="----npm-adduser----1120">
145145
<span>npm-adduser</span>
146-
<span class="version">@11.1.0</span>
146+
<span class="version">@11.2.0</span>
147147
</h1>
148148
<span class="description">Add a registry user account</span>
149149
</header>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@
141141

142142
<section id="content">
143143
<header class="title">
144-
<h1 id="----npm-audit----1110">
144+
<h1 id="----npm-audit----1120">
145145
<span>npm-audit</span>
146-
<span class="version">@11.1.0</span>
146+
<span class="version">@11.2.0</span>
147147
</h1>
148148
<span class="description">Run a security audit</span>
149149
</header>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@
141141

142142
<section id="content">
143143
<header class="title">
144-
<h1 id="----npm-bugs----1110">
144+
<h1 id="----npm-bugs----1120">
145145
<span>npm-bugs</span>
146-
<span class="version">@11.1.0</span>
146+
<span class="version">@11.2.0</span>
147147
</h1>
148148
<span class="description">Report bugs for a package in a web browser</span>
149149
</header>

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

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -141,71 +141,72 @@
141141

142142
<section id="content">
143143
<header class="title">
144-
<h1 id="----npm-cache----1110">
144+
<h1 id="----npm-cache----1120">
145145
<span>npm-cache</span>
146-
<span class="version">@11.1.0</span>
146+
<span class="version">@11.2.0</span>
147147
</h1>
148148
<span class="description">Manipulates packages cache</span>
149149
</header>
150150

151151
<section id="table_of_contents">
152152
<h2 id="table-of-contents">Table of contents</h2>
153-
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#details">Details</a></li><li><a href="#a-note-about-the-caches-design">A note about the cache's design</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#cache"><code>cache</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
153+
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><ul><li><a href="#npm-cache"><code>npm cache</code></a></li><li><a href="#npm-cache-npx"><code>npm cache npx</code></a></li></ul><li><a href="#details">Details</a></li><li><a href="#a-note-about-the-caches-design">A note about the cache's design</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#cache"><code>cache</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
154154
</section>
155155

156156
<div id="_content"><h3 id="synopsis">Synopsis</h3>
157157
<pre><code class="language-bash">npm cache add &lt;package-spec&gt;
158158
npm cache clean [&lt;key&gt;]
159159
npm cache ls [&lt;name&gt;@&lt;version&gt;]
160160
npm cache verify
161+
npm cache npx ls
162+
npm cache npx rm [&lt;key&gt;...]
163+
npm cache npx info &lt;key&gt;...
161164
</code></pre>
162165
<p>Note: This command is unaware of workspaces.</p>
163166
<h3 id="description">Description</h3>
164-
<p>Used to add, list, or clean the npm cache folder.</p>
167+
<p>Used to add, list, or clean the <code>npm cache</code> folder.
168+
Also used to view info about entries in the <code>npm exec</code> (aka <code>npx</code>) cache folder.</p>
169+
<h4 id="npm-cache"><code>npm cache</code></h4>
165170
<ul>
166171
<li>
167172
<p>add:
168-
Add the specified packages to the local cache. This command is primarily
169-
intended to be used internally by npm, but it can provide a way to
170-
add data to the local installation cache explicitly.</p>
173+
Add the specified packages to the local cache. This command is primarily intended to be used internally by npm, but it can provide a way to add data to the local installation cache explicitly.</p>
171174
</li>
172175
<li>
173176
<p>clean:
174-
Delete all data out of the cache folder. Note that this is typically
175-
unnecessary, as npm's cache is self-healing and resistant to data
176-
corruption issues.</p>
177+
Delete a single entry or all entries out of the cache folder. Note that this is typically unnecessary, as npm's cache is self-healing and resistant to data corruption issues.</p>
178+
</li>
179+
<li>
180+
<p>ls:
181+
List given entries or all entries in the local cache.</p>
177182
</li>
178183
<li>
179184
<p>verify:
180-
Verify the contents of the cache folder, garbage collecting any unneeded
181-
data, and verifying the integrity of the cache index and all cached data.</p>
185+
Verify the contents of the cache folder, garbage collecting any unneeded data, and verifying the integrity of the cache index and all cached data.</p>
186+
</li>
187+
</ul>
188+
<h4 id="npm-cache-npx"><code>npm cache npx</code></h4>
189+
<ul>
190+
<li>
191+
<p>ls:
192+
List all entries in the npx cache.</p>
193+
</li>
194+
<li>
195+
<p>rm:
196+
Remove given entries or all entries from the npx cache.</p>
197+
</li>
198+
<li>
199+
<p>info:
200+
Get detailed information about given entries in the npx cache.</p>
182201
</li>
183202
</ul>
184203
<h3 id="details">Details</h3>
185-
<p>npm stores cache data in an opaque directory within the configured <code>cache</code>,
186-
named <code>_cacache</code>. This directory is a
187-
<a href="http://npm.im/cacache"><code>cacache</code></a>-based content-addressable cache that
188-
stores all http request data as well as other package-related data. This
189-
directory is primarily accessed through <code>pacote</code>, the library responsible
190-
for all package fetching as of npm@5.</p>
191-
<p>All data that passes through the cache is fully verified for integrity on
192-
both insertion and extraction. Cache corruption will either trigger an
193-
error, or signal to <code>pacote</code> that the data must be refetched, which it will
194-
do automatically. For this reason, it should never be necessary to clear
195-
the cache for any reason other than reclaiming disk space, thus why <code>clean</code>
196-
now requires <code>--force</code> to run.</p>
197-
<p>There is currently no method exposed through npm to inspect or directly
198-
manage the contents of this cache. In order to access it, <code>cacache</code> must be
199-
used directly.</p>
200-
<p>npm will not remove data by itself: the cache will grow as new packages are
201-
installed.</p>
204+
<p>npm stores cache data in an opaque directory within the configured <code>cache</code>, named <code>_cacache</code>. This directory is a <a href="http://npm.im/cacache"><code>cacache</code></a>-based content-addressable cache that stores all http request data as well as other package-related data. This directory is primarily accessed through <code>pacote</code>, the library responsible for all package fetching as of npm@5.</p>
205+
<p>All data that passes through the cache is fully verified for integrity on both insertion and extraction. Cache corruption will either trigger an error, or signal to <code>pacote</code> that the data must be refetched, which it will do automatically. For this reason, it should never be necessary to clear the cache for any reason other than reclaiming disk space, thus why <code>clean</code> now requires <code>--force</code> to run.</p>
206+
<p>There is currently no method exposed through npm to inspect or directly manage the contents of this cache. In order to access it, <code>cacache</code> must be used directly.</p>
207+
<p>npm will not remove data by itself: the cache will grow as new packages are installed.</p>
202208
<h3 id="a-note-about-the-caches-design">A note about the cache's design</h3>
203-
<p>The npm cache is strictly a cache: it should not be relied upon as a
204-
persistent and reliable data store for package data. npm makes no guarantee
205-
that a previously-cached piece of data will be available later, and will
206-
automatically delete corrupted contents. The primary guarantee that the
207-
cache makes is that, if it does return data, that data will be exactly the
208-
data that was inserted.</p>
209+
<p>The npm cache is strictly a cache: it should not be relied upon as a persistent and reliable data store for package data. npm makes no guarantee that a previously-cached piece of data will be available later, and will automatically delete corrupted contents. The primary guarantee that the cache makes is that, if it does return data, that data will be exactly the data that was inserted.</p>
209210
<p>To run an offline verification of existing cache contents, use <code>npm cache verify</code>.</p>
210211
<h3 id="configuration">Configuration</h3>
211212
<h4 id="cache"><code>cache</code></h4>
@@ -223,6 +224,7 @@ <h3 id="see-also">See Also</h3>
223224
<li><a href="../commands/npm-install.html">npm install</a></li>
224225
<li><a href="../commands/npm-publish.html">npm publish</a></li>
225226
<li><a href="../commands/npm-pack.html">npm pack</a></li>
227+
<li><a href="../commands/npm-exec.html">npm exec</a></li>
226228
<li><a href="https://npm.im/cacache">https://npm.im/cacache</a></li>
227229
<li><a href="https://npm.im/pacote">https://npm.im/pacote</a></li>
228230
<li><a href="https://npm.im/@npmcli/arborist">https://npm.im/@npmcli/arborist</a></li>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@
141141

142142
<section id="content">
143143
<header class="title">
144-
<h1 id="----npm-ci----1110">
144+
<h1 id="----npm-ci----1120">
145145
<span>npm-ci</span>
146-
<span class="version">@11.1.0</span>
146+
<span class="version">@11.2.0</span>
147147
</h1>
148148
<span class="description">Clean install a project</span>
149149
</header>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@
141141

142142
<section id="content">
143143
<header class="title">
144-
<h1 id="----npm-completion----1110">
144+
<h1 id="----npm-completion----1120">
145145
<span>npm-completion</span>
146-
<span class="version">@11.1.0</span>
146+
<span class="version">@11.2.0</span>
147147
</h1>
148148
<span class="description">Tab Completion for npm</span>
149149
</header>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@
141141

142142
<section id="content">
143143
<header class="title">
144-
<h1 id="----npm-config----1110">
144+
<h1 id="----npm-config----1120">
145145
<span>npm-config</span>
146-
<span class="version">@11.1.0</span>
146+
<span class="version">@11.2.0</span>
147147
</h1>
148148
<span class="description">Manage the npm configuration files</span>
149149
</header>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@
141141

142142
<section id="content">
143143
<header class="title">
144-
<h1 id="----npm-dedupe----1110">
144+
<h1 id="----npm-dedupe----1120">
145145
<span>npm-dedupe</span>
146-
<span class="version">@11.1.0</span>
146+
<span class="version">@11.2.0</span>
147147
</h1>
148148
<span class="description">Reduce duplication in the package tree</span>
149149
</header>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@
141141

142142
<section id="content">
143143
<header class="title">
144-
<h1 id="----npm-deprecate----1110">
144+
<h1 id="----npm-deprecate----1120">
145145
<span>npm-deprecate</span>
146-
<span class="version">@11.1.0</span>
146+
<span class="version">@11.2.0</span>
147147
</h1>
148148
<span class="description">Deprecate a version of a package</span>
149149
</header>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@
141141

142142
<section id="content">
143143
<header class="title">
144-
<h1 id="----npm-diff----1110">
144+
<h1 id="----npm-diff----1120">
145145
<span>npm-diff</span>
146-
<span class="version">@11.1.0</span>
146+
<span class="version">@11.2.0</span>
147147
</h1>
148148
<span class="description">The registry diff command</span>
149149
</header>

deps/npm/docs/output/commands/npm-dist-tag.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@
141141

142142
<section id="content">
143143
<header class="title">
144-
<h1 id="----npm-dist-tag----1110">
144+
<h1 id="----npm-dist-tag----1120">
145145
<span>npm-dist-tag</span>
146-
<span class="version">@11.1.0</span>
146+
<span class="version">@11.2.0</span>
147147
</h1>
148148
<span class="description">Modify package distribution tags</span>
149149
</header>

0 commit comments

Comments
 (0)