Skip to content

Commit 2d84620

Browse files
npm-robottargos
authored andcommitted
deps: upgrade npm to 8.6.0
PR-URL: #42550 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Tierney Cyren <hello@bnb.im> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
1 parent be01185 commit 2d84620

File tree

203 files changed

+4389
-3135
lines changed

Some content is hidden

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

203 files changed

+4389
-3135
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ npm install <tarball url>
2222
npm install <git:// url>
2323
npm install <github username>/<github project>
2424

25-
aliases: i, in, ins, inst, insta, instal, isnt, isnta, isntal, isntall, add
25+
aliases: add, i, in, ins, inst, insta, instal, isnt, isnta, isntal, isntall
2626
```
2727

2828
<!-- automatically generated, do not edit manually -->

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ description: Search for packages
1313
```bash
1414
npm search [search terms ...]
1515

16-
aliases: s, se, find
16+
aliases: find, s, se
1717
```
1818

1919
<!-- automatically generated, do not edit manually -->

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ description: Remove a package
1313
```bash
1414
npm uninstall [<@scope>/]<pkg>...
1515

16-
aliases: un, unlink, remove, rm, r
16+
aliases: unlink, remove, rm, r, un
1717
```
1818

1919
<!-- automatically generated, do not edit manually -->

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

+11
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,17 @@ This value is not exported to the environment for child processes.
144144
<!-- automatically generated, do not edit manually -->
145145
<!-- see lib/utils/config/definitions.js -->
146146

147+
#### `workspaces-update`
148+
149+
* Default: true
150+
* Type: Boolean
151+
152+
If set to true, the npm cli will run an update after operations that may
153+
possibly change the workspaces installed to the `node_modules` folder.
154+
155+
<!-- automatically generated, do not edit manually -->
156+
<!-- see lib/utils/config/definitions.js -->
157+
147158
#### `include-workspace-root`
148159

149160
* Default: false

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ description: View registry info
1313
```bash
1414
npm view [<@scope>/]<pkg>[@<version>] [<field>[.subfield]...]
1515

