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
parent
3ec3ba54
Please register or sign in to comment