Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Releases: standard-things/esm

0.17.0

23 Nov 01:58
Compare
Choose a tag to compare
  • Added support for .esmrc options files
  • Added support for pm2 (#157)
  • Ensured default options are applied to third-party packages
  • Ensured the Module.runMain() hook uses the current working directory for fallback options

0.16.0

17 Nov 05:03
Compare
Choose a tag to compare
  • Added support for monkey patching Module._nodeModulePaths()
    and Module._resolveFilename() with the "cjs" option (#154)
  • Added support for parsing async iterators (#152)
  • Clarified errors when failing to opt-in @std/esm
  • Made module namespace objects align closer to the specification
  • Made module.exports of require()’d ESM support live bindings (#150)

0.15.0

17 Nov 03:42
Compare
Choose a tag to compare
  • Ensured @std/esm warnings indicate they come from @std/esm
  • Fixed "@std/esm":"cjs" option shorthand (#149)
  • Moved cache path to "node_modules/.cache/@std/esm"

0.14.0

12 Nov 08:54
Compare
Choose a tag to compare
  • Added "@std/esm":"cjs" option shorthand
  • Added support for a "cjs" options object
  • Ensured third-party CJS modules can be loaded with the require hook (#142)
  • Ensured the module hook works with @babel/register
  • Fixed false positives for source type "module" with the"esm":"js" option
  • Fixed error with the "cache":false option

0.13.0

03 Nov 19:09
Compare
Choose a tag to compare
  • Added support for async generators and for-await-of
  • Aligned local Module._resolveLookupPaths() with Node core
  • Clarified the ERR_REQUIRE_ESM error message when coming from import()
  • Ensured error stack properties are non-enumerable
  • Ensured the module prototype is set correctly for the Module.runMain() hook

0.12.5

30 Oct 14:43
Compare
Choose a tag to compare
  • Avoided parsing scripts without import / export references
  • Ensured import.meta.url is set in main modules
  • Ensured process.mainModule is not set for ES modules
  • Ensured the first "use module" or "use script" pragma in wins
  • Made stack trace masking more consistent across Node versions

0.12.4

25 Oct 12:40
Compare
Choose a tag to compare
  • Fixed regression in node -r @std/esm use with no module specified

0.12.3

25 Oct 10:48
Compare
Choose a tag to compare
  • Ensured module cache is preserved with the "cjs" option (#129)
  • Reduced extraneous binding setter runs

0.12.2

22 Oct 18:25
Compare
Choose a tag to compare
  • Consolidated tracked runtime properties
  • Reduced internal merging of module entries
  • Removed “module-like” source type

0.12.1

20 Oct 23:29
Compare
Choose a tag to compare
  • Ensured only enumerable properties are assigned to internal namespace objects (#126)