Skip to content

Releases: standard-things/esm

0.19.5

17 Jan 07:48
Compare
Choose a tag to compare
  • Ensured CJS modules loaded during the parse phase of ESM aren’t executed (#239)

0.19.4

17 Jan 02:07
Compare
Choose a tag to compare
  • Fixed regression with @babel/register (#236)
  • Fixed regression with ava (#233)

0.19.3

14 Jan 21:17
Compare
Choose a tag to compare
  • Fixed regression with dynamic import() inside exported functions and classes (#232)
  • Fixed regression with re-exported builtin modules (#231)
  • Ensured native modules aren’t re-evaluated (#213)
  • Ensured the ESM wrapper isn’t used for CJS (#230)

0.19.2

13 Jan 07:49
Compare
Choose a tag to compare
  • Enabled support for Jest globals option (#212)
  • Ensured CJS modules are not re-evaluated (#209, #217)
  • Ensured correct execution order of re-exported modules
  • Ensured ESM_OPTIONS can set the "cache" option (#215)
  • Ensured exported bindings are defined in the module
  • Ensured require() is properly bound when using Jest (#224)

0.19.1

06 Jan 09:35
Compare
Choose a tag to compare
  • Ensured module state is not reset for cyclical loads (#208)
  • Ensured passthru modules are not executed during the parsing phase (#209)

0.19.0

05 Jan 23:56
Compare
Choose a tag to compare
  • Added support for "esm":"cjs" option
  • Added support for unquoted ESM_OPTIONS values
  • Aligned ERR_UNKNOWN_FILE_EXTENSION error with Node
  • Aligned Module.wrapper values more closely with Node
  • Aligned require.resolve() and require.resolve.paths() with Node 8.9.0+
  • Enabled sharing state across loader instances
  • Ensured dynamic import works in nested CJS modules (#184)
  • Ensured ESM_OPTIONS are used when for opt-ins with no options (#188)
  • Ensured exported bindings are validated before code execution
  • Ensured legacy error code is used for missing CJS modules (#206)
  • Ensured module.parent is undefined for ESM parents
  • Ensured static import specifiers are resolved before code execution
  • Ensured third-party files are cached only if they have compilation changes
  • Fixed a usage scenario with @babel/register and nyc (#179)
  • Fixed "await" option support (#199)
  • Fixed hang when parsing source mapping URLs (#207)
  • Fixed hang with jest@^22.0.0
  • Fixed parsing circular dependencies with anonymous function declarations (#183)

0.18.0

02 Dec 01:46
Compare
Choose a tag to compare
  • Added support for .esmrc.json, .esmrc.js, and .esmrc.mjs files
  • Added support for the ESM_OPTIONS environment variable (#139)
  • Enabled parsing options with JSON6
  • Fixed regression parsing destructured params (#168)

0.17.3

28 Nov 20:12
Compare
Choose a tag to compare
  • Ensured @std/esm works with the Node --no-deprecation flag
  • Ensured the module exports is returned from Module._load()
  • Fixed regression with pm2 support (#157)

0.17.2

27 Nov 07:20
Compare
Choose a tag to compare
  • Fixed misnamed properties on Module
  • Fixed regression in destructuring parameters (#103)
  • Fixed regression with Jest support (#164)
  • Made ESM stack traces use URLs

0.17.1

23 Nov 14:35
Compare
Choose a tag to compare
  • Avoided API deprecation warnings across Node versions
  • Ensured CJS modules allow monkey patching Module._nodeModulePaths()
    and Module._resolveFilename() without the "cjs" option