This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
0.20.0
- Added support for
options
parameter torequire.resolve()
- Added support for
require.resolve.paths()
- Added
ERR_INVALID_ARG_VALUE
handler - Enabled extensionless files to be resolved with the
"esm":"js"
option - Ensured
ERR_MISSING_MODULE
errors are converted toMODULE_NOT_FOUND
for CJS (#206) - Ensured
Module#_compile
supports ESM when unlocked - Ensured
require()
callsmodule.require()
- Ensured
require.main
is set when unlocked in ESM - Ensured stack trace masking is skipped if
error.stack
is missing (#259) - Ensured
require(".\\")
is resolved correctly in Windows (nodejs/node#18299) - Removed support for
require(".")
withNODE_PATH
compatibility (nodejs/node#3384) - Updated
ERR_INVALID_ARG_TYPE
handler