The merve dependency is used within the Node.js ESM implementation to detect the named exports of a CommonJS module.
It is used within
node:internal/modules/esm/translators
where it is exposed via an internal binding.
The tools/dep_updaters/update-merve.sh script automates the update of the
merve dependency. It fetches the latest release from GitHub and updates the
files in the deps/merve directory.
To update merve manually:
- Check the merve releases for a new version.
- Download the latest single-header release.
- Replace the files in
deps/merve(preservingmerve.gyp). - Update the link to merve in the list at the end of doc/api/esm.md to point to the updated version.
- Create a PR adding the files in the deps/merve that were modified.
If updates are needed to merve for Node.js, first PR those updates into anonrig/merve, request a release and then pull in the updated version once available.