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 (breaking: require() returns the module object) #85
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
CLDMV/.github v4.46.0 makes src/index.cjs one generic file for every library (examples/package-layout/src/index.cjs, #589). After the Node version guard it returns the single exported value when the ESM entry has one distinct value, and the module object import gives otherwise.
Today src/index.cjs returns esm.default and attaches default, wisp and wispSync to it. The ESM entry exports more than one value, so with the shim require("@cldmv/wisp") returns the module object: .default, .wisp and .wispSync keep working, but require(x)(…) breaks. Ships as a major, with the upgrade note const { wisp } = require("@cldmv/wisp") (or .default).
Change: replace src/index.cjs with the shim, keep the build copying it verbatim to dist/index.cjs, and update the CJS test.
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!: switch the CJS entry to the generic shim (#86)
cldmv-bot commentedon Nov 28, 2026
Marked
status: implemented— resolved by #86, merged intonext. This issue closes automatically when that work ships to the default branch.docs: add the v2.0.0 changelog and promote What's New (#88)
release: v2.0.0 - switch the CJS entry to the generic shim