chore(deps): update node.js to v21.6.0 #664
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
21.4.0
->21.6.0
Release Notes
nodejs/node (node)
v21.6.0
: 2024-01-15, Version 21.6.0 (Current), @RafaelGSSCompare Source
New connection attempt events
Three new events were added in the
net.createConnection
flow:connectionAttempt
: Emitted when a new connection attempt is established. In case of Happy Eyeballs, this might emitted multiple times.connectionAttemptFailed
: Emitted when a connection attempt failed. In case of Happy Eyeballs, this might emitted multiple times.connectionAttemptTimeout
: Emitted when a connection attempt timed out. In case of Happy Eyeballs, this will not be emitted for the last attempt. This is not emitted at all if Happy Eyeballs is not used.Additionally, a previous bug has been fixed where a new connection attempt could have been started after a previous one failed and after the connection was destroyed by the user.
This led to a failed assertion.
Contributed by Paolo Insogna in #51045.
Changes to the Permission Model
Node.js 21.6.0 comes with several fixes for the experimental permission model and two new semver-minor commits.
We're adding a new flag
--allow-addons
to enable addon usage when using the Permission Model.$ node --experimental-permission --allow-addons
Contributed by Rafael Gonzaga in #51183
And relative paths are now supported through the
--allow-fs-*
flags.Therefore, with this release one can use:
$ node --experimental-permission --allow-fs-read=./index.js
To give only read access to the entrypoint of the application.
Contributed by Rafael Gonzaga and Carlos Espa in #50758
Support configurable snapshot through
--build-snapshot-config
flagWe are adding a new flag
--build-snapshot-config
to configure snapshots through a custom JSON configuration file.$ node --build-snapshot-config=/path/to/myconfig.json
When using this flag, additional script files provided on the command line will
not be executed and instead be interpreted as regular command line arguments.
These changes were contributed by Joyee Cheung and Anna Henningsen in #50453
Other Notable Changes
c31ed51373
] - (SEMVER-MINOR) timers: export timers.promises (Marco Ippolito) #51246Commits
13a1241b83
] - assert,crypto: make KeyObject and CryptoKey testable for equality (Filip Skokan) #508974dcc5114aa
] - benchmark: remove dependency on unshipped tools (Adam Majer) #511462eb41f86b3
] - build: fix for VScode "Reopen in Container" (Serg Kryvonos) #51271e03ac83c19
] - build: fix arm64 cross-compilation (Michaël Zasso) #51256cd61fce34e
] - build: add-flax-vector-conversions
to V8 build (Michaël Zasso) #51257e5017a522e
] - crypto: update CryptoKey symbol properties (Filip Skokan) #50897c0d2e8be11
] - deps: update corepack to 0.24.0 (Node.js GitHub Bot) #5131824a9a72492
] - deps: update acorn to 8.11.3 (Node.js GitHub Bot) #51317e53cbb22c2
] - deps: update ngtcp2 and nghttp3 (James M Snell) #51291f00f1204f1
] - deps: update brotli to 1.1.0 (Node.js GitHub Bot) #50804a41dca0c51
] - deps: update zlib to 1.3.0.1-motley-40e35a7 (Node.js GitHub Bot) #51274efa12a89c6
] - deps: update simdutf to 4.0.8 (Node.js GitHub Bot) #5100025eba3d20b
] - deps: V8: cherry-pickde611e6
(Keyhan Vakil) #51200a07d6e23e4
] - deps: update simdjson to 3.6.3 (Node.js GitHub Bot) #511046d1bfcb2dd
] - deps: update googletest to530d5c8
(Node.js GitHub Bot) #5119175e5615c43
] - deps: update acorn-walk to 8.3.1 (Node.js GitHub Bot) #504573ecc7dcc00
] - deps: update acorn-walk to 8.3.0 (Node.js GitHub Bot) #50457e2f8d741c8
] - deps: update zlib to 1.3.0.1-motley-dd5fc13 (Node.js GitHub Bot) #511054a5d3bda72
] - doc: the GN files should use Node's license (Cheng Zhao) #5069484127514ba
] - doc: improve localWindowSize event descriptions (Davy Landman) #510718ee882a49c
] - doc: mark--jitless
as experimental (Antoine du Hamel) #51247876743ece1
] - doc: run license-builder (github-actions[bot]) #51199ec6fcff009
] - doc: fix limitations and known issues in pm (Rafael Gonzaga) #51184c13a5c0373
] - doc: mention node:wasi in the Threat Model (Rafael Gonzaga) #512114b19e62444
] - doc: remove ambiguous 'considered' (Rich Trott) #512075453abd6ad
] - doc: set exit code in custom test runner example (Matteo Collina) #51056f9d4e07faf
] - doc: remove version frommaintaining-dependencies.md
(Antoine du Hamel) #51195df8927a073
] - doc: mention native addons are restricted in pm (Rafael Gonzaga) #51185e636d83914
] - doc: correct note on behavior of stats.isDirectory (Nick Reilingh) #509461c71435c2a
] - doc: fixTestsStream
parent class (Jungku Lee) #511812c227b0d64
] - doc: fix simdjson wrong link (Marco Ippolito) #51177efa13e1943
] - (SEMVER-MINOR) doc: add documentation for --build-snapshot-config (Anna Henningsen) #50453941aedc6fc
] - errors: fix stacktrace of SystemError (uzlopak) #4995647548d9e61
] - esm: fix hint on invalid module specifier (Antoine du Hamel) #51223091098f40a
] - fs: fix fs.promises.realpath for long paths on Windows (翠 / green) #51032e5a8fa01aa
] - fs: make offset, position & length args in fh.read() optional (Pulkit Gupta) #51087c87e5d51cc
] - fs: add missing jsdoc parameters toreadSync
(Yagiz Nizipli) #51225e24249cf37
] - fs: removeinternalModuleReadJSON
binding (Yagiz Nizipli) #512247421467812
] - fs: improve mkdtemp performance for buffer prefix (Yagiz Nizipli) #510785b229d775f
] - fs: validate fd synchronously on c++ (Yagiz Nizipli) #51027c7a135962d
] - http: remove misleading warning (Luigi Pinca) #51204a325746ff4
] - http: do not override user-provided options object (KuthorX) #3363389eee7763f
] - http2: addtl http/2 settings (Marten Richter) #49025624142947f
] - lib: fix use of--frozen-intrinsics
with--jitless
(Antoine du Hamel) #512488f845eb001
] - lib: move function declaration outside of loop (Sanjaiyan Parthipan) #51242ed7305e49b
] - lib: reduce overhead ofSafePromiseAllSettledReturnVoid
calls (Antoine du Hamel) #51243291265ce27
] - lib: expose default prepareStackTrace (Chengzhong Wu) #508278ff6bc45ca
] - lib,permission: handle buffer on fs.symlink (Rafael Gonzaga) #51212416b4f8063
] - (SEMVER-MINOR) lib,src,permission: port path.resolve to C++ (Rafael Gonzaga) #507586648a5c576
] - meta: notify tsc on changes in SECURITY.md (Rafael Gonzaga) #5125983a99ccedd
] - meta: update artifact actions to v4 (Michaël Zasso) #51219b621ada69a
] - module: move the CJS exports cache to internal/modules/cjs/loader (Joyee Cheung) #51157e4be5b60f0
] - (SEMVER-MINOR) net: add connection attempt events (Paolo Insogna) #510453a492056e2
] - node-api: type tag external values without v8::Private (Chengzhong Wu) #51149b2135ae7dc
] - node-api: segregate nogc APIs from rest via type system (Gabriel Schulhof) #500608f4325dcd5
] - permission: fix wildcard when children > 1 (Rafael Gonzaga) #512097ecf99404e
] - quic: update quic impl to use latest ngtcp2/nghttp3 (James M Snell) #512915b32e21f3b
] - quic: add quic internalBinding, refine Endpoint, add types (James M Snell) #511123310095bea
] - repl: fix prepareStackTrace frames array order (Chengzhong Wu) #50827a0ff00b526
] - src: avoid draining platform tasks at FreeEnvironment (Chengzhong Wu) #51290115e0585cd
] - src: add fast api for Histogram (James M Snell) #5129629b81576c6
] - src: refactorGetCreationContext
calls (Yagiz Nizipli) #5128754dd978400
] - src: enter isolate before destructing IsolateData (Ben Noordhuis) #51138864ecb0dfa
] - src: do not treat all paths ending with node_modules as such (Michaël Zasso) #51269df31c8114c
] - src: eliminate duplicate code in histogram.cc (James M Snell) #5126317c73e6d0c
] - src: fix unix abstract socket path for trace event (theanarkh) #5085896d64edc94
] - src: use BignumPointer and use BN_clear_free (James M Snell) #504548a2dd93a14
] - src: implement FastByteLengthUtf8 with simdutf::utf8_length_from_latin1 (Daniel Lemire) #50840e54ddf898f
] - (SEMVER-MINOR) src: support configurable snapshot (Joyee Cheung) #50453a69c7d7bc3
] - (SEMVER-MINOR) src,permission: add --allow-addon flag (Rafael Gonzaga) #51183e7925e66fc
] - src,stream: improve WriteString (ywave620) #5115582de6603af
] - stream: fix code style (Mattias Buelens) #51168e443953656
] - stream: fix cloned webstreams not being unref'd (James M Snell) #51255757a84c9ea
] - test: fix flaky conditions for ppc64 SEA tests (Richard Lau) #5142285ee2f7255
] - test: replace forEach() with for...of (Alexander Jones) #50608549e4b4142
] - test: replace forEach with for...of (Ospite Privilegiato) #50787ef44f9bef2
] - test: replace foreach with for of (lucacapocci94-dev) #50790652af45485
] - test: replace forEach() with for...of (Jia) #50610684dd9db2f
] - test: fix inconsistency write size intest-fs-readfile-tostring-fail
(Jungku Lee) #51141aaf710f535
] - test: replace forEach test-http-server-multiheaders2 (Marco Mac) #5079457c64550cc
] - test: replace forEach with for-of in test-webcrypto-export-import-ec (Chiara Ricciardi) #5124988e865181b
] - test: move to for of loop in test-http-hostname-typechecking.js (Luca Del Puppo) #507823db376f67a
] - test: skip test-watch-mode-inspect on arm (Michael Dawson) #5121038232d1c52
] - test: replace forEach with for of in file test-trace-events-net.js (Ianna83) #50789f1cb58355a
] - test: replace forEach() with for...of in test/parallel/test-util-log.js (Edoardo Dusi) #507839bfd84c117
] - test: replace forEach with for of in test-trace-events-api.js (Andrea Pavone) #507847e9834915a
] - test: replace forEach with for-of in test-v8-serders.js (Mattia Iannone) #50791b6f232e841
] - test: add URL tests to fs-read in pm (Rafael Gonzaga) #512138a2178c5f5
] - test: use tmpdir.refresh() in test-esm-loader-resolve-type.mjs (Luigi Pinca) #512067e9a0b192a
] - test: use tmpdir.refresh() in test-esm-json.mjs (Luigi Pinca) #51205d7c2572fe0
] - test: fix flakiness in worker*.test-free-called (Jithil P Ponnan) #51013979cebc955
] - test_runner: fixed test object is incorrectly passed to setup() (Pulkit Gupta) #5098263db82abe6
] - test_runner: fixed to run after hook if before throws an error (Pulkit Gupta) #51062c31ed51373
] - (SEMVER-MINOR) timers: export timers.promises (Marco Ippolito) #51246fc10f889eb
] - tools: update lint-md-dependencies to rollup@4.9.2 (Node.js GitHub Bot) #51320d5a5f12d15
] - tools: fix dep_updaters dir updates (Michaël Zasso) #51294bdcb5ed510
] - tools: update inspector_protocol toc488ba2
(cola119) #5129369a46add77
] - tools: update inspector_protocol to9b4a4aa
(cola119) #51293e325f49d19
] - tools: update inspector_protocol to2f51e05
(cola119) #5129360d804851b
] - tools: update inspector_protocol tod7b099b
(cola119) #51293d18168489f
] - tools: update inspector_protocol to912eb68
(cola119) #51293ef4f46fc39
] - tools: update inspector_protocol to547c5b8
(cola119) #51293c3126fc016
] - tools: update inspector_protocol toca525fc
(cola119) #51293917d887dde
] - tools: update lint-md-dependencies to rollup@4.9.1 (Node.js GitHub Bot) #5127637594918e0
] - tools: check timezone current version (Marco Ippolito) #51178d0d2faf899
] - tools: update lint-md-dependencies to rollup@4.9.0 (Node.js GitHub Bot) #51193c96ef6533c
] - tools: update eslint to 8.56.0 (Node.js GitHub Bot) #51194f4f781d493
] - util: pass invalidSubtypeIndex instead of trimmedSubtype to error (Gaurish Sethia) #51264867b484429
] - watch: clarify that the fileName parameter can be null (Luigi Pinca) #5130556e8969b65
] - watch: fix nullfileName
on windows systems (vnc5) #498913f4fd6efbb
] - watch: fix infinite loop when passing --watch=true flag (Pulkit Gupta) #51160v21.5.0
: 2023-12-19, Version 21.5.0 (Current), @RafaelGSSCompare Source
Notable Changes
0dd53da722
] - (SEMVER-MINOR) deps: add simdjson (Yagiz Nizipli) #503229f54987fbc
] - module: merge config withpackage_json_reader
(Yagiz Nizipli) #5032245e4f82912
] - src: move package resolver to c++ (Yagiz Nizipli) #50322Deprecations
26ed4ad01f
] - doc: deprecate hash constructor (Marco Ippolito) #5107758ca66a1a7
] - doc: deprecatedirent.path
(Antoine du Hamel) #51020Commits
1bbdbdfbeb
] - benchmark: update iterations in benchmark/perf_hooks (Lei Shi) #50869087fb0908e
] - benchmark: update iterations in benchmark/crypto/aes-gcm-throughput.js (Lei Shi) #5092953b16c71fb
] - benchmark: update iteration and size in benchmark/crypto/randomBytes.js (Lei Shi) #5086838fd0ca753
] - benchmark: add undici websocket benchmark (Chenyu Yang) #50586b148c43244
] - benchmark: add create-hash benchmark (Joyee Cheung) #51026fdd8c18f96
] - benchmark: update interations and len in benchmark/util/text-decoder.js (Lei Shi) #50938a9972057ac
] - benchmark: update iterations of benchmark/util/type-check.js (Lei Shi) #50937b80bb1329b
] - benchmark: update iterations in benchmark/util/normalize-encoding.js (Lei Shi) #50934dbee03d646
] - benchmark: update iterations in benchmark/util/inspect-array.js (Lei Shi) #50933f2d83a3a84
] - benchmark: update iterations in benchmark/util/format.js (Lei Shi) #509322581fce553
] - bootstrap: improve snapshot unsupported builtin warnings (Joyee Cheung) #50944735bad3694
] - build: fix warnings from uv for gn build (Cheng Zhao) #510698da9d969f9
] - deps: V8: cherry-pick0fd478b
(Joyee Cheung) #50572429fbb37c1
] - deps: update simdjson to v3.6.2 (Yagiz Nizipli) #509869950103253
] - deps: update zlib to 1.3-22124f5 (Node.js GitHub Bot) #509100b61823e8b
] - deps: update undici to 5.28.2 (Node.js GitHub Bot) #5102495d8a273cc
] - deps: cherry-pickbfbe4e3
from libuv upstream (Abdirahim Musse) #5065006038a489e
] - deps: update libuv to 1.47.0 (Node.js GitHub Bot) #506500dd53da722
] - (SEMVER-MINOR) deps: add simdjson (Yagiz Nizipli) #5032204eaa5cdd7
] - doc: run license-builder (github-actions[bot]) #5111126ed4ad01f
] - doc: deprecate hash constructor (Marco Ippolito) #51077637ffce4c4
] - doc: add note regarding--experimental-detect-module
(Shubherthi Mitra) #51089838179b096
] - doc: correct tracingChannel.traceCallback() (Gerhard Stöbich) #51068539bee4f0a
] - doc: use length argument in pbkdf2Key (Tobias Nießen) #51066c45a9a3187
] - doc: add deprecation notice todirent.path
(Antoine du Hamel) #5105958ca66a1a7
] - doc: deprecatedirent.path
(Antoine du Hamel) #51020c2b6edf9ab
] - esm: fix hook name in error message (Bruce MacNaughton) #5046635e8f26f07
] - fs: throw fchownSync error from c++ (Yagiz Nizipli) #51075c3c8237089
] - fs: update params in jsdoc for createReadStream and createWriteStream (Jungku Lee) #510633f7f3ce8c9
] - fs: improve error performance of readvSync (IlyasShabi) #501007f95926f17
] - http: handle multi-value content-disposition header (Arsalan Ahmad) #509777a8a2d5632
] - lib: don't parse windows drive letters as schemes (华) #50580aa2be4bb76
] - module: load source maps incommonjs
translator (Hiroki Osame) #51033c0e5e74876
] - module: documentparentURL
in register options (Hiroki Osame) #510394eedf5e694
] - module: fix recently introduced coverity warning (Michael Dawson) #508439f54987fbc
] - module: merge config withpackage_json_reader
(Yagiz Nizipli) #503225f95dca638
] - node-api: introduce experimental feature flags (Gabriel Schulhof) #509913fb7fc909e
] - quic: further implementation details (James M Snell) #48244fa25e069fc
] - src: implement countObjectsWithPrototype (Joyee Cheung) #50572abe90527e4
] - src: register udp_wrap external references (Joyee Cheung) #5094384e2f51d14
] - src: register spawn_sync external references (Joyee Cheung) #509432cfee53d7b
] - src: register process_wrap external references (Joyee Cheung) #509439b7f79a8bd
] - src: fix double free reported by coverity (Michael Dawson) #51046fc5503246e
] - src: remove unused headers innode_file.cc
(Jungku Lee) #50927c3abdc58af
] - src: implement --trace-promises (Joyee Cheung) #50899f90fc83e97
] - src: fix dynamically linked zlib version (Richard Lau) #510079bf144379f
] - src: omit bool values of package.json main field (Yagiz Nizipli) #5096545e4f82912
] - src: move package resolver to c++ (Yagiz Nizipli) #5032271acd36778
] - stream: implement TransformStream cleanup using "transformer.cancel" (Debadree Chatterjee) #501265112306064
] - stream: fix fd is null when calling clearBuffer (kylo5aby) #50994ed070755ec
] - test: deflake test-diagnostics-channel-memory-leak (Joyee Cheung) #50572aee01ff1b4
] - test: test syncrhnous methods of child_process in snapshot (Joyee Cheung) #50943cc949869a3
] - test: handle relative https redirect (Richard Lau) #51121048349ed4c
] - test: fix test runner colored output test (Moshe Atlow) #510647f5291d783
] - test: resolve path of embedtest binary correctly (Cheng Zhao) #502764ddd0daf5f
] - test: escape cwd in regexp (Jérémy Lal) #509803ccd5faabb
] - test_runner: format coverage report for tap reporter (Pulkit Gupta) #51119d5c9adf3df
] - test_runner: fix infinite loop when files are undefined in test runner (Pulkit Gupta) #51047328a41701c
] - tools: update lint-md-dependencies to rollup@4.7.0 (Node.js GitHub Bot) #51106297cb6f5c2
] - tools: update doc to highlight.js@11.9.0 unified@11.0.4 (Node.js GitHub Bot) #504594705023343
] - tools: fix simdjson updater (Yagiz Nizipli) #50986c9841583db
] - tools: update eslint to 8.55.0 (Node.js GitHub Bot) #510252b4671125e
] - tools: update lint-md-dependencies to rollup@4.6.1 (Node.js GitHub Bot) #51022cd891b37f6
] - util: improve performance of function areSimilarFloatArrays (Liu Jia) #51040e178a43509
] - vm: use v8::DeserializeInternalFieldsCallback explicitly (Joyee Cheung) #50984fd028e146f
] - win,tools: upgrade Windows signing to smctl (Stefan Stojanovic) #50956Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.