This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
Releases: standard-things/esm
Releases · standard-things/esm
0.17.0
0.16.0
- Added support for monkey patching
Module._nodeModulePaths()
andModule._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
ofrequire()
’d ESM support live bindings (#150)
0.15.0
0.14.0
- 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
- 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 fromimport()
- Ensured error stack properties are non-enumerable
- Ensured the module prototype is set correctly for the
Module.runMain()
hook
0.12.5
- 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