Skip to content

Commit f4c830f

Browse files
npm-cli-botdanielleadams
authored andcommitted
deps: upgrade npm to 8.12.1
PR-URL: #43301 Reviewed-By: Ruy Adorno <ruyadorno@github.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com>
1 parent a056840 commit f4c830f

File tree

153 files changed

+689
-434
lines changed

Some content is hidden

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

153 files changed

+689
-434
lines changed

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

+14
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,20 @@ npm init --scope=@foo --yes
8787
```
8888

8989

90+
<!-- automatically generated, do not edit manually -->
91+
<!-- see lib/utils/config/definitions.js -->
92+
93+
#### `auth-type`
94+
95+
* Default: "legacy"
96+
* Type: "legacy", "webauthn", "sso", "saml", or "oauth"
97+
* DEPRECATED: The SSO/SAML/OAuth methods are deprecated and will be removed in
98+
a future version of npm in favor of web-based login.
99+
100+
What authentication strategy to use with `adduser`/`login`.
101+
102+
Pass `webauthn` to use a web-based login.
103+
90104
<!-- automatically generated, do not edit manually -->
91105
<!-- see lib/utils/config/definitions.js -->
92106

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

-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ Print the folder where npm will install executables.
3434

3535
* Default: false
3636
* Type: Boolean
37-
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
38-
instead.
3937

4038
Operates in "global" mode, so that packages are installed into the `prefix`
4139
folder instead of the current working directory. See

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

-2
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@ Not supported by all npm commands.
124124
125125
* Default: false
126126
* Type: Boolean
127-
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
128-
instead.
129127
130128
Operates in "global" mode, so that packages are installed into the `prefix`
131129
folder instead of the current working directory. See

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

-2
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,6 @@ Treat all files as text in `npm diff`.
248248
249249
* Default: false
250250
* Type: Boolean
251-
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
252-
instead.
253251
254252
Operates in "global" mode, so that packages are installed into the `prefix`
255253
folder instead of the current working directory. See

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

+11
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,17 @@ This value is not exported to the environment for child processes.
253253
<!-- automatically generated, do not edit manually -->
254254
<!-- see lib/utils/config/definitions.js -->
255255

256+
#### `workspaces-update`
257+
258+
* Default: true
259+
* Type: Boolean
260+
261+
If set to true, the npm cli will run an update after operations that may
262+
possibly change the workspaces installed to the `node_modules` folder.
263+
264+
<!-- automatically generated, do not edit manually -->
265+
<!-- see lib/utils/config/definitions.js -->
266+
256267
#### `include-workspace-root`
257268

258269
* Default: false

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

-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ rather than using npm's default semver range operator.
7070

7171
* Default: false
7272
* Type: Boolean
73-
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
74-
instead.
7573

7674
Operates in "global" mode, so that packages are installed into the `prefix`
7775
folder instead of the current working directory. See

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

-2
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,6 @@ rather than using npm's default semver range operator.
460460
461461
* Default: false
462462
* Type: Boolean
463-
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
464-
instead.
465463
466464
Operates in "global" mode, so that packages are installed into the `prefix`
467465
folder instead of the current working directory. See

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

-2
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,6 @@ rather than using npm's default semver range operator.
153153

154154
* Default: false
155155
* Type: Boolean
156-
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
157-
instead.
158156

159157
Operates in "global" mode, so that packages are installed into the `prefix`
160158
folder instead of the current working directory. See

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

-2
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ Output parseable results from commands that write to standard output. For
137137

138138
* Default: false
139139
* Type: Boolean
140-
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
141-
instead.
142140

143141
Operates in "global" mode, so that packages are installed into the `prefix`
144142
folder instead of the current working directory. See

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

-2
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,6 @@ Output parseable results from commands that write to standard output. For
150150

151151
* Default: false
152152
* Type: Boolean
153-
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
154-
instead.
155153

156154
Operates in "global" mode, so that packages are installed into the `prefix`
157155
folder instead of the current working directory. See

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

-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ npm prefix -g
5151

5252
* Default: false
5353
* Type: Boolean
54-
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
55-
instead.
5654

5755
Operates in "global" mode, so that packages are installed into the `prefix`
5856
folder instead of the current working directory. See

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

-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ will be rebuilt.
4242

4343
* Default: false
4444
* Type: Boolean
45-
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
46-
instead.
4745

4846
Operates in "global" mode, so that packages are installed into the `prefix`
4947
folder instead of the current working directory. See

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

-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ echo "Global packages installed in: ${global_node_modules}"
4141

4242
* Default: false
4343
* Type: Boolean
44-
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
45-
instead.
4644

4745
Operates in "global" mode, so that packages are installed into the `prefix`
4846
folder instead of the current working directory. See

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

-2
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,6 @@ Will also prevent writing to `package-lock.json` if set to `false`.
188188

189189
* Default: false
190190
* Type: Boolean
191-
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
192-
instead.
193191

194192
Operates in "global" mode, so that packages are installed into the `prefix`
195193
folder instead of the current working directory. See

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

+20
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,26 @@ git+https://isaacs@github.com/npm/cli.git
643643
git://github.com/npm/cli.git#v1.0.27
644644
```
645645

