Skip to content

Commit fa0aadc

Browse files
authored
deps: upgrade npm to 11.15.0
PR-URL: #63463 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jordan Harband <ljharb@gmail.com>
1 parent 11ea171 commit fa0aadc

311 files changed

Lines changed: 9995 additions & 1231 deletions

File tree

Some content is hidden

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

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

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,42 @@ run any pre- or post-scripts.
189189

190190

191191

192+
#### `allow-directory`
193+
194+
* Default: "all"
195+
* Type: "all", "none", or "root"
196+
197+
Limits the ability for npm to install dependencies from directories. That
198+
is, dependencies that point to a directory instead of a version or semver
199+
range. Please note that this could leave your tree incomplete and some
200+
packages may not function as intended or designed. Changing this setting
201+
will not remove dependencies that are already installed.
202+
203+
`all` allows any directories to be installed. `none` prevents any
204+
directories from being installed. `root` only allows directories defined in
205+
your project's package.json to be installed. Also allows directory
206+
dependencies to be used for other commands like `npm view`
207+
208+
209+
210+
#### `allow-file`
211+
212+
* Default: "all"
213+
* Type: "all", "none", or "root"
214+
215+
Limits the ability for npm to install dependencies from tarball files. That
216+
is, dependencies that point to a local tarball file instead of a version or
217+
semver range. Please note that this could leave your tree incomplete and
218+
some packages may not function as intended or designed. Changing this
219+
setting will not remove dependencies that are already installed.
220+
221+
`all` allows any tarball file to be installed. `none` prevents any tarball
222+
file from being installed. `root` only allows tarball files defined in your
223+
project's package.json to be installed. Also allows tarball file
224+
dependencies to be used for other commands like `npm view`
225+
226+
227+
192228
#### `allow-git`
193229

194230
* Default: "all"
@@ -197,12 +233,31 @@ run any pre- or post-scripts.
197233
Limits the ability for npm to fetch dependencies from git references. That
198234
is, dependencies that point to a git repo instead of a version or semver
199235
range. Please note that this could leave your tree incomplete and some
200-
packages may not function as intended or designed.
236+
packages may not function as intended or designed. Changing this setting
237+
will not remove dependencies that are already installed.
201238

202239
`all` allows any git dependencies to be fetched and installed. `none`
203240
prevents any git dependencies from being fetched and installed. `root` only
204241
allows git dependencies defined in your project's package.json to be fetched
205-
installed. Also allows git dependencies to be fetched for other commands
242+
and installed. Also allows git dependencies to be fetched for other commands
243+
like `npm view`
244+
245+
246+
247+
#### `allow-remote`
248+
249+
* Default: "all"
250+
* Type: "all", "none", or "root"
251+
252+
Limits the ability for npm to fetch dependencies from urls. That is,
253+
dependencies that point to a tarball url instead of a version or semver
254+
range. Please note that this could leave your tree incomplete and some
255+
packages may not function as intended or designed. Changing this setting
256+
will not remove dependencies that are already installed.
257+
258+
`all` allows any url to be installed. `none` prevents any url from being
259+
installed. `root` only allows urls defined in your project's package.json to
260+
be installed. Also allows url dependencies to be used for other commands
206261
like `npm view`
207262

