Node v23.4.0 (Current)

ADH

Antoine du Hamel

2024-12-10, Version 23.4.0 (Current), @aduh95 prepared by @targos

Notable Changes

Introducing experimental assert.partialDeepStrictEqual

Sometimes, when writing test, we want to validate that some specific properties are present, and the mere presence of additional keys are not exactly relevant for that specific test. For this use case, we can now use assert.partialDeepStrictEqual, which should be familiar to those already using assert.deepStrictEqual, with the main difference that it does not require all properties in the actual parameter to be present in the expected parameter.

Here are a few examples of usage:

assert.partialDeepStrictEqual({ a: 1, b: 2, c: 3 }, { a: 1, b: 2 });

assert.partialDeepStrictEqual([1, 2, 3, 4], [2, 3]);

assert.partialDeepStrictEqual(
  { a: { b: { c: 1, d: 2 } }, e: 3 },
  { a: { b: { c: 1 } } }
);

assert.partialDeepStrictEqual(
  { a: { b: { c: 1, d: 2 } }, e: 3 },
  { a: { b: { c: 1 } } }
);

assert.partialDeepStrictEqual(
  new Set([{ a: 1 }, { b: 1 }]),
  new Set([{ a: 1 }])
);

assert.partialDeepStrictEqual(
  { a: new Set([{ a: 1 }, { b: 1 }]), b: new Map(), c: [1, 2, 3] },
  { a: new Set([{ a: 1 }]), c: [2] }
);

Contributed by Giovanni Bucci in #54630.

Implement --trace-env and --trace-env-[js|native]-stack

This release introduces --trace-env, --trace-env-js-stack and --trace-env-native-stack CLI options that print information about any access to environment variables done in the current Node.js instance to stderr. Currently in the logs, only the names of the environment variables being accessed are printed, while the values are not printed to avoid leaking sensitive information. To print the stack trace of the access, use --trace-env-js-stack and/or --trace-env-native-stack.

Contributed by Joyee Cheung in #55604.

Other notable changes

  • [59d6891872] - doc: add LJHarb to collaborators (Jordan Harband) #56132
  • [565b04a7be] - (SEMVER-MINOR) net: add BlockList.isBlockList(value) (James M Snell) #56078
  • [c9698ed6a4] - (SEMVER-MINOR) net: support blockList in net.connect (theanarkh) #56075
  • [30d604180d] - (SEMVER-MINOR) net: support blockList in net.Server (theanarkh) #56079
  • [9fba5e1df1] - (SEMVER-MINOR) net: add SocketAddress.parse (James M Snell) #56076
  • [4cdb03201e] - (SEMVER-MINOR) process: deprecate features.{ipv6,uv} and features.tls_* (René) #55545
  • [efb9f05f59] - (SEMVER-MINOR) sqlite: unflag node:sqlite module (Colin Ihrig) #55890
  • [d777d4a52d] - (SEMVER-MINOR) sqlite: add StatementSync.prototype.iterate method (tpoisseau) #54213

