Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v20.4.0 proposal #48643

Merged
merged 133 commits into from
Jul 5, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
d6ecbde
benchmark: add crypto.create*Key
panva Jun 5, 2023
83cfc67
test: update user-timing web-platform tests
anonrig Jun 5, 2023
f60205c
build: update action to close stale PRs
mhdawson May 26, 2023
12fa716
benchmark: refactor crypto oneshot
panva Jun 5, 2023
141e5aa
test: update FileAPI web-platform tests
anonrig Jun 5, 2023
46a3d06
test: update encoding web-platform tests
anonrig Jun 5, 2023
0923dc0
tools: disable jsdoc/no-defaults rule
lpinca Jun 4, 2023
b1cef81
tools: update eslint to 8.42.0
nodejs-github-bot Jun 4, 2023
10385c8
tools: add version update to external dependencies
fasenderos Jun 6, 2023
fc5d1bd
test: refactor test-gc-http-client-timeout
lpinca Jun 6, 2023
f1ead59
test: ignore the copied entry_point.c
lpinca Jun 6, 2023
78cffcd
deps: update zlib to 982b036
nodejs-github-bot Jun 6, 2023
e10a4cd
doc: run license-builder
github-actions[bot] Jun 7, 2023
4ec2d92
module: reduce url invocations in esm/load.js
anonrig Jun 7, 2023
159ab66
lib: reduce URL invocations on http2 origins
anonrig Jun 7, 2023
93bf447
test_runner: refactor coverage report output for readability
dmnsgn Jun 7, 2023
8cd56c1
deps: update ada to 2.5.1
nodejs-github-bot Jun 3, 2023
764119b
test: update url web-platform tests
anonrig Jun 3, 2023
fafe651
url: conform to origin getter spec changes
anonrig Jun 3, 2023
4132931
deps: update simdutf to 3.2.14
nodejs-github-bot Jun 7, 2023
1398829
test: fix `test-net-autoselectfamily` for kernel without IPv6 support
LiviaMedeiros Jun 7, 2023
325441a
src: add missing to_ascii method in dns queries
lemire Jun 7, 2023
7c790ca
test: fix flaky test-watch-mode
MoLow Jun 8, 2023
b339d80
deps: upgrade npm to 9.7.1
npm-cli-bot Jun 8, 2023
8009e2c
tools: update eslint-plugin-jsdoc
richardlau Jun 9, 2023
a2e107d
tools: update create-or-update-pull-request-action
richardlau Jun 9, 2023
06d49c1
src: implement natives binding without special casing
joyeecheung May 6, 2023
1b84dde
src: implement constants binding directly
joyeecheung May 6, 2023
4066295
bootstrap: simplify initialization of source map handlers
joyeecheung Jun 2, 2023
77cb1ee
test: add missing <algorithm> include for std::find
thesamesam Jun 9, 2023
e60b6de
bootstrap: unify snapshot builder and embedder entry points
joyeecheung May 25, 2023
84fe811
repl: display dynamic import variant in static import error messages
hemanth Jun 11, 2023
0162a0f
lib: add support for inherited custom inspection methods
aduh95 Jun 11, 2023
f9c0d5a
lib: fix blob.stream() causing hanging promises
debadree25 Jun 11, 2023
5ebe3a4
test_runner: make `--test-name-pattern` recursive
MoLow Jun 11, 2023
e9c9d18
typings: fix JSDoc in ESM loader modules
aduh95 Jun 11, 2023
40ae6eb
https: fix connection checking interval not clearing on server close
Linkgoron Jun 12, 2023
6591826
src: handle wasm out of bound in osx will raise SIGBUS correctly
HerrCai0907 Jun 12, 2023
3a62994
doc: fix typo in events.md
RaisinTen Jun 12, 2023
17a0e1d
doc: add link for news from security wg
mhdawson Jun 8, 2023
b9c643e
doc: add additional info on TSFN dispatch
mhdawson Jun 6, 2023
89aaf16
crypto: remove OPENSSL_FIPS guard for OpenSSL 3
richardlau Jun 12, 2023
bf0444b
deps: update zlib to 1.2.13.1-motley-3ca9f16
nodejs-github-bot Jun 13, 2023
fe333d2
crypto: update root certificates to NSS 3.90
nodejs-github-bot Jun 13, 2023
5cacdf9
doc: add kvakil to collaborators
kvakil Jun 13, 2023
de4f14c
test_runner: add enqueue and dequeue events
MoLow Jun 13, 2023
120ac74
src: remove aliased buffer weak callback
legendecas May 8, 2023
0500967
src: make realm binding data store weak
legendecas Apr 2, 2023
87ad657
node-api: implement external strings
gabrielschulhof Jun 2, 2023
f7f3208
build: sync libuv header change
gengjiawen Jun 14, 2023
4ab5e8d
doc: refine when file is undefined in test events
MoLow Jun 14, 2023
d623616
tools: update lint-md-dependencies
nodejs-github-bot Jun 14, 2023
562b3d4
lib: move web global bootstrapping to the expected file
legendecas May 5, 2023
b6ae411
lib: remove obsolete deletion of bufferBinding.zeroFill
legendecas May 5, 2023
641a2e9
doc: add preveen-stack to triagers
preveen-stack Jun 15, 2023
8c2c02d
lib: create weakRef only if any signals provided
atlowChemi Jun 15, 2023
954e46e
src: return uint32 for `guessHandleType`
anonrig Jun 5, 2023
4971e46
src: add V8 fast api to `guessHandleType`
anonrig Jun 5, 2023
38bf290
doc: revise `error.md` introduction
aduh95 Jun 15, 2023
dbf9e9f
node-api: provide napi_define_properties fast path
gabrielschulhof Jun 13, 2023
e2d579e
doc: update fs flags documentation
sinkhaha Jun 16, 2023
fe16749
lib: fix output message when repl is used with pm
RafaelGSS Jun 17, 2023
e500b43
tools: prepare tools/doc for to-vfile 8.0.0
Trott Jun 18, 2023
cd83530
tools: update doc to to-vfile@8.0.0
nodejs-github-bot Jun 18, 2023
90b5335
tools: update eslint to 8.43.0
nodejs-github-bot Jun 18, 2023
2f0f403
http: fix for handling on boot timers headers and request
franciszek-koltuniuk-red Jun 19, 2023
6c59083
tools: automate update openssl v16
marco-ippolito Jun 19, 2023
2a403cd
doc: link to Runtime Keys in export conditions
jcbhmr Jun 20, 2023
4345526
tools: replace sed with perl
lpinca Jun 20, 2023
37bc0ea
doc: improve inspector.close() description
mmarchini Jun 21, 2023
5bc13a4
src: revert IS_RELEASE
RafaelGSS Jun 20, 2023
52de27b
tools: pin ruff version number
Trott Jun 21, 2023
bdcc037
report: disable js stack when no context is entered
legendecas Jun 21, 2023
09af579
test: skip test-runner-watch-mode on IBMi
MoLow Jun 21, 2023
7d01c88
test_runner: add initial draft for fakeTimers
ErickWendel Jun 22, 2023
97b00c3
lib: add option to force handling stopped events
atlowChemi Jun 22, 2023
188b34d
deps: upgrade npm to 9.7.2
npm-cli-bot Jun 22, 2023
10bd5f4
tools: update lint-md-dependencies
nodejs-github-bot Jun 22, 2023
c6a69e3
http: remove useless ternary in test
LockingReal Jun 22, 2023
60c2ea4
doc: add vmoroz to collaborators
vmoroz Jun 22, 2023
bda1228
doc: update security-release-process.md
RafaelGSS Jun 22, 2023
c4b8ede
src: refactor `SplitString` in util
anonrig Jun 22, 2023
2b141c4
deps: update icu to 73.2
nodejs-github-bot Jun 23, 2023
0da03f0
lib: remove duplicated requires in check_syntax
anonrig Jun 23, 2023
b03146d
typings: remove unused primordials
anonrig Jun 23, 2023
112335e
deps: update corepack to 0.18.1
nodejs-github-bot Jun 23, 2023
f0709fd
module: add SourceMap.findOrigin
isaacs Jun 23, 2023
ca2ae86
doc: unnest `mime` and `MIMEParams` from MIMEType constructor
Semigradsky Jun 23, 2023
417927b
doc: fix `filename` type in `watch` result
Semigradsky Jun 23, 2023
32bda81
lib: reduce url getters on `makeRequireFunction`
anonrig Jun 24, 2023
84d0eb7
stream: fix premature pipeline end
ronag Jun 24, 2023
24a8fa9
test: remove unnecessary noop function args to `mustNotCall()`
aduh95 Jun 24, 2023
6551538
build: fix `configure --link-module`
richardlau Jun 24, 2023
333907b
tools: speedup compilation of js2c output
kvakil Jun 24, 2023
d367b73
fs: use kResistStopPropagation
atlowChemi Jun 24, 2023
407ce3f
test: define NAPI_VERSION before including node_api.h
legendecas Jun 24, 2023
d91b0fd
deps: V8: cherry-pick 1a782f6543ae
kvakil Jun 22, 2023
4f4d0b8
child_process: improve spawn performance on Linux
kvakil Jun 22, 2023
9750d82
doc: add description of autoAllocateChunkSize in ReadableStream
debadree25 Jun 24, 2023
30f4bc4
test: make IsolateData per-isolate in cctest
joyeecheung Jun 25, 2023
0f912a7
test: mark test-child-process-stdio-reuse-readable-stdio flaky
lpinca Jun 25, 2023
e50c316
fs, stream: initial `Symbol.dispose` and `Symbol.asyncDispose` support
MoLow Jun 25, 2023
4efa680
permission: handle end nodes with children cases
RafaelGSS Jun 25, 2023
4cad9fd
fs: remove unneeded return statement
lpinca Jun 26, 2023
19fde63
fs: call the callback with an error if writeSync fails
killagu Jun 26, 2023
2f66147
deps: update corepack to 0.19.0
nodejs-github-bot Jun 27, 2023
f43d718
deps: update minimatch to 9.0.2
nodejs-github-bot Jun 27, 2023
203c3cf
tools: update lint-md-dependencies
nodejs-github-bot Jun 27, 2023
2c36397
net: improve network family autoselection handle handling
ShogunPanda Jun 27, 2023
99ae0b9
doc: run license-builder
github-actions[bot] Jun 28, 2023
8a611a3
benchmark: add bar.R
RafaelGSS Jun 28, 2023
504d1d7
tls: add ALPNCallback server option for dynamic ALPN negotiation
pimterry Jun 28, 2023
404958f
src: fix Coverity issue regarding unnecessary copy
anonrig Jun 28, 2023
ed1d047
deps: update googletest to ec4fed9
nodejs-github-bot Jun 29, 2023
d96f921
deps: update zlib to 1.2.13.1-motley-f81f385
nodejs-github-bot Jun 29, 2023
cc3a056
doc: update return type for describe
shrujalshah28 Jun 29, 2023
a9756f3
test: add Symbol.dispose support to mock timers
benjamingr Jun 29, 2023
75aa0a7
test: remove test-timers-immediate-queue flaky designation
lpinca Jun 27, 2023
07eb310
test: remove test-crypto-keygen flaky designation
lpinca Jun 27, 2023
94ebb02
http: server add async dispose
atlowChemi Jun 25, 2023
5378ad8
http2: server add `asyncDispose`
atlowChemi Jun 25, 2023
97a58c5
https: server add `asyncDispose`
atlowChemi Jun 25, 2023
ba8d048
deps: update acorn to 8.9.0
nodejs-github-bot Jun 18, 2023
1b2b930
deps: add loong64 config into openssl gypi
shipujin Jun 9, 2023
15530fe
lib: merge cjs and esm package json reader caches
anonrig Jun 29, 2023
7ad2d3a
doc: update security release stewards
RafaelGSS Jun 30, 2023
3df7368
test: add missing assertions to test-runner-cli
MoLow Jul 2, 2023
6199e19
deps: upgrade to libuv 1.46.0
santigimeno Jul 2, 2023
7d8a0b6
http: null the joinDuplicateHeaders property on cleanup
lpinca Jul 3, 2023
6d00c2e
doc: fix options order
lpinca Jul 3, 2023
2c56835
test_runner: fixed `test` shorthands return type
shockerqt Jul 3, 2023
97bd9cc
src: fix uninitialized field access in AsyncHooks
jkrems Jul 3, 2023
73c632e
2023-07-05, Version 20.4.0 (Current)
RafaelGSS Jul 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
deps: upgrade npm to 9.7.2
PR-URL: #48514
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
  • Loading branch information