646+
When installing from a `git` repository, the presence of certain fields in the
647+
`package.json` will cause npm to believe it needs to perform a build. To do so
648+
your repository will be cloned into a temporary directory, all of its deps
649+
installed, relevant scripts run, and the resulting directory packed and
650+
installed.
651+
652+
This flow will occur if your git dependency uses `workspaces`, or if any of the
653+
following scripts are present:
654+
655+
* `build`
656+
* `prepare`
657+
* `prepack`
658+
* `preinstall`
659+
* `install`
660+
* `postinstall`
661+
662+
If your git repository includes pre-built artifacts, you will likely want to
663+
make sure that none of the above scripts are defined, or your dependency
664+
will be rebuilt for every installation.
665+
646666
#### GitHub URLs
647667

648668
As of version 1.1.65, you can refer to GitHub urls as just "foo":

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

+22-22
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,23 @@ results in no commit being made at all.
687687
<!-- automatically generated, do not edit manually -->
688688
<!-- see lib/utils/config/definitions.js -->
689689

690+
#### `global`
691+
692+
* Default: false
693+
* Type: Boolean
694+
695+
Operates in "global" mode, so that packages are installed into the `prefix`
696+
folder instead of the current working directory. See
697+
[folders](/configuring-npm/folders) for more on the differences in behavior.
698+
699+
* packages are installed into the `{prefix}/lib/node_modules` folder, instead
700+
of the current working directory.
701+
* bin files are linked to `{prefix}/bin`
702+
* man pages are linked to `{prefix}/share/man`
703+
704+
<!-- automatically generated, do not edit manually -->
705+
<!-- see lib/utils/config/definitions.js -->
706+
690707
#### `global-style`
691708

692709
* Default: false
@@ -1891,12 +1908,14 @@ When set to `dev` or `development`, this is an alias for `--include=dev`.
18911908
#### `auth-type`
18921909

18931910
* Default: "legacy"
1894-
* Type: "legacy", "sso", "saml", or "oauth"
1895-
* DEPRECATED: This method of SSO/SAML/OAuth is deprecated and will be removed
1896-
in a future version of npm in favor of web-based login.
1911+
* Type: "legacy", "webauthn", "sso", "saml", or "oauth"
1912+
* DEPRECATED: The SSO/SAML/OAuth methods are deprecated and will be removed in
1913+
a future version of npm in favor of web-based login.
18971914

18981915
What authentication strategy to use with `adduser`/`login`.
18991916

1917+
Pass `webauthn` to use a web-based login.
1918+
19001919
<!-- automatically generated, do not edit manually -->
19011920
<!-- see lib/utils/config/definitions.js -->
19021921

@@ -1933,25 +1952,6 @@ Alias for `--include=dev`.
19331952
<!-- automatically generated, do not edit manually -->
19341953
<!-- see lib/utils/config/definitions.js -->
19351954

