Skip to content

Commit 5273947

Browse files
committed
2023-04-12, Version 18.16.0 'Hydrogen' (LTS)
Notable changes: Add initial support for single executable applications Compile a JavaScript file into a single executable application: ```console $ echo 'console.log(`Hello, ${process.argv[2]}!`);' > hello.js $ cp $(command -v node) hello $ npx postject hello NODE_JS_CODE hello.js \ --sentinel-fuse NODE_JS_FUSE_fce680ab2cc467b6e072b8b5df1996b2 $ npx postject hello NODE_JS_CODE hello.js \ --sentinel-fuse NODE_JS_FUSE_fce680ab2cc467b6e072b8b5df1996b2 \ --macho-segment-name NODE_JS $ ./hello world Hello, world! ``` Contributed by Darshan Sen in #45038 Replace url parser with Ada Node.js gets a new URL parser called Ada that is compliant with the WHATWG URL Specification and provides more than 100% performance improvement to the existing implementation. Contributed by Yagiz Nizipli in #46410 Other notable changes: * buffer: * (SEMVER-MINOR) add Buffer.copyBytesFrom(...) (James M Snell) #46500 * doc: * add marco-ippolito to collaborators (Marco Ippolito) #46816 * add debadree25 to collaborators (Debadree Chatterjee) #46716 * add deokjinkim to collaborators (Deokjin Kim) #46444 * events: * (SEMVER-MINOR) add listener argument to listenerCount (Paolo Insogna) #46523 * lib: * (SEMVER-MINOR) add AsyncLocalStorage.bind() and .snapshot() (flakey5) #46387 * (SEMVER-MINOR) add aborted() utility function (Debadree Chatterjee) #46494 * src: * (SEMVER-MINOR) allow optional Isolate termination in node::Stop() (Shelley Vohr) #46583 * (SEMVER-MINOR) allow embedder control of code generation policy (Shelley Vohr) #46368 * stream: * (SEMVER-MINOR) add abort signal for ReadableStream and WritableStream (Debadree Chatterjee) #46273 * tls: * (SEMVER-MINOR) support automatic DHE (Tobias Nießen) #46978 * url: * (SEMVER-MINOR) implement URLSearchParams size getter (James M Snell) #46308 * worker: * (SEMVER-MINOR) add support for worker name in inspector and trace_events (Debadree Chatterjee) #46832 PR-URL: #47502
1 parent e67b944 commit 5273947

11 files changed

+362
-15
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ release.
5050
<a href="doc/changelogs/CHANGELOG_V19.md#19.0.0">19.0.0</a><br/>
5151
</td>
5252
<td valign="top">
53-
<b><a href="doc/changelogs/CHANGELOG_V18.md#18.15.0">18.15.0</a></b><br/>
53+
<b><a href="doc/changelogs/CHANGELOG_V18.md#18.16.0">18.16.0</a></b><br/>
54+
<a href="doc/changelogs/CHANGELOG_V18.md#18.15.0">18.15.0</a><br/>
5455
<a href="doc/changelogs/CHANGELOG_V18.md#18.14.2">18.14.2</a><br/>
5556
<a href="doc/changelogs/CHANGELOG_V18.md#18.14.1">18.14.1</a><br/>
5657
<a href="doc/changelogs/CHANGELOG_V18.md#18.14.0">18.14.0</a><br/>

doc/api/async_context.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ added:
123123
- v13.10.0
124124
- v12.17.0
125125
changes:
126-
- version: v19.7.0
126+
- version:
127+
- v19.7.0
128+
- v18.16.0
127129
pr-url: https://github.com/nodejs/node/pull/46386
128130
description: Removed experimental onPropagate option.
129131
- version:
@@ -139,7 +141,9 @@ Creates a new instance of `AsyncLocalStorage`. Store is only provided within a
139141
### Static method: `AsyncLocalStorage.bind(fn)`
140142

141143
<!-- YAML
142-
added: v19.8.0
144+
added:
145+
- v19.8.0
146+
- v18.16.0
143147
-->
144148

145149
> Stability: 1 - Experimental
@@ -153,7 +157,9 @@ Binds the given function to the current execution context.
153157
### Static method: `AsyncLocalStorage.snapshot()`
154158

155159
<!-- YAML
156-
added: v19.8.0
160+
added:
161+
- v19.8.0
162+
- v18.16.0
157163
-->
158164

159165
> Stability: 1 - Experimental

