From 49415500bb1bf51a1fade5ea2d03f3988ecabc25 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 | 2 +- doc/api/esm.md | 2 +- doc/api/http.md | 8 +-- doc/api/vm.md | 12 ++--- doc/changelogs/CHANGELOG_V16.md | 88 ++++++++++++++++++++++++++++++++- src/node_version.h | 6 +-- 7 files changed, 104 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 66143e13437f06..bfa87963d7ef1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,7 +33,8 @@ release. -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 687d160d15d8be..8beb77603ab8fc 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -2830,7 +2830,7 @@ for package `"exports"` and `"imports"` pattern resolutions. ### DEP0156: `.aborted` property and `'abort'`, `'aborted'` event in `http` diff --git a/doc/api/esm.md b/doc/api/esm.md index 8b9b21e7eddd5f..c33a53188ca209 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -8,7 +8,7 @@ added: v8.5.0 changes: - version: - - REPLACEME + - 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 7abaa9bfed660f..c32872f65843f1 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -405,7 +405,7 @@ body which has been transmitted are equal or not. ### Event: `'abort'` > Stability: 0 - Deprecated. Listen for the `'close'` event instead. @@ -646,7 +646,7 @@ in the response to be dropped and the socket to be destroyed. ### `request.aborted` > Stability: 0 - Deprecated. Listen for `'close'` event instead. @@ -2007,7 +2007,7 @@ Indicates that the underlying connection was closed. ### `message.aborted` > Stability: 0 - Deprecated. Check `message.destroyed` from {stream.Readable}. diff --git a/doc/api/vm.md b/doc/api/vm.md index 7a8dc946b1c824..a1451cdc059343 100644 --- a/doc/api/vm.md +++ b/doc/api/vm.md @@ -54,7 +54,7 @@ executed in specific contexts.