Skip to content

Commit 6c2480c

Browse files
npm-cli-botUlisesGascon
authored andcommitted
deps: upgrade npm to 10.0.0
PR-URL: #49423 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Debadree Chatterjee <debadree333@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ruy Adorno <ruyadorno@google.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
1 parent de0a51b commit 6c2480c

File tree

509 files changed

+23728
-4061
lines changed

Some content is hidden

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

509 files changed

+23728
-4061
lines changed

β€Ždeps/npm/docs/content/commands/npm-ls.md

+1-1

β€Ždeps/npm/docs/content/commands/npm-pkg.md

-1

β€Ždeps/npm/docs/content/commands/npm.md

+1-1

β€Ždeps/npm/docs/content/configuring-npm/package-json.md

+5-2

β€Ždeps/npm/docs/content/using-npm/config.md

-28

β€Ždeps/npm/docs/output/commands/npm-ls.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ <h3 id="description">Description</h3>
160160
the results to only the paths to the packages named. Note that nested
161161
packages will <em>also</em> show the paths to the specified packages. For
162162
example, running <code>npm ls promzard</code> in npm's source tree will show:</p>
163-
<pre><code class="language-bash">npm@9.8.1 /path/to/npm
163+
<pre><code class="language-bash">npm@10.0.0 /path/to/npm
164164
└─┬ init-package-json@0.0.4
165165
└── promzard@0.1.5
166166
</code></pre>

β€Ždeps/npm/docs/output/commands/npm-pkg.html

-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,6 @@ <h2 id="see-also">See Also</h2>
346346
<li><a href="../commands/npm-install.html">npm install</a></li>
347347
<li><a href="../commands/npm-init.html">npm init</a></li>
348348
<li><a href="../commands/npm-config.html">npm config</a></li>
349-
<li><a href="../commands/npm-set-script.html">npm set-script</a></li>
350349
<li><a href="../using-npm/workspaces.html">workspaces</a></li>
351350
</ul></div>
352351

β€Ždeps/npm/docs/output/commands/npm.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ <h2 id="table-of-contents">Table of contents</h2>
150150
</code></pre>
151151
<p>Note: This command is unaware of workspaces.</p>
152152
<h3 id="version">Version</h3>
153-
<p>9.8.1</p>
153+
<p>10.0.0</p>
154154
<h3 id="description">Description</h3>
155155
<p>npm is the package manager for the Node JavaScript platform. It puts
156156
modules in place so that node can find them, and manages dependency

β€Ždeps/npm/docs/output/configuring-npm/package-json.html

+5-2
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,10 @@ <h3 id="bugs">bugs</h3>
211211
issues with your package.</p>
212212
<p>It should look like this:</p>
213213
<pre><code class="language-json">{
214-
"url" : "https://github.com/owner/project/issues",
215-
"email" : "project@hostname.com"
214+
"bugs": {
215+
"url": "https://github.com/owner/project/issues",
216+
"email": "project@hostname.com"
217+
}
216218
}
217219
</code></pre>
218220
<p>You can specify either one or both values. If you want to provide only a
@@ -359,6 +361,7 @@ <h3 id="files">files</h3>
359361
<li><code>README</code></li>
360362
<li><code>LICENSE</code> / <code>LICENCE</code></li>
361363
<li>The file in the "main" field</li>
364+
<li>The file(s) in the "bin" field</li>
362365
</ul>
363366
<p><code>README</code> &amp; <code>LICENSE</code> can have any case and extension.</p>
364367
<p>Conversely, some files are always ignored:</p>

β€Ždeps/npm/docs/output/using-npm/config.html

+1-23
Large diffs are not rendered by default.

β€Ždeps/npm/lib/commands/audit.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const localeCompare = require('@isaacs/string-locale-compare')('en')
44
const npa = require('npm-package-arg')
55
const pacote = require('pacote')
66
const pMap = require('p-map')
7-
const { sigstore } = require('sigstore')
7+
const tufClient = require('@sigstore/tuf')
88