doc/api/buffer.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,9 @@ console.log(bufA.length);
10611061
### Static method: `Buffer.copyBytesFrom(view[, offset[, length]])`
10621062

10631063
<!-- YAML
1064-
added: v19.8.0
1064+
added:
1065+
- v19.8.0
1066+
- v18.16.0
10651067
-->
10661068

10671069
* `view` {TypedArray} The {TypedArray} to copy.

doc/api/events.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,9 @@ set by [`emitter.setMaxListeners(n)`][] or defaults to
651651
<!-- YAML
652652
added: v3.2.0
653653
changes:
654-
- version: v19.8.0
654+
- version:
655+
- v19.8.0
656+
- v18.16.0
655657
pr-url: https://github.com/nodejs/node/pull/46523
656658
description: Added the `listener` argument.
657659
-->

doc/api/stream.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2721,7 +2721,9 @@ const cleanup = finished(rs, (err) => {
27212721
<!-- YAML
27222722
added: v10.0.0
27232723
changes:
2724-
- version: v19.7.0
2724+
- version:
2725+
- v19.7.0
2726+
- v18.16.0
27252727
pr-url: https://github.com/nodejs/node/pull/46307
27262728
description: Added support for webstreams.
27272729
- version: v18.0.0
@@ -2822,7 +2824,9 @@ const server = http.createServer((req, res) => {
28222824
<!-- YAML
28232825
added: v16.9.0
28242826
changes:
2825-
- version: v19.8.0
2827+
- version:
2828+
- v19.8.0
2829+
- v18.16.0
28262830
pr-url: https://github.com/nodejs/node/pull/46675
28272831
description: Added support for webstreams.
28282832
-->
@@ -3263,7 +3267,9 @@ readable.getReader().read().then((result) => {
32633267
<!-- YAML
32643268
added: v15.4.0
32653269
changes:
3266-
- version: v19.7.0
3270+
- version:
3271+
- v19.7.0
3272+
- v18.16.0
32673273
pr-url: https://github.com/nodejs/node/pull/46273
32683274
description: Added support for `ReadableStream` and
32693275
`WritableStream`.

doc/api/test.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,9 @@ added:
898898
- v18.6.0
899899
- v16.17.0
900900
changes:
901-
- version: v19.8.0
901+
- version:
902+
- v19.8.0
903+
- v18.16.0
902904
pr-url: https://github.com/nodejs/node/pull/46889
903905
description: Calling `it()` is now equivalent to calling `test()`.
904906
-->

doc/api/tls.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1792,7 +1792,9 @@ argument.
17921792
<!-- YAML
17931793
added: v0.11.13
17941794
changes:
1795-
- version: v19.8.0
1795+
- version:
1796+
- v19.8.0
1797+
- v18.16.0
17961798
pr-url: https://github.com/nodejs/node/pull/46978
17971799
description: The `dhparam` option can now be set to `'auto'` to
17981800
enable DHE with appropriate well-known parameters.
@@ -2256,7 +2258,9 @@ added: v11.4.0
22562258
## `tls.DEFAULT_CIPHERS`
22572259

22582260
<!-- YAML
2259-
added: v19.8.0
2261+
added:
2262+
- v19.8.0
2263+
- v18.16.0
22602264
-->
22612265

22622266
* {string} The default value of the `ciphers` option of

doc/api/url.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,9 @@ console.log(params.toString());
968968
#### `urlSearchParams.size`
969969

970970
<!-- YAML
971-
added: v19.8.0
971+
added:
972+
- v19.8.0
973+
- v18.16.0
972974
-->
973975

974976
The total number of parameter entries.

doc/api/util.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1991,7 +1991,9 @@ channel.port2.postMessage(signal, [signal]);
19911991
## `util.aborted(signal, resource)`
19921992
19931993
<!-- YAML
1994-
added: v19.7.0
1994+
added:
1995+
- v19.7.0
1996+
- v18.16.0
19951997
-->
19961998
19971999
> Stability: 1 - Experimental

doc/api/worker_threads.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,9 @@ if (isMainThread) {
906906
<!-- YAML
907907
added: v10.5.0
908908
changes:
909-
- version: v19.8.0
909+
- version:
910+
- v19.8.0
911+
- v18.16.0
910912
pr-url: https://github.com/nodejs/node/pull/46832
911913
description: Added support for a `name` option, which allows
912914
adding a name to worker title for debugging.

doc/changelogs/CHANGELOG_V18.md

Lines changed: 318 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)