With the release of Node 24 and EOL of Node 18 next month, all LTS versions of Node will support having a module-sync entry point in exports allowing CJS files to load ESM files if they do not use top-level await. It would be a nice change as it would reduce the size of the package as a CJS build would no longer be needed for CJS consumers and would help support the ecosystem moving to ESM.
This package currently supports Node 18, so it would require bumping the engines field slightly and would be a breaking change
With the release of Node 24 and EOL of Node 18 next month, all LTS versions of Node will support having a
module-syncentry point inexportsallowing CJS files to load ESM files if they do not use top-level await. It would be a nice change as it would reduce the size of the package as a CJS build would no longer be needed for CJS consumers and would help support the ecosystem moving to ESM.This package currently supports Node 18, so it would require bumping the
enginesfield slightly and would be a breaking change