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

2024-12-03, Version 22.12.0 'Jod' (LTS) #56040

Open
wants to merge 223 commits into
base: v22.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
223 commits
Select commit Hold shift + click to select a range
88d91e8
esm: mark import attributes and JSON module as stable
nicolo-ribaudo Oct 12, 2024
64fb9e6
doc: add history entries for JSON modules stabilization
aduh95 Nov 16, 2024
9ffd2dd
doc: consolidate history table of CustomEvent
geeksilva97 Nov 9, 2024
58d6871
module: unflag --experimental-require-module
joyeecheung Sep 26, 2024
545c069
module: support 'module.exports' interop export in require(esm)
guybedford Jul 14, 2024
f1b9791
doc: update `require(ESM)` history and stability status
aduh95 Oct 2, 2024
d8c34ce
module: use kNodeModulesRE to detect node_modules
joyeecheung Oct 4, 2024
fcdd616
module: check --experimental-require-module separately from detection
joyeecheung Oct 8, 2024
2af72a7
src: implement IsInsideNodeModules() in C++
joyeecheung Oct 8, 2024
6ac3400
module: include module information in require(esm) warning
joyeecheung Oct 22, 2024
28b5b9a
module: allow ESM that failed to be required to be re-imported
joyeecheung Oct 28, 2024
16119f2
module: trim off internal stack frames for require(esm) warnings
joyeecheung Oct 18, 2024
cb527a9
module: do not warn when require(esm) comes from node_modules
joyeecheung Nov 23, 2024
d5e915b
tools: add `polyfilled` option to `prefer-primordials` rule
aduh95 Oct 17, 2024
a21be02
build,win: enable pch for clang-cl
StefanStojanovic Oct 11, 2024
c7f82ec
doc: fix the return type of outgoingMessage.setHeaders()
hkleungai Oct 11, 2024
d8c552a
doc: edit onboarding guide to clarify when mailmap addition is needed
aduh95 Oct 11, 2024
a559008
node-api: add napi_create_buffer_from_arraybuffer method
mertcanaltin Oct 11, 2024
6c836aa
meta: bump step-security/harden-runner from 2.9.1 to 2.10.1
dependabot[bot] Oct 11, 2024
47b6c67
meta: bump github/codeql-action from 3.26.6 to 3.26.10
dependabot[bot] Oct 11, 2024
c0614dc
meta: bump codecov/codecov-action from 4.5.0 to 4.6.0
dependabot[bot] Oct 11, 2024
254badd
test: update `compression` wpt
RedYetiDev Oct 11, 2024
26fcc04
deps: update amaro to 0.1.9
nodejs-github-bot Oct 12, 2024
6e7b33a
doc: fix ambasador markdown list
RafaelGSS Oct 13, 2024
23d89da
doc: add missing return values in buffer docs
karlhorky Oct 13, 2024
12faf04
build: fix make errors that occur in Makefile
kmk324 Oct 14, 2024
310a734
test: update test_util.cc for coverage
kmk324 Oct 14, 2024
41c50bc
deps: update libuv to 1.49.1
santigimeno Oct 11, 2024
26861ea
Revert "deps: disable io_uring support in libuv by default"
santigimeno Aug 8, 2024
63bc405
src: remove uv__node_patch_is_using_io_uring
santigimeno Aug 8, 2024
4f84cdc
events: optimize EventTarget.addEventListener
ronag Oct 14, 2024
0ee6715
diagnostics_channel: fix unsubscribe during publish
simon-id Oct 14, 2024
5c3ee88
benchmark: adjust byte size for buffer-copy
RafaelGSS Oct 14, 2024
b9200c3
test_runner: require `--enable-source-maps` for sourcemap coverage
RedYetiDev Oct 14, 2024
68bcec6
lib: remove settled dependant signals when they are GCed
geeksilva97 Oct 14, 2024
551b8f8
deps: update c-ares to v1.34.1
nodejs-github-bot Oct 15, 2024
6ad23e7
src: fix winapi_strerror error string
huseyinacacak-janea Oct 15, 2024
66e41f0
doc: add instructions for WinGet build
huseyinacacak-janea Oct 15, 2024
c3c4030
sqlite: cache column names in stmt.all()
indutny Oct 15, 2024
29f7325
lib: test_runner#mock:timers respeced timeout_max behaviour
badkeyy Oct 15, 2024
a6c4442
tools: fix typos
NathanBaulch Oct 15, 2024
6023e1b
buffer: make Buffer work with resizable ArrayBuffer
jasnell Oct 15, 2024
a3b793d
deps: update simdutf to 5.6.0
nodejs-github-bot Oct 15, 2024
aed758d
esm: fix inconsistency with `importAssertion` in `resolve` hook
yesmeck Oct 15, 2024
f41d329
test_runner: add support for scheduler.wait on mock timers
ErickWendel Oct 15, 2024
0230fb1
doc: spell out condition restrictions
jkrems Sep 30, 2024
8daa8a6
build: fix path concatenation
VoltrexKeyva Oct 17, 2024
ef6707e
dns: honor the order option
lpinca Oct 17, 2024
8323005
test: remove duplicate tests
lpinca Oct 17, 2024
4f89059
lib: add flag to drop connection when running in cluster mode
theanarkh Oct 17, 2024
139e8f1
meta: change color to blue notify review-wanted
RafaelGSS Oct 17, 2024
07fc40d
meta: assign CODEOWNERS for /deps/ncrypto/*
panva Oct 17, 2024
13724dc
doc: move Beth Griggs keys to old gpg keys
RafaelGSS Oct 15, 2024
41b0451
doc: move Bryan English key to old gpg keys
RafaelGSS Oct 15, 2024
07c2fb2
doc: move Danielle Adams key to old gpg keys
RafaelGSS Oct 15, 2024
0e873c3
test: update `console` wpt
RedYetiDev Oct 18, 2024
5357338
fs: use `wstring` on Windows paths
jazelly Oct 6, 2024
cac5856
benchmark: add --runs support to run.js
RafaelGSS Oct 18, 2024
bde374e
src: remove icu based `ToASCII` and `ToUnicode`
anonrig Oct 18, 2024
d345662
crypto: include openssl/rand.h explicitly
codebytere Oct 19, 2024
8bac7c2
test,crypto: update WebCryptoAPI WPT
panva Oct 19, 2024
e14dba3
src,lib: introduce `util.getSystemErrorMessage(err)`
juanarbol Oct 19, 2024
7ed058c
cli: add `--heap-prof` flag available to `NODE_OPTIONS`
juanarbol Oct 20, 2024
6b6e6a5
tools: add script to synch c-ares source lists
richardlau Oct 18, 2024
f0c12e8
build: synchronize list of c-ares source files
richardlau Oct 18, 2024
3d8e3a6
build: tidy up cares.gyp
richardlau Oct 18, 2024
337f61f
lib: add UV_UDP_REUSEPORT for udp
theanarkh Oct 21, 2024
1628c48
net: add UV_TCP_REUSEPORT for tcp
theanarkh Oct 21, 2024
68decbf
meta: move one or more collaborators to emeritus
nodejs-github-bot Oct 21, 2024
41a2bcd
deps: update ada to 2.9.1
nodejs-github-bot Oct 21, 2024
edbbd4a
build: conditionally compile bundled sqlite
richardlau Oct 21, 2024
6ee94a3
build: fix uninstall script for AIX 7.1
cloorc Oct 21, 2024
50d983e
doc: remove outdated remarks about `highWaterMark` in fs
isker Oct 22, 2024
fa9329c
deps: update c-ares to v1.34.2
nodejs-github-bot Oct 22, 2024
7dc2c2e
deps: update googletest to df1544b
nodejs-github-bot Oct 22, 2024
ded1b68
test: deflake `test-cluster-shared-handle-bind-privileged-port`
RedYetiDev Oct 22, 2024
2030285
doc: add `isBigIntObject` to documentation
leviscar Oct 22, 2024
e99a98d
doc: add note about stdio streams in child_process
Ed-roro Oct 22, 2024
73ab14f
test: update wpt test for webmessaging/broadcastchannel
Nahee-Park Oct 22, 2024
6aeeaa7
test: fix addons and node-api test assumptions
aduh95 Oct 22, 2024
c8e7f76
typings: add missing type of `ArrayBufferPrototypeGetByteLength`
iwuliz Oct 22, 2024
d695bd4
fs: pass correct path to `DirentFromStats` during `glob`
RedYetiDev Oct 22, 2024
72b4a8d
tools: update gyp-next to 0.18.3
nodejs-github-bot Oct 22, 2024
83a5983
tools: update lint-md-dependencies
nodejs-github-bot Oct 22, 2024
ad7e813
test: make test-node-output-v8-warning more flexible
codebytere Oct 22, 2024
15dd43d
esm: add a fallback when importer in not a file
aduh95 Oct 22, 2024
8f59c41
stream: propagate AbortSignal reason
marvinroger Oct 22, 2024
0ad7ca4
doc: move dual package shipping docs to separate repo
joyeecheung Oct 22, 2024
7008f29
build: fix GN build for cares/uv deps
zcbenz Oct 23, 2024
a6b3ed5
doc: changed the command used to verify SHASUMS256
adriancuadrado Oct 23, 2024
cd0d748
test,crypto: make crypto tests work with BoringSSL
codebytere Oct 24, 2024
acc6806
doc: add jazelly to collaborators
jazelly Oct 25, 2024
2194eb4
test: increase test coverage for `http.OutgoingMessage.appendHeader()`
juanarbol Oct 25, 2024
8c35ad1
sqlite: refactor open options
tniessen Oct 26, 2024
445d117
test,crypto: update WebCryptoAPI WPT
panva Oct 26, 2024
abd2bd4
deps: update undici to 6.20.1
nodejs-github-bot Oct 26, 2024
1c5872d
test: avoid `apply()` calls with large amount of elements
LiviaMedeiros Oct 26, 2024
67beb37
doc: add esm examples to node:string_decoder
mfdebian Oct 26, 2024
2b561ab
build: fix GN build for sqlite and nghttp2
codebytere Oct 27, 2024
0e69f6d
doc: add suggested tsconfig for type stripping
marco-ippolito Oct 27, 2024
23e3287
build: fix GN arg used in generate_config_gypi.py
codebytere Oct 28, 2024
992450c
deps: update acorn to 8.13.0
nodejs-github-bot Oct 29, 2024
655e560
deps: update nghttp2 to 1.64.0
nodejs-github-bot Oct 29, 2024
231fe7b
src: do not run IsWindowsBatchFile on non-windows
anonrig Oct 29, 2024
91fdec3
module: fix error thrown from require(esm) hitting TLA repeatedly
joyeecheung Oct 29, 2024
8c2fc11
test: remove unneeded listeners
lpinca Oct 29, 2024
c3ca978
build: fix building with system icu 76
cho-m Oct 29, 2024
a80c166
test: split up test-runner-mock-timers test
badkeyy Oct 30, 2024
bbf51d7
doc: capitalize "MIT License"
RedYetiDev Oct 30, 2024
bf68733
dns: stop using deprecated `ares_query`
RedYetiDev Oct 30, 2024
547cab9
src: use NewFromUtf8Literal in NODE_DEFINE_CONSTANT
ckerr Oct 31, 2024
4e58785
sqlite: add readOnly option
tniessen Oct 31, 2024
98bfc7d
http: add diagnostic channel `http.client.request.created`
marco-ippolito Oct 31, 2024
d2430ee
http2: fix client async storage persistence
orgads Oct 31, 2024
acbb629
src: fix dns crash when failed to create NodeAresTask
theanarkh Nov 1, 2024
1d60b7e
doc: improve c++ embedder API doc
gireeshpunathil Nov 1, 2024
d1cb7af
deps: update amaro to 0.2.0
nodejs-github-bot Nov 1, 2024
e14fb2d
src,lib: optimize nodeTiming.uvMetricsInfo
RafaelGSS Oct 30, 2024
4caaeb4
benchmark: add nodeTiming.uvmetricsinfo bench
RafaelGSS Oct 31, 2024
4cca54b
meta: show PR/issue title on review-wanted
RedYetiDev Nov 1, 2024
827e206
build: stop pre-compiling `lint-md`
RedYetiDev Nov 1, 2024
8c67049
build: use rclone instead of aws CLI
targos Nov 2, 2024
38c047e
src: refactor ECDHBitsJob signature
panva Nov 2, 2024
f1e0e0b
doc: remove mention of ECDH-ES in crypto.diffieHellman
panva Nov 2, 2024
0a7f301
http: add diagnostic channel `http.server.response.created`
marco-ippolito Nov 2, 2024
456b023
tools: lint README lists more strictly
aduh95 Nov 2, 2024
3477b6b
src: move more key related stuff to ncrypto
jasnell Nov 2, 2024
21ec855
os: improve path check with direct index access
mertcanaltin Nov 2, 2024
37bafce
meta: make review-wanted message minimal
RedYetiDev Nov 2, 2024
8bd5777
doc: add write flag when open file as the demo code's intention
robberfree Nov 2, 2024
e17fffc
doc: broken `PerformanceObserver` code sample
domharrington Nov 2, 2024
02c902e
tools: run daily WPT.fyi report on all supported releases
panva Nov 2, 2024
3626891
tools: compact jq output in daily-wpt-fyi.yml action
panva Nov 2, 2024
c91155f
deps: update sqlite to 3.47.0
nodejs-github-bot Nov 2, 2024
20483aa
crypto: fix `RSA_PKCS1_PADDING` error message
richardlau Nov 3, 2024
d6d1479
module: simplify --inspect-brk handling
joyeecheung Nov 3, 2024
06445bc
meta: bump github/codeql-action from 3.26.10 to 3.27.0
dependabot[bot] Nov 3, 2024
a6c73eb
meta: bump actions/checkout from 4.2.0 to 4.2.2
dependabot[bot] Nov 3, 2024
1aca3a8
meta: bump actions/cache from 4.0.2 to 4.1.2
dependabot[bot] Nov 3, 2024
fb3fa8b
meta: bump actions/upload-artifact from 4.4.0 to 4.4.3
dependabot[bot] Nov 3, 2024
334fa69
meta: bump rtCamp/action-slack-notify from 2.3.0 to 2.3.2
dependabot[bot] Nov 3, 2024
644ad5d
meta: bump actions/setup-node from 4.0.4 to 4.1.0
dependabot[bot] Nov 3, 2024
3f8a5d8
meta: bump actions/setup-python from 5.2.0 to 5.3.0
dependabot[bot] Nov 3, 2024
d95aa24
tools: fix root certificate updater
richardlau Nov 1, 2024
a1201d0
crypto: update root certificates to NSS 3.104
richardlau Nov 1, 2024
428701a
sqlite: improve error handling using MaybeLocal
tniessen Nov 4, 2024
12543d5
tools: use `util.parseArgs` in `lint-md`
RedYetiDev Nov 4, 2024
fa4c58a
deps: update acorn to 8.14.0
nodejs-github-bot Nov 5, 2024
c52a808
test,crypto: update WebCryptoAPI WPT
panva Nov 5, 2024
6ca8514
doc: update `--max-semi-space-size` description
joebowbeer Nov 5, 2024
0a79ebd
tools: update ESLint to 9.14.0
dependabot[bot] Nov 5, 2024
fc69080
test: refactor some esm tests
aduh95 Nov 5, 2024
89c9c46
test: ignore unrelated events in FW watch tests
Ceres6 Nov 6, 2024
383d284
src: provide workaround for container-overflow
lemire Nov 6, 2024
83fb007
doc: clarity to available addon options
preveen-stack Nov 6, 2024
42ac0c2
util: do not catch on circular `@@toStringTag` errors
RedYetiDev Nov 6, 2024
273f84e
test: update `performance-timeline` wpt
RedYetiDev Sep 30, 2024
91443c2
doc: consistent use of word child process
gireeshpunathil Nov 6, 2024
a435aff
doc: add esm example in `path.md`
RedYetiDev Nov 8, 2024
b6d2a4e
doc: add path aliases typescript doc
Ceres6 Nov 8, 2024
940d22f
util: fix util.getCallSites plurality
legendecas Nov 2, 2024
5844565
tools: fix c-ares updater script for Node.js 18
richardlau Nov 6, 2024
f2561fd
lib: use `Promise.withResolvers()` in timers
anonrig Nov 6, 2024
948a88d
deps: update icu to 76.1
nodejs-github-bot Nov 7, 2024
cefce4c
lib: remove unnecessary optional chaining
gurgunday Nov 7, 2024
9d9ad81
test: improve test coverage for `ServerResponse`
juanarbol Nov 7, 2024
ccffd3b
doc: enforce strict policy to semver-major releases
RafaelGSS Nov 7, 2024
b0ce62a
test: add buffer to fs_permission tests
RafaelGSS Nov 7, 2024
554d4ac
test: ensure that test priority is not higher than current priority
LiviaMedeiros Nov 8, 2024
a30defe
doc: clarify removal of experimental API does not require a deprecation
aduh95 Nov 8, 2024
4dd609c
fs: fix bufferSize option for opendir recursive
Ethan-Arrowood Nov 8, 2024
5861135
test: improve test coverage for child process message sending
juanarbol Nov 8, 2024
db01eaf
src: improve `node:os` userInfo performance
anonrig Nov 8, 2024
eb22ec8
tools: remove non-existent file from eslint config
RedYetiDev Nov 10, 2024
14ffac9
tools: make commit-queue check blocked label
marco-ippolito Nov 10, 2024
506aac5
tools: fix exclude labels for commit-queue
richardlau Nov 10, 2024
d1db202
build: apply cpp linting and formatting to ncrypto
RedYetiDev Nov 10, 2024
72d4b30
doc: clarify triager role
gireeshpunathil Nov 10, 2024
b4e4139
build: implement node_use_amaro flag in GN build
zcbenz Nov 11, 2024
27bcd10
doc: run license-builder
github-actions[bot] Nov 11, 2024
ae2ae2f
esm: fix import.meta.resolve crash
marco-ippolito Nov 11, 2024
49774cc
benchmark: add `test_runner/mock-fn`
RedYetiDev Nov 11, 2024
af77f66
deps: update c-ares to v1.34.3
nodejs-github-bot Nov 12, 2024
1fdaa15
report: fix network queries in getReport libuv with exclude-network
Tofandel Nov 12, 2024
3013870
doc: update unflag info of `import.meta.resolve`
skyclouds2001 Nov 12, 2024
2743b7b
doc: correct max-semi-space-size statement
joebowbeer Nov 12, 2024
476075b
doc: fix history info for `URL.prototype.toJSON`
aduh95 Nov 13, 2024
27b0236
doc: add notable-change mention to sec release
RafaelGSS Nov 14, 2024
a2c8de7
events: add hasEventListener util for validate
sungpaks Nov 14, 2024
0bd5d8b
doc: clarify UV_THREADPOOL_SIZE env var usage
preveen-stack Nov 15, 2024
b3ea42d
doc: add `-S` flag release preparation example
aduh95 Nov 15, 2024
c67aec3
benchmark: add `test-reporters`
RedYetiDev Nov 16, 2024
824ac65
doc: add `node:sqlite` to mandatory `node:` prefix list
sapphi-red Nov 16, 2024
d1bd0ef
doc: remove non-working example
aduh95 Nov 16, 2024
934979e
deps: update undici to 6.21.0
nodejs-github-bot Nov 16, 2024
166ab32
deps: update simdutf to 5.6.1
nodejs-github-bot Nov 16, 2024
6858f7a
src: use env strings to create sqlite results
targos Nov 17, 2024
363e7d5
test_runner: error on mocking an already mocked date
RedYetiDev Nov 17, 2024
c176015
fs: prevent unwanted `dependencyOwners` removal
Ceres6 Nov 17, 2024
c26b1bf
crypto: allow length=0 for HKDF and PBKDF2 in SubtleCrypto.deriveBits
panva Nov 17, 2024
85ca31a
tools: bump @eslint/plugin-kit from 0.2.0 to 0.2.3 in /tools/eslint
dependabot[bot] Nov 17, 2024
457e73f
sqlite: add support for SQLite Session Extension
louwers Nov 18, 2024
4920869
assert: make assertion_error use Myers diff algorithm
puskin94 Oct 17, 2024
89ccd3e
assert: fix `deepStrictEqual` on errors when `cause` is not undefined
geeksilva97 Nov 5, 2024
301844e
assert: differentiate cases where `cause` is `undefined` or missing
aduh95 Nov 8, 2024
f11d93d
tools: enforce ordering of error codes in `errors.md`
aduh95 Oct 10, 2024
fce8c32
util: do not mark experimental feature as deprecated
aduh95 Nov 8, 2024
d48c5da
lib: convert transfer sequence to array in js
jazelly Oct 13, 2024
bcead24
lib: prefer number to string in webidl `type` function
jazelly Oct 24, 2024
18f0f07
lib: implement webidl dictionary converter and use it in structuredClone
jazelly Oct 20, 2024
ee17fcd
lib: prefer symbol to number in webidl `type` function
aduh95 Nov 7, 2024
5418d40
url: handle "unsafe" characters properly in `pathToFileURL`
aduh95 Oct 18, 2024
7acb963
test: increase coverage of `pathToFileURL`
aduh95 Oct 27, 2024
6317f77
url: refactor `pathToFileURL` to native
aduh95 Oct 31, 2024
03902eb
lib: replace `createDeferredPromise` util with `Promise.withResolvers`
anonrig Oct 19, 2024
907484f
assert: fix deepEqual always return true on URL
meixg Oct 13, 2024
c81c818
module: throw ERR_NO_TYPESCRIPT when compiled without amaro
marco-ippolito Oct 11, 2024
6e3e99c
lib: prefer logical assignment
RedYetiDev Oct 9, 2024
753cbed
lib: remove startsWith/endsWith primordials for char checks
gurgunday Oct 19, 2024
f6885e1
assert: fix the string length check for printing the simple diff
puskin94 Nov 2, 2024
a6c00c2
build: add create release proposal action
RafaelGSS Nov 23, 2024
0f3810f
doc: add added tag and fix typo sqlite.md
louwers Nov 27, 2024
2711b68
2024-12-03, Version 22.12.0 'Jod' (LTS)
ruyadorno Nov 27, 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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
/lib/tls.js @nodejs/crypto @nodejs/net
/src/crypto/* @nodejs/crypto
/src/node_crypto* @nodejs/crypto
/deps/ncrypto/* @nodejs/crypto

# http

Expand Down
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,16 @@ updates:
applies-to: version-updates
patterns:
- '*'

- package-ecosystem: npm
directory: /tools/lint-md
schedule:
interval: monthly
commit-message:
prefix: tools
open-pull-requests-limit: 10
groups:
lint-md:
applies-to: version-updates
patterns:
- '*'
4 changes: 2 additions & 2 deletions .github/workflows/auto-start-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ jobs:
if: needs.get-prs-for-ci.outputs.numbers != ''
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- name: Install Node.js
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: ${{ env.NODE_VERSION }}

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-tarball.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ jobs:
if: github.event.pull_request.draft == false
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Set up sccache
Expand All @@ -64,19 +64,19 @@ jobs:
mkdir tarballs
mv *.tar.gz tarballs
- name: Upload tarball artifact
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: tarballs
path: tarballs
test-tarball-linux:
needs: build-tarball
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Set up sccache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/commit-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
run: |
echo "plusOne=$((${{ github.event.pull_request.commits }} + 1))" >> $GITHUB_OUTPUT
echo "minusOne=$((${{ github.event.pull_request.commits }} - 1))" >> $GITHUB_OUTPUT
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: ${{ steps.nb-of-commits.outputs.plusOne }}
persist-credentials: false
- run: git reset HEAD^2
- name: Install Node.js
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: ${{ env.NODE_VERSION }}
- name: Validate commit message
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/commit-queue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@ jobs:
--base ${{ github.ref_name }} \
--label 'commit-queue' \
--json 'number' \
--search "created:<=$(date --date="2 days ago" +"%Y-%m-%dT%H:%M:%S%z")" \
--search "created:<=$(date --date="2 days ago" +"%Y-%m-%dT%H:%M:%S%z") -label:blocked" \
-t '{{ range . }}{{ .number }} {{ end }}' \
--limit 100)
fast_track_prs=$(gh pr list \
--repo ${{ github.repository }} \
--base ${{ github.ref_name }} \
--label 'commit-queue' \
--label 'fast-track' \
--search "-label:blocked" \
--json 'number' \
-t '{{ range . }}{{ .number }} {{ end }}' \
--limit 100)
Expand All @@ -58,7 +59,7 @@ jobs:
if: needs.get_mergeable_prs.outputs.numbers != ''
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
# Needs the whole git history for ncu to work
# See https://github.com/nodejs/node-core-utils/pull/486
Expand All @@ -71,7 +72,7 @@ jobs:

# Install dependencies
- name: Install Node.js
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install @node-core/utils
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/coverage-linux-without-intl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ jobs:
if: github.event.pull_request.draft == false
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Set up sccache
Expand All @@ -79,7 +79,7 @@ jobs:
- name: Clean tmp
run: rm -rf coverage/tmp && rm -rf out
- name: Upload
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
directory: ./coverage
token: ${{ secrets.CODECOV_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/coverage-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ jobs:
if: github.event.pull_request.draft == false
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Set up sccache
Expand All @@ -79,7 +79,7 @@ jobs:
- name: Clean tmp
run: rm -rf coverage/tmp && rm -rf out
- name: Upload
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
directory: ./coverage
token: ${{ secrets.CODECOV_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/coverage-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ jobs:
if: github.event.pull_request.draft == false
runs-on: windows-2022
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install deps
Expand All @@ -71,7 +71,7 @@ jobs:
- name: Clean tmp
run: npx rimraf ./coverage/tmp
- name: Upload
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
directory: ./coverage
token: ${{ secrets.CODECOV_TOKEN }}
86 changes: 86 additions & 0 deletions .github/workflows/create-release-proposal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# This action requires the following secrets to be set on the repository:
# GH_USER_NAME: GitHub user whose Jenkins and GitHub token are defined below
# GH_USER_TOKEN: GitHub user token, to be used by ncu and to push changes
# JENKINS_TOKEN: Jenkins token, to be used to check CI status

name: Create Release Proposal

on:
workflow_dispatch:
inputs:
release-line:
required: true
type: number
default: 23
description: 'The release line (without dots or prefix). e.g: 22'
release-date:
required: true
type: string
default: YYYY-MM-DD
description: The release date in YYYY-MM-DD format

concurrency: ${{ github.workflow }}

env:
NODE_VERSION: lts/*

permissions:
contents: write

jobs:
releasePrepare:
env:
STAGING_BRANCH: v${{ inputs.release-line }}.x-staging
RELEASE_BRANCH: v${{ inputs.release-line }}.x
RELEASE_DATE: ${{ inputs.release-date }}
RELEASE_LINE: ${{ inputs.release-line }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{ env.STAGING_BRANCH }}
# Needs the whole git history for ncu to work
# See https://github.com/nodejs/node-core-utils/pull/486
fetch-depth: 0

# Install dependencies
- name: Install Node.js
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: ${{ env.NODE_VERSION }}

- name: Install @node-core/utils
run: npm install -g @node-core/utils

- name: Configure @node-core/utils
run: |
ncu-config set branch "${RELEASE_BRANCH}"
ncu-config set upstream origin
ncu-config set username "$USERNAME"
ncu-config set token "$GH_TOKEN"
ncu-config set jenkins_token "$JENKINS_TOKEN"
ncu-config set repo "$(echo "$GITHUB_REPOSITORY" | cut -d/ -f2)"
ncu-config set owner "${GITHUB_REPOSITORY_OWNER}"
env:
USERNAME: ${{ secrets.JENKINS_USER }}
GH_TOKEN: ${{ secrets.GH_USER_TOKEN }}
JENKINS_TOKEN: ${{ secrets.JENKINS_TOKEN }}

- name: Set up ghauth config (Ubuntu)
run: |
mkdir -p ~/.config/changelog-maker/
echo '{
"user": "'$(ncu-config get username)'",
"token": "'$(ncu-config get token)'"
}' > ~/.config/changelog-maker/config.json

- name: Setup git author
run: |
git config --local user.email "github-bot@iojs.org"
git config --local user.name "Node.js GitHub Bot"

- name: Start git node release prepare
run: |
./tools/actions/create-release.sh "${RELEASE_DATE}" "${RELEASE_LINE}"
env:
GH_TOKEN: ${{ secrets.GH_USER_TOKEN }}
32 changes: 19 additions & 13 deletions .github/workflows/daily-wpt-fyi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ name: Daily WPT report

on:
workflow_dispatch:
inputs:
node-versions:
description: Node.js versions (as supported by actions/setup-node) to test as JSON array
required: false
default: '["current", "lts/*", "lts/-1"]'
schedule:
# This is 20 minutes after `epochs/daily` branch is triggered to be created
# in WPT repo.
Expand All @@ -24,16 +19,27 @@ permissions:
contents: read

jobs:
report:
collect-versions:
if: github.repository == 'nodejs/node' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.query.outputs.matrix }}
steps:
- id: query
run: |
matrix=$(curl -s https://raw.githubusercontent.com/nodejs/Release/refs/heads/main/schedule.json | jq -c --arg now "$(date +%Y-%m-%d)" '[with_entries(select(.value.end > $now and .value.start < $now)) | keys[] | ltrimstr("v") | tonumber] + ["latest-nightly"]')
echo "matrix=$matrix" >> "$GITHUB_OUTPUT"
report:
needs:
- collect-versions
strategy:
matrix:
node-version: ${{ fromJSON(github.event.inputs.node-versions || '["latest-nightly", "current", "lts/*", "lts/-1"]') }}
node-version: ${{ fromJSON(needs.collect-versions.outputs.matrix) }}
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Environment Information
Expand All @@ -45,7 +51,7 @@ jobs:
run: echo "NIGHTLY=$(curl -s https://nodejs.org/download/nightly/index.json | jq -r '[.[] | select(.files[] | contains("linux-x64"))][0].version')" >> $GITHUB_ENV
- name: Install Node.js
id: setup-node
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: ${{ env.NIGHTLY || matrix.node-version }}
check-latest: true
Expand All @@ -57,7 +63,7 @@ jobs:
SHORT_SHA=$(node -p 'process.version.split(/-nightly\d{8}/)[1]')
echo "NIGHTLY_REF=$(gh api /repos/nodejs/node/commits/$SHORT_SHA --jq '.sha')" >> $GITHUB_ENV
- name: Checkout ${{ steps.setup-node.outputs.node-version }}
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
ref: ${{ env.NIGHTLY_REF || steps.setup-node.outputs.node-version }}
Expand All @@ -73,7 +79,7 @@ jobs:
run: rm -rf wpt
working-directory: test/fixtures
- name: Checkout epochs/daily WPT
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: web-platform-tests/wpt
persist-credentials: false
Expand All @@ -98,7 +104,7 @@ jobs:
run: rm -rf deps/undici
- name: Checkout undici
if: ${{ env.WPT_REPORT != '' }}
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: nodejs/undici
persist-credentials: false
Expand All @@ -121,7 +127,7 @@ jobs:
run: cp wptreport.json wptreport-${{ steps.setup-node.outputs.node-version }}.json
- name: Upload GitHub Actions artifact
if: ${{ env.WPT_REPORT != '' }}
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
path: out/wpt/wptreport-*.json
name: WPT Report for ${{ steps.setup-node.outputs.node-version }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
build-lto:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: ${{ env.NODE_VERSION }}
- name: Environment Information
Expand Down
Loading
Loading