diff options
author | Richard Lau <rlau@redhat.com> | 2021-10-18 19:00:42 +0300 |
---|---|---|
committer | Richard Lau <rlau@redhat.com> | 2021-10-20 17:40:02 +0300 |
commit | 7ed303bebadecb08ed1a9deb914469c51acadec3 (patch) | |
tree | 95a4dbe9308185b5a6de8bbd16df62c235fb406c /doc/api/esm.md | |
parent | 3ec3ba544cceb994177b1f8d198883ae4c0f7c80 (diff) |
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
Diffstat (limited to 'doc/api/esm.md')
-rw-r--r-- | doc/api/esm.md | 1 |
1 files changed, 1 insertions, 0 deletions
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`, |