Skip to content

Commit da5ce2c

Browse files
committed
deps: upgrade npm to 12.0.0-pre.1
1 parent 68f14c2 commit da5ce2c

984 files changed

Lines changed: 33484 additions & 12157 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-adduser.md

Lines changed: 0 additions & 87 deletions
This file was deleted.

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ records which of your dependencies are permitted to run install scripts
2121
(`preinstall`, `install`, `postinstall`, and `prepare` for non-registry
2222
sources). This command is the recommended way to maintain that field.
2323

24-
In the current release, this field is advisory: install scripts still run
25-
by default, but installs print a list of packages whose scripts have not
26-
been reviewed. A future release will block unreviewed install scripts.
24+
Dependency install scripts are blocked by default. Install commands
25+
silently skip lifecycle scripts for any dependency that does not have a
26+
matching entry in `allowScripts`, and end with a list of the packages
27+
whose scripts were skipped so you can review them with this command.
2728

2829
This command only works inside a project that has a `package.json`. Running
2930
it with `--global` (`-g`) fails with an `EGLOBAL` error, since global

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This option does not filter the report output, it simply changes the command's f
2727

2828
### Package lock
2929

30-
By default npm requires a package-lock or shrinkwrap in order to run the audit.
30+
By default npm requires a package-lock in order to run the audit.
3131
You can bypass the package lock with `--no-package-lock` but be aware the results may be different with every run, since npm will re-build the dependency tree each time.
3232

3333
### Audit Signatures
@@ -313,8 +313,7 @@ will also prevent _writing_ `package-lock.json` if `save` is true.
313313
Dependency types to omit from the installation tree on disk.
314314

315315
Note that these dependencies _are_ still resolved and added to the
316-
`package-lock.json` or `npm-shrinkwrap.json` file. They are just not
317-
physically installed on disk.
316+
`package-lock.json` file. They are just not physically installed on disk.
318317

319318
If a package type appears in both the `--include` and `--omit` lists, then
320319
it will be included.

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

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@ This command is similar to [`npm install`](/commands/npm-install), except it's m
1818

1919
The main differences between using `npm install` and `npm ci` are:
2020

21-
* The project **must** have an existing `package-lock.json` or
22-
`npm-shrinkwrap.json`.
21+
* The project **must** have an existing `package-lock.json`.
2322
* If dependencies in the package lock do not match those in `package.json`,
2423
`npm ci` will exit with an error, instead of updating the package lock.
2524
* `npm ci` can only install entire projects at a time: individual dependencies cannot be added with this command.
2625
* If a `node_modules` is already present, it will be automatically removed before `npm ci` begins its install.
27-
* It will never write to `package.json` or any of the package-locks:
26+
* It will never write to `package.json` or `package-lock.json`:
2827
installs are essentially frozen.
2928

3029
NOTE: If you create your `package-lock.json` file by running `npm install` with flags that can affect the shape of your dependency tree, such as
@@ -114,8 +113,7 @@ on deeper dependencies. Sets `--install-strategy=shallow`.
114113
Dependency types to omit from the installation tree on disk.
115114

116115
Note that these dependencies _are_ still resolved and added to the
117-
`package-lock.json` or `npm-shrinkwrap.json` file. They are just not
118-
physically installed on disk.
116+
`package-lock.json` file. They are just not physically installed on disk.
119117

120118
If a package type appears in both the `--include` and `--omit` lists, then
121119
it will be included.
@@ -227,7 +225,7 @@ dependencies to be used for other commands like `npm view`
227225

228226
#### `allow-git`
229227

230-
* Default: "all"
228+
* Default: "none"
231229
* Type: "all", "none", or "root"
232230

233231
Limits the ability for npm to fetch dependencies from git references. That
@@ -236,6 +234,11 @@ range. Please note that this could leave your tree incomplete and some
236234
packages may not function as intended or designed. Changing this setting
237235
will not remove dependencies that are already installed.
238236