Commits

  • [5b0ce376a2] - assert: optimize partial comparison of two Sets (Antoine du Hamel) #55970
  • [a4f57f0293] - (SEMVER-MINOR) assert: add partialDeepStrictEqual (Giovanni Bucci) #54630
  • [1b81a7d003] - build: allow overriding clang usage (Shelley Vohr) #56016
  • [39c901307f] - build: remove defaults for create-release-proposal (Rafael Gonzaga) #56042
  • [7133c0459f] - build: avoid compiling with VS v17.12 (Stefan Stojanovic) #55930
  • [ce53f1689f] - build: set node_arch to target_cpu in GN (Shelley Vohr) #55967
  • [2023b09d27] - build: add create release proposal action (Rafael Gonzaga) #55690
  • [26ec99634c] - build: use variable for crypto dep path (Shelley Vohr) #55928
  • [f48e289580] - build: fix GN build for sqlite (Cheng) #55912
  • [fffabca6b8] - build: compile bundled simdutf conditionally (Jakub Jirutka) #55886
  • [d8eb83c5c5] - build: compile bundled simdjson conditionally (Jakub Jirutka) #55886
  • [83e02dc482] - build: compile bundled ada conditionally (Jakub Jirutka) #55886
  • [816d37a187] - (SEMVER-MINOR) cli: implement --trace-env and --trace-env-[js|native]-stack (Joyee Cheung) #55604
  • [53c0f2f186] - crypto: ensure CryptoKey usages and algorithm are cached objects (Filip Skokan) #56108
  • [93d36bf1c8] - crypto: allow non-multiple of 8 in SubtleCrypto.deriveBits (Filip Skokan) #55296
  • [8680b8030c] - deps: update ngtcp2 to 1.9.1 (Node.js GitHub Bot) #56095
  • [78a2a6ca1e] - deps: upgrade npm to 10.9.2 (npm team) #56135
  • [52dfe5af4b] - deps: update sqlite to 3.47.1 (Node.js GitHub Bot) #56094
  • [3852b5c8d1] - deps: update zlib to 1.3.0.1-motley-82a5fec (Node.js GitHub Bot) #55980
  • [f99f95f62f] - deps: update corepack to 0.30.0 (Node.js GitHub Bot) #55977
  • [96e846de89] - deps: update ngtcp2 to 1.9.0 (Node.js GitHub Bot) #55975
  • [d180a8aedb] - deps: update simdutf to 5.6.3 (Node.js GitHub Bot) #55973
  • [288416a764] - deps: upgrade npm to 10.9.1 (npm team) #55951
  • [cf3f7ac512] - deps: update zlib to 1.3.0.1-motley-7e2e4d7 (Node.js GitHub Bot) #54432
  • [7768b3d054] - deps: update simdjson to 3.10.1 (Node.js GitHub Bot) #54678
  • [9c6103833b] - deps: update simdutf to 5.6.2 (Node.js GitHub Bot) #55889
  • [7b133d6220] - dgram: check udp buffer size to avoid fd leak (theanarkh) #56084
  • [e4529b8179] - doc: add report version and history section (Chengzhong Wu) #56130
  • [718625a03a] - doc: mention -a flag for the release script (Ruy Adorno) #56124
  • [59d6891872] - doc: add LJHarb to collaborators (Jordan Harband) #56132
  • [d7ed32404a] - doc: add create-release-action to process (Rafael Gonzaga) #55993
  • [3b4ef93371] - doc: rename file to advocacy-ambassador-program.md (Tobias Nießen) #56046
  • [59e4087d5e] - doc: add added tag and fix typo sqlite.md (Bart Louwers) #56012
  • [a1b26608ae] - doc: remove unused import from sample code (Blended Bram) #55570
  • [498f44ad73] - doc: add FAQ to releases section (Rafael Gonzaga) #55992
  • [d48348afaa] - doc: move history entry to class description (Luigi Pinca) #55991
  • [96926ce13c] - doc: add history entry for textEncoder.encodeInto() (Luigi Pinca) #55990
  • [e92d51d511] - doc: improve GN build documentation a bit (Shelley Vohr) #55968
  • [6be3824d6f] - doc: fix deprecation codes (Filip Skokan) #56018
  • [fa2b35d28d] - doc: remove confusing and outdated sentence (Luigi Pinca) #55988
  • [baed2763df] - doc: deprecate passing invalid types in fs.existsSync (Carlos Espa) #55892
  • [a3f7db6b6d] - doc: add doc for PerformanceObserver.takeRecords() (skyclouds2001) #55786
  • [770572423b] - doc: add vetted courses to the ambassador benefits (Matteo Collina) #55934
  • [98f8f4a8a9] - doc: order node:crypto APIs alphabetically (Julian Gassner) #55831
  • [1e0decb44c] - doc: doc how to add message for promotion (Michael Dawson) #55843
  • [ff48c29724] - doc: add esm example for zlib (Leonardo Peixoto) #55946
  • [ccc5a6d552] - doc: document approach for building wasm in deps (Michael Dawson) #55940
  • [c8bb8a6ac5] - doc: fix Node.js 23 column in CHANGELOG.md (Richard Lau) #55935
  • [9d078802ad] - doc: remove RedYetiDev from triagers team (Aviv Keller) #55947
  • [5a2a757119] - doc: add esm examples to node:timers (Alfredo González) #55857
  • [f711a48e15] - doc: fix relative path mention in --allow-fs (Rafael Gonzaga) #55791
  • [219f5f2627] - doc: include git node release --promote to steps (Rafael Gonzaga) #55835
  • [f9d25ed3e4] - doc: add history entry for import assertion removal (Antoine du Hamel) #55883
  • [efb9f05f59] - (SEMVER-MINOR) doc,lib,src,test: unflag sqlite module (Colin Ihrig) #55890
  • [a37e5fe5f8] - fs: lazily load ReadFileContext (Gürgün Dayıoğlu) #55998
  • [9289374248] - http2: fix memory leak caused by premature listener removing (ywave620) #55966
  • [49af1c33ac] - lib: add validation for options in compileFunction (Taejin Kim) #56023
  • [8faf91846b] - lib: fix fs.readdir recursive async (Rafael Gonzaga) #56041
  • [a2382303d7] - lib: refactor code to improve readability (Pietro Marchini) #55995
  • [30f26ba254] - lib: avoid excluding symlinks in recursive fs.readdir with filetypes (Juan José) #55714
  • [9b272ae339] - meta: bump github/codeql-action from 3.27.0 to 3.27.5 (dependabot[bot]) #56103
  • [fb0e6ca68b] - meta: bump actions/checkout from 4.1.7 to 4.2.2 (dependabot[bot]) #56102
  • [0ab611513c] - meta: bump step-security/harden-runner from 2.10.1 to 2.10.2 (dependabot[bot]) #56101
  • [ff4839b8ab] - meta: bump actions/setup-node from 4.0.3 to 4.1.0 (dependabot[bot]) #56100
  • [f262207356] - meta: add releasers as CODEOWNERS to proposal action (Rafael Gonzaga) #56043
  • [b6005b3fac] - module: mark evaluation rejection in require(esm) as handled (Joyee Cheung) #56122
  • [b8ab5332a9] - module: remove --experimental-default-type (Geoffrey Booth) #56092
  • [4be5047030] - module: do not warn when require(esm) comes from node_modules (Joyee Cheung) #55960
  • [c9698ed6a4] - (SEMVER-MINOR) net: support blocklist in net.connect (theanarkh) #56075
  • [9fba5e1df1] - (SEMVER-MINOR) net: add SocketAddress.parse (James M Snell) #56076
  • [565b04a7be] - (SEMVER-MINOR) net: add net.BlockList.isBlockList(value) (James M Snell) #56078
  • [30d604180d] - (SEMVER-MINOR) net: support blocklist for net.Server (theanarkh) #56079
  • [4cdb03201e] - (SEMVER-MINOR) process: deprecate features.{ipv6,uv} and features.tls_* (René) #55545
  • [d09e57b26d] - quic: update more QUIC implementation (James M Snell) #55986
  • [1fb30d6e86] - quic: multiple updates to quic impl (James M Snell) #55971
  • [9e4f7aa808] - sqlite: deps include sqlite3ext.h (Alex Yang) #56010
  • [d777d4a52d] - (SEMVER-MINOR) sqlite: add StatementSync.prototype.iterate method (tpoisseau) #54213
  • [66451bb9ba] - src: use spaceship operator in SocketAddress (James M Snell) #56059
  • [ad9ebe417a] - src: add missing qualifiers to env.cc (Yagiz Nizipli) #56062
  • [56c4da240d] - src: use std::string_view for process emit fns (Yagiz Nizipli) #56086
  • [26ab8e9823] - src: remove dead code in async_wrap (Gerhard Stöbich) #56065
  • [4dea44e468] - src: avoid copy on getV8FastApiCallCount (Yagiz Nizipli) #56081
  • [b778a4fe46] - src: fix check fd (theanarkh) #56000
  • [971f5f54df] - src: safely remove the last line from dotenv (Shima Ryuhei) #55982
  • [497a9aea1c] - src: fix kill signal on Windows (Hüseyin Açacak) #55514
  • [8a935489f9] - src,build: add no user defined deduction guides of CTAD check (Chengzhong Wu) #56071
  • [5edb8d5919] - test: remove test-fs-utimes flaky designation (Luigi Pinca) #56052
  • [046e642a80] - test: ensure cli.md is in alphabetical order (Antoine du Hamel) #56025
  • [da354f46cd] - test: update WPT for WebCryptoAPI to 3e3374efde (Node.js GitHub Bot) #56093
  • [9486c7ce4c] - test: update WPT for WebCryptoAPI to 76dfa54e5d (Node.js GitHub Bot) #56093
  • [a8809fc0f5] - test: move test-worker-arraybuffer-zerofill to parallel (Luigi Pinca) #56053
  • [6194435b9e] - test: update WPT for url to 67880a4eb83ca9aa732eec4b35a1971ff5bf37ff (Node.js GitHub Bot) #55999
  • [f7567d46d8] - test: make HTTP/1.0 connection test more robust (Arne Keller) #55959
  • [c157e026fc] - test: convert readdir test to use test runner (Thomas Chetwin) #55750
  • [29362ce673] - test: make x509 crypto tests work with BoringSSL (Shelley Vohr) #55927
  • [493e16c852] - test: fix determining lower priority (Livia Medeiros) #55908
  • [99858ceb9f] - test,crypto: update WebCryptoAPI WPT (Filip Skokan) #55997
  • [7c3a4d4bcd] - test_runner: refactor Promise chain in run() (Colin Ihrig) #55958
  • [95e8c4ef6c] - test_runner: refactor build Promise in Suite() (Colin Ihrig) #55958
  • [c048865199] - test_runner: simplify hook running logic (Colin Ihrig) #55963
  • [8197815fe8] - test_runner: mark snapshot testing as stable (Colin Ihrig) #55897
  • [8a5d8c7669] - test_runner: mark context.plan() as stable (Colin Ihrig) #55895
  • [790a2ca3b7] - tools: update create-release-proposal workflow (Antoine du Hamel) #56054
  • [98ce4652e2] - tools: fix update-undici script (Michaël Zasso) #56069
  • [d6a6c8ace1] - tools: allow dispatch of tools.yml from forks (Antoine du Hamel) #56008
  • [cc96fce5eb] - tools: fix nghttp3 updater script (Antoine du Hamel) #56007
  • [2cd939cb95] - tools: filter release keys to reduce interactivity (Antoine du Hamel) #55950
  • [4b3919f1be] - tools: update WPT updater (Antoine du Hamel) #56003
  • [54c46b8464] - tools: add WPT updater for specific subsystems (Mert Can Altin) #54460
  • [32b1681b7f] - tools: use tokenless Codecov uploads (Michaël Zasso) #55943
  • [475141e370] - tools: add linter for release commit proposals (Antoine du Hamel) #55923
  • [d093820f64] - tools: lint js in doc/**/*.md (Livia Medeiros) #55904
  • [72eb710f0f] - tools: fix riscv64 build failed (Lu Yahan) #52888
  • [882b70c83f] - tools: bump cross-spawn from 7.0.3 to 7.0.5 in /tools/eslint (dependabot[bot]) #55894
  • [9eccd7dba9] - util: add fast path for Latin1 decoding (Mert Can Altin) #55275

