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

v22.4.0 release proposal #53583

Merged
merged 102 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
6e12d9f
doc: remove IRC from man page
tniessen Jun 7, 2024
0160745
doc: mark --cpu-prof and related flags stable
joyeecheung Jun 5, 2024
cf375e7
doc: mark --heap-prof and related flags stable
joyeecheung Jun 5, 2024
515dd24
lib: fix timer leak
theanarkh Jun 7, 2024
df47627
doc: doc-only deprecate OpenSSL engine-based APIs
richardlau Jun 7, 2024
16c0884
doc: mark WebSocket as stable
KhafraDev Jun 7, 2024
855eb25
tools: add stream label on PR when related files being changed in lib
jakecastelli Jun 7, 2024
48f78cd
doc: fix mistakes in the module `load` hook api
isti115 Jun 7, 2024
923d24b
doc: remove mentions of policy model from security info
RedYetiDev Jun 8, 2024
36aad8b
build: fix spacing before NINJA_ARGS
jakecastelli Jun 8, 2024
7dde375
stream: prevent stream unexpected pause when highWaterMark set to 0
jakecastelli Jun 8, 2024
d9182d0
doc: define more cases for stream event emissions
RedYetiDev Jun 8, 2024
cf5a973
doc, meta: use markdown rather than HTML in CONTRIBUTING.md
RedYetiDev Jun 8, 2024
0b9191d
meta: bump step-security/harden-runner from 2.7.1 to 2.8.0
dependabot[bot] Jun 8, 2024
7349edb
test: update TLS tests for OpenSSL 3.2
richardlau Jun 9, 2024
78a9037
tools: use Ubuntu 24.04 and Clang on GitHub actions
targos Jun 10, 2024
4a3525b
test: fix test-http-server-keepalive-req-gc
May 28, 2024
f4efb7f
stream: make sure _destroy is called
jakecastelli Jun 10, 2024
45b59e5
lib: fix naming convention of `Symbol`
deokjinkim Jun 10, 2024
602b9d6
test: update tests for OpenSSL 3.0.14
richardlau Jun 10, 2024
63f62d7
src: fix permission inspector crash
theanarkh Jun 10, 2024
82092cd
crypto: improve GetECGroupBits signature
tniessen Jun 10, 2024
fa113b8
doc: fix typo
ehsankhfr Jun 10, 2024
ab20214
tools: move ESLint tools to tools/eslint
targos Jun 11, 2024
24c7a94
doc, http: add `rejectNonStandardBodyWrites` option, clear its behaviour
jakecastelli Jun 11, 2024
c7d44ba
build: find version of Clang installed on Windows
StefanStojanovic Jun 11, 2024
9ece63d
tools: do not run Corepack code before it's reviewed
aduh95 Jun 12, 2024
4704270
src: fix IsIPAddress for IPv6
huseyinacacak-janea Jun 12, 2024
f9075ff
src: print v8::OOMDetails::detail when it's available
joyeecheung Jun 12, 2024
2defaaf
deps: V8: cherry-pick 6ea594ff7132
kxxt Jun 10, 2024
bd68888
deps: V8: cherry-pick a3cc8522a4c8
kxxt Jun 11, 2024
8eb7bdf
tools: update lint-md-dependencies
nodejs-github-bot May 26, 2024
fe85e05
tools: fix c-ares update script
marco-ippolito Jun 13, 2024
bf891bf
deps: update c-ares to v1.30.0
nodejs-github-bot Jun 13, 2024
599e7c3
src: remove ArrayBufferAllocator::Reallocate override
syg Jun 13, 2024
ec5364f
doc: add initial text for ambassadors program
mhdawson Apr 22, 2024
ac8adeb
tls: use SSL_get_peer_tmp_key
tniessen Jun 13, 2024
7d87877
src: avoid strcmp in favor of operator==
tniessen Jun 13, 2024
710cf77
lib: reduce amount of caught URL errors
anonrig Jun 13, 2024
7a7f438
deps: update zlib to 1.3.0.1-motley-209717d
nodejs-github-bot Jun 13, 2024
955454b
src: fix typo in env.cc
ehsankhfr Jun 14, 2024
bfc5236
src: return non-empty data in context data serializer
joyeecheung Jun 13, 2024
004b9ea
src: make sure that memcpy-ed structs in snapshot have no padding
joyeecheung Jun 13, 2024
f077afa
src: add utilities to help debugging reproducibility of snapshots
joyeecheung Mar 22, 2024
46a7681
doc: add Buffer.from(string) to functions that use buffer pool
Whitecx Jun 14, 2024
2012667
doc: move `node --run` stability to rc
anonrig Jun 14, 2024
4b47f89
tls: avoid taking ownership of OpenSSL objects
tniessen Jun 14, 2024
b3372a8
stream: callback should be called when pendingcb is 0
jakecastelli Jun 15, 2024
0c7e69a
src: simplify `size() == 0` checks
anonrig Jun 15, 2024
11dd15c
src: remove `SetEncoding` from StringEncoder
anonrig Jun 15, 2024
5961253
src: remove `base64` from `process.versions`
richardlau Jun 15, 2024
eded1e9
stream: support dispose in writable
benjamingr Jun 15, 2024
452011b
lib: speed up MessageEvent creation internally
KhafraDev Jun 16, 2024
fad1793
fs: add fast api for `InternalModuleStat`
anonrig Jun 16, 2024
dfdc062
buffer: make indexOf(byte) faster
tniessen Jun 16, 2024
a11a057
tls: check result of SSL_CTX_set_*_proto_version
tniessen Jun 16, 2024
5ed1a03
doc: remove first timer badge
RedYetiDev Jun 17, 2024
9f32002
assert,util: correct comparison when both contain same reference
lemire Jun 17, 2024
568377f
fs: do not crash if the watched file is removed while setting up watch
mcollina Jun 17, 2024
123910f
lib: remove the unused code
theanarkh Jun 17, 2024
6acadeb
deps: update acorn-walk to 8.3.3
nodejs-github-bot Jun 18, 2024
1b84964
deps: patch V8 to 12.4.254.21
nodejs-github-bot Jun 18, 2024
1877f22
deps: update simdjson to 3.9.4
nodejs-github-bot Jun 18, 2024
e16a04e
src: fix dynamically linked OpenSSL version
richardlau Jun 14, 2024
513e6aa
test: check against run-time OpenSSL version
richardlau Jun 14, 2024
a502638
meta: fix typo in dependency updates
RedYetiDev Jun 18, 2024
d2c169a
test: update `url` web-platform tests
anonrig Jun 18, 2024
ad5282e
inspector: fix disable async hooks on Debugger.setAsyncCallStackDepth
joyeecheung Jun 18, 2024
b8f436c
test: update encoding web-platform tests
anonrig Jun 18, 2024
bcad560
test: update `compression` web-platform tests
anonrig Jun 18, 2024
0b40bfa
deps: update undici to 6.19.0
nodejs-github-bot Jun 16, 2024
fa34f8f
deps: update undici to 6.19.1
nodejs-github-bot Jun 17, 2024
c4a7e05
deps: update undici to 6.19.1
nodejs-github-bot Jun 18, 2024
e69b8d2
deps: update undici to 6.19.2
nodejs-github-bot Jun 18, 2024
d1c10fe
meta: move one or more collaborators to emeritus
nodejs-github-bot Jun 19, 2024
befabe5
doc: update the description of the return type for options.filter
kylo5aby Jun 19, 2024
50733a1
util: support `--no-` for argument with boolean type for parseArgs
kylo5aby Jun 19, 2024
a5852cc
doc: only apply content-visibility on all.html
panva Jun 19, 2024
30fdd48
tools: move ESLint to tools/eslint
targos Jun 19, 2024
105b006
fs: move `ToNamespacedPath` to c++
anonrig Jun 20, 2024
8b87709
stream: update outdated highwatermark doc
jsk95 Jun 20, 2024
9e30724
deps,lib,src: add experimental web storage
cjihrig Sep 15, 2023
977beab
deps: sqlite: fix Windows compilation
cjihrig Jun 12, 2024
15df4ed
src: use `args.This()` instead of `Holder`
targos Jun 18, 2024
41100b6
http2: reject failed http2.connect when used with promisify
ehsankhfr Jun 16, 2024
7716613
meta: use correct source for workflow in PR
RedYetiDev Jun 20, 2024
30858ec
doc: add additional guidance for PRs to deps
mhdawson Jun 18, 2024
49cfb9d
src: reset `process.versions` during pre-execution
richardlau Jun 20, 2024
e95af74
lib: add diagnostics_channel events to module loading
RafaelGSS Jun 19, 2024
70bbc02
src, deps: add nbytes library
jasnell Jun 18, 2024
ca198f4
tools: update eslint to 9.5.0
nodejs-github-bot Jun 22, 2024
b5fc227
lib: fix typo in comment
codediverdev Jun 22, 2024
ec38f3d
doc, meta: organize contributing to Node-API guide
RedYetiDev Jun 22, 2024
1de4375
build: configure with shared sqlite3
legendecas Jun 22, 2024
91b2850
test: extend env for `test-node-output-errors`
richardlau Jun 23, 2024
71321bb
tools: fix skip detection of test runner output
richardlau Jun 24, 2024
d5c380b
tools: lock versions of irrelevant DB deps
targos Jun 24, 2024
608cc05
doc: recommend not using libuv node-api function
mhdawson Jun 20, 2024
073c231
deps: update c-ares to v1.31.0
nodejs-github-bot Jun 25, 2024
1eebcbf
test: skip reproducible snapshot test on 32-bit
targos Jun 26, 2024
6e66d97
test: mark `test-benchmark-crypto` as flaky
aduh95 May 12, 2024
7e13cc5
2024-07-02, Version 22.4.0 (Current)
targos Jun 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ indent_size = unset
indent_style = unset
trim_trailing_whitespace = unset

