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) #120
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 the default createRemote and attaches createRemote, createAndroidTVRemote and default. The ESM entry exports more than one value, so with the shim require() returns the module object. Named properties that index.mjs exports keep working; require(x)(…), and any attached alias that index.mjs doesn't export, break. Ships as a major, with the upgrade note const { default: createRemote } = require(…) or the named export.
Change: replace src/index.cjs with the shim, make sure every name callers need is a real ESM export, 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 (#121)
cldmv-bot commentedon Nov 28, 2026
Marked
status: implemented— resolved by #121, merged intonext. This issue closes automatically when that work ships to the default branch.release: v3.0.0 - switch the CJS entry to the generic shim