Skip to content

v0.12.1 — ESM Host Compatibility Fix

Latest

Choose a tag to compare

@starpincer starpincer released this 02 Jun 03:53

v0.12.1 — ESM Host Compatibility Fix

Patch release for host projects that use "type": "module".

Fixed

  • Homunculus runtime scripts now ship with homunculus/scripts/package.json containing { "type": "commonjs" }.
  • This prevents Node.js from treating homunculus/scripts/*.js as ESM inside host projects whose root package.json sets "type": "module".
  • node homunculus/scripts/evaluate-session.js now works in ESM host projects.

Verified

  • Fresh init smoke test in a "type": "module" host project.
  • Upgrade smoke test confirms homunculus/scripts/package.json is added for existing installs.
  • Direct script invocation no longer fails with require is not defined.