Skip to content

Commit ea655e8

Browse files
committed
2024-03-26, Version 18.20.0 'Hydrogen' (LTS)
Notable changes: Added support for import attributes: Support has been added for import attributes, to replace the old import assertions syntax. This will aid migration by making the new syntax available across all currently supported Node.js release lines. For more details, see * [#50134](#50134) * [#51622](#51622) Doc deprecation for `dirent.path`: Please use newly added `dirent.parentPath` instead. Experimental node-api feature flags Introduces an experimental feature to segregate finalizers that affect GC state. A new type called `node_api_nogc_env` has been introduced as the const version of `napi_env` and `node_api_nogc_finalize` as a variant of `napi_finalize` that accepts a `node_api_nogc_env` as its first argument. This feature can be turned off by defining `NODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT`. Root certificates updated to NSS 3.98: Certificates added: * Telekom Security TLS ECC Root 2020 * Telekom Security TLS RSA Root 2023 Certificates removed: * Security Communication Root CA Updated dependencies: * ada updated to 2.7.6. * base64 updated to 0.5.2. * c-ares updated to 1.27.0. * corepack updated to 0.25.2. * ICU updated to 74.2. Includes CLDR 44.1 and Unicode 15.1). * npm updated to 10.5.0. Fixes a regression in signals not being passed onto child processes. * simdutf8 updated to 4.0.8. * Timezone updated to 2024a. * zlib updated to 1.3.0.1-motley-40e35a7. 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 to `vm.Script`, resulting in a performance regression 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 the presence of the `importModuleDynamically` option, so that users affected by the performance regression can now upgrade. Ongoing work is also being done to enable compilation cache support for `vm.CompileFunction`. PR-URL: #52165
1 parent 32906dd commit ea655e8

File tree

7 files changed

+184
-10
lines changed

7 files changed

+184
-10
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ release.
3232
</tr>
3333
<tr>
3434
<td valign="top">
35-
<b><a href="doc/changelogs/CHANGELOG_V18.md#18.19.1">18.19.1</a></b><br/>
35+
<b><a href="doc/changelogs/CHANGELOG_V18.md#18.20.0">18.20.0</a></b><br/>
36+
<a href="doc/changelogs/CHANGELOG_V18.md#18.19.1">18.19.1</a><br/>
3637
<a href="doc/changelogs/CHANGELOG_V18.md#18.19.0">18.19.0</a><br/>
3738
<a href="doc/changelogs/CHANGELOG_V18.md#18.18.2">18.18.2</a><br/>
3839
<a href="doc/changelogs/CHANGELOG_V18.md#18.18.1">18.18.1</a><br/>

doc/api/deprecations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3337,7 +3337,7 @@ In a future version of Node.js, [`message.headers`][],
33373337

33383338
<!-- YAML
33393339
changes:
3340-
- version: REPLACEME
3340+
- version: v18.20.0
33413341
pr-url: https://github.com/nodejs/node/pull/51020
33423342
description: Documentation-only deprecation.
33433343
-->

doc/api/esm.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<!-- YAML
88
added: v8.5.0
99
changes:
10-
- version: REPLACEME
10+
- version: v18.20.0
1111
pr-url: https://github.com/nodejs/node/pull/50140
1212
description: Add experimental support for import attributes.
1313
- version: v18.19.0
@@ -246,7 +246,7 @@ added:
246246
- v17.1.0
247247
- v16.14.0
248248
changes:
249-
- version: REPLACEME
249+
- version: v18.20.0
250250
pr-url: https://github.com/nodejs/node/pull/50140
251251
description: Switch from Import Assertions to Import Attributes.
252252
-->

doc/api/fs.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6441,7 +6441,7 @@ value is determined by the `options.encoding` passed to [`fs.readdir()`][] or
64416441
64426442
<!-- YAML
64436443
added:
6444-
- REPLACEME
6444+
- v18.20.0
64456445
-->
64466446
64476447
> Stability: 1 – Experimental
@@ -6454,7 +6454,7 @@ The path to the parent directory of the file this {fs.Dirent} object refers to.
64546454
64556455
<!-- YAML
64566456
added: v18.17.0
6457-
deprecated: REPLACEME
6457+
deprecated: v18.20.0
64586458
-->
64596459
64606460
> Stability: 0 - Deprecated: Use [`dirent.parentPath`][] instead.

doc/api/n-api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ handle and/or callback scope inside a `napi_callback` is not necessary.
773773
#### `node_api_nogc_finalize`
774774

775775
<!-- YAML
776-
added: REPLACEME
776+
added: v18.20.0
777777
-->
778778

779779
> Stability: 1 - Experimental

doc/changelogs/CHANGELOG_V18.md

+173
Large diffs are not rendered by default.

src/node_version.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
#define SRC_NODE_VERSION_H_
2424

2525
#define NODE_MAJOR_VERSION 18
26-
#define NODE_MINOR_VERSION 19
27-
#define NODE_PATCH_VERSION 2
26+
#define NODE_MINOR_VERSION 20
27+
#define NODE_PATCH_VERSION 0
2828

2929
#define NODE_VERSION_IS_LTS 1
3030
#define NODE_VERSION_LTS_CODENAME "Hydrogen"
3131

32-
#define NODE_VERSION_IS_RELEASE 0
32+
#define NODE_VERSION_IS_RELEASE 1
3333

3434
#ifndef NODE_STRINGIFY
3535
#define NODE_STRINGIFY(n) NODE_STRINGIFY_HELPER(n)

0 commit comments

Comments
 (0)