237+
As of npm 12 the default is `none`. Git dependencies run `git` against a
238+
remote repo and may install configuration the project does not control. Opt
239+
in explicitly per project (in `.npmrc`) or per command (on the CLI) when you
240+
need git deps.
241+
239242
`all` allows any git dependencies to be fetched and installed. `none`
240243
prevents any git dependencies from being fetched and installed. `root` only
241244
allows git dependencies defined in your project's package.json to be fetched
@@ -246,7 +249,7 @@ like `npm view`
246249

247250
#### `allow-remote`
248251

249-
* Default: "all"
252+
* Default: "none"
250253
* Type: "all", "none", or "root"
251254

252255
Limits the ability for npm to fetch dependencies from urls. That is,
@@ -255,6 +258,13 @@ range. Please note that this could leave your tree incomplete and some
255258
packages may not function as intended or designed. Changing this setting
256259
will not remove dependencies that are already installed.
257260

261+
As of npm 12 the default is `none`. Tarballs that share a hostname with the
262+
configured registry (the typical case for the npm registry, GitHub Packages,
263+
and most private registries) are still installed normally. If your registry
264+
serves tarballs from a different host, set `replace-registry-host` or
265+
override this setting. Opt in explicitly per project (in `.npmrc`) or per
266+
command (on the CLI) when you intentionally install from a URL.
267+
258268
`all` allows any url to be installed. `none` prevents any url from being
259269
installed. `root` only allows urls defined in your project's package.json to
260270
be installed. Also allows url dependencies to be used for other commands
@@ -290,11 +300,12 @@ the package's self-reported name. `--ignore-scripts` and
290300
* Type: Boolean
291301

292302
If `true`, turn the install-script policy from a warning into a hard error:
293-
any dependency with install scripts not covered by `allowScripts` will fail
294-
the install instead of running with a notice.
303+
any dependency with install scripts that is not covered by `allowScripts`
304+
will fail the install instead of being blocked with a warning.
295305

296306
Dependencies explicitly denied with `false` in `allowScripts` are always
297-
silently skipped; this setting only affects unreviewed entries.
307+
silently skipped; this setting only affects unreviewed entries (packages
308+
with install scripts that are neither approved nor denied).
298309
`--ignore-scripts` and `--dangerously-allow-all-scripts` both override this
299310
setting.
300311

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

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ will also prevent _writing_ `package-lock.json` if `save` is true.
145145
Dependency types to omit from the installation tree on disk.
146146
147147
Note that these dependencies _are_ still resolved and added to the
148-
`package-lock.json` or `npm-shrinkwrap.json` file. They are just not
149-
physically installed on disk.
148+
`package-lock.json` file. They are just not physically installed on disk.
150149
151150
If a package type appears in both the `--include` and `--omit` lists, then
152151
it will be included.
@@ -222,7 +221,7 @@ dependencies to be used for other commands like `npm view`
222221
223222
#### `allow-git`
224223
225-
* Default: "all"
224+
* Default: "none"
226225
* Type: "all", "none", or "root"
227226
228227
Limits the ability for npm to fetch dependencies from git references. That
@@ -231,6 +230,11 @@ range. Please note that this could leave your tree incomplete and some
231230
packages may not function as intended or designed. Changing this setting
232231
will not remove dependencies that are already installed.
233232
233+
As of npm 12 the default is `none`. Git dependencies run `git` against a
234+
remote repo and may install configuration the project does not control. Opt
235+
in explicitly per project (in `.npmrc`) or per command (on the CLI) when you
236+
need git deps.
237+
234238
`all` allows any git dependencies to be fetched and installed. `none`
235239
prevents any git dependencies from being fetched and installed. `root` only
236240
allows git dependencies defined in your project's package.json to be fetched
@@ -241,7 +245,7 @@ like `npm view`
241245

242246
#### `allow-remote`
243247

244-
* Default: "all"
248+
* Default: "none"
245249
* Type: "all", "none", or "root"
246250