npm-cli-bot authored and RafaelGSS committed Jul 3, 2023
commit 188b34d4a1059a48e396be146d15a7b35915d138
6 changes: 0 additions & 6 deletions deps/npm/bin/node-gyp-bin/node-gyp

This file was deleted.

5 changes: 0 additions & 5 deletions deps/npm/bin/node-gyp-bin/node-gyp.cmd

This file was deleted.

5 changes: 4 additions & 1 deletion deps/npm/bin/npm
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env bash

# This is used by the Node.js installer, which expects the cygwin/mingw
# shell script to already be present in the npm dependency folder.

(set -o igncr) 2>/dev/null && set -o igncr; # cygwin encoding fix

basedir=`dirname "$0"`
Expand All @@ -19,7 +23,6 @@ fi
# kind of paths Node.js thinks it's using, typically win32 paths.
CLI_BASEDIR="$("$NODE_EXE" -p 'require("path").dirname(process.execPath)')"
NPM_CLI_JS="$CLI_BASEDIR/node_modules/npm/bin/npm-cli.js"

NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g`
if [ $? -ne 0 ]; then
# if this didn't work, then everything else below will fail
Expand Down
8 changes: 4 additions & 4 deletions deps/npm/bin/npx
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ if ! [ -x "$NODE_EXE" ]; then
NODE_EXE=node
fi

# these paths are passed to node.exe, so they need to match whatever
# this path is passed to node.exe, so it needs to match whatever
# kind of paths Node.js thinks it's using, typically win32 paths.
CLI_BASEDIR="$("$NODE_EXE" -p 'require("path").dirname(process.execPath)')"
NPM_CLI_JS="$CLI_BASEDIR/node_modules/npm/bin/npm-cli.js"
NPX_CLI_JS="$CLI_BASEDIR/node_modules/npm/bin/npx-cli.js"
NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g`
if [ $? -ne 0 ]; then
# if this didn't work, then everything else below will fail
echo "Could not determine Node.js install directory" >&2
exit 1
fi
NPM_CLI_JS="$CLI_BASEDIR/node_modules/npm/bin/npm-cli.js"
NPX_CLI_JS="$CLI_BASEDIR/node_modules/npm/bin/npx-cli.js"
NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g`
NPM_PREFIX_NPX_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npx-cli.js"

# a path that will fail -f test on any posix bash
Expand Down
2 changes: 1 addition & 1 deletion deps/npm/bin/npx-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const removed = new Set([
...removedOpts,
])

const { definitions, shorthands } = require('../lib/utils/config/index.js')
const { definitions, shorthands } = require('@npmcli/config/lib/definitions')
const npmSwitches = Object.entries(definitions)
.filter(([key, { type }]) => type === Boolean ||
(Array.isArray(type) && type.includes(Boolean)))
Expand Down
16 changes: 16 additions & 0 deletions deps/npm/docs/content/commands/npm-install-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,22 @@ will also prevent _writing_ `package-lock.json` if `save` is true.



#### `package-lock-only`

* Default: false
* Type: Boolean

If set to true, the current operation will only use the `package-lock.json`,
ignoring `node_modules`.

For `update` this means only the `package-lock.json` will be updated,
instead of checking `node_modules` and downloading dependencies.

For `list` this means the output will be based on the tree described by the
`package-lock.json`, rather than the contents of `node_modules`.



#### `foreground-scripts`

* Default: false
Expand Down
16 changes: 16 additions & 0 deletions deps/npm/docs/content/commands/npm-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,22 @@ will also prevent _writing_ `package-lock.json` if `save` is true.
#### `package-lock-only`
* Default: false
* Type: Boolean
If set to true, the current operation will only use the `package-lock.json`,
ignoring `node_modules`.
For `update` this means only the `package-lock.json` will be updated,
instead of checking `node_modules` and downloading dependencies.
For `list` this means the output will be based on the tree described by the
`package-lock.json`, rather than the contents of `node_modules`.
#### `foreground-scripts`
* Default: false
Expand Down
2 changes: 1 addition & 1 deletion deps/npm/docs/content/commands/npm-ls.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ packages will *also* show the paths to the specified packages. For
example, running `npm ls promzard` in npm's source tree will show:

```bash
npm@9.7.1 /path/to/npm
npm@9.7.2 /path/to/npm
└─┬ init-package-json@0.0.4
└── promzard@0.1.5
```
Expand Down
2 changes: 1 addition & 1 deletion deps/npm/docs/content/commands/npm.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Note: This command is unaware of workspaces.

### Version

9.7.1
9.7.2

### Description

Expand Down
3 changes: 0 additions & 3 deletions deps/npm/docs/content/configuring-npm/package-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,6 @@ it will. The `.npmignore` file works just like a `.gitignore`. If there is
a `.gitignore` file, and `.npmignore` is missing, `.gitignore`'s contents
will be used instead.

Files included with the "package.json#files" field _cannot_ be excluded
through `.npmignore` or `.gitignore`.

Certain files are always included, regardless of settings:

* `package.json`
Expand Down
13 changes: 12 additions & 1 deletion deps/npm/docs/output/commands/npm-install-test.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ <h1 id="npm-install-test">npm-install-test</h1>

<section id="table_of_contents">
<h2 id="table-of-contents">Table of contents</h2>
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#save"><code>save</code></a></li><li><a href="#save-exact"><code>save-exact</code></a></li><li><a href="#global"><code>global</code></a></li><li><a href="#install-strategy"><code>install-strategy</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#global-style"><code>global-style</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#strict-peer-deps"><code>strict-peer-deps</code></a></li><li><a href="#prefer-dedupe"><code>prefer-dedupe</code></a></li><li><a href="#package-lock"><code>package-lock</code></a></li><li><a href="#foreground-scripts"><code>foreground-scripts</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#audit"><code>audit</code></a></li><li><a href="#bin-links"><code>bin-links</code></a></li><li><a href="#fund"><code>fund</code></a></li><li><a href="#dry-run"><code>dry-run</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><li><a href="#install-links"><code>install-links</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#save"><code>save</code></a></li><li><a href="#save-exact"><code>save-exact</code></a></li><li><a href="#global"><code>global</code></a></li><li><a href="#install-strategy"><code>install-strategy</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#global-style"><code>global-style</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#strict-peer-deps"><code>strict-peer-deps</code></a></li><li><a href="#prefer-dedupe"><code>prefer-dedupe</code></a></li><li><a href="#package-lock"><code>package-lock</code></a></li><li><a href="#package-lock-only"><code>package-lock-only</code></a></li><li><a href="#foreground-scripts"><code>foreground-scripts</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#audit"><code>audit</code></a></li><li><a href="#bin-links"><code>bin-links</code></a></li><li><a href="#fund"><code>fund</code></a></li><li><a href="#dry-run"><code>dry-run</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><li><a href="#install-links"><code>install-links</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
</section>

<div id="_content"><h3 id="synopsis">Synopsis</h3>
Expand Down Expand Up @@ -259,6 +259,17 @@ <h4 id="package-lock"><code>package-lock</code></h4>
</ul>
<p>If set to false, then ignore <code>package-lock.json</code> files when installing. This
will also prevent <em>writing</em> <code>package-lock.json</code> if <code>save</code> is true.</p>
<h4 id="package-lock-only"><code>package-lock-only</code></h4>
<ul>
<li>Default: false</li>
<li>Type: Boolean</li>
</ul>
<p>If set to true, the current operation will only use the <code>package-lock.json</code>,
ignoring <code>node_modules</code>.</p>
<p>For <code>update</code> this means only the <code>package-lock.json</code> will be updated,
instead of checking <code>node_modules</code> and downloading dependencies.</p>
<p>For <code>list</code> this means the output will be based on the tree described by the
<code>package-lock.json</code>, rather than the contents of <code>node_modules</code>.</p>
<h4 id="foreground-scripts"><code>foreground-scripts</code></h4>
<ul>
<li>Default: false</li>
Expand Down
13 changes: 12 additions & 1 deletion deps/npm/docs/output/commands/npm-install.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ <h1 id="npm-install">npm-install</h1>

<section id="table_of_contents">
<h2 id="table-of-contents">Table of contents</h2>
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#save"><code>save</code></a></li><li><a href="#save-exact"><code>save-exact</code></a></li><li><a href="#global"><code>global</code></a></li><li><a href="#install-strategy"><code>install-strategy</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#global-style"><code>global-style</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#strict-peer-deps"><code>strict-peer-deps</code></a></li><li><a href="#prefer-dedupe"><code>prefer-dedupe</code></a></li><li><a href="#package-lock"><code>package-lock</code></a></li><li><a href="#foreground-scripts"><code>foreground-scripts</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#audit"><code>audit</code></a></li><li><a href="#bin-links"><code>bin-links</code></a></li><li><a href="#fund"><code>fund</code></a></li><li><a href="#dry-run"><code>dry-run</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><li><a href="#install-links"><code>install-links</code></a></li></ul><li><a href="#algorithm">Algorithm</a></li><li><a href="#see-also">See Also</a></li></ul></div>
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#save"><code>save</code></a></li><li><a href="#save-exact"><code>save-exact</code></a></li><li><a href="#global"><code>global</code></a></li><li><a href="#install-strategy"><code>install-strategy</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#global-style"><code>global-style</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#strict-peer-deps"><code>strict-peer-deps</code></a></li><li><a href="#prefer-dedupe"><code>prefer-dedupe</code></a></li><li><a href="#package-lock"><code>package-lock</code></a></li><li><a href="#package-lock-only"><code>package-lock-only</code></a></li><li><a href="#foreground-scripts"><code>foreground-scripts</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#audit"><code>audit</code></a></li><li><a href="#bin-links"><code>bin-links</code></a></li><li><a href="#fund"><code>fund</code></a></li><li><a href="#dry-run"><code>dry-run</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><li><a href="#install-links"><code>install-links</code></a></li></ul><li><a href="#algorithm">Algorithm</a></li><li><a href="#see-also">See Also</a></li></ul></div>
</section>

<div id="_content"><h3 id="synopsis">Synopsis</h3>
Expand Down Expand Up @@ -585,6 +585,17 @@ <h4 id="package-lock"><code>package-lock</code></h4>
</ul>
<p>If set to false, then ignore <code>package-lock.json</code> files when installing. This
will also prevent <em>writing</em> <code>package-lock.json</code> if <code>save</code> is true.</p>
<h4 id="package-lock-only"><code>package-lock-only</code></h4>
<ul>
<li>Default: false</li>
<li>Type: Boolean</li>
</ul>
<p>If set to true, the current operation will only use the <code>package-lock.json</code>,
ignoring <code>node_modules</code>.</p>
<p>For <code>update</code> this means only the <code>package-lock.json</code> will be updated,
instead of checking <code>node_modules</code> and downloading dependencies.</p>
<p>For <code>list</code> this means the output will be based on the tree described by the
<code>package-lock.json</code>, rather than the contents of <code>node_modules</code>.</p>
<h4 id="foreground-scripts"><code>foreground-scripts</code></h4>
<ul>
<li>Default: false</li>
Expand Down
2 changes: 1 addition & 1 deletion deps/npm/docs/output/commands/npm-ls.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ <h3 id="description">Description</h3>
the results to only the paths to the packages named. Note that nested
packages will <em>also</em> show the paths to the specified packages. For
example, running <code>npm ls promzard</code> in npm's source tree will show:</p>
<pre><code class="language-bash">npm@9.7.1 /path/to/npm
<pre><code class="language-bash">npm@9.7.2 /path/to/npm
└─┬ init-package-json@0.0.4
└── promzard@0.1.5
</code></pre>
Expand Down
2 changes: 1 addition & 1 deletion deps/npm/docs/output/commands/npm.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ <h2 id="table-of-contents">Table of contents</h2>
</code></pre>
<p>Note: This command is unaware of workspaces.</p>
<h3 id="version">Version</h3>
<p>9.7.1</p>
<p>9.7.2</p>
<h3 id="description">Description</h3>
<p>npm is the package manager for the Node JavaScript platform. It puts
modules in place so that node can find them, and manages dependency
Expand Down
2 changes: 0 additions & 2 deletions deps/npm/docs/output/configuring-npm/package-json.html
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,6 @@ <h3 id="files">files</h3>
it will. The <code>.npmignore</code> file works just like a <code>.gitignore</code>. If there is
a <code>.gitignore</code> file, and <code>.npmignore</code> is missing, <code>.gitignore</code>'s contents
will be used instead.</p>
<p>Files included with the "package.json#files" field <em>cannot</em> be excluded
through <code>.npmignore</code> or <code>.gitignore</code>.</p>
<p>Certain files are always included, regardless of settings:</p>
<ul>
<li><code>package.json</code></li>
Expand Down
2 changes: 1 addition & 1 deletion deps/npm/lib/base-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const { relative } = require('path')

const definitions = require('./utils/config/definitions.js')
const { definitions } = require('@npmcli/config/lib/definitions')
const getWorkspaces = require('./workspaces/get-workspaces.js')
const { aliases: cmdAliases } = require('./utils/cmd-list')

Expand Down
2 changes: 1 addition & 1 deletion deps/npm/lib/commands/completion.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const nopt = require('nopt')
const { resolve } = require('path')

const Npm = require('../npm.js')
const { definitions, shorthands } = require('../utils/config/index.js')
const { definitions, shorthands } = require('@npmcli/config/lib/definitions')
const { commands, aliases, deref } = require('../utils/cmd-list.js')
const configNames = Object.keys(definitions)
const shorthandNames = Object.keys(shorthands)
Expand Down
8 changes: 3 additions & 5 deletions deps/npm/lib/commands/config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
// don't expand so that we only assemble the set of defaults when needed
const configDefs = require('../utils/config/index.js')

const { mkdir, readFile, writeFile } = require('fs/promises')
const { dirname, resolve } = require('path')
const { spawn } = require('child_process')
const { EOL } = require('os')
const ini = require('ini')
const localeCompare = require('@isaacs/string-locale-compare')('en')
const pkgJson = require('@npmcli/package-json')
const { defaults, definitions } = require('@npmcli/config/lib/definitions')
const log = require('../utils/log-shim.js')

// These are the configs that we can nerf-dart. Not all of them currently even
Expand Down Expand Up @@ -102,7 +100,7 @@ class Config extends BaseCommand {
case 'get':
case 'delete':
case 'rm':
return Object.keys(configDefs.definitions)
return Object.keys(definitions)
case 'edit':
case 'list':
case 'ls':
Expand Down Expand Up @@ -219,7 +217,7 @@ class Config extends BaseCommand {
const data = (
await readFile(file, 'utf8').catch(() => '')
).replace(/\r\n/g, '\n')
const entries = Object.entries(configDefs.defaults)
const entries = Object.entries(defaults)
const defData = entries.reduce((str, [key, val]) => {
const obj = { [key]: val }
const i = ini.stringify(obj)
Expand Down
26 changes: 17 additions & 9 deletions deps/npm/lib/commands/doctor.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ const semver = require('semver')
const { promisify } = require('util')
const log = require('../utils/log-shim.js')
const ping = require('../utils/ping.js')
const {
registry: { default: defaultRegistry },
} = require('../utils/config/definitions.js')
const { defaults } = require('@npmcli/config/lib/definitions')
const lstat = promisify(fs.lstat)
const readdir = promisify(fs.readdir)
const access = promisify(fs.access)
Expand Down Expand Up @@ -364,16 +362,17 @@ class Doctor extends BaseCommand {
}

async checkNpmRegistry () {
if (this.npm.flatOptions.registry !== defaultRegistry) {
throw `Try \`npm config set registry=${defaultRegistry}\``
if (this.npm.flatOptions.registry !== defaults.registry) {
throw `Try \`npm config set registry=${defaults.registry}\``
} else {
return `using default registry (${defaultRegistry})`
return `using default registry (${defaults.registry})`
}
}

