Skip to content

Commit 25b22e4

Browse files
authored
deps: upgrade npm to 11.0.0
PR-URL: nodejs#56274 Reviewed-By: Jordan Harband <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]>
1 parent 3946f16 commit 25b22e4

File tree

450 files changed

+6414
-8837
lines changed

Some content is hidden

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

450 files changed

+6414
-8837
lines changed

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

-112
This file was deleted.

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

+1-29
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@10.9.2 /path/to/npm
30+
npm@11.0.0 /path/to/npm
3131
3232
3333
```
@@ -43,34 +43,6 @@ dependencies, not the physical layout of your `node_modules` folder.
4343

4444
When run as `ll` or `la`, it shows extended information by default.
4545

46-
### Note: Design Changes Pending
47-
48-
The `npm ls` command's output and behavior made a _ton_ of sense when npm
49-
created a `node_modules` folder that naively nested every dependency. In
50-
such a case, the logical dependency graph and physical tree of packages on
51-
disk would be roughly identical.
52-
53-
With the advent of automatic install-time deduplication of dependencies in
54-
npm v3, the `ls` output was modified to display the logical dependency
55-
graph as a tree structure, since this was more useful to most users.
56-
However, without using `npm ls -l`, it became impossible to show _where_ a
57-
package was actually installed much of the time!
58-
59-
With the advent of automatic installation of `peerDependencies` in npm v7,
60-
this gets even more curious, as `peerDependencies` are logically
61-
"underneath" their dependents in the dependency graph, but are always
62-
physically at or above their location on disk.
63-
64-
Also, in the years since npm got an `ls` command (in version 0.0.2!),
65-
dependency graphs have gotten much larger as a general rule. Therefore, in
66-
order to avoid dumping an excessive amount of content to the terminal, `npm
67-
ls` now only shows the _top_ level dependencies, unless `--all` is
68-
provided.
69-
70-
A thorough re-examination of the use cases, intention, behavior, and output
71-
of this command, is currently underway. Expect significant changes to at
72-
least the default human-readable `npm ls` output in npm v8.
73-
7446
### Configuration
7547

7648
#### `all`

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

+14
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,20 @@ the specified workspaces, and not on the root project.
103103

104104
This value is not exported to the environment for child processes.
105105

106+
#### `ignore-scripts`
107+
108+
* Default: false
109+
* Type: Boolean
110+
111+
If true, npm does not run scripts specified in package.json files.
112+
113+
Note that commands explicitly intended to run a particular script, such as
114+
`npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
115+
will still run their intended script if `ignore-scripts` is set, but they
116+
will *not* run any pre- or post-scripts.
117+
118+
119+
106120
### Description
107121

108122
For anything that's installable (that is, a package folder, tarball,

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Display prefix
77
### Synopsis
88

99
```bash
10-
npm prefix [-g]
10+
npm prefix
1111
```
1212

1313
Note: This command is unaware of workspaces.

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

+3
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ See [`developers`](/using-npm/developers) for full details on what's
8585
included in the published package, as well as details on how the package is
8686
built.
8787

88+
See [`package.json`](/configuring-npm/package-json) for more info on
89+
what can and can't be ignored.
90+
8891
### Configuration
8992

9093
#### `tag`

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

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

1515
### Version
1616

17-
10.9.2
17+
11.0.0
1818

1919
### Description
2020

deps/npm/docs/content/configuring-npm/npmrc.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ The full list is:
103103
- `username`
104104
- `_password`
105105
- `email`
106-
- `certfile` (path to certificate file)
106+
- `cafile` (path to certificate authority file)
107107
- `keyfile` (path to key file)
108108

109109
In order to scope these values, they must be prefixed by a URI fragment.

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

+14
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ Some files are always ignored by default:
324324
if you wish it to be published)
325325
* `pnpm-lock.yaml`
326326
* `yarn.lock`
327+
* `bun.lockb`
327328

328329
Most of these ignored files can be included specifically if included in
329330
the `files` globs. Exceptions to this are:
@@ -334,6 +335,7 @@ the `files` globs. Exceptions to this are:
334335
* `package-lock.json`
335336
* `pnpm-lock.yaml`
336337
* `yarn.lock`
338+
* `bun.lockb`
337339

338340
These can not be included.
339341

@@ -1129,6 +1131,18 @@ Like the `os` option, you can also block architectures:
11291131
11301132
The host architecture is determined by `process.arch`
11311133
1134+
### libc
1135+
1136+
If your code only runs or builds in certain versions of libc, you can
1137+
specify which ones. This field only applies if `os` is `linux`.
1138+
1139+
```json
1140+
{
1141+
"os": "linux",
1142+
"libc": "glibc"
1143+
}
1144+
```
1145+
11321146
### devEngines
11331147
11341148
The `devEngines` field aids engineers working on a codebase to all be using the same tooling.

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -1833,9 +1833,9 @@ When set to `dev` or `development`, this is an alias for `--include=dev`.
18331833
* Default: null
18341834
* Type: null or String
18351835
* DEPRECATED: `key` and `cert` are no longer used for most registry
1836-
operations. Use registry scoped `keyfile` and `certfile` instead. Example:
1836+
operations. Use registry scoped `keyfile` and `cafile` instead. Example:
18371837
//other-registry.tld/:keyfile=/path/to/key.pem
1838-
//other-registry.tld/:certfile=/path/to/cert.crt
1838+
//other-registry.tld/:cafile=/path/to/cert.crt
18391839