99
const ArboristWorkspaceCmd = require('../arborist-cmd.js')
1010
const auditError = require('../utils/audit-error.js')
@@ -38,8 +38,8 @@ class VerifySignatures {
3838
throw new Error('found no installed dependencies to audit')
3939
}
4040

41-
const tuf = await sigstore.tuf.client({
42-
tufCachePath: this.opts.tufCache,
41+
const tuf = await tufClient.initTUF({
42+
cachePath: this.opts.tufCache,
4343
retry: this.opts.retry,
4444
timeout: this.opts.timeout,
4545
})

β€Ždeps/npm/lib/commands/run-script.js

+1-15
Original file line numberDiff line numberDiff line change
@@ -207,24 +207,10 @@ class RunScript extends BaseCommand {
207207
log.error(err)
208208
log.error(` in workspace: ${pkg._id || pkg.name}`)
209209
log.error(` at location: ${workspacePath}`)
210-
211-
const scriptMissing = err.message.startsWith('Missing script')
212-
213-
// avoids exiting with error code in case there's scripts missing
214-
// in some workspaces since other scripts might have succeeded
215-
if (!scriptMissing) {
216-
process.exitCode = 1
217-
}
218-
219-
return scriptMissing
210+
process.exitCode = 1
220211
})
221212
res.push(runResult)
222213
}
223-
224-
// in case **all** tests are missing, then it should exit with error code
225-
if (res.every(Boolean)) {
226-
throw new Error(`Missing script: ${args[0]}`)
227-
}
228214
}
229215

