Skip to content

Commit e2b8a60

Browse files
committed
2023-01-03, Version 18.13.0 'Hydrogen' (LTS)
Notable changes: Add support for externally shared js builtins: By default Node.js is built so that all dependencies are bundled into the Node.js binary itself. Some Node.js distributions prefer to manage dependencies externally. There are existing build options that allow dependencies with native code to be externalized. This commit adds additional options so that dependencies with JavaScript code (including WASM) can also be externalized. This addition does not affect binaries shipped by the Node.js project but will allow other distributions to externalize additional dependencies when needed. Contributed by Michael Dawson in #44376 fs.watch recursive support on Linux: `fs.watch` supports recursive watch using the `recursive: true` option. ```js const watcher = fs.watch(testDirectory, { recursive: true }); watcher.on('change', function(event, filename) { }); ``` Contributed by Yagiz Nizipli in #45098 Support function mocking on Node.js test runner: The `node:test` module supports mocking during testing via a top-level `mock` object. ```js test('spies on an object method', (t) => { const number = { value: 5, add(a) { return this.value + a; }, }; t.mock.method(number, 'add'); assert.strictEqual(number.add(3), 8); assert.strictEqual(number.add.mock.calls.length, 1); }); ``` Contributed by Colin Ihrig in #45326 Other notable changes: buffer: * (SEMVER-MINOR) introduce File (Khafra) #45139 build: * disable v8 snapshot compression by default (Joyee Cheung) #45716 crypto: * update root certificates (Luigi Pinca) #45490 deps: * update ICU to 72.1 (Michaël Zasso) #45068 doc: * add doc-only deprecation for headers/trailers setters (Rich Trott) #45697 * add Rafael to the tsc (Michael Dawson) #45691 * deprecate use of invalid ports in `url.parse` (Antoine du Hamel) #45576 * add lukekarrys to collaborators (Luke Karrys) #45180 * add anonrig to collaborators (Yagiz Nizipli) #45002 * deprecate url.parse() (Rich Trott) #44919 lib: * drop fetch experimental warning (Matteo Collina) #45287 net: * (SEMVER-MINOR) add autoSelectFamily and autoSelectFamilyAttemptTimeout options (Paolo Insogna) #44731 * src: * (SEMVER-MINOR) add uvwasi version (Jithil P Ponnan) #45639 * (SEMVER-MINOR) add initial shadow realm support (Chengzhong Wu) #42869 test_runner: * (SEMVER-MINOR) add t.after() hook (Colin Ihrig) #45792 * (SEMVER-MINOR) don't use a symbol for runHook() (Colin Ihrig) #45792 tls: * (SEMVER-MINOR) add "ca" property to certificate object (Ben Noordhuis) #44935 * remove trustcor root ca certificates (Ben Noordhuis) #45776 tools: * update certdata.txt (Luigi Pinca) #45490 util: * add fast path for utf8 encoding (Yagiz Nizipli) #45412 * improve textdecoder decode performance (Yagiz Nizipli) #45294 * (SEMVER-MINOR) add MIME utilities (#21128) (Bradley Farias) #21128 PR-URL: #46025
1 parent d06a199 commit e2b8a60

17 files changed

+523
-42
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ release.
3333
</tr>
3434
<tr>
3535
<td valign="top">
36-
<b><a href="doc/changelogs/CHANGELOG_V18.md#18.12.1">18.12.1</a></b><br/>
36+
<b><a href="doc/changelogs/CHANGELOG_V18.md#18.13.0">18.13.0</a></b><br/>
37+
<a href="doc/changelogs/CHANGELOG_V18.md#18.12.1">18.12.1</a><br/>
3738
<a href="doc/changelogs/CHANGELOG_V18.md#18.12.0">18.12.0</a><br/>
3839
<a href="doc/changelogs/CHANGELOG_V18.md#18.11.0">18.11.0</a><br/>
3940
<a href="doc/changelogs/CHANGELOG_V18.md#18.10.0">18.10.0</a><br/>

doc/api/async_context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ added:
123123
- v13.10.0
124124
- v12.17.0
125125
changes:
126-
- version: REPLACEME
126+
- version: v18.13.0
127127
pr-url: https://github.com/nodejs/node/pull/45386
128128
description: Add option onPropagate.
129129
-->

doc/api/buffer.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5025,7 +5025,7 @@ See [`Buffer.from(string[, encoding])`][`Buffer.from(string)`].
50255025
## Class: `File`
50265026

50275027
<!-- YAML
5028-
added: REPLACEME
5028+
added: v18.13.0
50295029
-->
50305030

50315031
> Stability: 1 - Experimental
@@ -5037,7 +5037,7 @@ A [`File`][] provides information about files.
50375037
### `new buffer.File(sources, fileName[, options])`
50385038

50395039
<!-- YAML
5040-
added: REPLACEME
5040+
added: v18.13.0
50415041
-->
50425042

