Closed renovate[bot] closed 2 years ago
As this PR has been closed unmerged, Renovate will ignore this upgrade and you will not receive PRs for any future 18.x releases. However, if you upgrade to 18.x manually then Renovate will reenable minor and patch updates automatically.
If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.
This PR contains the following updates:
16.14.2-bullseye-slim
->18.1.0-bullseye-slim
Release Notes
nodejs/node
### [`v18.1.0`](https://togithub.com/nodejs/node/releases/v18.1.0) [Compare Source](https://togithub.com/nodejs/node/compare/v18.0.0...v18.1.0) ##### Notable Changes - \[[`c46e7bbf69`](https://togithub.com/nodejs/node/commit/c46e7bbf69)] - **doc**: add [@kuriyosh](https://togithub.com/kuriyosh) to collaborators (Yoshiki Kurihara) [#42824](https://togithub.com/nodejs/node/pull/42824) - \[[`b0f7c4c8f9`](https://togithub.com/nodejs/node/commit/b0f7c4c8f9)] - **(SEMVER-MINOR)** **lib,src**: implement WebAssembly Web API (Tobias Nießen) [#42701](https://togithub.com/nodejs/node/pull/42701) - \[[`78a860ae58`](https://togithub.com/nodejs/node/commit/78a860ae58)] - **(SEMVER-MINOR)** **test_runner**: add initial CLI runner (Colin Ihrig) [#42658](https://togithub.com/nodejs/node/pull/42658) - \[[`bf9240ae8c`](https://togithub.com/nodejs/node/commit/bf9240ae8c)] - **(SEMVER-MINOR)** **worker**: add hasRef() to MessagePort (Darshan Sen) [#42849](https://togithub.com/nodejs/node/pull/42849) ##### Commits - \[[`4694f5bb96`](https://togithub.com/nodejs/node/commit/4694f5bb96)] - **async_hooks**: avoid decrementing iterator after erase (Gabriel Bota) [#42749](https://togithub.com/nodejs/node/pull/42749) - \[[`459546b4f0`](https://togithub.com/nodejs/node/commit/459546b4f0)] - **benchmark**: fix misc/startup failure (Antoine du Hamel) [#42746](https://togithub.com/nodejs/node/pull/42746) - \[[`6bd24204ea`](https://togithub.com/nodejs/node/commit/6bd24204ea)] - **bootstrap**: use the isolate snapshot in workers (Joyee Cheung) [#42702](https://togithub.com/nodejs/node/pull/42702) - \[[`29c8411f99`](https://togithub.com/nodejs/node/commit/29c8411f99)] - **bootstrap**: move embedded snapshot to SnapshotBuilder (Joyee Cheung) [#42702](https://togithub.com/nodejs/node/pull/42702) - \[[`4050b0d64f`](https://togithub.com/nodejs/node/commit/4050b0d64f)] - **build**: enable V8's shared read-only heap (Michaël Zasso) [#42809](https://togithub.com/nodejs/node/pull/42809) - \[[`f9994e2029`](https://togithub.com/nodejs/node/commit/f9994e2029)] - **build**: improve reliability of find_python.cmd script (Luigi Pinca) [#42810](https://togithub.com/nodejs/node/pull/42810) - \[[`5d15eb1a14`](https://togithub.com/nodejs/node/commit/5d15eb1a14)] - **build**: fix format-cpp (Darshan Sen) [#42764](https://togithub.com/nodejs/node/pull/42764) - \[[`7c973474bf`](https://togithub.com/nodejs/node/commit/7c973474bf)] - **build**: improve the format-cpp error message (Darshan Sen) [#42765](https://togithub.com/nodejs/node/pull/42765) - \[[`7681e60829`](https://togithub.com/nodejs/node/commit/7681e60829)] - **crypto**: validate `this` in all webcrypto methods and getters (Filip Skokan) [#42815](https://togithub.com/nodejs/node/pull/42815) - \[[`2a4c8263c3`](https://togithub.com/nodejs/node/commit/2a4c8263c3)] - **deps**: update undici to 5.1.1 (Michaël Zasso) [#42939](https://togithub.com/nodejs/node/pull/42939) - \[[`1102922ef9`](https://togithub.com/nodejs/node/commit/1102922ef9)] - **deps**: upgrade npm to 8.8.0 (npm team) [#42886](https://togithub.com/nodejs/node/pull/42886) - \[[`279892987b`](https://togithub.com/nodejs/node/commit/279892987b)] - **deps**: remove linux-ppc64 architecture (Daniel Bevenius) [#42616](https://togithub.com/nodejs/node/pull/42616) - \[[`4abe9879ae`](https://togithub.com/nodejs/node/commit/4abe9879ae)] - **deps**: remove linux-ppc architecture (Daniel Bevenius) [#42616](https://togithub.com/nodejs/node/pull/42616) - \[[`8dc71f2266`](https://togithub.com/nodejs/node/commit/8dc71f2266)] - **deps**: remove aix-gcc architecture (Daniel Bevenius) [#42616](https://togithub.com/nodejs/node/pull/42616) - \[[`6dc1f82384`](https://togithub.com/nodejs/node/commit/6dc1f82384)] - **deps**: remove archs/aix64-gcc (Daniel Bevenius) [#42616](https://togithub.com/nodejs/node/pull/42616) - \[[`e8734a4771`](https://togithub.com/nodejs/node/commit/e8734a4771)] - **deps**: add note about removing asm archs (Daniel Bevenius) [#42616](https://togithub.com/nodejs/node/pull/42616) - \[[`7fae2c9d6e`](https://togithub.com/nodejs/node/commit/7fae2c9d6e)] - **deps**: add template for generated headers (Daniel Bevenius) [#42616](https://togithub.com/nodejs/node/pull/42616) - \[[`294664e32c`](https://togithub.com/nodejs/node/commit/294664e32c)] - **deps**: upgrade npm to 8.7.0 (npm team) [#42744](https://togithub.com/nodejs/node/pull/42744) - \[[`60e461c45d`](https://togithub.com/nodejs/node/commit/60e461c45d)] - **doc**: reword "test directory" (LiviaMedeiros) [#42817](https://togithub.com/nodejs/node/pull/42817) - \[[`227a45ba60`](https://togithub.com/nodejs/node/commit/227a45ba60)] - **doc**: remove legacy `-J` test.py option from BUILDING.md (LiviaMedeiros) [#42817](https://togithub.com/nodejs/node/pull/42817) - \[[`e313dc6ed9`](https://togithub.com/nodejs/node/commit/e313dc6ed9)] - **doc**: http2.createServer `options` as optional (Daeyeon Jeong) [#42832](https://togithub.com/nodejs/node/pull/42832) - \[[`8f2b2280cd`](https://togithub.com/nodejs/node/commit/8f2b2280cd)] - **doc**: record March 2022 security release steward (Richard Lau) [#42876](https://togithub.com/nodejs/node/pull/42876) - \[[`e15d22c024`](https://togithub.com/nodejs/node/commit/e15d22c024)] - **doc**: initial version of security-model-strategy.md (Michael Dawson) [#42709](https://togithub.com/nodejs/node/pull/42709) - \[[`fe65996790`](https://togithub.com/nodejs/node/commit/fe65996790)] - **doc**: clarify guide on testing internal errors (Livia Medeiros) [#42813](https://togithub.com/nodejs/node/pull/42813) - \[[`2f849a460f`](https://togithub.com/nodejs/node/commit/2f849a460f)] - **doc**: fix markdown formatting in primordials.md (Tobias Nießen) [#42877](https://togithub.com/nodejs/node/pull/42877) - \[[`cd2f5a4fd4`](https://togithub.com/nodejs/node/commit/cd2f5a4fd4)] - **doc**: add primordials guidelines (Antoine du Hamel) [#38635](https://togithub.com/nodejs/node/pull/38635) - \[[`2d76f72665`](https://togithub.com/nodejs/node/commit/2d76f72665)] - **doc**: elevate node-clinic diagnostic tier (RafaelGSS) [#42802](https://togithub.com/nodejs/node/pull/42802) - \[[`9b61ac2617`](https://togithub.com/nodejs/node/commit/9b61ac2617)] - **doc**: update WebAssembly strategy with Wasm Web API (Tobias Nießen) [#42836](https://togithub.com/nodejs/node/pull/42836) - \[[`c6c1dc5833`](https://togithub.com/nodejs/node/commit/c6c1dc5833)] - **doc**: order `vm.Module` linker arguments correctly (Simen Bekkhus) [#42797](https://togithub.com/nodejs/node/pull/42797) - \[[`c46e7bbf69`](https://togithub.com/nodejs/node/commit/c46e7bbf69)] - **doc**: add [@kuriyosh](https://togithub.com/kuriyosh) to collaborators (Yoshiki Kurihara) [#42824](https://togithub.com/nodejs/node/pull/42824) - \[[`59da1339b4`](https://togithub.com/nodejs/node/commit/59da1339b4)] - **doc**: add maintaining-webassembly.md (Michael Dawson) [#42660](https://togithub.com/nodejs/node/pull/42660) - \[[`d9f3f05cab`](https://togithub.com/nodejs/node/commit/d9f3f05cab)] - **doc**: fix outdated documentation for `family` property (Antoine du Hamel) [#42789](https://togithub.com/nodejs/node/pull/42789) - \[[`6fa080cb48`](https://togithub.com/nodejs/node/commit/6fa080cb48)] - **doc**: delete heapdump from diagnostic tooling support tiers (Tony Gorez) [#42783](https://togithub.com/nodejs/node/pull/42783) - \[[`c32f76d49e`](https://togithub.com/nodejs/node/commit/c32f76d49e)] - **doc**: fix example in assert.md (Livia Medeiros) [#42786](https://togithub.com/nodejs/node/pull/42786) - \[[`6225370b2e`](https://togithub.com/nodejs/node/commit/6225370b2e)] - **doc**: fix version history for Loaders API (Antoine du Hamel) [#42778](https://togithub.com/nodejs/node/pull/42778) - \[[`3d65a3b13e`](https://togithub.com/nodejs/node/commit/3d65a3b13e)] - **doc**: add `node:` prefix for all core modules (Antoine du Hamel) [#42752](https://togithub.com/nodejs/node/pull/42752) - \[[`46c880b99b`](https://togithub.com/nodejs/node/commit/46c880b99b)] - **doc**: clarify core modules that can be loaded without a prefix (Antoine du Hamel) [#42753](https://togithub.com/nodejs/node/pull/42753) - \[[`025b3e786a`](https://togithub.com/nodejs/node/commit/025b3e786a)] - **doc**: consolidate use of multiple-byte units (Antoine du Hamel) [#42587](https://togithub.com/nodejs/node/pull/42587) - \[[`962d80b7a1`](https://togithub.com/nodejs/node/commit/962d80b7a1)] - **doc**: add documentation for inherited methods (Luigi Pinca) [#42691](https://togithub.com/nodejs/node/pull/42691) - \[[`222b3e6674`](https://togithub.com/nodejs/node/commit/222b3e6674)] - **doc**: close tag in n-api.md (Livia Medeiros) [#42751](https://togithub.com/nodejs/node/pull/42751) - \[[`4c30936065`](https://togithub.com/nodejs/node/commit/4c30936065)] - **doc**: copyedit http.OutgoingMessage documentation (Luigi Pinca) [#42733](https://togithub.com/nodejs/node/pull/42733) - \[[`d77c59d0f2`](https://togithub.com/nodejs/node/commit/d77c59d0f2)] - **doc**: improve fragment (`:target`) anchors behavior on HTML version (Antoine du Hamel) [#42739](https://togithub.com/nodejs/node/pull/42739) - \[[`c50309cb39`](https://togithub.com/nodejs/node/commit/c50309cb39)] - **doc**: fix `added:` info for `outgoingMessage.writable*` (Luigi Pinca) [#42737](https://togithub.com/nodejs/node/pull/42737) - \[[`6b7c35e807`](https://togithub.com/nodejs/node/commit/6b7c35e807)] - **doc**: delete mdb_v8 from diagnostic tooling support tiers (Tony Gorez) [#42626](https://togithub.com/nodejs/node/pull/42626) - \[[`2a07a9fc3a`](https://togithub.com/nodejs/node/commit/2a07a9fc3a)] - **doc**: document the 'close' and 'finish' events (Luigi Pinca) [#42704](https://togithub.com/nodejs/node/pull/42704) - \[[`ef5ab8179b`](https://togithub.com/nodejs/node/commit/ef5ab8179b)] - **doc**: fix `added:` info for `outgoingMessage.{,un}cork()` (Luigi Pinca) [#42711](https://togithub.com/nodejs/node/pull/42711) - \[[`a6e1e7a5d7`](https://togithub.com/nodejs/node/commit/a6e1e7a5d7)] - **doc,test**: add tests and docs for duplex.fromWeb and duplex.toWeb (Erick Wendel) [#42738](https://togithub.com/nodejs/node/pull/42738) - \[[`336242a7c6`](https://togithub.com/nodejs/node/commit/336242a7c6)] - **errors,console**: refactor to use ES2021 syntax (小菜) [#42872](https://togithub.com/nodejs/node/pull/42872) - \[[`0e16120d0d`](https://togithub.com/nodejs/node/commit/0e16120d0d)] - **errors,vm**: update error and use cause (Gus Caplan) [#42820](https://togithub.com/nodejs/node/pull/42820) - \[[`a0638a23b0`](https://togithub.com/nodejs/node/commit/a0638a23b0)] - **esm**: fix imports from non-file module (Antoine du Hamel) [#42881](https://togithub.com/nodejs/node/pull/42881) - \[[`dab15f69e3`](https://togithub.com/nodejs/node/commit/dab15f69e3)] - **esm**: graduate top-level-await to stable (Antoine du Hamel) [#42875](https://togithub.com/nodejs/node/pull/42875) - \[[`48bbb73f36`](https://togithub.com/nodejs/node/commit/48bbb73f36)] - **fs**: fix mkdirSync so ENOSPC is correctly reported (Santiago Gimeno) [#42811](https://togithub.com/nodejs/node/pull/42811) - \[[`d33cbabd79`](https://togithub.com/nodejs/node/commit/d33cbabd79)] - **lib**: remove experimental warning from FormData (Xuguang Mei) [#42807](https://togithub.com/nodejs/node/pull/42807) - \[[`ad8269450a`](https://togithub.com/nodejs/node/commit/ad8269450a)] - **lib,src**: use Response URL as WebAssembly location (Tobias Nießen) [#42842](https://togithub.com/nodejs/node/pull/42842) - \[[`b0f7c4c8f9`](https://togithub.com/nodejs/node/commit/b0f7c4c8f9)] - **(SEMVER-MINOR)** **lib,src**: implement WebAssembly Web API (Tobias Nießen) [#42701](https://togithub.com/nodejs/node/pull/42701) - \[[`fdc65032a7`](https://togithub.com/nodejs/node/commit/fdc65032a7)] - **meta**: update AUTHORS (Node.js GitHub Bot) [#42848](https://togithub.com/nodejs/node/pull/42848) - \[[`33ac027fdf`](https://togithub.com/nodejs/node/commit/33ac027fdf)] - **meta**: move one or more collaborators to emeritus (Node.js GitHub Bot) [#42769](https://togithub.com/nodejs/node/pull/42769) - \[[`14893c5984`](https://togithub.com/nodejs/node/commit/14893c5984)] - **meta**: update AUTHORS (Node.js GitHub Bot) [#42760](https://togithub.com/nodejs/node/pull/42760) - \[[`2f38b4812c`](https://togithub.com/nodejs/node/commit/2f38b4812c)] - **meta**: move mmarchini to emeritus (mary marchini) [#42750](https://togithub.com/nodejs/node/pull/42750) - \[[`718d11fdb0`](https://togithub.com/nodejs/node/commit/718d11fdb0)] - **perf_hooks**: return different functions in timerify (Himself65) [#42854](https://togithub.com/nodejs/node/pull/42854) - \[[`e8083664e1`](https://togithub.com/nodejs/node/commit/e8083664e1)] - **src**: turn SSL_CTX_new CHECK/segfault into JS exception (Anna Henningsen) [#42799](https://togithub.com/nodejs/node/pull/42799) - \[[`37ca1102c4`](https://togithub.com/nodejs/node/commit/37ca1102c4)] - **src**: make --no-node-snapshot a per-process option (Joyee Cheung) [#42864](https://togithub.com/nodejs/node/pull/42864) - \[[`1976284a92`](https://togithub.com/nodejs/node/commit/1976284a92)] - **src**: define fs.constants.S_IWUSR & S_IRUSR for Win (Liviu Ionescu) [#42757](https://togithub.com/nodejs/node/pull/42757) - \[[`b7e9dd0278`](https://togithub.com/nodejs/node/commit/b7e9dd0278)] - **src**: use `node:` prefix in example (Antoine du Hamel) [#42794](https://togithub.com/nodejs/node/pull/42794) - \[[`1a7af6364d`](https://togithub.com/nodejs/node/commit/1a7af6364d)] - **src**: large page attributing an id on Linux (David CARLIER) [#42644](https://togithub.com/nodejs/node/pull/42644) - \[[`494650c09f`](https://togithub.com/nodejs/node/commit/494650c09f)] - **src,crypto**: remove uses of AllocatedBuffer from crypto_ec.cc (Darshan Sen) [#42766](https://togithub.com/nodejs/node/pull/42766) - \[[`8e0e576669`](https://togithub.com/nodejs/node/commit/8e0e576669)] - **test**: add tests for extracting function name (Kohei Ueno) [#42399](https://togithub.com/nodejs/node/pull/42399) - \[[`fbda87d966`](https://togithub.com/nodejs/node/commit/fbda87d966)] - **test**: simplify test-gc-{http-client,net}-\* (Luigi Pinca) [#42782](https://togithub.com/nodejs/node/pull/42782) - \[[`3c796f8328`](https://togithub.com/nodejs/node/commit/3c796f8328)] - **test**: fix `parallel/test-dgram-udp6-link-local-address` (Antoine du Hamel) [#42795](https://togithub.com/nodejs/node/pull/42795) - \[[`b85a11c28e`](https://togithub.com/nodejs/node/commit/b85a11c28e)] - **test**: improve lib/internal/test_runner/test.js coverage (MURAKAMI Masahiko) [#42745](https://togithub.com/nodejs/node/pull/42745) - \[[`59c07a99fb`](https://togithub.com/nodejs/node/commit/59c07a99fb)] - **test**: check ecdsa psychic signature (Filip Skokan) [#42863](https://togithub.com/nodejs/node/pull/42863) - \[[`0725064695`](https://togithub.com/nodejs/node/commit/0725064695)] - **test**: fix port in net-perf_hooks (Livia Medeiros) [#42761](https://togithub.com/nodejs/node/pull/42761) - \[[`7b701442de`](https://togithub.com/nodejs/node/commit/7b701442de)] - **test**: skip test that cannot pass under --node-builtin-modules-path (Geoffrey Booth) [#42834](https://togithub.com/nodejs/node/pull/42834) - \[[`37364abc58`](https://togithub.com/nodejs/node/commit/37364abc58)] - **test**: fix flaky HTTP server tests (Tobias Nießen) [#42846](https://togithub.com/nodejs/node/pull/42846) - \[[`8476ffb85a`](https://togithub.com/nodejs/node/commit/8476ffb85a)] - **test**: use `assert.match()` instead of `assert(regex.test())` (Antoine du Hamel) [#42803](https://togithub.com/nodejs/node/pull/42803) - \[[`d311916f37`](https://togithub.com/nodejs/node/commit/d311916f37)] - **test**: fix calculations in test-worker-resource-limits (Joyee Cheung) [#42702](https://togithub.com/nodejs/node/pull/42702) - \[[`deb3cf49c7`](https://togithub.com/nodejs/node/commit/deb3cf49c7)] - **test**: remove the legacy url parser function (Kohei Ueno) [#42656](https://togithub.com/nodejs/node/pull/42656) - \[[`be44b1ffcb`](https://togithub.com/nodejs/node/commit/be44b1ffcb)] - **test**: improve test coverage of internal/blob (Yoshiki Kurihara) [#41513](https://togithub.com/nodejs/node/pull/41513) - \[[`78a860ae58`](https://togithub.com/nodejs/node/commit/78a860ae58)] - **(SEMVER-MINOR)** **test_runner**: add initial CLI runner (Colin Ihrig) [#42658](https://togithub.com/nodejs/node/pull/42658) - \[[`1e7479d34c`](https://togithub.com/nodejs/node/commit/1e7479d34c)] - **tools**: update lint-md-dependencies (Node.js GitHub Bot) [#42932](https://togithub.com/nodejs/node/pull/42932) - \[[`c3c5fe78dc`](https://togithub.com/nodejs/node/commit/c3c5fe78dc)] - **tools**: bump jsdoccomment from 0.22.1 to 0.29.0 (Rich Trott) [#42857](https://togithub.com/nodejs/node/pull/42857) - \[[`97fc00a06e`](https://togithub.com/nodejs/node/commit/97fc00a06e)] - **tools**: update eslint to 8.14.0 (Node.js GitHub Bot) [#42845](https://togithub.com/nodejs/node/pull/42845) - \[[`93fd77a16f`](https://togithub.com/nodejs/node/commit/93fd77a16f)] - **tools**: update doc to highlight.js@11.5.1 (Node.js GitHub Bot) [#42758](https://togithub.com/nodejs/node/pull/42758) - \[[`47c04813f7`](https://togithub.com/nodejs/node/commit/47c04813f7)] - **tools**: update lint-md-dependencies (Node.js GitHub Bot) [#42759](https://togithub.com/nodejs/node/pull/42759) - \[[`18ae2c39d5`](https://togithub.com/nodejs/node/commit/18ae2c39d5)] - **tools**: lint osx shell scripts (Livia Medeiros) [#42712](https://togithub.com/nodejs/node/pull/42712) - \[[`4af0fbd41e`](https://togithub.com/nodejs/node/commit/4af0fbd41e)] - **v8**: export cpu_profiler_metadata_size in getHeapCodeStatistics (theanarkh) [#42818](https://togithub.com/nodejs/node/pull/42818) - \[[`a19fb609d8`](https://togithub.com/nodejs/node/commit/a19fb609d8)] - **v8**: export more fields in getHeapStatistics (theanarkh) [#42784](https://togithub.com/nodejs/node/pull/42784) - \[[`1b5856a2a9`](https://togithub.com/nodejs/node/commit/1b5856a2a9)] - **wasi**: remove unecessary null check (Michael Dawson) [#42819](https://togithub.com/nodejs/node/pull/42819) - \[[`bf9240ae8c`](https://togithub.com/nodejs/node/commit/bf9240ae8c)] - **(SEMVER-MINOR)** **worker**: add hasRef() to MessagePort (Darshan Sen) [#42849](https://togithub.com/nodejs/node/pull/42849) - \[[`c3922afa1c`](https://togithub.com/nodejs/node/commit/c3922afa1c)] - **worker**: add hasRef() to the handle object (Darshan Sen) [#42756](https://togithub.com/nodejs/node/pull/42756) ### [`v18.0.0`](https://togithub.com/nodejs/node/releases/v18.0.0) [Compare Source](https://togithub.com/nodejs/node/compare/v17.9.0...v18.0.0) Node.js 18 is here! Highlights include the update of the V8 JavaScript engine to 10.1, global fetch enabled by default, and a core test runner module. Initially, Node.js 18 will replace Node.js 17 as our ‘Current’ release line. As per the release schedule, Node.js 18 will be the ‘Current’ release for the next 6 months and then promoted to Long-term Support (LTS) in October 2022. Once promoted to long-term support the release will be designated the codename ‘Hydrogen’. Node.js 18 will be supported until April 2025. ##### Notable Changes ##### Deprecations and Removals - **(SEMVER-MAJOR)** **fs**: runtime deprecate string coercion in `fs.write`, `fs.writeFileSync` (Livia Medeiros) [#42607](https://togithub.com/nodejs/node/pull/42607) - **(SEMVER-MAJOR)** **dns**: remove `dns.lookup` and `dnsPromises.lookup` options type coercion (Antoine du Hamel) [#41431](https://togithub.com/nodejs/node/pull/41431) - **(SEMVER-MAJOR)** **process**: runtime deprecate multipleResolves (Benjamin Gruenbaum) [#41896](https://togithub.com/nodejs/node/pull/41896) - **(SEMVER-MAJOR)** **stream**: remove thenable support (Robert Nagy) [#40773](https://togithub.com/nodejs/node/pull/40773) - **(SEMVER-MAJOR)** **tls**: move tls.parseCertString to end-of-life (Tobias Nießen) [#41479](https://togithub.com/nodejs/node/pull/41479) ##### fetch (experimental) An experimental fetch API is available on the global scope by default. The implementation is based upon [undici](https://undici.nodejs.org/#/), an HTTP/1.1 client written for Node.js by contributors to the project. ```mjs const res = await fetch('https://nodejs.org/api/documentation.json'); if (res.ok) { const data = await res.json(); console.log(data); } ``` Through this addition, the following globals are made available: `fetch`, `FormData`, `Headers`, `Request`, `Response`. Disable this API with the `--no-experimental-fetch` command-line flag. Contributed by Michaël Zasso in [#41811](https://togithub.com/nodejs/node/pull/41811). ##### HTTP Timeouts `server.headersTimeout` which limits the amount of time the parser will wait to receive the complete HTTP headers is now set to `60000` (60 seconds) by default. `server.requestTimeout` which sets the timeout value in milliseconds for receiving the entire request from the client is now set to `300000` (5 minutes) by default. If these timeouts expire, the server responds with status 408 without forwarding the request to the request listener and then closes the connection. Both timeouts must be set to a non-zero value to protect against potential Denial-of-Service attacks in case the server is deployed without a reverse proxy in front. Contributed by Paolo Insogna in [#41263](https://togithub.com/nodejs/node/pull/41263). ##### Test Runner module (experimental) The `node:test` module facilitates the creation of JavaScript tests that report results in TAP format. To access it: `import test from 'node:test';` This module is only available under the `node:` scheme. The following is an example implementation of a parent test with two subtests: ```js test('top level test', async (t) => { await t.test('subtest 1', (t) => { assert.strictEqual(1, 1); }); await t.test('subtest 2', (t) => { assert.strictEqual(2, 2); }); }); ``` Read more inConfiguration
📅 Schedule: 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 WhiteSource Renovate. View repository job log here.