230216
async listWorkspaces (args, filters) {

β€Ždeps/npm/lib/commands/search.js

+4
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ class Search extends BaseCommand {
6868
let anyOutput = false
6969

7070
class FilterStream extends Minipass {
71+
constructor () {
72+
super({ objectMode: true })
73+
}
74+
7175
write (pkg) {
7276
if (filter(pkg, opts.include, opts.exclude)) {
7377
super.write(pkg)

β€Ždeps/npm/lib/utils/format-search-stream.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function highlightSearchTerms (str, terms) {
143143
function normalizePackage (data, opts) {
144144
return {
145145
name: ansiTrim(data.name),
146-
description: ansiTrim(data.description),
146+
description: ansiTrim(data.description ?? ''),
147147
author: data.maintainers.map((m) => `=${ansiTrim(m.username)}`).join(' '),
148148
keywords: Array.isArray(data.keywords)
149149
? data.keywords.map(ansiTrim).join(' ')

β€Ždeps/npm/man/man1/npm-access.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-ACCESS" "1" "July 2023" "" ""
1+
.TH "NPM-ACCESS" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-access\fR - Set access level on published packages
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-adduser.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-ADDUSER" "1" "July 2023" "" ""
1+
.TH "NPM-ADDUSER" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-adduser\fR - Add a registry user account
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-audit.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-AUDIT" "1" "July 2023" "" ""
1+
.TH "NPM-AUDIT" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-audit\fR - Run a security audit
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-bugs.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-BUGS" "1" "July 2023" "" ""
1+
.TH "NPM-BUGS" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-bugs\fR - Report bugs for a package in a web browser
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-cache.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-CACHE" "1" "July 2023" "" ""
1+
.TH "NPM-CACHE" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-cache\fR - Manipulates packages cache
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-ci.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-CI" "1" "July 2023" "" ""
1+
.TH "NPM-CI" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-ci\fR - Clean install a project
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-completion.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-COMPLETION" "1" "July 2023" "" ""
1+
.TH "NPM-COMPLETION" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-completion\fR - Tab Completion for npm
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-config.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-CONFIG" "1" "July 2023" "" ""
1+
.TH "NPM-CONFIG" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-config\fR - Manage the npm configuration files
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-dedupe.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-DEDUPE" "1" "July 2023" "" ""
1+
.TH "NPM-DEDUPE" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-dedupe\fR - Reduce duplication in the package tree
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-deprecate.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-DEPRECATE" "1" "July 2023" "" ""
1+
.TH "NPM-DEPRECATE" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-deprecate\fR - Deprecate a version of a package
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-diff.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-DIFF" "1" "July 2023" "" ""
1+
.TH "NPM-DIFF" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-diff\fR - The registry diff command
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-dist-tag.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-DIST-TAG" "1" "July 2023" "" ""
1+
.TH "NPM-DIST-TAG" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-dist-tag\fR - Modify package distribution tags
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-docs.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-DOCS" "1" "July 2023" "" ""
1+
.TH "NPM-DOCS" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-docs\fR - Open documentation for a package in a web browser
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-doctor.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-DOCTOR" "1" "July 2023" "" ""
1+
.TH "NPM-DOCTOR" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-doctor\fR - Check your npm environment
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-edit.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-EDIT" "1" "July 2023" "" ""
1+
.TH "NPM-EDIT" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-edit\fR - Edit an installed package
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-exec.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-EXEC" "1" "July 2023" "" ""
1+
.TH "NPM-EXEC" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-exec\fR - Run a command from a local or remote npm package
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-explain.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-EXPLAIN" "1" "July 2023" "" ""
1+
.TH "NPM-EXPLAIN" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-explain\fR - Explain installed packages
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-explore.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-EXPLORE" "1" "July 2023" "" ""
1+
.TH "NPM-EXPLORE" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-explore\fR - Browse an installed package
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-find-dupes.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-FIND-DUPES" "1" "July 2023" "" ""
1+
.TH "NPM-FIND-DUPES" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-find-dupes\fR - Find duplication in the package tree
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-fund.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-FUND" "1" "July 2023" "" ""
1+
.TH "NPM-FUND" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-fund\fR - Retrieve funding information
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-help-search.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-HELP-SEARCH" "1" "July 2023" "" ""
1+
.TH "NPM-HELP-SEARCH" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-help-search\fR - Search npm help documentation
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-help.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-HELP" "1" "July 2023" "" ""
1+
.TH "NPM-HELP" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-help\fR - Get help on npm
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-hook.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-HOOK" "1" "July 2023" "" ""
1+
.TH "NPM-HOOK" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-hook\fR - Manage registry hooks
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-init.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-INIT" "1" "July 2023" "" ""
1+
.TH "NPM-INIT" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-init\fR - Create a package.json file
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-install-ci-test.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-INSTALL-CI-TEST" "1" "July 2023" "" ""
1+
.TH "NPM-INSTALL-CI-TEST" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-install-ci-test\fR - Install a project with a clean slate and run tests
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-install-test.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-INSTALL-TEST" "1" "July 2023" "" ""
1+
.TH "NPM-INSTALL-TEST" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-install-test\fR - Install package(s) and run tests
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-install.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-INSTALL" "1" "July 2023" "" ""
1+
.TH "NPM-INSTALL" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-install\fR - Install a package
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-link.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-LINK" "1" "July 2023" "" ""
1+
.TH "NPM-LINK" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-link\fR - Symlink a package folder
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-login.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-LOGIN" "1" "July 2023" "" ""
1+
.TH "NPM-LOGIN" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-login\fR - Login to a registry user account
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-logout.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-LOGOUT" "1" "July 2023" "" ""
1+
.TH "NPM-LOGOUT" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-logout\fR - Log out of the registry
44
.SS "Synopsis"

β€Ždeps/npm/man/man1/npm-ls.1

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM-LS" "1" "July 2023" "" ""
1+
.TH "NPM-LS" "1" "August 2023" "" ""
22
.SH "NAME"
33
\fBnpm-ls\fR - List installed packages
44
.SS "Synopsis"
@@ -20,7 +20,7 @@ Positional arguments are \fBname@version-range\fR identifiers, which will limit
2020
.P
2121
.RS 2
2222
.nf
23-
npm@9.8.1 /path/to/npm
23+
npm@10.0.0 /path/to/npm
2424
└─┬ init-package-json@0.0.4
2525
└── promzard@0.1.5
2626
.fi

0 commit comments

Comments
Β (0)