Skip to content

Commit 294664e

Browse files
ops+robot@npmjs.comtargos
ops+robot@npmjs.com
authored andcommitted
deps: upgrade npm to 8.7.0
PR-URL: #42744 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent 1a7af63 commit 294664e

File tree

340 files changed

+4868
-6011
lines changed

Some content is hidden

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

340 files changed

+4868
-6011
lines changed

deps/npm/README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
[![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/npm/cli/Node%20CI/latest)](https://github.com/npm/cli/actions?query=workflow%3A%22Node+CI%22+branch%3Alatest) [![Coveralls github branch](https://img.shields.io/coveralls/github/npm/cli/latest)](https://coveralls.io/github/npm/cli?branch=latest)
2-
31
# npm - a JavaScript package manager
42

3+
[![npm version](https://img.shields.io/npm/v/npm.svg)](https://npm.im/npm)
4+
[![license](https://img.shields.io/npm/l/npm.svg)](https://npm.im/npm)
5+
[![CI - cli](https://github.com/npm/cli/actions/workflows/ci.yml/badge.svg)](https://github.com/npm/cli/actions/workflows/ci.yml)
6+
[![Benchmark Suite](https://github.com/npm/cli/actions/workflows/benchmark.yml/badge.svg)](https://github.com/npm/cli/actions/workflows/benchmark.yml)
7+
58
### Requirements
69

710
One of the following versions of [Node.js](https://nodejs.org/en/download/) must be installed to run **`npm`**:

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

+2
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,8 @@ When false, specifying individual workspaces via the `workspace` config, or
394394
all workspaces via the `workspaces` flag, will cause npm to operate only on
395395
the specified workspaces, and not on the root project.
396396

397+
This value is not exported to the environment for child processes.
398+
397399
<!-- automatically generated, do not edit manually -->
398400
<!-- see lib/utils/config/definitions.js -->
399401

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

+7
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ In short, the main differences between using `npm install` and `npm ci` are:
4646
* It will never write to `package.json` or any of the package-locks:
4747
installs are essentially frozen.
4848

49+
NOTE: If you create your `package-lock.json` file by running `npm install`
50+
with flags that can affect the shape of your dependency tree, such as
51+
`--legacy-peer-deps`, you _must_ provide the same flags to `npm ci` or you
52+
are likely to encounter errors. An easy way to do this is to run
53+
`npm config set legacy-peer-deps=true --location=project` and commit the
54+
`.npmrc` file to your repo.
55+
4956
### Example
5057

5158
Make sure you have a package-lock and an up-to-date install:

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

+5-21
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,9 @@ result in new modules being installed.
8080

8181
Using `npm find-dupes` will run the command in `--dry-run` mode.
8282

83-
Note that by default `npm dedupe` will not update the semver values of direct
84-
dependencies in your project `package.json`, if you want to also update
85-
values in `package.json` you can run: `npm dedupe --save` (or add the
86-
`save=true` option to a [configuration file](/configuring-npm/npmrc)
87-
to make that the default behavior).
83+
Note: `npm dedupe` will never update the semver values of direct
84+
dependencies in your project `package.json`, if you want to update
85+
values in `package.json` you can run: `npm update --save` instead.
8886

8987
### Configuration
9088

@@ -158,22 +156,6 @@ This configuration does not affect `npm ci`.
158156
<!-- automatically generated, do not edit manually -->
159157
<!-- see lib/utils/config/definitions.js -->
160158
161-
#### `save`
162-
163-
* Default: `true` unless when using `npm update` or `npm dedupe` where it
164-
defaults to `false`
165-
* Type: Boolean
166-
167-
Save installed packages to a `package.json` file as dependencies.
168-
169-
When used with the `npm rm` command, removes the dependency from
170-
`package.json`.
171-
172-
Will also prevent writing to `package-lock.json` if set to `false`.
173-
174-
<!-- automatically generated, do not edit manually -->
175-
<!-- see lib/utils/config/definitions.js -->
176-
177159
#### `omit`
178160
179161
* Default: 'dev' if the `NODE_ENV` environment variable is set to
@@ -323,6 +305,8 @@ When false, specifying individual workspaces via the `workspace` config, or
323305
all workspaces via the `workspaces` flag, will cause npm to operate only on
324306
the specified workspaces, and not on the root project.
325307
308+
This value is not exported to the environment for child processes.
309+
326310
<!-- automatically generated, do not edit manually -->
327311
<!-- see lib/utils/config/definitions.js -->
328312

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

+2
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,8 @@ When false, specifying individual workspaces via the `workspace` config, or
335335
all workspaces via the `workspaces` flag, will cause npm to operate only on
336336
the specified workspaces, and not on the root project.
337337
338+
This value is not exported to the environment for child processes.
339+
338340
<!-- automatically generated, do not edit manually -->
339341
<!-- see lib/utils/config/definitions.js -->
340342

deps/npm/docs/content/commands/npm-dist-tag.md

+2
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ When false, specifying individual workspaces via the `workspace` config, or
159159
all workspaces via the `workspaces` flag, will cause npm to operate only on
160160
the specified workspaces, and not on the root project.
161161

162+
This value is not exported to the environment for child processes.
163+
162164
<!-- automatically generated, do not edit manually -->
163165
<!-- see lib/utils/config/definitions.js -->
164166

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

+2
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ When false, specifying individual workspaces via the `workspace` config, or
116116
all workspaces via the `workspaces` flag, will cause npm to operate only on
117117
the specified workspaces, and not on the root project.
118118
119+
This value is not exported to the environment for child processes.
120+
119121
<!-- automatically generated, do not edit manually -->
120122
<!-- see lib/utils/config/definitions.js -->
121123

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

+2
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ When false, specifying individual workspaces via the `workspace` config, or
205205
all workspaces via the `workspaces` flag, will cause npm to operate only on
206206
the specified workspaces, and not on the root project.
207207

208+
This value is not exported to the environment for child processes.
209+
208210
<!-- automatically generated, do not edit manually -->
209211
<!-- see lib/utils/config/definitions.js -->
210212

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

+2
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ When false, specifying individual workspaces via the `workspace` config, or
229229
all workspaces via the `workspaces` flag, will cause npm to operate only on
230230
the specified workspaces, and not on the root project.
231231

232+
This value is not exported to the environment for child processes.
233+
232234
<!-- automatically generated, do not edit manually -->
233235
<!-- see lib/utils/config/definitions.js -->
234236

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

+2
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ When false, specifying individual workspaces via the `workspace` config, or
264264
all workspaces via the `workspaces` flag, will cause npm to operate only on
265265
the specified workspaces, and not on the root project.
266266

267+
This value is not exported to the environment for child processes.
268+
267269
<!-- automatically generated, do not edit manually -->
268270
<!-- see lib/utils/config/definitions.js -->
269271

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ takes exactly the same arguments as `npm install`.
4242
<!-- see lib/utils/config/definitions.js -->
4343
#### `save`
4444

45-
* Default: `true` unless when using `npm update` or `npm dedupe` where it
46-
defaults to `false`
45+
* Default: `true` unless when using `npm update` where it defaults to `false`
4746
* Type: Boolean
4847

4948
Save installed packages to a `package.json` file as dependencies.
@@ -315,6 +314,8 @@ When false, specifying individual workspaces via the `workspace` config, or
315314
all workspaces via the `workspaces` flag, will cause npm to operate only on
316315
the specified workspaces, and not on the root project.
317316

317+
This value is not exported to the environment for child processes.
318+
318319
<!-- automatically generated, do not edit manually -->
319320
<!-- see lib/utils/config/definitions.js -->
320321

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,7 @@ These are some of the most common options related to installation.
432432
<!-- see lib/utils/config/definitions.js -->
433433
#### `save`
434434
435-
* Default: `true` unless when using `npm update` or `npm dedupe` where it
436-
defaults to `false`
435+
* Default: `true` unless when using `npm update` where it defaults to `false`
437436
* Type: Boolean
438437
439438
Save installed packages to a `package.json` file as dependencies.
@@ -705,6 +704,8 @@ When false, specifying individual workspaces via the `workspace` config, or
705704
all workspaces via the `workspaces` flag, will cause npm to operate only on
706705
the specified workspaces, and not on the root project.
707706
707+
This value is not exported to the environment for child processes.
708+
708709
<!-- automatically generated, do not edit manually -->
709710
<!-- see lib/utils/config/definitions.js -->
710711

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ workspace(s).
125125
<!-- see lib/utils/config/definitions.js -->
126126
#### `save`
127127

128-
* Default: `true` unless when using `npm update` or `npm dedupe` where it
129-
defaults to `false`
128+
* Default: `true` unless when using `npm update` where it defaults to `false`
130129
* Type: Boolean
131130

132131
Save installed packages to a `package.json` file as dependencies.
@@ -383,6 +382,8 @@ When false, specifying individual workspaces via the `workspace` config, or
383382
all workspaces via the `workspaces` flag, will cause npm to operate only on
384383
the specified workspaces, and not on the root project.
385384

385+
This value is not exported to the environment for child processes.
386+
386387
<!-- automatically generated, do not edit manually -->
387388
<!-- see lib/utils/config/definitions.js -->
388389

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

+2
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ When false, specifying individual workspaces via the `workspace` config, or
280280
all workspaces via the `workspaces` flag, will cause npm to operate only on
281281
the specified workspaces, and not on the root project.
282282

283+
This value is not exported to the environment for child processes.
284+
283285
<!-- automatically generated, do not edit manually -->
284286
<!-- see lib/utils/config/definitions.js -->
285287

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

+2
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ When false, specifying individual workspaces via the `workspace` config, or
122122
all workspaces via the `workspaces` flag, will cause npm to operate only on
123123
the specified workspaces, and not on the root project.
124124

125+
This value is not exported to the environment for child processes.
126+
125127
<!-- automatically generated, do not edit manually -->
126128
<!-- see lib/utils/config/definitions.js -->
127129

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

+2
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ When false, specifying individual workspaces via the `workspace` config, or
186186
all workspaces via the `workspaces` flag, will cause npm to operate only on
187187
the specified workspaces, and not on the root project.
188188

189+
This value is not exported to the environment for child processes.
190+
189191
<!-- automatically generated, do not edit manually -->
190192
<!-- see lib/utils/config/definitions.js -->
191193

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

+2
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ When false, specifying individual workspaces via the `workspace` config, or
238238
all workspaces via the `workspaces` flag, will cause npm to operate only on
239239
the specified workspaces, and not on the root project.
240240

241+
This value is not exported to the environment for child processes.
242+
241243
<!-- automatically generated, do not edit manually -->
242244
<!-- see lib/utils/config/definitions.js -->
243245

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

+2
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ When false, specifying individual workspaces via the `workspace` config, or
157157
all workspaces via the `workspaces` flag, will cause npm to operate only on
158158
the specified workspaces, and not on the root project.
159159

160+
This value is not exported to the environment for child processes.
161+
160162
<!-- automatically generated, do not edit manually -->
161163
<!-- see lib/utils/config/definitions.js -->
162164

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

+2
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ When false, specifying individual workspaces via the `workspace` config, or
103103
all workspaces via the `workspaces` flag, will cause npm to operate only on
104104
the specified workspaces, and not on the root project.
105105
106+
This value is not exported to the environment for child processes.
107+
106108
<!-- automatically generated, do not edit manually -->
107109
<!-- see lib/utils/config/definitions.js -->
108110

deps/npm/docs/content/commands/npm-run-script.md

+4
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ When false, specifying individual workspaces via the `workspace` config, or
203203
all workspaces via the `workspaces` flag, will cause npm to operate only on
204204
the specified workspaces, and not on the root project.
205205

206+
This value is not exported to the environment for child processes.
207+
206208
<!-- automatically generated, do not edit manually -->
207209
<!-- see lib/utils/config/definitions.js -->
208210

@@ -218,6 +220,8 @@ it's present and fail if the script fails. This is useful, for example, when
218220
running scripts that may only apply for some builds in an otherwise generic
219221
CI setup.
220222

223+
This value is not exported to the environment for child processes.
224+
221225
<!-- automatically generated, do not edit manually -->
222226
<!-- see lib/utils/config/definitions.js -->
223227

deps/npm/docs/content/commands/npm-set-script.md

+2
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ When false, specifying individual workspaces via the `workspace` config, or
9797
all workspaces via the `workspaces` flag, will cause npm to operate only on
9898
the specified workspaces, and not on the root project.
9999

100+
This value is not exported to the environment for child processes.
101+
100102
<!-- automatically generated, do not edit manually -->
101103
<!-- see lib/utils/config/definitions.js -->
102104

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ It also removes the package from the `dependencies`, `devDependencies`,
3030
`optionalDependencies`, and `peerDependencies` objects in your
3131
`package.json`.
3232

33-
Futher, if you have an `npm-shrinkwrap.json` or `package-lock.json`, npm
33+
Further, if you have an `npm-shrinkwrap.json` or `package-lock.json`, npm
3434
will update those files as well.
3535

3636
`--no-save` will tell npm not to remove the package from your
@@ -70,8 +70,7 @@ npm uninstall lodash --no-save
7070
<!-- see lib/utils/config/definitions.js -->
7171
#### `save`
7272

73-
* Default: `true` unless when using `npm update` or `npm dedupe` where it
74-
defaults to `false`
73+
* Default: `true` unless when using `npm update` where it defaults to `false`
7574
* Type: Boolean
7675

7776
Save installed packages to a `package.json` file as dependencies.
@@ -141,6 +140,8 @@ When false, specifying individual workspaces via the `workspace` config, or
141140
all workspaces via the `workspaces` flag, will cause npm to operate only on
142141
the specified workspaces, and not on the root project.
143142

143+
This value is not exported to the environment for child processes.
144+
144145
<!-- automatically generated, do not edit manually -->
145146
<!-- see lib/utils/config/definitions.js -->
146147

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,7 @@ be _downgraded_.
171171
<!-- see lib/utils/config/definitions.js -->
172172
#### `save`
173173

174-
* Default: `true` unless when using `npm update` or `npm dedupe` where it
175-
defaults to `false`
174+
* Default: `true` unless when using `npm update` where it defaults to `false`
176175
* Type: Boolean
177176

178177
Save installed packages to a `package.json` file as dependencies.
@@ -433,6 +432,8 @@ When false, specifying individual workspaces via the `workspace` config, or
433432
all workspaces via the `workspaces` flag, will cause npm to operate only on
434433
the specified workspaces, and not on the root project.
435434

435+
This value is not exported to the environment for child processes.
436+
436437
<!-- automatically generated, do not edit manually -->
437438
<!-- see lib/utils/config/definitions.js -->
438439

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

+2
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ When false, specifying individual workspaces via the `workspace` config, or
166166
all workspaces via the `workspaces` flag, will cause npm to operate only on
167167
the specified workspaces, and not on the root project.
168168

169+
This value is not exported to the environment for child processes.
170+
169171
<!-- automatically generated, do not edit manually -->
170172
<!-- see lib/utils/config/definitions.js -->
171173

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

+2
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ When false, specifying individual workspaces via the `workspace` config, or
180180
all workspaces via the `workspaces` flag, will cause npm to operate only on
181181
the specified workspaces, and not on the root project.
182182

183+
This value is not exported to the environment for child processes.
184+
183185
<!-- automatically generated, do not edit manually -->
184186
<!-- see lib/utils/config/definitions.js -->
185187

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

+5-2
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,8 @@ it's present and fail if the script fails. This is useful, for example, when
762762
running scripts that may only apply for some builds in an otherwise generic
763763
CI setup.
764764

765+
This value is not exported to the environment for child processes.
766+
765767
<!-- automatically generated, do not edit manually -->
766768
<!-- see lib/utils/config/definitions.js -->
767769

@@ -819,6 +821,8 @@ When false, specifying individual workspaces via the `workspace` config, or
819821
all workspaces via the `workspaces` flag, will cause npm to operate only on
820822
the specified workspaces, and not on the root project.
821823

824+
This value is not exported to the environment for child processes.
825+
822826
<!-- automatically generated, do not edit manually -->
823827
<!-- see lib/utils/config/definitions.js -->
824828

@@ -1343,8 +1347,7 @@ The base URL of the npm registry.
13431347

13441348
#### `save`
13451349

1346-
* Default: `true` unless when using `npm update` or `npm dedupe` where it
1347-
defaults to `false`
1350+
* Default: `true` unless when using `npm update` where it defaults to `false`
13481351
* Type: Boolean
13491352

13501353
Save installed packages to a `package.json` file as dependencies.

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

+1
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@ <h4 id="include-workspace-root"><code>include-workspace-root</code></h4>
439439
<p>When false, specifying individual workspaces via the <code>workspace</code> config, or
440440
all workspaces via the <code>workspaces</code> flag, will cause npm to operate only on
441441
the specified workspaces, and not on the root project.</p>
442+
<p>This value is not exported to the environment for child processes.</p>
442443
<!-- raw HTML omitted -->
443444
<!-- raw HTML omitted -->
444445
<!-- raw HTML omitted -->

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

+6
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,12 @@ <h3 id="description">Description</h3>
179179
<li>It will never write to <code>package.json</code> or any of the package-locks:
180180
installs are essentially frozen.</li>
181181
</ul>
182+
<p>NOTE: If you create your <code>package-lock.json</code> file by running <code>npm install</code>
183+
with flags that can affect the shape of your dependency tree, such as
184+
<code>--legacy-peer-deps</code>, you <em>must</em> provide the same flags to <code>npm ci</code> or you
185+
are likely to encounter errors. An easy way to do this is to run
186+
<code>npm config set legacy-peer-deps=true --location=project</code> and commit the
187+
<code>.npmrc</code> file to your repo.</p>
182188
<h3 id="example">Example</h3>
183189
<p>Make sure you have a package-lock and an up-to-date install:</p>
184190
<pre lang="bash"><code>$ cd ./my/npm/project

0 commit comments

Comments
 (0)