208263

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

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,42 @@ run any pre- or post-scripts.
184184
185185
186186
187+
#### `allow-directory`
188+
189+
* Default: "all"
190+
* Type: "all", "none", or "root"
191+
192+
Limits the ability for npm to install dependencies from directories. That
193+
is, dependencies that point to a directory instead of a version or semver
194+
range. Please note that this could leave your tree incomplete and some
195+
packages may not function as intended or designed. Changing this setting
196+
will not remove dependencies that are already installed.
197+
198+
`all` allows any directories to be installed. `none` prevents any
199+
directories from being installed. `root` only allows directories defined in
200+
your project's package.json to be installed. Also allows directory
201+
dependencies to be used for other commands like `npm view`
202+
203+
204+
205+
#### `allow-file`
206+
207+
* Default: "all"
208+
* Type: "all", "none", or "root"
209+
210+
Limits the ability for npm to install dependencies from tarball files. That
211+
is, dependencies that point to a local tarball file instead of a version or
212+
semver range. Please note that this could leave your tree incomplete and
213+
some packages may not function as intended or designed. Changing this
214+
setting will not remove dependencies that are already installed.
215+
216+
`all` allows any tarball file to be installed. `none` prevents any tarball
217+
file from being installed. `root` only allows tarball files defined in your
218+
project's package.json to be installed. Also allows tarball file
219+
dependencies to be used for other commands like `npm view`
220+
221+
222+
187223
#### `allow-git`
188224
189225
* Default: "all"
@@ -192,12 +228,31 @@ run any pre- or post-scripts.
192228
Limits the ability for npm to fetch dependencies from git references. That
193229
is, dependencies that point to a git repo instead of a version or semver
194230
range. Please note that this could leave your tree incomplete and some
195-
packages may not function as intended or designed.
231+
packages may not function as intended or designed. Changing this setting
232+
will not remove dependencies that are already installed.
196233
197234
`all` allows any git dependencies to be fetched and installed. `none`
198235
prevents any git dependencies from being fetched and installed. `root` only
199236
allows git dependencies defined in your project's package.json to be fetched
200-
installed. Also allows git dependencies to be fetched for other commands
237+
and installed. Also allows git dependencies to be fetched for other commands
238+
like `npm view`
239+
240+
241+
242+
#### `allow-remote`
243+
244+
* Default: "all"
245+
* Type: "all", "none", or "root"
246+
247+
Limits the ability for npm to fetch dependencies from urls. That is,
248+
dependencies that point to a tarball url instead of a version or semver
249+
range. Please note that this could leave your tree incomplete and some
250+
packages may not function as intended or designed. Changing this setting
251+
will not remove dependencies that are already installed.
252+
253+
`all` allows any url to be installed. `none` prevents any url from being
254+
installed. `root` only allows urls defined in your project's package.json to
255+
be installed. Also allows url dependencies to be used for other commands
201256
like `npm view`
202257
203258

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

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,42 @@ run any pre- or post-scripts.
142142

143143

144144

145+
#### `allow-directory`
146+
147+
* Default: "all"
148+
* Type: "all", "none", or "root"
149+
150+
Limits the ability for npm to install dependencies from directories. That
151+
is, dependencies that point to a directory instead of a version or semver
152+
range. Please note that this could leave your tree incomplete and some
153+
packages may not function as intended or designed. Changing this setting
154+
will not remove dependencies that are already installed.
155+
156+
`all` allows any directories to be installed. `none` prevents any
157+
directories from being installed. `root` only allows directories defined in
158+
your project's package.json to be installed. Also allows directory
159+
dependencies to be used for other commands like `npm view`
160+
161+
162+
163+
#### `allow-file`
164+
165+
* Default: "all"
166+
* Type: "all", "none", or "root"
167+
168+
Limits the ability for npm to install dependencies from tarball files. That
169+
is, dependencies that point to a local tarball file instead of a version or
170+
semver range. Please note that this could leave your tree incomplete and
171+
some packages may not function as intended or designed. Changing this
172+
setting will not remove dependencies that are already installed.
173+
174+
`all` allows any tarball file to be installed. `none` prevents any tarball
175+
file from being installed. `root` only allows tarball files defined in your
176+
project's package.json to be installed. Also allows tarball file
177+
dependencies to be used for other commands like `npm view`
178+
179+
180+
145181
#### `allow-git`
146182

147183
* Default: "all"
@@ -150,12 +186,31 @@ run any pre- or post-scripts.
150186
Limits the ability for npm to fetch dependencies from git references. That
151187
is, dependencies that point to a git repo instead of a version or semver
152188
range. Please note that this could leave your tree incomplete and some
153-
packages may not function as intended or designed.
189+
packages may not function as intended or designed. Changing this setting
190+
will not remove dependencies that are already installed.
154191

155192
`all` allows any git dependencies to be fetched and installed. `none`
156193
prevents any git dependencies from being fetched and installed. `root` only
157194
allows git dependencies defined in your project's package.json to be fetched
158-
installed. Also allows git dependencies to be fetched for other commands
195+
and installed. Also allows git dependencies to be fetched for other commands
196+
like `npm view`
197+
198+
199+
200+
#### `allow-remote`
201+
202+
* Default: "all"
203+
* Type: "all", "none", or "root"
204+
205+
Limits the ability for npm to fetch dependencies from urls. That is,
206+
dependencies that point to a tarball url instead of a version or semver
207+
range. Please note that this could leave your tree incomplete and some
208+
packages may not function as intended or designed. Changing this setting
209+
will not remove dependencies that are already installed.
210+
211+
`all` allows any url to be installed. `none` prevents any url from being
212+
installed. `root` only allows urls defined in your project's package.json to
213+
be installed. Also allows url dependencies to be used for other commands
159214
like `npm view`
160215