18401840
A client certificate to pass when accessing the registry. Values should be
18411841
in PEM format (Windows calls it "Base-64 encoded X.509 (.CER)") with
@@ -1846,8 +1846,8 @@ cert="-----BEGIN CERTIFICATE-----\nXXXX\nXXXX\n-----END CERTIFICATE-----"
18461846
```
18471847

18481848
It is _not_ the path to a certificate file, though you can set a
1849-
registry-scoped "certfile" path like
1850-
"//other-registry.tld/:certfile=/path/to/cert.pem".
1849+
registry-scoped "cafile" path like
1850+
"//other-registry.tld/:cafile=/path/to/cert.pem".
18511851

18521852

18531853

@@ -1938,9 +1938,9 @@ Alias for `--init-version`
19381938
* Default: null
19391939
* Type: null or String
19401940
* DEPRECATED: `key` and `cert` are no longer used for most registry
1941-
operations. Use registry scoped `keyfile` and `certfile` instead. Example:
1941+
operations. Use registry scoped `keyfile` and `cafile` instead. Example:
19421942
//other-registry.tld/:keyfile=/path/to/key.pem
1943-
//other-registry.tld/:certfile=/path/to/cert.crt
1943+
//other-registry.tld/:cafile=/path/to/cert.crt
19441944

19451945
A client key to pass when accessing the registry. Values should be in PEM
19461946
format with newlines replaced by the string "\n". For example:

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

+5-2
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ as `.gitignore` files:
112112
* You can end patterns with a forward slash `/` to specify a directory.
113113
* You can negate a pattern by starting it with an exclamation point `!`.
114114

115-
By default, the following paths and files are ignored, so there's no
116-
need to add them to `.npmignore` explicitly:
115+
By default, some paths and files are ignored, so there's no
116+
need to add them to `.npmignore` explicitly. Some examples are:
117117

118118
* `.*.swp`
119119
* `._*`
@@ -148,6 +148,9 @@ property of `package.json`, which is an array of file or directory names
148148
that should be included in your package. Sometimes manually picking
149149
which items to allow is easier to manage than building a block list.
150150

151+
See [`package.json`](/configuring-npm/package-json) for more info on
152+
what can and can't be ignored.
153+
151154
#### Testing whether your `.npmignore` or `files` config works
152155

153156
If you want to double check that your package will include only the files

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

+2-2
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----1092">
144+
<h1 id="----npm-access----1100">
145145
<span>npm-access</span>
146-
<span class="version">@10.9.2</span>
146+
<span class="version">@11.0.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

+2-2
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----1092">
144+
<h1 id="----npm-adduser----1100">
145145
<span>npm-adduser</span>
146-
<span class="version">@10.9.2</span>
146+
<span class="version">@11.0.0</span>
147147
</h1>
148148
<span class="description">Add a registry user account</span>
149149
</header>

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

+2-2
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----1092">
144+
<h1 id="----npm-audit----1100">
145145
<span>npm-audit</span>
146-
<span class="version">@10.9.2</span>
146+
<span class="version">@11.0.0</span>
147147
</h1>
148148
<span class="description">Run a security audit</span>
149149
</header>

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

+2-2
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----1092">
144+
<h1 id="----npm-bugs----1100">
145145
<span>npm-bugs</span>
146-
<span class="version">@10.9.2</span>
146+
<span class="version">@11.0.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

+2-2
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-cache----1092">
144+
<h1 id="----npm-cache----1100">
145145
<span>npm-cache</span>
146-
<span class="version">@10.9.2</span>
146+
<span class="version">@11.0.0</span>
147147
</h1>
148148
<span class="description">Manipulates packages cache</span>
149149
</header>

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

+2-2
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----1092">
144+
<h1 id="----npm-ci----1100">
145145
<span>npm-ci</span>
146-
<span class="version">@10.9.2</span>
146+
<span class="version">@11.0.0</span>
147147
</h1>
148148
<span class="description">Clean install a project</span>
149149
</header>

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

+2-2
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----1092">
144+
<h1 id="----npm-completion----1100">
145145
<span>npm-completion</span>
146-
<span class="version">@10.9.2</span>
146+
<span class="version">@11.0.0</span>
147147
</h1>
148148
<span class="description">Tab Completion for npm</span>
149149
</header>

0 commit comments

Comments
 (0)