1936-
#### `global`
1937-
1938-
* Default: false
1939-
* Type: Boolean
1940-
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
1941-
instead.
1942-
1943-
Operates in "global" mode, so that packages are installed into the `prefix`
1944-
folder instead of the current working directory. See
1945-
[folders](/configuring-npm/folders) for more on the differences in behavior.
1946-
1947-
* packages are installed into the `{prefix}/lib/node_modules` folder, instead
1948-
of the current working directory.
1949-
* bin files are linked to `{prefix}/bin`
1950-
* man pages are linked to `{prefix}/share/man`
1951-
1952-
<!-- automatically generated, do not edit manually -->
1953-
<!-- see lib/utils/config/definitions.js -->
1954-
19551955
#### `init.author.email`
19561956

19571957
* Default: ""

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

+6
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,12 @@ will default the `start` command to `node server.js`. `prestart` and
203203
* `test`
204204
* `posttest`
205205

206+
#### [`npm version`](/commands/npm-version)
207+
208+
* `preversion`
209+
* `version`
210+
* `postversion`
211+
206212
#### A Note on a lack of [`npm uninstall`](/commands/npm-uninstall) scripts
207213

208214
While npm v6 had `uninstall` lifecycle scripts, npm v7 does not. Removal of a package can happen for a wide variety of reasons, and there's no clear way to currently give the script enough context to be useful.

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

+12-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ <h1 id="npm-adduser">npm-adduser</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="#registry"><code>registry</code></a></li><li><a href="#scope"><code>scope</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="#registry"><code>registry</code></a></li><li><a href="#scope"><code>scope</code></a></li><li><a href="#auth-type"><code>auth-type</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>
@@ -204,6 +204,17 @@ <h4 id="scope"><code>scope</code></h4>
204204
</code></pre>
205205
<!-- raw HTML omitted -->
206206
<!-- raw HTML omitted -->
207+
<h4 id="auth-type"><code>auth-type</code></h4>
208+
<ul>
209+
<li>Default: "legacy"</li>
210+
<li>Type: "legacy", "webauthn", "sso", "saml", or "oauth"</li>
211+
<li>DEPRECATED: The SSO/SAML/OAuth methods are deprecated and will be removed in
212+
a future version of npm in favor of web-based login.</li>
213+
</ul>
214+
<p>What authentication strategy to use with <code>adduser</code>/<code>login</code>.</p>
215+
<p>Pass <code>webauthn</code> to use a web-based login.</p>
216+
<!-- raw HTML omitted -->
217+
<!-- raw HTML omitted -->
207218
<!-- raw HTML omitted -->
208219
<h3 id="see-also">See Also</h3>
209220
<ul>

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

-2
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,6 @@ <h4 id="global"><code>global</code></h4>
165165
<ul>
166166
<li>Default: false</li>
167167
<li>Type: Boolean</li>
168-
<li>DEPRECATED: <code>--global</code>, <code>--local</code> are deprecated. Use <code>--location=global</code>
169-
instead.</li>
170168
</ul>
171169
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
172170
folder instead of the current working directory. See

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

-2
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,6 @@ <h4 id="global"><code>global</code></h4>
223223
<ul>
224224
<li>Default: false</li>
225225
<li>Type: Boolean</li>
226-
<li>DEPRECATED: <code>--global</code>, <code>--local</code> are deprecated. Use <code>--location=global</code>
227-
instead.</li>
228226
</ul>
229227
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
230228
folder instead of the current working directory. See

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

-2
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,6 @@ <h4 id="global"><code>global</code></h4>
334334
<ul>
335335
<li>Default: false</li>
336336
<li>Type: Boolean</li>
337-
<li>DEPRECATED: <code>--global</code>, <code>--local</code> are deprecated. Use <code>--location=global</code>
338-
instead.</li>
339337
</ul>
340338
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
341339
folder instead of the current working directory. See

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

