From 527394783ece910bf8c543f5a01f100ae37e5c33 Mon Sep 17 00:00:00 2001 From: Danielle Adams Date: Mon, 10 Apr 2023 23:02:28 -0400 Subject: [PATCH] 2023-04-12, Version 18.16.0 'Hydrogen' (LTS) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 https://github.com/nodejs/node/pull/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 https://github.com/nodejs/node/pull/46410 Other notable changes: * buffer: * (SEMVER-MINOR) add Buffer.copyBytesFrom(...) (James M Snell) https://github.com/nodejs/node/pull/46500 * doc: * add marco-ippolito to collaborators (Marco Ippolito) https://github.com/nodejs/node/pull/46816 * add debadree25 to collaborators (Debadree Chatterjee) https://github.com/nodejs/node/pull/46716 * add deokjinkim to collaborators (Deokjin Kim) https://github.com/nodejs/node/pull/46444 * events: * (SEMVER-MINOR) add listener argument to listenerCount (Paolo Insogna) https://github.com/nodejs/node/pull/46523 * lib: * (SEMVER-MINOR) add AsyncLocalStorage.bind() and .snapshot() (flakey5) https://github.com/nodejs/node/pull/46387 * (SEMVER-MINOR) add aborted() utility function (Debadree Chatterjee) https://github.com/nodejs/node/pull/46494 * src: * (SEMVER-MINOR) allow optional Isolate termination in node::Stop() (Shelley Vohr) https://github.com/nodejs/node/pull/46583 * (SEMVER-MINOR) allow embedder control of code generation policy (Shelley Vohr) https://github.com/nodejs/node/pull/46368 * stream: * (SEMVER-MINOR) add abort signal for ReadableStream and WritableStream (Debadree Chatterjee) https://github.com/nodejs/node/pull/46273 * tls: * (SEMVER-MINOR) support automatic DHE (Tobias Nießen) https://github.com/nodejs/node/pull/46978 * url: * (SEMVER-MINOR) implement URLSearchParams size getter (James M Snell) https://github.com/nodejs/node/pull/46308 * worker: * (SEMVER-MINOR) add support for worker name in inspector and trace_events (Debadree Chatterjee) https://github.com/nodejs/node/pull/46832 PR-URL: https://github.com/nodejs/node/pull/47502 --- CHANGELOG.md | 3 +- doc/api/async_context.md | 12 +- doc/api/buffer.md | 4 +- doc/api/events.md | 4 +- doc/api/stream.md | 12 +- doc/api/test.md | 4 +- doc/api/tls.md | 8 +- doc/api/url.md | 4 +- doc/api/util.md | 4 +- doc/api/worker_threads.md | 4 +- doc/changelogs/CHANGELOG_V18.md | 318 ++++++++++++++++++++++++++++++++ 11 files changed, 362 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41bf97f743dccd..f7eb832526f6e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,7 +50,8 @@ release. 19.0.0
-18.15.0
+18.16.0
+18.15.0
18.14.2
18.14.1
18.14.0
diff --git a/doc/api/async_context.md b/doc/api/async_context.md index 7e456aa9be1b03..51d6393c14ae6b 100644 --- a/doc/api/async_context.md +++ b/doc/api/async_context.md @@ -123,7 +123,9 @@ added: - v13.10.0 - v12.17.0 changes: - - version: v19.7.0 + - version: + - v19.7.0 + - v18.16.0 pr-url: https://github.com/nodejs/node/pull/46386 description: Removed experimental onPropagate option. - version: @@ -139,7 +141,9 @@ Creates a new instance of `AsyncLocalStorage`. Store is only provided within a ### Static method: `AsyncLocalStorage.bind(fn)` > Stability: 1 - Experimental @@ -153,7 +157,9 @@ Binds the given function to the current execution context. ### Static method: `AsyncLocalStorage.snapshot()` > Stability: 1 - Experimental diff --git a/doc/api/buffer.md b/doc/api/buffer.md index da90d3f3050882..3dbada312576a4 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -1061,7 +1061,9 @@ console.log(bufA.length); ### Static method: `Buffer.copyBytesFrom(view[, offset[, length]])` * `view` {TypedArray} The {TypedArray} to copy. diff --git a/doc/api/events.md b/doc/api/events.md index cca6fca8b392b0..e443c2162c8e64 100644 --- a/doc/api/events.md +++ b/doc/api/events.md @@ -651,7 +651,9 @@ set by [`emitter.setMaxListeners(n)`][] or defaults to diff --git a/doc/api/stream.md b/doc/api/stream.md index 629c0fa8ed822a..8a60742b1eed95 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -2721,7 +2721,9 @@ const cleanup = finished(rs, (err) => { @@ -3263,7 +3267,9 @@ readable.getReader().read().then((result) => { diff --git a/doc/api/tls.md b/doc/api/tls.md index b115b172306912..5b44ba7d8c3f56 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -1792,7 +1792,9 @@ argument. * {string} The default value of the `ciphers` option of diff --git a/doc/api/url.md b/doc/api/url.md index 4303fe13954bd4..abfd67e2cb11a0 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -968,7 +968,9 @@ console.log(params.toString()); #### `urlSearchParams.size` The total number of parameter entries. diff --git a/doc/api/util.md b/doc/api/util.md index 638b142496e59a..430453aa30d3da 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -1991,7 +1991,9 @@ channel.port2.postMessage(signal, [signal]); ## `util.aborted(signal, resource)` > Stability: 1 - Experimental diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index ea11b8f45956a4..0d585965b856d7 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -906,7 +906,9 @@ if (isMainThread) {