161216

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

Lines changed: 69 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,42 @@ run any pre- or post-scripts.
219219

220220

221221

222+
#### `allow-directory`
223+
224+
* Default: "all"
225+
* Type: "all", "none", or "root"
226+
227+
Limits the ability for npm to install dependencies from directories. That
228+
is, dependencies that point to a directory instead of a version or semver
229+
range. Please note that this could leave your tree incomplete and some
230+
packages may not function as intended or designed. Changing this setting
231+
will not remove dependencies that are already installed.
232+
233+
`all` allows any directories to be installed. `none` prevents any
234+
directories from being installed. `root` only allows directories defined in
235+
your project's package.json to be installed. Also allows directory
236+
dependencies to be used for other commands like `npm view`
237+
238+
239+
240+
#### `allow-file`
241+
242+
* Default: "all"
243+
* Type: "all", "none", or "root"
244+
245+
Limits the ability for npm to install dependencies from tarball files. That
246+
is, dependencies that point to a local tarball file instead of a version or
247+
semver range. Please note that this could leave your tree incomplete and
248+
some packages may not function as intended or designed. Changing this
249+
setting will not remove dependencies that are already installed.
250+
251+
`all` allows any tarball file to be installed. `none` prevents any tarball
252+
file from being installed. `root` only allows tarball files defined in your
253+
project's package.json to be installed. Also allows tarball file
254+
dependencies to be used for other commands like `npm view`
255+
256+
257+
222258
#### `allow-git`
223259

224260
* Default: "all"
@@ -227,12 +263,31 @@ run any pre- or post-scripts.
227263
Limits the ability for npm to fetch dependencies from git references. That
228264
is, dependencies that point to a git repo instead of a version or semver
229265
range. Please note that this could leave your tree incomplete and some
230-
packages may not function as intended or designed.
266+
packages may not function as intended or designed. Changing this setting
267+
will not remove dependencies that are already installed.
231268

232269
`all` allows any git dependencies to be fetched and installed. `none`
233270
prevents any git dependencies from being fetched and installed. `root` only
234271
allows git dependencies defined in your project's package.json to be fetched
235-
installed. Also allows git dependencies to be fetched for other commands
272+
and installed. Also allows git dependencies to be fetched for other commands
273+
like `npm view`
274+
275+
276+
277+
#### `allow-remote`
278+
279+
* Default: "all"
280+
* Type: "all", "none", or "root"
281+
282+
Limits the ability for npm to fetch dependencies from urls. That is,
283+
dependencies that point to a tarball url instead of a version or semver
284+
range. Please note that this could leave your tree incomplete and some
285+
packages may not function as intended or designed. Changing this setting
286+
will not remove dependencies that are already installed.
287+
288+
`all` allows any url to be installed. `none` prevents any url from being
289+
installed. `root` only allows urls defined in your project's package.json to
290+
be installed. Also allows url dependencies to be used for other commands
236291
like `npm view`
237292

238293

@@ -264,7 +319,13 @@ If the requested version is a `dist-tag` and the given tag does not pass the
264319
will be used. For example, `foo@latest` might install `foo@1.2` even though
265320
`latest` is `2.0`.
266321

267-
This config cannot be used with: `min-release-age`
322+
If `before` and `min-release-age` are both set in the same source, `before`
323+
wins (an explicit absolute date overrides a relative window). Across
324+
sources, the standard precedence applies (cli > env > project > user >
325+
global), so a higher-priority source can always relax or override a
326+
lower-priority one.
327+
328+
268329

269330
#### `min-release-age`
270331

@@ -277,9 +338,11 @@ are no versions available for the current set of dependencies, the command
277338
will error.
278339

279340
This flag is a complement to `before`, which accepts an exact date instead
280-
of a relative number of days.
281-
282-
This config cannot be used with: `before`
341+
of a relative number of days. The two may coexist (e.g. `min-release-age` in
342+
your `.npmrc` is preserved when npm internally spawns a sub-process with
343+
`--before` while preparing a `git:` or `github:` dependency); when both
344+
apply, `before` wins within a single source and across sources the standard
345+
precedence rules apply.
283346

284347
This value is not exported to the environment for child processes.
285348

0 commit comments

Comments
 (0)