This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
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:
12
->20
Release Notes
nodejs/node (node)
v20.10.0
: 2023-11-22, Version 20.10.0 'Iron' (LTS), @targosCompare Source
Notable Changes
--experimental-default-type
flag to flip module defaultsThe new flag
--experimental-default-type
can be used to flip the defaultmodule system used by Node.js. Input that is already explicitly defined as ES
modules or CommonJS, such as by a
package.json
"type"
field or.mjs
/.cjs
file extension or the
--input-type
flag, is unaffected. What is currentlyimplicitly CommonJS would instead be interpreted as ES modules under
--experimental-default-type=module
:String input provided via
--eval
or STDIN, if--input-type
is unspecified.Files ending in
.js
or with no extension, if there is nopackage.json
filepresent in the same folder or any parent folder.
Files ending in
.js
or with no extension, if the nearest parentpackage.json
field lacks atype
field; unless the folder is inside anode_modules
folder.In addition, extensionless files are interpreted as Wasm if
--experimental-wasm-modules
is passed and the file contains the "magic bytes"Wasm header.
Contributed by Geoffrey Booth in #49869.
Detect ESM syntax in ambiguous JavaScript
The new flag
--experimental-detect-module
can be used to automatically run ESmodules when their syntax can be detected. For “ambiguous” files, which are
.js
or extensionless files with nopackage.json
with atype
field, Node.jswill parse the file to detect ES module syntax; if found, it will run the file
as an ES module, otherwise it will run the file as a CommonJS module. The same
applies to string input via
--eval
orSTDIN
.We hope to make detection enabled by default in a future version of Node.js.
Detection increases startup time, so we encourage everyone—especially package
authors—to add a
type
field topackage.json
, even for the default"type": "commonjs"
. The presence of atype
field, or explicit extensionssuch as
.mjs
or.cjs
, will opt out of detection.Contributed by Geoffrey Booth in #50096.
New
flush
option in file system functionsWhen writing to files, it is possible that data is not immediately flushed to
permanent storage. This allows subsequent read operations to see stale data.
This PR adds a
'flush'
option to thefs.writeFile
family of functions whichforces the data to be flushed at the end of a successful write operation.
Contributed by Colin Ihrig in #50009 and #50095.
Experimental WebSocket client
Adds a
--experimental-websocket
flag that adds aWebSocket
global, as standardized by WHATWG.
Contributed by Matthew Aitken in #49830.
vm: fix V8 compilation cache support for vm.Script
Previously repeated compilation of the same source code using
vm.Script
stopped hitting the V8 compilation cache after v16.x when support for
importModuleDynamically
was added tovm.Script
, resulting in a performanceregression that blocked users (in particular Jest users) from upgrading from
v16.x.
The recent fixes allow the compilation cache to be hit again
for
vm.Script
when--experimental-vm-modules
is not used even in thepresence of the
importModuleDynamically
option, so that users affected by theperformance regression can now upgrade. Ongoing work is also being done to
enable compilation cache support for
vm.CompileFunction
.Contributed by Joyee Cheung in #49950
and #50137.
Other notable changes
21453ae555
] - (SEMVER-MINOR) deps: update uvwasi to 0.0.19 (Node.js GitHub Bot) #49908ee65e44c31
] - esm: use import attributes instead of import assertions (Antoine du Hamel) #50140ffdc357167
] - (SEMVER-MINOR) stream: allow passing stream class tostream.compose
(Alex Yang) #501874861ad6431
] - stream: improve performance of readable stream reads (Raz Luvaton) #501734b27087b30
] - stream: optimize Writable (Robert Nagy) #50012709c6c0cab
] - (SEMVER-MINOR) test_runner, cli: add --test-concurrency flag (Colin Ihrig) #4999657efd5292c
] - (SEMVER-MINOR) vm: use import attributes instead of import assertions (Antoine du Hamel) #50141Commits
73757a5f42
] - benchmark: fix race condition on fs benchs (Vinicius Lourenço) #5003523269717bb
] - benchmark: add warmup to accessSync bench (Rafael Gonzaga) #5007388611d199a
] - benchmark: improved config for blob,file benchmark (Vinícius Lourenço) #49730b70757476c
] - benchmark: added new benchmarks for blob (Vinícius Lourenço) #49730458d9a82e3
] - buffer: remove unnecessary assignment in fromString (Tobias Nießen) #50199878c0b332e
] - build: fix IBM i build with Python 3.9 (Richard Lau) #48056773320e1de
] - crypto: ensure valid point on elliptic curve in SubtleCrypto.importKey (Filip Skokan) #50234edb0ffd7d4
] - crypto: use X509_ALGOR accessors instead of reaching into X509_ALGOR (David Benjamin) #500573f98c06dbb
] - crypto: account for disabled SharedArrayBuffer (Shelley Vohr) #5003455485ff1cc
] - crypto: return clear errors when loading invalid PFX data (Tim Perry) #4956668ec1e5eeb
] - deps: upgrade npm to 10.2.3 (npm team) #50531b00c11ad7c
] - deps: V8: cherry-pickd90d453
(Michaël Zasso) #50077e63aef91b4
] - deps: V8: cherry-pickf7d000a
(Luke Albao) #500774b243b553a
] - deps: V8: cherry-pick9721082
(Shi Pujin) #500779d3cdcbebf
] - deps: V8: cherry-pick840650f
(Michaël Zasso) #500770c40b513fd
] - deps: V8: cherry-picka1efa53
(Michaël Zasso) #5007768cddd79f7
] - deps: update archs files for openssl-3.0.12+quic1 (Node.js GitHub Bot) #504113308189180
] - deps: upgrade openssl sources to quictls/openssl-3.0.12+quic1 (Node.js GitHub Bot) #50411b61707e535
] - deps: update ada to 2.7.2 (Node.js GitHub Bot) #503381aecf0c17b
] - deps: update corepack to 0.22.0 (Node.js GitHub Bot) #50325f5924f174c
] - deps: update c-ares to 1.20.1 (Node.js GitHub Bot) #50082b705e19a95
] - deps: update c-ares to 1.20.0 (Node.js GitHub Bot) #50082f72cbb7e02
] - deps: V8: cherry-pick2590224
(Joyee Cheung) #501566547bd2493
] - deps: V8: cherry-pickea996ad
(Antoine du Hamel) #5018316fd730e95
] - deps: V8: cherry-picka0fd320
(Antoine du Hamel) #50183614c3620c3
] - deps: update corepack to 0.21.0 (Node.js GitHub Bot) #50088545aa74ae2
] - deps: update simdutf to 3.2.18 (Node.js GitHub Bot) #500919302806c0a
] - deps: update zlib to 1.2.13.1-motley-fef5869 (Node.js GitHub Bot) #5008503bf5c5d9a
] - deps: update googletest to2dd1c13
(Node.js GitHub Bot) #50081cd8e90690b
] - deps: update googletest toe47544a
(Node.js GitHub Bot) #4998240672cfe53
] - deps: update ada to 2.6.10 (Node.js GitHub Bot) #4998434c7eb0eb2
] - deps: fix call to undeclared functions 'ntohl' and 'htons' (MatteoBax) #4997903654b44b6
] - deps: update ada to 2.6.9 (Node.js GitHub Bot) #493404c740b1dd8
] - deps: update ada to 2.6.8 (Node.js GitHub Bot) #49340759cf5a760
] - deps: update ada to 2.6.7 (Node.js GitHub Bot) #4934031a4e9781a
] - deps: update ada to 2.6.5 (Node.js GitHub Bot) #493402ca867f2ab
] - deps: update ada to 2.6.3 (Node.js GitHub Bot) #4934021453ae555
] - (SEMVER-MINOR) deps: update uvwasi to 0.0.19 (Node.js GitHub Bot) #499087ca1228be8
] - deps: V8: cherry-pick8ec2651
(Abdirahim Musse) #498623cc41d253c
] - deps: upgrade npm to 10.2.0 (npm team) #5002761b4afb7dd
] - deps: update undici to 5.26.4 (Node.js GitHub Bot) #50274ea28738336
] - doc: add loong64 info into platform list (Shi Pujin) #5008600c12b7a20
] - doc: update release process LTS step (Richard Lau) #50299a9ba29ba10
] - doc: fix release process table of contents (Richard Lau) #502164b5033519e
] - doc: update apistream.compose
(Alex Yang) #50206d4659e2080
] - doc: add ReflectConstruct to known perf issues (Vinicius Lourenço) #50111ffa94612fd
] - doc: fix typo in dgram docs (Peter Johnson) #50211f37b577b14
] - doc: fix H4ad collaborator sort (Vinicius Lourenço) #50218c75264b1f9
] - doc: add H4ad to collaborators (Vinícius Lourenço) #502175025e24ac7
] - doc: update release-stewards with last sec-release (Rafael Gonzaga) #5017963379313d5
] - doc: add command to keep major branch sync (Rafael Gonzaga) #5010285de4b8254
] - doc: add loong64 to list of architectures (Shi Pujin) #50172ff8e1b860e
] - doc: update security release process (Michael Dawson) #5016633470d965c
] - doc: improve ccache explanation (Chengzhong Wu) #501337b97c44e2a
] - doc: move danielleadams to TSC non-voting member (Danielle Adams) #501423d03ca9f31
] - doc: fix description offs.readdir
recursive
option (RamdohokarAngha) #48902aab045ec4b
] - doc: mention files read before env setup (Rafael Gonzaga) #5007226a7608a24
] - doc: move permission model to Active Development (Rafael Gonzaga) #50068d7bbf7f2c4
] - doc: add command to get patch minors and majors (Rafael Gonzaga) #500679830165e34
] - doc: use precise promise terminology in fs (Benjamin Gruenbaum) #50029585cbb211d
] - doc: use precise terminology in test runner (Benjamin Gruenbaum) #500282862f07124
] - doc: clarify explaination text on how to run the example (Anshul Sinha) #39020fe47c8ad91
] - doc: reserve 119 for Electron 28 (David Sanders) #5002036ecd2c588
] - doc: update Collaborator pronouns (Tierney Cyren) #50005315d82a73e
] - doc: update link to Abstract Modules Records spec (Rich Trott) #49961f63a92bb6c
] - doc: updated building docs for windows (Claudio W) #49767ad17126501
] - doc: update CHANGELOG_V20 about vm fixes (Joyee Cheung) #4995124458e2ac3
] - doc: document dangerous symlink behavior (Tobias Nießen) #49154337a676d1f
] - doc: add main ARIA landmark to API docs (Rich Trott) #49882959ef7ac6b
] - doc: add navigation ARIA landmark to doc ToC (Rich Trott) #49882a60fbf2ab3
] - doc: mark Node.js 19 as End-of-Life (Richard Lau) #48283c255575699
] - errors: improve performance of determine-specific-type (Aras Abbasi) #49696e66991e6b2
] - errors: improve formatList in errors.js (Aras Abbasi) #49642c71e548b65
] - errors: improve performance of instantiation (Aras Abbasi) #496543b867e4256
] - esm: do not give wrong hints when detecting file format (Antoine du Hamel) #50314a589a1a905
] - (SEMVER-MINOR) esm: detect ESM syntax in ambiguous JavaScript (Geoffrey Booth) #50096c64490e9aa
] - esm: improve check for ESM syntax (Geoffrey Booth) #50127ee65e44c31
] - esm: use import attributes instead of import assertions (Antoine du Hamel) #501404de838fdeb
] - esm: bypass CommonJS loader under --default-type (Geoffrey Booth) #4998627e02b633d
] - esm: unflag extensionless javascript and wasm in module scope (Geoffrey Booth) #499741e762ddf63
] - esm: improvegetFormatOfExtensionlessFile
speed (Yagiz Nizipli) #49965112cc7f9f2
] - esm: improve JSDoc annotation of internal functions (Antoine du Hamel) #49959c48cd84188
] - esm: fix cache collision on JSON files using file: URL (Antoine du Hamel) #49887dc80ccef25
] - esm: --experimental-default-type flag to flip module defaults (Geoffrey Booth) #4986901039795a2
] - esm: require braces for modules code (Geoffrey Booth) #49657e49ebf8f9a
] - fs: improve error performance forreadSync
(Jungku Lee) #50033eb33f70260
] - fs: improve error performance forfsyncSync
(Jungku Lee) #498808d0edc6399
] - fs: improve error performance formkdirSync
(CanadaHonk) #4984736df27509e
] - fs: improve error performance ofrealpathSync
(Yagiz Nizipli) #499624242cb7d7f
] - fs: improve error performance oflchownSync
(Yagiz Nizipli) #4996289e7878e44
] - fs: improve error performance ofsymlinkSync
(Yagiz Nizipli) #49962af6a0611fe
] - fs: improve error performance ofreadlinkSync
(Yagiz Nizipli) #4996212cda31c52
] - fs: improve error performance ofmkdtempSync
(Yagiz Nizipli) #499629dba771acb
] - fs: improve error performance oflinkSync
(Yagiz Nizipli) #49962ea7902de13
] - fs: improve error performance ofchownSync
(Yagiz Nizipli) #4996239f31a38cf
] - fs: improve error performance ofrenameSync
(Yagiz Nizipli) #4996235164fa466
] - (SEMVER-MINOR) fs: add flush option to appendFile() functions (Colin Ihrig) #5009506aa4b9fe9
] - fs: improve error performance ofreaddirSync
(Yagiz Nizipli) #50131b5aecebcd6
] - fs: fixunlinkSync
typings (Yagiz Nizipli) #498596ddea07225
] - fs: improve error perf of syncchmod
+fchmod
(CanadaHonk) #49859841367078e
] - fs: improve error perf of sync*times
(CanadaHonk) #49864eb52f73e3e
] - fs: improve error performance of writevSync (IlyasShabi) #50038d1aa62f1f5
] - fs: add flush option to createWriteStream() (Colin Ihrig) #5009357eb06edff
] - fs: improve error performance forftruncateSync
(André Alves) #5003222e3eb659a
] - fs: add flush option to writeFile() functions (Colin Ihrig) #50009d7132d9214
] - fs: improve error performance forfdatasyncSync
(Jungku Lee) #49898bc2c0410d3
] - fs: throw errors from sync branches instead of separate implementations (Joyee Cheung) #49913f46bcf1749
] - http: refactor to make servername option normalization testable (Rongjian Zhang) #387331bfcf817af
] - http2: allow streams to complete gracefully after goaway (Michael Lumish) #502025c66ec9e66
] - inspector: simplify dispatchProtocolMessage (Daniel Lemire) #49780251ae1dd72
] - lib: improve performance of validateStringArray and validateBooleanArray (Aras Abbasi) #49756d9c791a508
] - lib: fix compileFunction throws range error for negative numbers (Jithil P Ponnan) #4985524cbc550c2
] - lib: reduce overhead of validateObject (Vinicius Lourenço) #49928b80e9497f3
] - lib: make fetch sync and return a Promise (Matthew Aitken) #49936d9eda6761b
] - lib: fixprimordials
typings (Sam Verschueren) #498953e0d47c1f4
] - lib: update params in jsdoc forHTTPRequestOptions
(Jungku Lee) #49872a01050dec4
] - (SEMVER-MINOR) lib: add WebSocket client (Matthew Aitken) #498305bca8feed2
] - lib,test: do not hardcode Buffer.kMaxLength (Michaël Zasso) #49876e8ebed7a24
] - meta: move Trott to TSC regular member (Rich Trott) #5029727e957cea8
] - meta: ping TSC for offboarding (Tobias Nießen) #50147fab39062d5
] - meta: bump actions/upload-artifact from 3.1.2 to 3.1.3 (dependabot[bot]) #5000046ec82496c
] - meta: bump actions/cache from 3.3.1 to 3.3.2 (dependabot[bot]) #50003a634fb431e
] - meta: bump github/codeql-action from 2.21.5 to 2.21.9 (dependabot[bot]) #50002c221f72911
] - meta: bump actions/checkout from 3.6.0 to 4.1.0 (dependabot[bot]) #50001d356e5e395
] - meta: update website team with new name (Rich Trott) #498832ff4e71452
] - module: move helpers out of cjs loader (Geoffrey Booth) #49912142ac3f82d
] - module, esm: jsdoc for modules files (Geoffrey Booth) #49523e2f0ef2a60
] - node-api: update headers for better wasm support (Toyo Li) #49037db2a07fcd6
] - node-api: run finalizers directly from GC (Vladimir Morozov) #42651c25716be8b
] - os: cache homedir, remove getCheckedFunction (Aras Abbasi) #50037e8f024b4db
] - perf_hooks: reduce overhead of new user timings (Vinicius Lourenço) #49914a517be0a5a
] - perf_hooks: reducing overhead of performance observer entry list (Vinicius Lourenço) #5000842e49ec381
] - perf_hooks: reduce overhead of new resource timings (Vinicius Lourenço) #49837c99e51ed1b
] - src: generate default snapshot with --predictable (Joyee Cheung) #4874947164e238f
] - src: fix TLSWrap lifetime bug in ALPN callback (Ben Noordhuis) #49635e1df69e73e
] - src: set port in node_options to uint16_t (Yagiz Nizipli) #491511eb2af29b4
] - src: name scoped lock (Mohammed Keyvanzadeh) #500105131fde655
] - src: use exact return value foruv_os_getenv
(Yagiz Nizipli) #49149ba169be5ca
] - src: move const variable innode_file.h
tonode_file.cc
(Jungku Lee) #496885a2351d3ab
] - src: remove unused variable (Michaël Zasso) #49665f2f993a32f
] - stream: simplify prefinish (Robert Nagy) #502046d7274e3ca
] - stream: reduce scope of readable bitmap details (Robert Nagy) #49963ffdc357167
] - (SEMVER-MINOR) stream: allow pass stream class tostream.compose
(Alex Yang) #501874861ad6431
] - stream: call helper function from push and unshift (Raz Luvaton) #50173e60b3ab31b
] - stream: use private symbol for bitmap state (Robert Nagy) #49993ecbfb23f6b
] - stream: lazy allocate back pressure buffer (Robert Nagy) #5001388c739bef4
] - stream: avoid unnecessary drain for sync stream (Robert Nagy) #500144b27087b30
] - stream: optimize Writable (Robert Nagy) #50012def55f80a1
] - stream: avoid tick in writable hot path (Robert Nagy) #4996635ec93115d
] - stream: writable state bitmap (Robert Nagy) #498996e0f0fafe4
] - test: use ppc and ppc64 to skip SEA tests on PowerPC (Joyee Cheung) #50828a528bbceca
] - test: mark SEA tests as flaky on PowerPC (Joyee Cheung) #507504e34f9a26e
] - test: relax version check with shared OpenSSL (Luigi Pinca) #5050541ca1132eb
] - test: fix crypto-dh error message for OpenSSL 3.x (Kerem Kat) #50395a6a05e8a88
] - test: fix testsuite against zlib version 1.3 (Dominique Leuenberger) #503648dd895e574
] - test: replace forEach with for..of in test-process-env (Niya Shiyas) #4982581886c66d1
] - test: replace forEach with for..of in test-http-url (Niya Shiyas) #498407d8a18b257
] - test: improve watch mode test (Moshe Atlow) #50319baa04b79ca
] - test: settest-watch-mode-inspect
as flaky (Yagiz Nizipli) #502593d9130bc2e
] - Revert "test: settest-esm-loader-resolve-type
as flaky" (Antoine du Hamel) #5031572626f9a35
] - test: replace forEach with for..of in test-http-perf_hooks.js (Niya Shiyas) #49818379a7255e8
] - test: replace forEach with for..of in test-net-isipv4.js (Niya Shiyas) #49822b55fcd75da
] - test: deflaketest-esm-loader-resolve-type
(Antoine du Hamel) #502730134af3eeb
] - test: replace forEach with for..of in test-http2-server (Niya Shiyas) #498198c15281d06
] - test: replace forEach with for..of in test-http2-client-destroy.js (Niya Shiyas) #49820c37a75a898
] - test: updateurl
web platform tests (Yagiz Nizipli) #50264ab5985d0e9
] - test: settest-emit-after-on-destroyed
as flaky (Yagiz Nizipli) #5024650181a19b8
] - test: set inspector async stack test as flaky (Yagiz Nizipli) #50244b9e0fed995
] - test: set test-worker-nearheaplimit-deadlock flaky (StefanStojanovic) #502772cfc4007d1
] - test: settest-cli-node-options
as flaky (Yagiz Nizipli) #50296788714b28f
] - test: reduce the number of requests and parsers (Luigi Pinca) #502400dce19c8f6
] - test: set crypto-timing test as flaky (Yagiz Nizipli) #502325d4b5ff1b8
] - test: settest-structuredclone-*
as flaky (Yagiz Nizipli) #502615c56081d67
] - test: deflaketest-loaders-workers-spawned
(Antoine du Hamel) #502513441e1982d
] - test: improve code coverage of diagnostics_channel (Jithil P Ponnan) #50053696ba93329
] - test: settest-esm-loader-resolve-type
as flaky (Yagiz Nizipli) #502268b260c5d6b
] - test: set inspector async hook test as flaky (Yagiz Nizipli) #50252f3296d25e8
] - test: skip test-benchmark-os.js on IBM i (Abdirahim Musse) #50208fefe17b02e
] - test: set parallel http server test as flaky (Yagiz Nizipli) #50227228c87f329
] - test: set test-worker-nearheaplimit-deadlock flaky (Stefan Stojanovic) #50238c2c2506eab
] - test: settest-runner-watch-mode
as flaky (Yagiz Nizipli) #5022116a07983d4
] - test: set sea snapshot tests as flaky (Yagiz Nizipli) #502237cd406a0b8
] - test: fix defect path traversal tests (Tobias Nießen) #501241cf3f8da32
] - test: replace forEach with for..of in test-net-isipv6.js (Niya Shiyas) #49823214997a99e
] - test: reduce number of repetition in test-heapdump-shadowrealm.js (Chengzhong Wu) #501049d836516e6
] - test: replace forEach with for..of in test-parse-args.mjs (Niya Shiyas) #49824fee8b24603
] - test: replace forEach() in test-net-perf_hooks with for of (Narcisa Codreanu) #498314c58b92ba8
] - test: change forEach to for...of (Tiffany Lastimosa) #4979901b01527d7
] - test: update skip for movedtest-wasm-web-api
(Richard Lau) #49958179e293103
] - Revert "test: mark test-runner-output as flaky" (Luigi Pinca) #49905829eb99afd
] - test: disambiguate AIX and IBM i (Richard Lau) #48056126407d438
] - test: deflake test-perf-hooks.js (Joyee Cheung) #49892393fd5b7c9
] - test: migrate message error tests from Python to JS (Yiyun Lei) #497215dfe4236f8
] - test: fix edge snapshot stack traces (Geoffrey Booth) #49659d164e537bf
] - test,crypto: update WebCryptoAPI WPT (Filip Skokan) #5003955a03fedae
] - test_runner: add test location for FileTests (Colin Ihrig) #4999910b35cfb6e
] - test_runner: replace spurious if with else (Colin Ihrig) #4994327558c4314
] - test_runner: catch reporter errors (Moshe Atlow) #49646709c6c0cab
] - (SEMVER-MINOR) test_runner, cli: add --test-concurrency flag (Colin Ihrig) #4999664ef108dd9
] - test_runner,test: fix flaky test-runner-cli-concurrency.js (Colin Ihrig) #50108d2def152d9
] - tls: reduce TLS 'close' event listener warnings (Tim Perry) #50136294b650f5c
] - tls: handle cases where the raw socket is destroyed (Luigi Pinca) #4998052b5693949
] - tls: ciphers allow bang syntax (Chemi Atlow) #4971205ee35028b
] - tools: update comment inupdate-uncidi.sh
andacorn_version.h
(Jungku Lee) #5017535b160e6a3
] - tools: refactor checkimports.py (Mohammed Keyvanzadeh) #50011b959d36b77
] - tools: fix comments referencing dep_updaters scripts (Keksonoid) #50165bd5d5331b0
] - tools: remove no-return-await lint rule (翠 / green) #50118b9adf3d66e
] - tools: update lint-md-dependencies (Node.js GitHub Bot) #500834978bdc4ec
] - tools: update eslint to 8.51.0 (Node.js GitHub Bot) #50084e323a367fd
] - tools: remove genv8constants.py (Ben Noordhuis) #500231cc6cbff26
] - tools: update eslint to 8.50.0 (Node.js GitHub Bot) #49989924231be2a
] - tools: update lint-md-dependencies (Node.js GitHub Bot) #49983732b5661ea
] - tools: add navigation ARIA landmark to generated API ToC (Rich Trott) #49882353a14278e
] - tools: update github_reporter to 1.5.3 (Node.js GitHub Bot) #498770aaab45d7c
] - tools: improve macOS notarization process output readability (Ulises Gascón) #50389ad326033e2
] - tools: remove unusedversion
function (Ulises Gascón) #503902f32472544
] - tools: drop support for osx notarization with gon (Ulises Gascón) #502913b1c15aeb0
] - tools: use osx notarytool for future releases (Ulises Gascon) #487010ddb87ede3
] - typings: useSymbol.dispose
andSymbol.asyncDispose
in types (Niklas Mollenhauer) #50123bf5b2115a0
] - util: remove internal mime fns from benchmarks (Aras Abbasi) #50201ac02cdb0ad
] - util: lazy parse mime parameters (Aras Abbasi) #498899853fd96df
] - vm: reject in importModuleDynamically without --experimental-vm-modules (Joyee Cheung) #501373697c19c80
] - vm: use internal versions of compileFunction and Script (Joyee Cheung) #5013756bbc30a44
] - vm: unify host-defined option generation in vm.compileFunction (Joyee Cheung) #5013757efd5292c
] - (SEMVER-MINOR) vm: use import attributes instead of import assertions (Antoine du Hamel) #5014117581c2716
] - vm: use default HDO when importModuleDynamically is not set (Joyee Cheung) #4995065e18aa8e7
] - wasi: address coverity warning (Michael Dawson) #498665b695d6a8d
] - wasi: fix up wasi tests for ibmi (Michael Dawson) #49953b86e1f5cbd
] - (SEMVER-MINOR) wasi: updates required for latest uvwasi version (Michael Dawson) #49908b4d149b4d6
] - worker: handle detachedMessagePort
from a different context (Juan José) #49150f564ed4e05
] - zlib: fix discovery of cpu-features.h for android (MatteoBax) #49828v20.9.0
: 2023-10-24, Version 20.9.0 'Iron' (LTS), @richardlauCompare Source
Notable Changes
This release marks the transition of Node.js 20.x into Long Term Support (LTS)
with the codename 'Iron'. The 20.x release line now moves into "Active LTS"
and will remain so until October 2024. After that time, it will move into
"Maintenance" until end of life in April 2026.
Known issue
Collecting code coverage via the
NODE_V8_COVERAGE
environment variable maylead to a hang. This is not thought to be a regression in Node.js 20 (some
reports are on Node.js 18). For more information, including some potential
workarounds, see issue #49344.
v20.8.1
: 2023-10-13, Version 20.8.1 (Current), @RafaelGSSCompare Source
This is a security release.
Notable Changes
The following CVEs are fixed in this release:
nghttp2
Security Release (High)undici
Security Release (High)More detailed information on each of the vulnerabilities can be found in October 2023 Security Releases blog post.
Commits
c86883e844
] - deps: update nghttp2 to 1.57.0 (James M Snell) #501212860631359
] - deps: update undici to v5.26.3 (Matteo Collina) #50153cd37838bf8
] - lib: let deps requirenode
prefixed modules (Matthew Aitken) #50047f5c90b2951
] - module: fix code injection through export names (Tobias Nießen) nodejs-private/node-private#461fa5dae1944
] - permission: fix Uint8Array path traversal (Tobias Nießen) nodejs-private/node-private#456cd35275111
] - permission: improve path traversal protection (Tobias Nießen) nodejs-private/node-private#456a4cb7fc7c0
] - policy: use tamper-proof integrity check function (Tobias Nießen) nodejs-private/node-private#462v20.8.0
: 2023-09-28, Version 20.8.0 (Current), @ruyadornoCompare Source
Notable Changes
Stream performance improvements
Performance improvements to writable and readable streams, improving the creation and destruction by ±15% and reducing the memory overhead each stream takes in Node.js
Contributed by Benjamin Gruenbaum in #49745 and Raz Luvaton in #49834.
Performance improvements for readable webstream, improving readable stream async iterator consumption by ±140% and improving readable stream
pipeTo
consumption by ±60%Contributed by Raz Luvaton in #49662 and #49690.
Rework of memory management in
vm
APIs with theimportModuleDynamically
optionThis rework addressed a series of long-standing memory leaks and use-after-free issues in the following APIs that support
importModuleDynamically
:vm.Script
vm.compileFunction
vm.SyntheticModule
vm.SourceTextModule
This should enable affected users (in particular Jest users) to upgrade from older versions of Node.js.
Contributed by Joyee Cheung in #48510.
Other notable changes
32d4d29d02
] - deps: add v8::Object::SetInternalFieldForNodeCore() (Joyee Cheung) #498740e686d096b
] - doc: deprecatefs.F_OK
,fs.R_OK
,fs.W_OK
,fs.X_OK
(Livia Medeiros) #49683a5dd057540
] - doc: deprecateutil.toUSVString
(Yagiz Nizipli) #497257b6a73172f
](https://togithuConfiguration
📅 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 Mend Renovate. View repository job log here.