From 7ed303bebadecb08ed1a9deb914469c51acadec3 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Mon, 18 Oct 2021 12:00:42 -0400 Subject: [PATCH] 2021-10-20, Version 16.12.0 (Current) Notable Changes: Experimental ESM Loader Hooks API: Node.js ESM Loader hooks have been consolidated to represent the steps involved needed to facilitate future loader chaining: 1. `resolve`: `resolve` [+ `getFormat`] 2. `load`: `getFormat` + `getSource` + `transformSource` For consistency, `getGlobalPreloadCode` has been renamed to `globalPreload`. A loader exporting obsolete hook(s) will trigger a single deprecation warning (per loader) listing the errant hooks. Contributed by Jacob Smith, Geoffrey Booth, and Bradley Farias - https://github.com/nodejs/node/pull/37468 Other Notable Changes: deps: * upgrade npm to 8.1.0 (npm team) https://github.com/nodejs/node/pull/40463 doc: * deprecate (doc-only) http abort related (dr-js) https://github.com/nodejs/node/pull/36670 vm: * (SEMVER-MINOR) add support for import assertions in dynamic imports (Antoine du Hamel) https://github.com/nodejs/node/pull/40249 PR-URL: https://github.com/nodejs/node/pull/40504 --- CHANGELOG.md | 3 +- doc/api/deprecations.md | 4 +- doc/api/esm.md | 1 + doc/api/http.md | 16 ++++-- doc/api/vm.md | 24 ++++++--- doc/changelogs/CHANGELOG_V16.md | 88 ++++++++++++++++++++++++++++++++- 6 files changed, 123 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 38efc531746..448dbc6351d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,7 +38,8 @@ release. 17.0.0
-16.11.1
+16.12.0
+16.11.1
16.11.0
16.10.0
16.9.1
diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index c8526f55c32..e60ccd18cf9 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -2998,7 +2998,9 @@ for package `"exports"` and `"imports"` pattern resolutions. diff --git a/doc/api/esm.md b/doc/api/esm.md index 04f8fe28135..796fb47b0e3 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -9,6 +9,7 @@ added: v8.5.0 changes: - version: - v17.0.0 + - v16.12.0 pr-url: https://github.com/nodejs/node/pull/37468 description: Consolidate loader hooks, removed `getFormat`, `getSource`, diff --git a/doc/api/http.md b/doc/api/http.md index 722defc987d..cec579ca75f 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -424,7 +424,9 @@ body which has been transmitted are equal or not. > Stability: 0 - Deprecated. Listen for the `'close'` event instead. @@ -674,7 +676,9 @@ in the response to be dropped and the socket to be destroyed. > Stability: 0 - Deprecated. Listen for `'close'` event instead. @@ -2110,7 +2116,9 @@ Indicates that the underlying connection was closed. > Stability: 0 - Deprecated. Check `message.destroyed` from {stream.Readable}. diff --git a/doc/api/vm.md b/doc/api/vm.md index efc677967d7..6e7e60152c9 100644 --- a/doc/api/vm.md +++ b/doc/api/vm.md @@ -56,7 +56,9 @@ executed in specific contexts.