[{test/fixtures,deps,tools/node_modules,tools/gyp,tools/icu,tools/msvs}/**]
[{test/fixtures,deps,tools/eslint/node_modules,tools/gyp,tools/icu,tools/msvs}/**]
insert_final_newline = false
2 changes: 1 addition & 1 deletion .github/label-pr-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ subSystemLabels:
/^lib\/internal\/bootstrap/: lib / src
/^lib\/internal\/v8_prof_/: tools
/^lib\/internal\/socket(?:_list|address)\.js$/: net
/^lib\/\w+\/streams$/: stream
/^lib\/(_stream.*|internal\/streams\/.*|stream\.js|stream\/.*)$/: stream
/^lib\/.*http2/: http2
/^lib\/worker_threads.js$/: worker
/^lib\/test.js$/: test_runner
Expand Down
17 changes: 14 additions & 3 deletions .github/workflows/build-tarball.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,17 @@ concurrency:
env:
PYTHON_VERSION: '3.12'
FLAKY_TESTS: keep_retrying
CC: sccache clang
CXX: sccache clang++
SCCACHE_GHA_ENABLED: 'true'

permissions:
contents: read

jobs:
build-tarball:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
Expand All @@ -46,6 +49,10 @@ jobs:
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Set up sccache
uses: mozilla-actions/sccache-action@2e7f9ec7921547d4b46598398ca573513895d0bd # v0.0.4
with:
version: v0.8.0
- name: Environment Information
run: npx envinfo
- name: Make tarball
Expand All @@ -63,7 +70,7 @@ jobs:
path: tarballs
test-tarball-linux:
needs: build-tarball
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
Expand All @@ -72,6 +79,10 @@ jobs:
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Set up sccache
uses: mozilla-actions/sccache-action@2e7f9ec7921547d4b46598398ca573513895d0bd # v0.0.4
with:
version: v0.8.0
- name: Environment Information
run: npx envinfo
- name: Download tarball
Expand All @@ -85,7 +96,7 @@ jobs:
echo "TAR_DIR=$RUNNER_TEMP/`basename tarballs/*.tar.gz .tar.gz`" >> $GITHUB_ENV
- name: Copy directories needed for testing
run: |
cp -r tools/node_modules $TAR_DIR/tools
cp -r tools/eslint $TAR_DIR/tools
cp -r tools/eslint-rules $TAR_DIR/tools
- name: Build
run: |
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/coverage-linux-without-intl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,17 @@ concurrency:
env:
PYTHON_VERSION: '3.12'
FLAKY_TESTS: keep_retrying
CC: sccache clang
CXX: sccache clang++
SCCACHE_GHA_ENABLED: 'true'

permissions:
contents: read

jobs:
coverage-linux-without-intl:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
env:
CC: sccache gcc
CXX: sccache g++
SCCACHE_GHA_ENABLED: 'true'
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/coverage-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,17 @@ concurrency:
env:
PYTHON_VERSION: '3.12'
FLAKY_TESTS: keep_retrying
CC: sccache clang
CXX: sccache clang++
SCCACHE_GHA_ENABLED: 'true'

permissions:
contents: read

jobs:
coverage-linux:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
env:
CC: sccache gcc
CXX: sccache g++
SCCACHE_GHA_ENABLED: 'true'
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ permissions:

jobs:
build-lto:
runs-on: ubuntu-latest
# not working on gcc-8 and gcc-9 see https://github.com/nodejs/node/issues/38570
container: gcc:11
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
Expand All @@ -28,6 +26,6 @@ jobs:
run: npx envinfo
- name: Build lto
run: |
apt-get update && apt-get install ninja-build python-is-python3 -y
sudo apt-get update && sudo apt-get install ninja-build -y
./configure --enable-lto --ninja
ninja -C out/Release
2 changes: 1 addition & 1 deletion .github/workflows/find-inactive-collaborators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
author: Node.js GitHub Bot <[email protected]>
branch: actions/inactive-collaborators
body: |
This PR was generated by tools/find-inactive-collaborators.yml.
This PR was generated by the [`find-inactive-collaborators.yml` workflow](https://github.com/nodejs/node/blob/main/.github/workflows/find-inactive-collaborators.yml).

@nodejs/tsc Please follow up with the [offboarding tasks](https://github.com/nodejs/node/blob/main/doc/contributing/offboarding.md).
commit-message: 'meta: move one or more collaborators to emeritus'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-internet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- .github/workflows/test-internet.yml
- test/internet/**
- internal/dns/**
- lib/dns.js
Expand All @@ -19,6 +20,7 @@ on:
- v[0-9]+.x-staging
- v[0-9]+.x
paths:
- .github/workflows/test-internet.yml
- test/internet/**
- internal/dns/**
- lib/dns.js
Expand All @@ -31,14 +33,16 @@ concurrency:
env:
PYTHON_VERSION: '3.12'
FLAKY_TESTS: keep_retrying
CC: clang
CXX: clang++

permissions:
contents: read

jobs:
test-internet:
if: github.repository == 'nodejs/node' || github.event_name != 'schedule'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,17 @@ concurrency:
env:
PYTHON_VERSION: '3.12'
FLAKY_TESTS: keep_retrying
CC: sccache clang
CXX: sccache clang++
SCCACHE_GHA_ENABLED: 'true'

permissions:
contents: read

jobs:
test-linux:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
env:
CC: sccache gcc
CXX: sccache g++
SCCACHE_GHA_ENABLED: 'true'
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ on:
- root-certificates
- simdjson
- simdutf
- sqlite
- undici
- uvwasi
- zlib
Expand Down Expand Up @@ -174,7 +175,7 @@ jobs:
cat temp-output
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
rm temp-output
# libuv update was disabled because of Feb 14, 2024 security releas
# libuv update was disabled because of Feb 14, 2024 security release
# modified the bundled version of libuv, we cannot automatically update
# libuv without potentially undoing those changes.
# - id: libuv
Expand Down Expand Up @@ -272,6 +273,14 @@ jobs:
cat temp-output
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
rm temp-output
- id: sqlite
subsystem: deps
label: dependencies
run: |
./tools/dep_updaters/update-sqlite.sh > temp-output
cat temp-output
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
rm temp-output
- id: undici
subsystem: deps
label: dependencies
Expand Down
10 changes: 9 additions & 1 deletion BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -642,14 +642,22 @@ Optional requirements to build the MSI installer package:
* The .NET SDK component from [Visual Studio 2022](https://visualstudio.microsoft.com/downloads/)
* This component can be installed via the Visual Studio Installer Application

Optional requirements for compiling for Windows 10 on ARM (ARM64):
Optional requirements for compiling for Windows on ARM (ARM64):

* Visual Studio 17.6.0 or newer
* Visual Studio optional components
* Visual C++ compilers and libraries for ARM64
* Visual C++ ATL for ARM64
* Windows 10 SDK 10.0.17763.0 or newer

Optional requirements for compiling with ClangCL:

* Visual Studio optional components
* C++ Clang Compiler for Windows
* MSBuild support for LLVM toolset

NOTE: Currently we only support compiling with Clang that comes from Visual Studio.

##### Option 2: Automated install with Boxstarter

A [Boxstarter](https://boxstarter.org/) script can be used for easy setup of
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V22.md#22.3.0">22.3.0</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V22.md#22.4.0">22.4.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V22.md#22.3.0">22.3.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V22.md#22.2.0">22.2.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V22.md#22.1.0">22.1.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V22.md#22.0.0">22.0.0</a><br/>
Expand Down
8 changes: 3 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ works.
* [Code of Conduct](#code-of-conduct)
* [Issues](#issues)
* [Pull Requests](#pull-requests)
* [Developer's Certificate of Origin 1.1](#developers-certificate-of-origin)
* [Developer's Certificate of Origin 1.1](#developers-certificate-of-origin-11)

## [Code of Conduct](./doc/contributing/code-of-conduct.md)

Expand Down Expand Up @@ -47,11 +47,9 @@ dependencies, and tools contained in the `nodejs/node` repository.
* [Reviewing Pull Requests](./doc/contributing/pull-requests.md#reviewing-pull-requests)
* [Notes](./doc/contributing/pull-requests.md#notes)

<a id="developers-certificate-of-origin"></a>

## Developer's Certificate of Origin 1.1

<pre>
```text
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
Expand All @@ -75,4 +73,4 @@ By making a contribution to this project, I certify that:
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
</pre>
```
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -2003,7 +2003,7 @@ The externally maintained libraries used by Node.js are:
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""

- ESLint, located at tools/node_modules/eslint, is licensed as follows:
- ESLint, located at tools/eslint/node_modules/eslint, is licensed as follows:
"""
Copyright OpenJS Foundation and other contributors, <www.openjsf.org>

Expand Down
18 changes: 10 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ ifdef JOBS
NINJA_ARGS := $(NINJA_ARGS) -j$(JOBS)
else
IMMEDIATE_NINJA_ARGS := $(NINJA_ARGS)
NINJA_ARGS = $(IMMEDIATE_NINJA_ARGS) $(filter -j%,$(MAKEFLAGS))
NINJA_ARGS = $(filter -j%,$(MAKEFLAGS))$(IMMEDIATE_NINJA_ARGS)
endif
$(NODE_EXE): config.gypi out/Release/build.ninja
$(NINJA) -C out/Release $(NINJA_ARGS)
Expand All @@ -174,7 +174,7 @@ with-code-cache test-code-cache:

out/Makefile: config.gypi common.gypi common_node.gypi node.gyp \
deps/uv/uv.gyp deps/llhttp/llhttp.gyp deps/zlib/zlib.gyp \
deps/simdutf/simdutf.gyp deps/ada/ada.gyp \
deps/simdutf/simdutf.gyp deps/ada/ada.gyp deps/nbytes/nbytes.gyp \
tools/v8_gypfiles/toolchain.gypi tools/v8_gypfiles/features.gypi \
tools/v8_gypfiles/inspector.gypi tools/v8_gypfiles/v8.gyp
$(PYTHON) tools/gyp_node.py -f make
Expand Down Expand Up @@ -1151,13 +1151,14 @@ pkg: $(PKG)
.PHONY: corepack-update
corepack-update:
mkdir -p /tmp/node-corepack
curl -qLo /tmp/node-corepack/package.tgz "$$(npm view corepack dist.tarball)"
curl -qLo /tmp/node-corepack/package.tgz "$$($(call available-node,$(NPM) view corepack dist.tarball))"

rm -rf deps/corepack && mkdir deps/corepack
cd deps/corepack && tar xf /tmp/node-corepack/package.tgz --strip-components=1
chmod +x deps/corepack/shims/*

node deps/corepack/dist/corepack.js --version
$(call available-node,'-p' \
'require(`./deps/corepack/package.json`).version')

.PHONY: pkg-upload
# Note: this is strictly for release builds on release machines only.
Expand Down Expand Up @@ -1188,9 +1189,10 @@ $(TARBALL): release-only doc-only
$(RM) -r $(TARNAME)/doc/images # too big
$(RM) -r $(TARNAME)/test*.tap
$(RM) -r $(TARNAME)/tools/cpplint.py
$(RM) -r $(TARNAME)/tools/eslint
$(RM) -r $(TARNAME)/tools/eslint-rules
$(RM) -r $(TARNAME)/tools/license-builder.sh
$(RM) -r $(TARNAME)/tools/node_modules
$(RM) -r $(TARNAME)/tools/eslint/node_modules
$(RM) -r $(TARNAME)/tools/osx-*
$(RM) -r $(TARNAME)/tools/osx-pkg.pmdoc
find $(TARNAME)/deps/v8/test/* -type d ! -regex '.*/test/torque$$' | xargs $(RM) -r
Expand Down Expand Up @@ -1376,7 +1378,7 @@ format-md:

LINT_JS_TARGETS = eslint.config.mjs benchmark doc lib test tools

run-lint-js = tools/node_modules/eslint/bin/eslint.js --cache \
run-lint-js = tools/eslint/node_modules/eslint/bin/eslint.js --cache \
--max-warnings=0 --report-unused-disable-directives $(LINT_JS_TARGETS)
run-lint-js-fix = $(run-lint-js) --fix

Expand All @@ -1400,7 +1402,7 @@ lint-js lint-js-doc:
jslint: lint-js
$(warning Please use lint-js instead of jslint)

run-lint-js-ci = tools/node_modules/eslint/bin/eslint.js \
run-lint-js-ci = tools/eslint/node_modules/eslint/bin/eslint.js \
--max-warnings=0 --report-unused-disable-directives -f tap \
-o test-eslint.tap $(LINT_JS_TARGETS)

Expand Down Expand Up @@ -1560,7 +1562,7 @@ lint-yaml:

.PHONY: lint
.PHONY: lint-ci
ifneq ("","$(wildcard tools/node_modules/eslint/)")
ifneq ("","$(wildcard tools/eslint/node_modules/eslint/)")
lint: ## Run JS, C++, MD and doc linters.
@EXIT_STATUS=0 ; \
$(MAKE) lint-js || EXIT_STATUS=$$? ; \
Expand Down
Loading