247251
Limits the ability for npm to fetch dependencies from urls. That is,
@@ -250,6 +254,13 @@ range. Please note that this could leave your tree incomplete and some
250254
packages may not function as intended or designed. Changing this setting
251255
will not remove dependencies that are already installed.
252256

257+
As of npm 12 the default is `none`. Tarballs that share a hostname with the
258+
configured registry (the typical case for the npm registry, GitHub Packages,
259+
and most private registries) are still installed normally. If your registry
260+
serves tarballs from a different host, set `replace-registry-host` or
261+
override this setting. Opt in explicitly per project (in `.npmrc`) or per
262+
command (on the CLI) when you intentionally install from a URL.
263+
253264
`all` allows any url to be installed. `none` prevents any url from being
254265
installed. `root` only allows urls defined in your project's package.json to
255266
be installed. Also allows url dependencies to be used for other commands

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ Writes `false` entries into the `allowScripts` field of your project's
2020
`package.json`, recording that a dependency must not run install scripts
2121
even if a future version would otherwise be eligible.
2222

23-
In the current release, install scripts still run by default, so `deny-scripts`
24-
only affects how installs of denied packages are reported. A future release
25-
will block unreviewed install scripts and respect deny entries at install
26-
time.
23+
Dependency install scripts are blocked by default. Adding a `false`
24+
entry with `deny-scripts` makes the denial explicit (so it survives
25+
`npm approve-scripts --all`) and excludes the package from any future
26+
`--allow-scripts-pending` review prompts.
2727

2828
```bash
2929
npm deny-scripts <pkg> [<pkg> ...]

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ npm deprecate my-thing@1.x "1.x is no longer supported"
3232
In this case, a version `my-thing@1.0.0-beta.0` will also be deprecated.
3333

3434
You must be the package owner to deprecate something.
35-
See the `owner` and `adduser` help topics.
35+
See the `owner` and `login` help topics.
3636

3737
To un-deprecate a package, specify an empty string (`""`) for the `message` argument.
3838
Note that you must use double quotes with no space between them to format an empty string.
@@ -82,4 +82,4 @@ Note: This is NOT honored by other network related commands, eg `dist-tags`,
8282
* [npm publish](/commands/npm-publish)
8383
* [npm registry](/using-npm/registry)
8484
* [npm owner](/commands/npm-owner)
85-
* [npm adduser](/commands/npm-adduser)
85+
* [npm login](/commands/npm-login)

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,12 @@ the package's self-reported name. `--ignore-scripts` and
186186
* Type: Boolean
187187

188188
If `true`, turn the install-script policy from a warning into a hard error:
189-
any dependency with install scripts not covered by `allowScripts` will fail
190-
the install instead of running with a notice.
189+
any dependency with install scripts that is not covered by `allowScripts`
190+
will fail the install instead of being blocked with a warning.
191191

192192
Dependencies explicitly denied with `false` in `allowScripts` are always
193-
silently skipped; this setting only affects unreviewed entries.
193+
silently skipped; this setting only affects unreviewed entries (packages
194+
with install scripts that are neither approved nor denied).
194195
`--ignore-scripts` and `--dangerously-allow-all-scripts` both override this
195196
setting.
196197

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ will also prevent _writing_ `package-lock.json` if `save` is true.
9696
Dependency types to omit from the installation tree on disk.
9797

9898
Note that these dependencies _are_ still resolved and added to the
99-
`package-lock.json` or `npm-shrinkwrap.json` file. They are just not
100-
physically installed on disk.
99+
`package-lock.json` file. They are just not physically installed on disk.
101100

102101
If a package type appears in both the `--include` and `--omit` lists, then
103102
it will be included.

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,11 @@ homepage.
157157

158158
#### `init-license`
159159

160-
* Default: "ISC"
160+
* Default: ""
161161
* Type: String
162162

163-
The value `npm init` should use by default for the package license.
163+
The value `npm init` should use by default for the package license. If not
164+
set, the license field will be omitted from new packages.
164165

165166

166167

0 commit comments

Comments
 (0)