+10-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ <h1 id="npm-init">npm-init</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><ul><li><a href="#forwarding-additional-options">Forwarding additional options</a></li></ul><li><a href="#examples">Examples</a></li><li><a href="#workspaces-support">Workspaces support</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#yes"><code>yes</code></a></li><li><a href="#force"><code>force</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></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><ul><li><a href="#forwarding-additional-options">Forwarding additional options</a></li></ul><li><a href="#examples">Examples</a></li><li><a href="#workspaces-support">Workspaces support</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#yes"><code>yes</code></a></li><li><a href="#force"><code>force</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li><li><a href="#workspaces-update"><code>workspaces-update</code></a></li><li><a href="#include-workspace-root"><code>include-workspace-root</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>
@@ -339,6 +339,15 @@ <h4 id="workspaces"><code>workspaces</code></h4>
339339
<p>This value is not exported to the environment for child processes.</p>
340340
<!-- raw HTML omitted -->
341341
<!-- raw HTML omitted -->
342+
<h4 id="workspaces-update"><code>workspaces-update</code></h4>
343+
<ul>
344+
<li>Default: true</li>
345+
<li>Type: Boolean</li>
346+
</ul>
347+
<p>If set to true, the npm cli will run an update after operations that may
348+
possibly change the workspaces installed to the <code>node_modules</code> folder.</p>
349+
<!-- raw HTML omitted -->
350+
<!-- raw HTML omitted -->
342351
<h4 id="include-workspace-root"><code>include-workspace-root</code></h4>
343352
<ul>
344353
<li>Default: false</li>

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

-2
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,6 @@ <h4 id="global"><code>global</code></h4>
196196
<ul>
197197
<li>Default: false</li>
198198
<li>Type: Boolean</li>
199-
<li>DEPRECATED: <code>--global</code>, <code>--local</code> are deprecated. Use <code>--location=global</code>
200-
instead.</li>
201199
</ul>
202200
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
203201
folder instead of the current working directory. See

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

-2
Original file line numberDiff line numberDiff line change
@@ -522,8 +522,6 @@ <h4 id="global"><code>global</code></h4>
522522
<ul>
523523
<li>Default: false</li>
524524
<li>Type: Boolean</li>
525-
<li>DEPRECATED: <code>--global</code>, <code>--local</code> are deprecated. Use <code>--location=global</code>
526-
instead.</li>
527525
</ul>
528526
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
529527
folder instead of the current working directory. See

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

-2
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,6 @@ <h4 id="global"><code>global</code></h4>
251251
<ul>
252252
<li>Default: false</li>
253253
<li>Type: Boolean</li>
254-
<li>DEPRECATED: <code>--global</code>, <code>--local</code> are deprecated. Use <code>--location=global</code>
255-
instead.</li>
256254
</ul>
257255
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
258256
folder instead of the current working directory. See

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ <h3 id="description">Description</h3>
166166
the results to only the paths to the packages named. Note that nested
167167
packages will <em>also</em> show the paths to the specified packages. For
168168
example, running <code>npm ls promzard</code> in npm's source tree will show:</p>
169-
<pre lang="bash"><code>npm@8.11.0 /path/to/npm
169+
<pre lang="bash"><code>npm@8.12.1 /path/to/npm
170170
└─┬ init-package-json@0.0.4
171171
└── promzard@0.1.5
172172
</code></pre>
@@ -246,8 +246,6 @@ <h4 id="global"><code>global</code></h4>
246246
<ul>
247247
<li>Default: false</li>
248248
<li>Type: Boolean</li>
249-
<li>DEPRECATED: <code>--global</code>, <code>--local</code> are deprecated. Use <code>--location=global</code>
250-
instead.</li>
251249
</ul>
252250
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
253251
folder instead of the current working directory. See

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

-2
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,6 @@ <h4 id="global"><code>global</code></h4>
268268
<ul>
269269
<li>Default: false</li>
270270
<li>Type: Boolean</li>
271-
<li>DEPRECATED: <code>--global</code>, <code>--local</code> are deprecated. Use <code>--location=global</code>
272-
instead.</li>
273271
</ul>
274272
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
275273
folder instead of the current working directory. See

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

-2
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,6 @@ <h4 id="global"><code>global</code></h4>
176176
<ul>
177177
<li>Default: false</li>
178178
<li>Type: Boolean</li>
179-
<li>DEPRECATED: <code>--global</code>, <code>--local</code> are deprecated. Use <code>--location=global</code>
180-
instead.</li>
181179
</ul>
182180
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
183181
folder instead of the current working directory. See

0 commit comments

Comments
 (0)