50435043
* `sources` {string\[]|ArrayBuffer\[]|TypedArray\[]|DataView\[]|Blob\[]|File\[]}
@@ -5055,7 +5055,7 @@ added: REPLACEME
50555055
### `file.name`
50565056

50575057
<!-- YAML
5058-
added: REPLACEME
5058+
added: v18.13.0
50595059
-->
50605060

50615061
* Type: {string}
@@ -5065,7 +5065,7 @@ The name of the `File`.
50655065
### `file.lastModified`
50665066

50675067
<!-- YAML
5068-
added: REPLACEME
5068+
added: v18.13.0
50695069
-->
50705070

50715071
* Type: {number}

doc/api/cli.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ Use this flag to disable top-level await in REPL.
418418
### `--experimental-shadow-realm`
419419

420420
<!-- YAML
421-
added: REPLACEME
421+
added: v18.13.0
422422
-->
423423

424424
Use this flag to enable [ShadowRealm][] support.
@@ -1199,7 +1199,7 @@ status code 1.
11991199
<!-- YAML
12001200
added: v18.1.0
12011201
changes:
1202-
- version: REPLACEME
1202+
- version: v18.13.0
12031203
pr-url: https://github.com/nodejs/node/pull/45214
12041204
description: Test runner now supports running in watch mode.
12051205
-->
@@ -1567,7 +1567,7 @@ amount of CPUs, but it may diverge in environments such as VMs or containers.
15671567
<!-- YAML
15681568
added: v18.11.0
15691569
changes:
1570-
- version: REPLACEME
1570+
- version: v18.13.0
15711571
pr-url: https://github.com/nodejs/node/pull/45214
15721572
description: Test runner now supports running in watch mode.
15731573
-->

doc/api/deprecations.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2288,7 +2288,7 @@ future release.
22882288

22892289
<!-- YAML
22902290
changes:
2291-
- version: REPLACEME
2291+
- version: v18.13.0
22922292
pr-url: https://github.com/nodejs/node/pull/44919
22932293
description: \`url.parse()` is deprecated again in DEP0169.
22942294
- version:
@@ -3272,7 +3272,7 @@ Node-API callbacks.
32723272
<!-- YAML
32733273
changes:
32743274
- version:
3275-
- REPLACEME
3275+
- v18.13.0
32763276
pr-url: https://github.com/nodejs/node/pull/44919
32773277
description: Documentation-only deprecation.
32783278
-->
@@ -3288,7 +3288,7 @@ issued for `url.parse()` vulnerabilities.
32883288
<!-- YAML
32893289
changes:
32903290
- version:
3291-
- REPLACEME
3291+
- v18.13.0
32923292
pr-url: https://github.com/nodejs/node/pull/45576
32933293
description: Documentation-only deprecation.
32943294
-->
@@ -3304,7 +3304,7 @@ an error in future versions of Node.js, as the [WHATWG URL API][] does already.
33043304
<!-- YAML
33053305
changes:
33063306
- version:
3307-
- REPLACEME
3307+
- v18.13.0
33083308
pr-url: https://github.com/nodejs/node/pull/45697
33093309
description: Documentation-only deprecation.
33103310
-->

doc/api/diagnostics_channel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- YAML
44
added: v15.1.0
55
changes:
6-
- version: REPLACEME
6+
- version: v18.13.0
77
pr-url: https://github.com/nodejs/node/pull/45290
88
description: diagnostics_channel is now Stable.
99
-->

doc/api/fs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4313,7 +4313,7 @@ The `atime` and `mtime` arguments follow these rules:
43134313
<!-- YAML
43144314
added: v0.5.10
43154315
changes:
4316-
- version: REPLACEME
4316+
- version: v18.13.0
43174317
pr-url: https://github.com/nodejs/node/pull/45098
43184318
description: Added recursive support for Linux, AIX and IBMi.
43194319
- version:

doc/api/n-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ handle and/or callback scope inside the function body is not necessary.
901901
#### `napi_cleanup_hook`
902902

903903
<!-- YAML
904-
added: REPLACEME
904+
added: v18.13.0
905905
napiVersion: 3
906906
-->
907907

doc/api/net.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ behavior.
854854
<!-- YAML
855855
added: v0.1.90
856856
changes:
857-
- version: REPLACEME
857+
- version: v18.13.0
858858
pr-url: https://github.com/nodejs/node/pull/44731
859859
description: Added the `autoSelectFamily` option.
860860
- version: v17.7.0

doc/api/stream.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1684,7 +1684,7 @@ has less then 64 KiB of data because no `highWaterMark` option is provided to
16841684
##### `readable.compose(stream[, options])`
16851685

16861686
<!-- YAML
1687-
added: REPLACEME
1687+
added: v18.13.0
16881688
-->
16891689

16901690
> Stability: 1 - Experimental

0 commit comments

Comments
 (0)