Skip to content

Commit 43d167a

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 a39dd37 commit 43d167a

File tree

13 files changed

+338
-19
lines changed

13 files changed

+338
-19
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.15.0">18.15.0</a></b><br/>
36+
<b><a href="doc/changelogs/CHANGELOG_V18.md#18.16.0">18.16.0</a></b><br/>
37+
<a href="doc/changelogs/CHANGELOG_V18.md#18.15.0">18.15.0</a><br/>
3738
<a href="doc/changelogs/CHANGELOG_V18.md#18.14.2">18.14.2</a><br/>
3839
<a href="doc/changelogs/CHANGELOG_V18.md#18.14.1">18.14.1</a><br/>
3940
<a href="doc/changelogs/CHANGELOG_V18.md#18.14.0">18.14.0</a><br/>

doc/api/async_context.md

Lines changed: 3 additions & 3 deletions
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.16.0
127127
pr-url: https://github.com/nodejs/node/pull/46386
128128
description: Removed experimental onPropagate option.
129129
- version: v18.13.0
@@ -137,7 +137,7 @@ Creates a new instance of `AsyncLocalStorage`. Store is only provided within a
137137
### Static method: `AsyncLocalStorage.bind(fn)`
138138

139139
<!-- YAML
140-
added: REPLACEME
140+
added: v18.16.0
141141
-->
142142

143143
> Stability: 1 - Experimental
@@ -151,7 +151,7 @@ Binds the given function to the current execution context.
151151
### Static method: `AsyncLocalStorage.snapshot()`
152152

153153
<!-- YAML
154-
added: REPLACEME
154+
added: v18.16.0
155155
-->
156156

157157
> Stability: 1 - Experimental

doc/api/buffer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ console.log(bufA.length);
10591059
### Static method: `Buffer.copyBytesFrom(view[, offset[, length]])`
10601060

10611061
<!-- YAML
1062-
added: REPLACEME
1062+
added: v18.16.0
10631063
-->
10641064

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

doc/api/events.md

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

doc/api/single-executable-applications.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Single executable applications
22

3-
<!--introduced_in=REPLACEME-->
3+
<!--introduced_in=v18.16.0-->
44

55
> Stability: 1 - Experimental: This feature is being designed and will change.
66

doc/api/stream.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2669,7 +2669,7 @@ const cleanup = finished(rs, (err) => {
26692669
<!-- YAML
26702670
added: v10.0.0
26712671
changes:
2672-
- version: REPLACEME
2672+
- version: v18.16.0
26732673
pr-url: https://github.com/nodejs/node/pull/46307
26742674
description: Added support for webstreams.
26752675
- version: v18.0.0
@@ -2770,7 +2770,7 @@ const server = http.createServer((req, res) => {
27702770
<!-- YAML
27712771
added: v16.9.0
27722772
changes:
2773-
- version: REPLACEME
2773+
- version: v18.16.0
27742774
pr-url: https://github.com/nodejs/node/pull/46675
27752775
description: Added support for webstreams.
27762776
-->
@@ -3203,7 +3203,7 @@ readable.getReader().read().then((result) => {
32033203
<!-- YAML
32043204
added: v15.4.0
32053205
changes:
3206-
- version: REPLACEME
3206+
- version: v18.16.0
32073207
pr-url: https://github.com/nodejs/node/pull/46273
32083208
description: Added support for `ReadableStream` and
32093209
`WritableStream`.

doc/api/test.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ added:
847847
- v18.6.0
848848
- v16.17.0
849849
changes:
850-
- version: REPLACEME
850+
- version: v18.16.0
851851
pr-url: https://github.com/nodejs/node/pull/46889
852852
description: Calling `it()` is now equivalent to calling `test()`.
853853
-->

doc/api/tls.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,7 +1790,7 @@ argument.
17901790
<!-- YAML
17911791
added: v0.11.13
17921792
changes:
1793-
- version: REPLACEME
1793+
- version: v18.16.0
17941794
pr-url: https://github.com/nodejs/node/pull/46978
17951795
description: The `dhparam` option can now be set to `'auto'` to
17961796
enable DHE with appropriate well-known parameters.
@@ -2249,7 +2249,7 @@ added: v11.4.0
22492249
## `tls.DEFAULT_CIPHERS`
22502250

22512251
<!-- YAML
2252-
added: REPLACEME
2252+
added: v18.16.0
22532253
-->
22542254

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

doc/api/url.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ console.log(params.toString());
943943
#### `urlSearchParams.size`
944944

945945
<!-- YAML
946-
added: REPLACEME
946+
added: v18.16.0
947947
-->
948948

949949
The total number of parameter entries.

doc/api/util.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1980,7 +1980,7 @@ channel.port2.postMessage(signal, [signal]);
19801980
## `util.aborted(signal, resource)`
19811981
19821982
<!-- YAML
1983-
added: REPLACEME
1983+
added: v18.16.0
19841984
-->
19851985
19861986
> Stability: 1 - Experimental

doc/api/worker_threads.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ if (isMainThread) {
900900
<!-- YAML
901901
added: v10.5.0
902902
changes:
903-
- version: REPLACEME
903+
- version: v18.16.0
904904
pr-url: https://github.com/nodejs/node/pull/46832
905905
description: Added support for a `name` option, which allows
906906
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.

src/node_version.h

Lines changed: 3 additions & 3 deletions
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 15
27-
#define NODE_PATCH_VERSION 1
26+
#define NODE_MINOR_VERSION 16
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)