chore(deps): update node.js to v22.7.0 #802
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:
22.6.0
->22.7.0
Release Notes
nodejs/node (node)
v22.7.0
: 2024-08-22, Version 22.7.0 (Current), @RafaelGSSCompare Source
Experimental transform types support
With the new flag
--experimental-transform-types
it is possible to enable thetransformation of TypeScript-only syntax into JavaScript code.
This feature allows Node.js to support TypeScript syntax such as
Enum
andnamespace
.Thanks to Marco Ippolito for making this work on #54283.
Module syntax detection is now enabled by default.
Module syntax detection (the
--experimental-detect-module
flag) is nowenabled by default. Use
--no-experimental-detect-module
to disable it ifneeded.
Syntax detection attempts to run ambiguous files as CommonJS, and if the module
fails to parse as CommonJS due to ES module syntax, Node.js tries again and runs
the file as an ES module.
Ambiguous files are those with a
.js
or no extension, where the nearest parentpackage.json
has no"type"
field (either"type": "module"
or"type": "commonjs"
).Syntax detection should have no performance impact on CommonJS modules, but it
incurs a slight performance penalty for ES modules; add
"type": "module"
tothe nearest parent
package.json
file to eliminate the performance cost.A use case unlocked by this feature is the ability to use ES module syntax in
extensionless scripts with no nearby
package.json
.Thanks to Geoffrey Booth for making this work on #53619.
Performance Improvements to Buffer
Performance of Node.js Buffers have been optimized through multiple PR's with significant
improvements to the
Buffer.copy
andBuffer.write
methods. These are used throughoutthe codebase and should give a nice boost across the board.
Thanks to Robert Nagy for making this work on #54311,
#54324, and #54087.
Other Notable Changes
911de7dd6d
] - (SEMVER-MINOR) inspector: supportNetwork.loadingFailed
event (Kohei Ueno) #542469ee4b16bd8
] - (SEMVER-MINOR) lib: rewrite AsyncLocalStorage without async_hooks (Stephen Belanger) #48528Commits
c6544ff5a6
] - benchmark: use assert.ok searchparams (Rafael Gonzaga) #5433451b8576897
] - benchmark: add stream.compose benchmark (jakecastelli) #54308c166036515
] - benchmark: rename count to n (Rafael Gonzaga) #542711be0ee76ef
] - benchmark: change assert() to assert.ok() (Rafael Gonzaga) #542544dd229f546
] - benchmark: support --help in CLI (Aviv Keller) #53358a5a320cd5b
] - benchmark: remove force option as force defaults to true (Yelim Koo) #54203db0a80a0eb
] - benchmark: use assert.ok instead of assert (Rafael Gonzaga) #541768ba53ae7b7
] - buffer: properly apply dst offset and src length on fast path (Robert Nagy) #54391a5a60e6823
] - buffer: use fast API for writing one-byte strings (Robert Nagy) #543117b641bc2bd
] - buffer: optimize byteLength for short strings (Robert Nagy) #5434528ca678f81
] - buffer: optimize byteLength for common encodings (Robert Nagy) #5434212785559be
] - buffer: optimize createFromString (Robert Nagy) #54324f7f7b0c498
] - buffer: optimize for common encodings (Robert Nagy) #5431937631f826b
] - buffer: add JSDoc to blob bytes method (Roberto Simonini) #54117ab6fae9dbf
] - buffer: faster type check (Robert Nagy) #540889f8f26eb2f
] - buffer: use native copy impl (Robert Nagy) #54087019ebf03c1
] - buffer: use faster integer argument check (Robert Nagy) #54089c640a2f24c
] - build: always disable strict aliasing (Michaël Zasso) #543396aa1d9e855
] - build: updateruff
to0.5.2
(Aviv Keller) #53909350e699443
] - build: supportlint-js-fix
invcbuild.bat
(Aviv Keller) #5369598fed763f7
] - build: add--without-amaro
build flag (Antoine du Hamel) #541361ca598c5ce
] - cli: allow--test-[name/skip]-pattern
inNODE_OPTIONS
(Aviv Keller) #5300137960a67ae
] - console: use validateOneOf for colorMode validation (HEESEUNG) #54245d52f515bab
] - crypto: include NODE_EXTRA_CA_CERTS in all secure contexts by default (Eric Bickle) #44529b6a3e61353
] - deps: update amaro to 0.1.6 (Node.js GitHub Bot) #543740d716ad3f3
] - deps: update simdutf to 5.3.4 (Node.js GitHub Bot) #5431218bfea5f33
] - deps: update zlib to 1.3.0.1-motley-71660e1 (Node.js GitHub Bot) #53464d0c23f332f
] - deps: update zlib to 1.3.0.1-motley-c2469fd (Node.js GitHub Bot) #53464e7db63972c
] - deps: update zlib to 1.3.0.1-motley-68e57e6 (Node.js GitHub Bot) #53464713ae95555
] - deps: update zlib to 1.3.0.1-motley-8b7eff8 (Node.js GitHub Bot) #53464758c9df36e
] - deps: update zlib to 1.3.0.1-motley-e432200 (Node.js GitHub Bot) #53464fe7e6c9563
] - deps: update zlib to 1.3.0.1-motley-887bb57 (Node.js GitHub Bot) #5346435722b7bca
] - deps: update simdjson to 3.10.0 (Node.js GitHub Bot) #54197a2a41557db
] - deps: fix GN build warning in ncrypto (Cheng) #54222869da204d7
] - deps: update c-ares to v1.33.0 (Node.js GitHub Bot) #54198e0d503a715
] - deps: update nbytes to 0.1.1 (Node.js GitHub Bot) #54277b0c768dae1
] - deps: update undici to 6.19.7 (Node.js GitHub Bot) #54286ef9a950cb9
] - deps: update acorn to 8.12.1 (Node.js GitHub Bot) #534651597a1139a
] - deps: update undici to 6.19.5 (Node.js GitHub Bot) #54076103e4db3e0
] - deps: update simdutf to 5.3.1 (Node.js GitHub Bot) #541969f115ba9e9
] - doc: fix error description of the max header size (Egawa Ryo) #54125f967ab3810
] - doc: add git node security --cleanup (Rafael Gonzaga) #543818883c01afa
] - doc: add note on weakness of permission model (Tobias Nießen) #54268824bd58bc5
] - doc: add versions when--watch-preserve-output
was added (Théo LUDWIG) #5432833795cfd49
] - doc: replace v19 mention in Current release (Rafael Gonzaga) #54361aa6e770ea5
] - doc: correct peformance entry types (Jason Zhang) #542634b099ce1bd
] - doc: fix typo in method name in the sea doc (Eliyah Sundström) #540278a8d1d2281
] - doc: mark process.nextTick legacy (Marco Ippolito) #512806f4b5d998e
] - doc: add esm examples to node:http2 (Alfredo González) #542921535469c12
] - doc: explicitly mention node:fs module restriction (Rafael Gonzaga) #5426926c37f7910
] - doc: remove module-based permission doc (Rafael Gonzaga) #54266971b9f31f5
] - doc: updatebuffer.constants.MAX_LENGTH
size (Samuli Asmala) #542073106149965
] - doc: warn for windows build bug (Jason Zhang) #5421755f8ac3e89
] - doc: make some parameters optional intracingChannel.traceCallback
(Deokjin Kim) #54068e3e2f22cab
] - doc: add esm examples to node:dns (Alfredo González) #541720429b1eb9d
] - doc: add KevinEady as a triager (Chengzhong Wu) #541794bfa7d8e54
] - doc: add esm examples to node:console (Alfredo González) #541082f5309fc22
] - doc: fix sea assets example (Sadzurami) #5419288aef5a39d
] - doc: add links to security steward companies (Aviv Keller) #529815175903c23
] - doc: moveonread
option fromsocket.connect()
tonew net.socket()
(sendoru) #54194144637e845
] - doc: move release key for Myles Borins (Richard Lau) #54059358fdacec6
] - doc: refresh instructions for building node from source (Liran Tal) #5376811fdaa6ad2
] - doc: add documentation for blob.bytes() method (jaexxin) #54114db3b0df42c
] - doc: add missing new lines to custom test reporter examples (Eddie Abbondanzio) #541521cafefd2cf
] - doc: fix worker threadId/destination typo (Thomas Hunter II) #539337772b46038
] - doc: update list of Triagers on theREADME.md
(Antoine du Hamel) #54138af99ba3dc9
] - doc: remove unused imports from worker_threads.md (Yelim Koo) #54147826edc4341
] - doc: expand troubleshooting section (Liran Tal) #53808923195b624
] - doc: clarifyuseCodeCache
setting for cross-platform SEA generation (Yelim Koo) #539947c305a4900
] - doc, meta: replace command with link to keys (Aviv Keller) #537456f986e0ee6
] - doc, test: simplify test README table (Aviv Keller) #53971112228c15a
] - fs: remove unnecessary option argument validation (Jonas) #53958911de7dd6d
] - (SEMVER-MINOR) inspector: supportNetwork.loadingFailed
event (Kohei Ueno) #542461e825915d5
] - inspector: provide detailed info to fix DevTools frontend errors (Kohei Ueno) #54156417120a3a3
] - lib: replace spread operator with primordials function (YoonSoo_Shin) #5405309f411e6f6
] - lib: avoid for of loop and remove unnecessary variable in zlib (YoonSoo_Shin) #54258b8970570b0
] - lib: improve async_context_frame structure (Stephen Belanger) #54239783322fa16
] - lib: fix unhandled errors in webstream adapters (Fedor Indutny) #54206425b9562b9
] - lib: fix typos in comments within internal/streams (YoonSoo_Shin) #540939ee4b16bd8
] - (SEMVER-MINOR) lib: rewrite AsyncLocalStorage without async_hooks (Stephen Belanger) #485288c9a4ae12b
] - lib,permission: support Buffer to permission.has (Rafael Gonzaga) #54104c8e358c96c
] - meta: add test-permission-* CODEOWNERS (Rafael Gonzaga) #54267581c155cf8
] - meta: move one or more collaborators to emeritus (Node.js GitHub Bot) #542103f0d7344e3
] - meta: add module label for the lib/internal/modules folder (Aviv Keller) #528580157ec6bbd
] - meta: bumpactions/upload-artifact
from 4.3.3 to 4.3.4 (dependabot[bot]) #541667fa95d2360
] - meta: bumpactions/download-artifact
from 4.1.7 to 4.1.8 (dependabot[bot]) #54167acc5b9a0c5
] - meta: bump actions/setup-python from 5.1.0 to 5.1.1 (dependabot[bot]) #54165dede30a8d0
] - meta: bumpstep-security/harden-runner
from 2.8.1 to 2.9.0 (dependabot[bot]) #54169b733854eac
] - meta: bumpactions/setup-node
from 4.0.2 to 4.0.3 (dependabot[bot]) #541706a9f168cc6
] - meta: bumpgithub/codeql-action
from 3.25.11 to 3.25.15 (dependabot[bot]) #541689bbd85e4fe
] - meta: bumpossf/scorecard-action
from 2.3.3 to 2.4.0 (dependabot[bot]) #5417133633eebd9
] - meta: add typescript team to codeowners (Marco Ippolito) #54101240d9296c1
] - (SEMVER-MINOR) module: add --experimental-transform-types flag (Marco Ippolito) #5428366dcb2a571
] - (SEMVER-MINOR) module: unflag detect-module (Geoffrey Booth) #53619100225fbe1
] - module: do not attempt to strip type when there's no source (Antoine du Hamel) #542871ba2000703
] - module: refactor ts parser loading (Marco Ippolito) #5424313cc480030
] - module: remove outdated comment (Michaël Zasso) #54118e676d98435
] - module,win: fix long path resolve (Hüseyin Açacak) #532949aec536083
] - path: changeposix.join
to use array (Wiyeong Seo) #543318a770cf5c9
] - path: fix relative on Windows (Hüseyin Açacak) #53991267cd7f361
] - path: use the correct name invalidateString
(Benjamin Pasero) #5366931adeea855
] - sea: don't set code cache flags when snapshot is used (Joyee Cheung) #541207f1bf1ce24
] - sqlite: split up large test file (Colin Ihrig) #5401494e2ea6f5c
] - sqlite: ensure statement finalization on db close (Colin Ihrig) #54014e077ff1f38
] - src: update compile cache storage structure (Joyee Cheung) #542914e4d1def7e
] - src: refactor http parser binding initialization (Joyee Cheung) #54276409d9eb09b
] - src: shift even moar x509 to ncrypto (James M Snell) #54340f87aa27274
] - src: don't match after--
inDotenv::GetPathFromArgs
(Aviv Keller) #54237b6927dd981
] - src: move some X509Certificate stuff to ncrypto (James M Snell) #54241a394219fa5
] - src: skip inspector wait in internal workers (Chengzhong Wu) #542198daeccfe92
] - src: shift more crypto impl details to ncrypto (James M Snell) #54028e619133ac9
] - src: move spkac methods to ncrypto (James M Snell) #53985b52c2fff75
] - src: account for OpenSSL unexpected version (Shelley Vohr) #540380b16af1689
] - src,test: trackURL.canParse
fast API calls (Michaël Zasso) #543562be78b03c3
] - src,test: ensure that V8 fast APIs are called (Michaël Zasso) #543179297d29cdb
] - stream: make checking pendingcb on WritableStream backward compatible (jakecastelli) #541422a6a12e493
] - stream: throw TypeError when criteria fulfilled in getIterator (jakecastelli) #538257f68cc0f7f
] - test: make snapshot comparison more flexible (Shelley Vohr) #543753df7938832
] - test: make sure current run result is pushed and reset (jakecastelli) #543323e25be7b28
] - test: use relative paths in test-cli-permission tests (sendoru) #54188f49f1bb3e9
] - test: unmark test-sqlite as flaky (Colin Ihrig) #540142f68a74702
] - test: fix timeout not being cleared (Isaac-yz-Liu) #54242f5cfa4454e
] - test: refactortest-runner-module-mocking
(Antoine du Hamel) #54233b85b13b418
] - test: use assert.{s,deepS}trictEqual() (Luigi Pinca) #542086bcbfcd7bc
] - test: add subtests to test-node-run (sungpaks) #54204dafe97548f
] - test: set test-structuredclone-jstransferable non-flaky (Stefan Stojanovic) #54115be61793db5
] - test: update wpt test for streams (devstone) #54129670c796449
] - test: fix typo in test (Sonny) #541371a15f3f613
] - test: add initial pull delay and prototype pollution prevention tests (Sonny) #540615dbff81b71
] - test: add coverage for webstorage quota (jakecastelli) #53964141e9fe7cc
] - test_runner: use validateStringArray fortimers.enable()
(Deokjin Kim) #49534e70711e190
] - test_runner: report failures in filtered suites (Colin Ihrig) #543877766c1dc9b
] - test_runner: remove parseCommandLine() from test.js (Colin Ihrig) #54353961cbf0be0
] - test_runner: refactor hook creation (Colin Ihrig) #5435369c78ca2f5
] - test_runner: return setup() from parseCommandLine() (Colin Ihrig) #54353ed1ede8c26
] - test_runner: pass global options to createTestTree() (Colin Ihrig) #543531e88045a69
] - test_runner: pass harness object as option to root test (Colin Ihrig) #54353e3378f0679
] - test_runner: use run() argument names in parseCommandLine() (Colin Ihrig) #54353676bbd5c09
] - test_runner: fix delete test file cause dependency file not watched (jakecastelli) #53533fe793a6103
] - test_runner: do not expose internal loader (Antoine du Hamel) #541067fad771bbf
] - test_runner: fix erroneous diagnostic warning when only: false (Pietro Marchini) #54116dc465736fb
] - test_runner: make mock_loader not confuse CJS and ESM resolution (Sung Ye In) #538465a1afb2139
] - test_runner: remove outdated comment (Colin Ihrig) #5414620a01fcc39
] - test_runner: run after hooks even if test is aborted (Colin Ihrig) #54151df428adb6c
] - tools: remove header from c-ares license (Aviv Keller) #54335b659fc0f2b
] - tools: add find pyenv path on windows (Marco Ippolito) #54314b93c6d9f38
] - tools: make undici updater build wasm from src (Michael Dawson) #541283835131559
] - tools: add workflow to ensureREADME
lists are in sync with gh teams (Antoine du Hamel) #53901e218b7ca8a
] - tools: add strip-types to label system (Marco Ippolito) #541858b35f0e601
] - tools: update eslint to 9.8.0 (Node.js GitHub Bot) #54073d83421fbe5
] - tty: initialize winSize array with values (Michaël Zasso) #54281a4768374f2
] - typings: add util.styleText type definition (Rafael Gonzaga) #54252a4aecd2755
] - typings: add missing binding functionwriteFileUtf8()
(Jungku Lee) #541100bed600df9
] - url: modify pathToFileURL to handle extended UNC path (Early Riser) #54262037672f15d
] - url: improve resolveObject with ObjectAssign (Early Riser) #540924d8b53e475
] - watch: reload changes in contents of --env-file (Marek Piechut) #54109Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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.