Skip to content

Commit 20d8b85

Browse files
authored
deps: upgrade npm to 10.9.0
PR-URL: #55255 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
1 parent a301596 commit 20d8b85

File tree

813 files changed

+43927
-1054
lines changed

Some content is hidden

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

813 files changed

+43927
-1054
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Create a package.json file
77
### Synopsis
88

99
```bash
10-
npm init <package-spec> (same as `npx <package-spec>`)
10+
npm init <package-spec> (same as `npx create-<package-spec>`)
1111
npm init <@scope> (same as `npx <@scope>/create`)
1212

1313
aliases: create, innit

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

-4
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,6 @@ into a tarball (b).
178178
npm install ansi-regex --save-bundle
179179
```
180180

181-
**Note**: If there is a file or folder named `<name>` in the current
182-
working directory, then it will try to install that, and only try to
183-
fetch the package by name if it is not valid.
184-
185181
* `npm install <alias>@npm:<name>`:
186182

187183
Install a package under a custom alias. Allows multiple versions of

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

+1-1
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.8.3 /path/to/npm
30+
npm@10.9.0 /path/to/npm
3131
└─┬ init-package-json@0.0.4
3232
└── promzard@0.1.5
3333
```

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.8.3
17+
10.9.0
1818

1919
### Description
2020

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

+30
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,10 @@ the `files` globs. Exceptions to this are:
337337

338338
These can not be included.
339339

340+
### exports
341+
342+
The "exports" provides a modern alternative to "main" allowing multiple entry points to be defined, conditional entry resolution support between environments, and preventing any other entry points besides those defined in "exports". This encapsulation allows module authors to clearly define the public interface for their package. For more details see the [node.js documentation on package entry points](https://nodejs.org/api/packages.html#package-entry-points)
343+
340344
### main
341345

342346
The main field is a module ID that is the primary entry point to your
@@ -1125,6 +1129,32 @@ Like the `os` option, you can also block architectures:
11251129
11261130
The host architecture is determined by `process.arch`
11271131
1132+
### devEngines
1133+
1134+
The `devEngines` field aids engineers working on a codebase to all be using the same tooling.
1135+
1136+
You can specify a `devEngines` property in your `package.json` which will run before `install`, `ci`, and `run` commands.
1137+
1138+
> Note: `engines` and `devEngines` differ in object shape. They also function very differently. `engines` is designed to alert the user when a dependency uses a differening npm or node version that the project it's being used in, whereas `devEngines` is used to alert people interacting with the source code of a project.
1139+
1140+
The supported keys under the `devEngines` property are `cpu`, `os`, `libc`, `runtime`, and `packageManager`. Each property can be an object or an array of objects. Objects must contain `name`, and optionally can specify `version`, and `onFail`. `onFail` can be `warn`, `error`, or `ignore`, and if left undefined is of the same value as `error`. `npm` will assume that you're running with `node`.
1141+
Here's an example of a project that will fail if the environment is not `node` and `npm`. If you set `runtime.name` or `packageManager.name` to any other string, it will fail within the npm CLI.
1142+
1143+
```json
1144+
{
1145+
"devEngines": {
1146+
"runtime": {
1147+
"name": "node",
1148+
"onFail": "error"
1149+
},
1150+
"packageManager": {
1151+
"name": "npm",
1152+
"onFail": "error"
1153+
}
1154+
}
1155+
}
1156+
```
1157+
11281158
### private
11291159

11301160
If you set `"private": true` in your package.json, then npm will refuse to

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----1083">
144+
<h1 id="----npm-access----1090">
145145
<span>npm-access</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.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----1083">
144+
<h1 id="----npm-adduser----1090">
145145
<span>npm-adduser</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.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----1083">
144+
<h1 id="----npm-audit----1090">
145145
<span>npm-audit</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.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----1083">
144+
<h1 id="----npm-bugs----1090">
145145
<span>npm-bugs</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.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----1083">
144+
<h1 id="----npm-cache----1090">
145145
<span>npm-cache</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.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----1083">
144+
<h1 id="----npm-ci----1090">
145145
<span>npm-ci</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.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----1083">
144+
<h1 id="----npm-completion----1090">
145145
<span>npm-completion</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.0</span>
147147
</h1>
148148
<span class="description">Tab Completion for npm</span>
149149
</header>

deps/npm/docs/output/commands/npm-config.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-config----1083">
144+
<h1 id="----npm-config----1090">
145145
<span>npm-config</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.0</span>
147147
</h1>
148148
<span class="description">Manage the npm configuration files</span>
149149
</header>

deps/npm/docs/output/commands/npm-dedupe.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-dedupe----1083">
144+
<h1 id="----npm-dedupe----1090">
145145
<span>npm-dedupe</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.0</span>
147147
</h1>
148148
<span class="description">Reduce duplication in the package tree</span>
149149
</header>

deps/npm/docs/output/commands/npm-deprecate.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-deprecate----1083">
144+
<h1 id="----npm-deprecate----1090">
145145
<span>npm-deprecate</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.0</span>
147147
</h1>
148148
<span class="description">Deprecate a version of a package</span>
149149
</header>

deps/npm/docs/output/commands/npm-diff.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-diff----1083">
144+
<h1 id="----npm-diff----1090">
145145
<span>npm-diff</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.0</span>
147147
</h1>
148148
<span class="description">The registry diff command</span>
149149
</header>

deps/npm/docs/output/commands/npm-dist-tag.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-dist-tag----1083">
144+
<h1 id="----npm-dist-tag----1090">
145145
<span>npm-dist-tag</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.0</span>
147147
</h1>
148148
<span class="description">Modify package distribution tags</span>
149149
</header>

deps/npm/docs/output/commands/npm-docs.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-docs----1083">
144+
<h1 id="----npm-docs----1090">
145145
<span>npm-docs</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.0</span>
147147
</h1>
148148
<span class="description">Open documentation for a package in a web browser</span>
149149
</header>

deps/npm/docs/output/commands/npm-doctor.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-doctor----1083">
144+
<h1 id="----npm-doctor----1090">
145145
<span>npm-doctor</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.0</span>
147147
</h1>
148148
<span class="description">Check the health of your npm environment</span>
149149
</header>

deps/npm/docs/output/commands/npm-edit.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-edit----1083">
144+
<h1 id="----npm-edit----1090">
145145
<span>npm-edit</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.0</span>
147147
</h1>
148148
<span class="description">Edit an installed package</span>
149149
</header>

deps/npm/docs/output/commands/npm-exec.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-exec----1083">
144+
<h1 id="----npm-exec----1090">
145145
<span>npm-exec</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.0</span>
147147
</h1>
148148
<span class="description">Run a command from a local or remote npm package</span>
149149
</header>

deps/npm/docs/output/commands/npm-explain.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-explain----1083">
144+
<h1 id="----npm-explain----1090">
145145
<span>npm-explain</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.0</span>
147147
</h1>
148148
<span class="description">Explain installed packages</span>
149149
</header>

deps/npm/docs/output/commands/npm-explore.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-explore----1083">
144+
<h1 id="----npm-explore----1090">
145145
<span>npm-explore</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.0</span>
147147
</h1>
148148
<span class="description">Browse an installed package</span>
149149
</header>

deps/npm/docs/output/commands/npm-find-dupes.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-find-dupes----1083">
144+
<h1 id="----npm-find-dupes----1090">
145145
<span>npm-find-dupes</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.0</span>
147147
</h1>
148148
<span class="description">Find duplication in the package tree</span>
149149
</header>

deps/npm/docs/output/commands/npm-fund.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-fund----1083">
144+
<h1 id="----npm-fund----1090">
145145
<span>npm-fund</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.0</span>
147147
</h1>
148148
<span class="description">Retrieve funding information</span>
149149
</header>

deps/npm/docs/output/commands/npm-help-search.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-help-search----1083">
144+
<h1 id="----npm-help-search----1090">
145145
<span>npm-help-search</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.0</span>
147147
</h1>
148148
<span class="description">Search npm help documentation</span>
149149
</header>

deps/npm/docs/output/commands/npm-help.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-help----1083">
144+
<h1 id="----npm-help----1090">
145145
<span>npm-help</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.0</span>
147147
</h1>
148148
<span class="description">Get help on npm</span>
149149
</header>

deps/npm/docs/output/commands/npm-hook.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-hook----1083">
144+
<h1 id="----npm-hook----1090">
145145
<span>npm-hook</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.0</span>
147147
</h1>
148148
<span class="description">Manage registry hooks</span>
149149
</header>

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

+3-3
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-init----1083">
144+
<h1 id="----npm-init----1090">
145145
<span>npm-init</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.0</span>
147147
</h1>
148148
<span class="description">Create a package.json file</span>
149149
</header>
@@ -154,7 +154,7 @@ <h2 id="table-of-contents">Table of contents</h2>
154154
</section>
155155

156156
<div id="_content"><h3 id="synopsis">Synopsis</h3>
157-
<pre><code class="language-bash">npm init &lt;package-spec&gt; (same as `npx &lt;package-spec&gt;`)
157+
<pre><code class="language-bash">npm init &lt;package-spec&gt; (same as `npx create-&lt;package-spec&gt;`)
158158
npm init &lt;@scope&gt; (same as `npx &lt;@scope&gt;/create`)
159159

160160
aliases: create, innit

deps/npm/docs/output/commands/npm-install-ci-test.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-install-ci-test----1083">
144+
<h1 id="----npm-install-ci-test----1090">
145145
<span>npm-install-ci-test</span>
146-
<span class="version">@10.8.3</span>
146+
<span class="version">@10.9.0</span>
147147
</h1>
148148
<span class="description">Install a project with a clean slate and run tests</span>
149149
</header>

0 commit comments

Comments
 (0)