You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adopt the generic index.cjs shim (v4.46.0 package-layout convention) #209
priority: lowMinor issue or improvement that can be deferred without impactstatus: implementedBuilt and deployed, but not yet fully tested/verifiedtype: enhancementAn improvement to existing functionality without adding a new feature
docs/conventions/package-layout.md as of CLDMV/.github v4.46.0 (#584, resolving CLDMV/.github#589) makes src/index.cjs one generic drop-in file, examples/package-layout/src/index.cjs in CLDMV/.github: after the Node version guard it returns the single exported value when the ESM entry has one distinct value (aliases count once), otherwise the module object import gives. Hand-written .default unwraps and attached aliases go away.
fix-headers 2.5.1 ships module.exports = require("./index.mjs").default and exports a single value, so the shim returns exactly what require() returns today — no consumer-visible change, so this ships as a minor, not a major (the majors are for packages whose require() result changes: uuid, wisp, node-android-tv-remote, holdmytask).
The change: replace the hand-written unwrap with the shim file (only the package name and Node floor in its message differ per repo), keep it a sibling of src/index.mjs, and keep the build copying it verbatim to dist/index.cjs.
priority: lowMinor issue or improvement that can be deferred without impactstatus: implementedBuilt and deployed, but not yet fully tested/verifiedtype: enhancementAn improvement to existing functionality without adding a new feature
Activity
feat: adopt the generic CJS shim (#212)
cldmv-bot commentedon Nov 27, 2026
Marked
status: implemented— resolved by #212, merged intonext. This issue closes automatically when that work ships to the default branch.release: v2.6.0 - adopt the generic CJS shim