v0.1.3 — Multi-Target JS Binding
What's New
Multi-Target JavaScript Binding (Phase 10)
npm install icl-runtime now works out of the box in all JavaScript environments:
- Node.js — CommonJS (
require) and ESM (import) both supported - Bundlers — Vite, Webpack, Rollup — zero config WASM handling
- Browsers —
<script type="module">with asyncinit()
Changes
- Build 3 wasm-pack targets: nodejs (CJS), bundler (ESM), web (browser)
- Cross-platform Node.js build script (
build.mjs) - Conditional
exportsin package.json for automatic environment detection - ESM wrapper for Node.js
importsupport - All versions synced to 0.1.3 (Cargo workspace, CLI, Python, JS)
Install
npm install icl-runtimeFull Changelog: v0.1.2...v0.1.3