v0.5.10
🐛 Bug Fixes
ESM/CJS Compatibility Fix
- Fixed critical issue where
clanker upgradefailed with ESM modules containing top-level await - Changed wrapper script generation to use
import()instead ofrequire() - Resolves
Error [ERR_REQUIRE_ASYNC_MODULE]when running upgrade command
📝 Changes
- Updated self-updater to properly handle ES modules
- Added error handling for module loading failures
- Improved compatibility with modern JavaScript module systems
🔧 Technical Details
The upgrade command was failing because the wrapper script used require() which cannot load ES modules with top-level await. This has been fixed by using dynamic import() which properly handles all module types.
📦 Installation
npm install -g @ziggler/clanker@0.5.10Or upgrade existing installation:
clanker upgrade