Windows 64-bit Installer: https://nodejs.org/dist/v23.4.0/node-v23.4.0-x64.msi
Windows ARM 64-bit Installer: https://nodejs.org/dist/v23.4.0/node-v23.4.0-arm64.msi
Windows 64-bit Binary: https://nodejs.org/dist/v23.4.0/win-x64/node.exe
Windows ARM 64-bit Binary: https://nodejs.org/dist/v23.4.0/win-arm64/node.exe
macOS 64-bit Installer: https://nodejs.org/dist/v23.4.0/node-v23.4.0.pkg
macOS Apple Silicon 64-bit Binary: https://nodejs.org/dist/v23.4.0/node-v23.4.0-darwin-arm64.tar.gz
macOS Intel 64-bit Binary: https://nodejs.org/dist/v23.4.0/node-v23.4.0-darwin-x64.tar.gz
Linux 64-bit Binary: https://nodejs.org/dist/v23.4.0/node-v23.4.0-linux-x64.tar.xz
Linux PPC LE 64-bit Binary: https://nodejs.org/dist/v23.4.0/node-v23.4.0-linux-ppc64le.tar.xz
Linux s390x 64-bit Binary: https://nodejs.org/dist/v23.4.0/node-v23.4.0-linux-s390x.tar.xz
AIX 64-bit Binary: https://nodejs.org/dist/v23.4.0/node-v23.4.0-aix-ppc64.tar.gz
ARMv7 32-bit Binary: https://nodejs.org/dist/v23.4.0/node-v23.4.0-linux-armv7l.tar.xz
ARMv8 64-bit Binary: https://nodejs.org/dist/v23.4.0/node-v23.4.0-linux-arm64.tar.xz
Source Code: https://nodejs.org/dist/v23.4.0/node-v23.4.0.tar.gz
Other release files: https://nodejs.org/dist/v23.4.0/
Documentation: https://nodejs.org/docs/v23.4.0/api/