16-
aliases: v, info, show
16+
aliases: info, show, v
1717
```
1818

1919
<!-- automatically generated, do not edit manually -->

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

+27-3
Original file line numberDiff line numberDiff line change
@@ -1027,13 +1027,26 @@ See also the `foreground-scripts` config.
10271027
<!-- automatically generated, do not edit manually -->
10281028
<!-- see lib/utils/config/definitions.js -->
10291029

1030+
#### `logs-dir`
1031+
1032+
* Default: A directory named `_logs` inside the cache
1033+
* Type: null or Path
1034+
1035+
The location of npm's log directory. See [`npm logging`](/using-npm/logging)
1036+
for more information.
1037+
1038+
<!-- automatically generated, do not edit manually -->
1039+
<!-- see lib/utils/config/definitions.js -->
1040+
10301041
#### `logs-max`
10311042

10321043
* Default: 10
10331044
* Type: Number
10341045

10351046
The maximum number of log files to store.
10361047

1048+
If set to 0, no log files will be written for the current run.
1049+
10371050
<!-- automatically generated, do not edit manually -->
10381051
<!-- see lib/utils/config/definitions.js -->
10391052

@@ -1628,9 +1641,9 @@ particular, use care when overriding this setting for public packages.
16281641
* Default: false
16291642
* Type: Boolean
16301643

1631-
If true, writes an `npm-debug` log to `_logs` and timing information to
1632-
`_timing.json`, both in your cache, even if the command completes
1633-
successfully. `_timing.json` is a newline delimited list of JSON objects.
1644+
If true, writes a debug log to `logs-dir` and timing information to
1645+
`_timing.json` in the cache, even if the command completes successfully.
1646+
`_timing.json` is a newline delimited list of JSON objects.
16341647

16351648
You can quickly view it with this [json](https://npm.im/json) command line:
16361649
`npm exec -- json -g < ~/.npm/_timing.json`.
@@ -1823,6 +1836,17 @@ This value is not exported to the environment for child processes.
18231836
<!-- automatically generated, do not edit manually -->
18241837
<!-- see lib/utils/config/definitions.js -->
18251838

1839+
#### `workspaces-update`
1840+
1841+
* Default: true
1842+
* Type: Boolean
1843+
1844+
If set to true, the npm cli will run an update after operations that may
1845+
possibly change the workspaces installed to the `node_modules` folder.
1846+
1847+
<!-- automatically generated, do not edit manually -->
1848+
<!-- see lib/utils/config/definitions.js -->
1849+
18261850
#### `yes`
18271851

18281852
* Default: null

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

+30-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
11
---
22
title: Logging
33
section: 7
4-
description: Why, What & How we Log
4+
description: Why, What & How We Log
55
---
66

77
### Description
88

99
The `npm` CLI has various mechanisms for showing different levels of information back to end-users for certain commands, configurations & environments.
1010

11+
### Setting Log File Location
12+
13+
All logs are written to a debug log, with the path to that file printed if the execution of a command fails.
14+
15+
The default location of the logs directory is a directory named `_logs` inside the npm cache. This can be changed
16+
with the `logs-dir` config option.
17+
18+
Log files will be removed from the `logs-dir` when the number of log files exceeds `logs-max`, with the oldest logs being deleted first.
19+
20+
To turn off logs completely set `--logs-max=0`.
21+
1122
### Setting Log Levels
1223

1324
#### `loglevel`
@@ -28,8 +39,6 @@ The default value of `loglevel` is `"notice"` but there are several levels/types
2839

2940
All logs pertaining to a level proceeding the current setting will be shown.
3041

31-
All logs are written to a debug log, with the path to that file printed if the execution of a command fails.
32-
3342
##### Aliases
3443

3544
The log levels listed above have various corresponding aliases, including:
@@ -47,6 +56,15 @@ The log levels listed above have various corresponding aliases, including:
4756

4857
The `npm` CLI began hiding the output of lifecycle scripts for `npm install` as of `v7`. Notably, this means you will not see logs/output from packages that may be using "install scripts" to display information back to you or from your own project's scripts defined in `package.json`. If you'd like to change this behavior & log this output you can set `foreground-scripts` to `true`.
4958

59+
### Timing Information
60+
61+
The `--timing` config can be set which does two things:
62+
63+
1. Always shows the full path to the debug log regardless of command exit status
64+
1. Write timing information to a timing file in the cache or `logs-dir`
65+
66+
This file is a newline delimited list of JSON objects that can be inspected to see timing data for each task in a `npm` CLI run.
67+
5068
### Registry Response Headers
5169

5270
#### `npm-notice`
@@ -55,6 +73,15 @@ The `npm` CLI reads from & logs any `npm-notice` headers that are returned from
5573

5674
This header is not cached, and will not be logged if the request is served from the cache.
5775

76+
### Logs and Sensitive Information
77+
78+
The `npm` CLI makes a best effort to redact the following from terminal output and log files:
79+
80+
- Passwords inside basic auth URLs
81+
- npm tokens
82+
83+
However, this behavior should not be relied on to keep all possible sensitive information redacted. If you are concerned about secrets in your log file or terminal output, you can use `--loglevel=silent` and `--logs-max=0` to ensure no logs are written to your terminal or filesystem.
84+
5885
### See also
5986

6087
* [config](/using-npm/config)

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ file.
339339
* Don't prefix your script commands with "sudo". If root permissions
340340
are required for some reason, then it'll fail with that error, and
341341
the user will sudo the npm command in question.
342-
* Don't use `install`. Use a `.gyp` file for compilation, and `prepublish`
342+
* Don't use `install`. Use a `.gyp` file for compilation, and `prepare`
343343
for anything else. You should almost never have to explicitly set a
344344
preinstall or install script. If you are doing this, please consider if
345345
there is another option. The only valid use of `install` or `preinstall`

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ <h2 id="table-of-contents">Table of contents</h2>
160160
npm install &lt;git:// url&gt;
161161
npm install &lt;github username&gt;/&lt;github project&gt;
162162

163-
aliases: i, in, ins, inst, insta, instal, isnt, isnta, isntal, isntall, add
163+
aliases: add, i, in, ins, inst, insta, instal, isnt, isnta, isntal, isntall
164164
</code></pre>
165165
<!-- raw HTML omitted -->
166166
<!-- raw HTML omitted -->

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ <h3 id="description">Description</h3>
166166
the results to only the paths to the packages named. Note that nested
167167
packages will <em>also</em> show the paths to the specified packages. For
168168
example, running <code>npm ls promzard</code> in npm's source tree will show:</p>
169-
<pre lang="bash"><code>npm@8.5.5 /path/to/npm
169+
<pre lang="bash"><code>npm@8.6.0 /path/to/npm
170170
└─┬ init-package-json@0.0.4
171171
└── promzard@0.1.5
172172
</code></pre>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ <h2 id="table-of-contents">Table of contents</h2>
151151
<!-- raw HTML omitted -->
152152
<pre lang="bash"><code>npm search [search terms ...]
153153

154-
aliases: s, se, find
154+
aliases: find, s, se
155155
</code></pre>
156156
<!-- raw HTML omitted -->
157157
<!-- raw HTML omitted -->

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ <h2 id="table-of-contents">Table of contents</h2>
151151
<!-- raw HTML omitted -->
152152
<pre lang="bash"><code>npm uninstall [&lt;@scope&gt;/]&lt;pkg&gt;...
153153

154-
aliases: un, unlink, remove, rm, r
154+
aliases: unlink, remove, rm, r, un
155155
</code></pre>
156156
<!-- raw HTML omitted -->
157157
<!-- raw HTML omitted -->

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

+10-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ <h1 id="npm-version">npm-version</h1>
142142

143143
<section id="table_of_contents">
144144
<h2 id="table-of-contents">Table of contents</h2>
145-
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#allow-same-version"><code>allow-same-version</code></a></li><li><a href="#commit-hooks"><code>commit-hooks</code></a></li><li><a href="#git-tag-version"><code>git-tag-version</code></a></li><li><a href="#json"><code>json</code></a></li><li><a href="#preid"><code>preid</code></a></li><li><a href="#sign-git-tag"><code>sign-git-tag</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li><li><a href="#include-workspace-root"><code>include-workspace-root</code></a></li></ul><li><a href="#description">Description</a></li><li><a href="#see-also">See Also</a></li></ul></div>
145+
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#allow-same-version"><code>allow-same-version</code></a></li><li><a href="#commit-hooks"><code>commit-hooks</code></a></li><li><a href="#git-tag-version"><code>git-tag-version</code></a></li><li><a href="#json"><code>json</code></a></li><li><a href="#preid"><code>preid</code></a></li><li><a href="#sign-git-tag"><code>sign-git-tag</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li><li><a href="#workspaces-update"><code>workspaces-update</code></a></li><li><a href="#include-workspace-root"><code>include-workspace-root</code></a></li></ul><li><a href="#description">Description</a></li><li><a href="#see-also">See Also</a></li></ul></div>
146146
</section>
147147

148148
<div id="_content"><h3 id="synopsis">Synopsis</h3>
@@ -258,6 +258,15 @@ <h4 id="workspaces"><code>workspaces</code></h4>
258258
<p>This value is not exported to the environment for child processes.</p>
259259
<!-- raw HTML omitted -->
260260
<!-- raw HTML omitted -->
261+
<h4 id="workspaces-update"><code>workspaces-update</code></h4>
262+
<ul>
263+
<li>Default: true</li>
264+
<li>Type: Boolean</li>
265+
</ul>
266+
<p>If set to true, the npm cli will run an update after operations that may
267+
possibly change the workspaces installed to the <code>node_modules</code> folder.</p>
268+
<!-- raw HTML omitted -->
269+
<!-- raw HTML omitted -->
261270
<h4 id="include-workspace-root"><code>include-workspace-root</code></h4>
262271
<ul>
263272
<li>Default: false</li>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ <h2 id="table-of-contents">Table of contents</h2>
151151
<!-- raw HTML omitted -->
152152
<pre lang="bash"><code>npm view [&lt;@scope&gt;/]&lt;pkg&gt;[@&lt;version&gt;] [&lt;field&gt;[.subfield]...]
153153

154-
aliases: v, info, show
154+
aliases: info, show, v
155155
</code></pre>
156156
<!-- raw HTML omitted -->
157157
<!-- raw HTML omitted -->

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ <h2 id="table-of-contents">Table of contents</h2>
149149
<!-- raw HTML omitted -->
150150
<!-- raw HTML omitted -->
151151
<h3 id="version">Version</h3>
152-
<p>8.5.5</p>
152+
<p>8.6.0</p>
153153
<h3 id="description">Description</h3>
154154
<p>npm is the package manager for the Node JavaScript platform. It puts
155155
modules in place so that node can find them, and manages dependency

0 commit comments

Comments
 (0)