output (row) {
const t = new Table({
chars: { top: '',
chars: {
top: '',
'top-mid': '',
'top-left': '',
'top-right': '',
Expand All @@ -387,8 +386,17 @@ class Doctor extends BaseCommand {
'mid-mid': '',
right: '',
'right-mid': '',
middle: ' ' },
style: { 'padding-left': 0, 'padding-right': 0 },
middle: ' ',
},
style: {
'padding-left': 0,
'padding-right': 0,
// setting border here is not necessary visually since we've already
// zeroed out all the chars above, but without it cli-table3 will wrap
// some of the separator spaces with ansi codes which show up in
// snapshots.
border: 0,
},
colWidths: [this.#checkWidth, 6],
})
t.push(row)
Expand Down
1 change: 1 addition & 0 deletions deps/npm/lib/commands/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class Install extends ArboristWorkspaceCmd {
'strict-peer-deps',
'prefer-dedupe',
'package-lock',
'package-lock-only',
'foreground-scripts',
'ignore-scripts',
'audit',
Expand Down
2 changes: 1 addition & 1 deletion deps/npm/lib/commands/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const { getContents, logTar } = require('../utils/tar.js')
// keys that npm supports in .npmrc files and elsewhere. We *may* want to
// revisit this at some point, and have a minimal set that's a SemVer-major
// change that ought to get a RFC written on it.
const { flatten } = require('../utils/config/index.js')
const { flatten } = require('@npmcli/config/lib/definitions')
const pkgJson = require('@npmcli/package-json')

const BaseCommand = require('../base-command.js')
Expand Down
2 changes: 1 addition & 1 deletion deps/npm/lib/commands/unpublish.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const npa = require('npm-package-arg')
const npmFetch = require('npm-registry-fetch')
const pkgJson = require('@npmcli/package-json')

const { flatten } = require('../utils/config/index.js')
const { flatten } = require('@npmcli/config/lib/definitions')
const getIdentity = require('../utils/get-identity.js')
const log = require('../utils/log-shim')
const otplease = require('../utils/otplease.js')
Expand Down
2 changes: 1 addition & 1 deletion deps/npm/lib/es6/validate-engines.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { engines: { node: engines }, version } = require('../../package.json')
const npm = `v${version}`

module.exports = (process, getCli) => {
const node = process.version.replace(/-.*$/, '')
const node = process.version

/* eslint-disable-next-line max-len */
const unsupportedMessage = `npm ${npm} does not support Node.js ${node}. This version of npm supports the following node versions: \`${engines}\`. You can find the latest version at https://nodejs.org/.`
Expand Down
Loading