SHASUMS

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

686f245ea6aefb46e6807cffa66ba6db5f3dad4b557434c2e81e402774c810f9  node-v23.4.0-aix-ppc64.tar.gz
88fe807de7806ee3e0129cca5164fabff03eaa7c418d48749117ca4c8172ba11  node-v23.4.0-arm64.msi
06623a5bf78ceedc56a7bed6c299d78fc8c8724fe96b963392fddf9b20d854de  node-v23.4.0-darwin-arm64.tar.gz
bd5e06f18f0e7cf45ba643e86493f2b7a00e174d25dd253d168c827b96977759  node-v23.4.0-darwin-arm64.tar.xz
5784c98d6710c0370f41243201d1684635d737ee8e6a40ea6f76b2b392cff396  node-v23.4.0-darwin-x64.tar.gz
c8b3e4310781972a1683c1d3d7b06e10cdccc66c623679bbc598b4b60bd2c40c  node-v23.4.0-darwin-x64.tar.xz
230ce5c1f715ccf9e8b9e2d524322e4537c8d78caafe8a98ac30cbf29cd9b67d  node-v23.4.0-headers.tar.gz
9fc8c0af707cf06cff6aeadd52942626ef7e7f7d0d2ed0ff0814875ce8482830  node-v23.4.0-headers.tar.xz
69b3cfd03a9dee46254f3308f5a74fd282f29854a604a88a4bbedc2f83b0b8e3  node-v23.4.0-linux-arm64.tar.gz
b9364f27e81dce2d1357c4918ef2c9edb918029c80de90583d13299478f3301e  node-v23.4.0-linux-arm64.tar.xz
132bba301b4cb11ed4435c394b684c5a03e7a3f215a6b42875fd269dd6941f38  node-v23.4.0-linux-armv7l.tar.gz
ad5c8f18ba164978e1c299536c2a495a28d6578f8263fbd12cf8b3ad68553fd4  node-v23.4.0-linux-armv7l.tar.xz
26f7a2c1c89b960fd21aed5512a55dc5f3a1aa12964663496708107ac86d7c59  node-v23.4.0-linux-ppc64le.tar.gz
64d6c11a6d97f1fc05ca775b043458f183f922f2148e2337ac9f65c14eac6ec4  node-v23.4.0-linux-ppc64le.tar.xz
c47f1b56859eaa6ee0a2737e4d875c280dc3d84ae173ffd727438bfb4624cb81  node-v23.4.0-linux-s390x.tar.gz
0c18a606719ff77bbe76dc9dffe0cc2e264d3a3fc2eb4440d2b26b824a1f18d0  node-v23.4.0-linux-s390x.tar.xz
2d5ae1dfa7f67e96b23d1d1ff51b8c76c7ec51fbfb7c4c1f010101b9557a2a86  node-v23.4.0-linux-x64.tar.gz
c78502b5b786d950fa2f9fa5575704e36ab0b120693f3470f26ef4aa3082327f  node-v23.4.0-linux-x64.tar.xz
682fa2e8d68c93188109be109019fb0eccded6ef1e2c5e22afbbbbc0f6eb2938  node-v23.4.0-win-arm64.7z
0f1f76a0e00652d261377af6bac63889c5da23eb4ef6f574055c8f54e8fe9d6e  node-v23.4.0-win-arm64.zip
8f6649529618c5987f5218bcd6b96d57b4b53355ccf422a74f259568b0d4ef5c  node-v23.4.0-win-x64.7z
17dc979797aa4c8a79e33b07b6dc3faa3fffc00d7a131660da3f608f5dbc3842  node-v23.4.0-win-x64.zip
3842c61cbf41104a4098e17c7ab47a0c3b02fa672cee26960f584ad122a65753  node-v23.4.0-x64.msi
357cb7d64c1c5106d3f9475e586834de8db7fbccb4b06da58b59a01963eb15c9  node-v23.4.0.pkg
1abc3d7ed398b0fd8606837552732f7bebce0cd2285069477d0692d318442248  node-v23.4.0.tar.gz
4bb14bf3faf790bb122a537b05d7bf4006fc51e78761b157ce453b63fa7e3371  node-v23.4.0.tar.xz
323e9b49334d09edeb07810304c39d3d3e14ae17259c97dfc38e0da64654fbe5  win-arm64/node.exe
a663818787224e59b0d571dc8346b8b9e8fc99786753971120fad7879bdcf24d  win-arm64/node.lib
1fd3fba66ebb58cacb29a5070d433f135c153683d8997ec69ccdae0f463ac44a  win-arm64/node_pdb.7z
02643be2e065524767ff5a772f7519b6ed5673bf1020cd2c2710545343207145  win-arm64/node_pdb.zip
6777eb57e6923820f4dd533920676695fc7bdc7b5bdc9e6468a9c595ba8b175c  win-x64/node.exe
16d5b600ec216018913aea9a62de20765fdefbc1ec2cfd9ad6c39fb92e26678c  win-x64/node.lib
16da7071d026f8ffda3c06c31a0ac4dd271e3c70c53c7b7f4e8a0553623d4b1f  win-x64/node_pdb.7z
c9eb5f7ab037fe4be30ebad3797e3728454b3659de7dcef76a21c319cbdf0407  win-x64/node_pdb.zip
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEwNYkhDnx1WBKr/tAIdkA/9sjN1YFAmdYYNMACgkQIdkA/9sj
N1Y7kw/+IuTONahRFML7LwE2U/RMsGVmIEOA/l4bQmI6Jn/68PUB12FiLuB8tBvJ
+fvQHmqqtTHxdp2000iewbUPnWRIMgreEYcHYlmooJVa3d7E7UN54/8gukIPgGeB
I0F5HomZFHA8VjfiLjVm6IGAsDejNMSdmYptNmllqf0VQ64NQTdSjoVnxUlhnkbM
U3nEqSGjEeLDpqjEnihNZfmvj8nTrGZNIvl93Xo+IReftFUp8ghyArMcMvuUD2Cl
dJTPMRWVMAh73nTk5tu8HnAruC6lBOrl/ZIuL9AUaghN1gzQ2IFibavWVqdrGhN/
UB4OFpjjuGNQrv2yUfa8KNlNorhLzZ41IJgAtfc5GIr5jojgcbnfJx8Cs3OArSdR
UCsnLse1EIbbR/LaXrHNWFEQrUf+K3uvhvuS2E5BCksNcunZPtOTHClAkTfcH7rO
aRhwfbRpqoyHrhn0FdqF3kwlvds7d5DMJIZqXMGhpJF4Hc9o0QAwDNn89w+DvBF9
MF/tBVoNsNlxMep9U0dlr0QUVKR3fso3Dl3Emg4fTWsXO0EDOXEDp8xX7aSx18fr
SD102PPqeb8oqCs9PeJc06cVYlqA6ZNY1859NFe2m7ZRNhfH0qsEwk0CTyOCS7W7
U1bqG9TQZgDo1TP7D54ADirzWci0vA4qtM8bTrJ8EC4zxzU8K00=
=2RPO
-----END PGP SIGNATURE-----