ɛ∞ɜɛ∞ɜ

Learn · Lasm · Releases · 2026-11-16

AI-generated. Written by AI (Claude) from the Lasm repository and published automatically. Source · Report a mistake

Lasm 0.9.0

A minor release with many breaking changes: the first release of Stage 0, which settles Lasm's public API before 1.0. Upgrade with npm install -D @lasm/[email protected]; ^0.8.0 does not pick it up. Every breaking change has a migration note below, under "Breaking changes and migration".

What breaks: the function platforms (AWS Lambda and Lambda@Edge, Vercel, Netlify, Azure Functions, Google Cloud Functions) no longer run an HTTP server inside the function; the program publishes a fetch handler with exportDefault and the generated platform file calls it directly (#222). The fetch and hono templates write one entry module per serving model, the Lambda container image is Lambda's own Node image, and HTTP on WASI is wasi-http only (#322); the fullstack template speaks plain REST and keeps its todos through each platform's own store (#331, #344). Lasm.RPC is deleted (#341). On the CLI, lasm build takes one Lean source and names its output only with --output, --output names the package on function platforms, lasm version is gone, and lasm init --deploy lambda now writes the .zip setup (#304, #316). The generated bindings follow one set of rules, which renames two FormData methods and makes Node's integer arguments Nat (#301). Lasm.UI is cut to its core: its HTTP, storage, focus, title and other browser commands are gone, and effects go through Cmd.task with the generated browser bindings (#311). Lasm.JS.Web is the whole web platform, one module per spec with no umbrella module, and Lasm.JS.Web.Browser is gone (#319); lasm build --target refuses a web API the target lacks unless the program checks for it with the API's guard X? (#319, #337); Lasm.JS.Node, Lasm.JS.Deno, Lasm.JS.Bun and Lasm.JS.Cloudflare have no umbrella modules either, so every program imports the binding modules it uses (#317, #320, #329). A few generated names change (#301, #307, #312, #317, #319, #320).

What's new: Node.serve, a Lean server on Node shaped like Bun.serve, with no npm dependencies (#222); Lasm.JS.Cloudflare, every API of Cloudflare Workers' own declarations (KV, D1, R2, Durable Objects, Queues, Workers AI, Vectorize, Hyperdrive and the rest), with the Worker's env typed (#216, #320); Lasm.JS.Node is every documented Node core module, with typed event listeners (#220, #317); the whole web platform from Lean: IndexedDB, WebGL, WebGPU, Web Audio, WebRTC and every other spec of webref (#319); Lasm.JS.Deno and Lasm.JS.Bun are the whole Deno and Bun namespaces, with Deno KV, bun:sqlite and WebSockets in Bun.serve (#307, #312); Lasm.JS binds the project's own JavaScript files and defines JavaScript classes from Lean (#309); checked downcasts (I.cast?) on every generated interface (#301); helpers for whole bodies and responses in Lasm.WASI.Http (#306). Generated binding modules outside a small core set now ship as Lean source and compile on first import, so the package does not grow with them (#313, #321), and Lake builds them in the editor too (#332).

Lasm.Fetch and Lasm.KV still ship in 0.9.0; their removal is decided and follows in a later release. Every API decision is recorded, with its alternatives, in docs/API_DECISIONS.md and the per-milestone files in docs/api/decisions/, each pending Jordan's sign-off at the end of its milestone.

Breaking changes and migration

Function platforms call the program's fetch handler directly (#222)

Templates serve with one entry module per platform kind (#322)

Migrating a project made by 0.8.0's fetch template:

Before Now
Main.lean: handle, then if ← onEdge then exportDefault … else serveNode Handler.lean: handle; Main.lean: def main := Node.serve { fetch := Handler.handle }; Export.lean: def main := exportDefault Handler.handle
"build:workers": "lasm build Main.lean --target workers" (and the other edge, Bun, Deno and function targets) lasm build Export.lean --target …
Cgi.lean, "build:wasi" WasiHttp.lean, "build:wasi-http"

The CLI (#304, #316, #318)

Generated bindings follow one set of rules (#301)

Lasm.JS.Web is the whole web platform, one module per spec (#319)

Lasm.JS.Node, Lasm.JS.Deno, Lasm.JS.Bun and Lasm.JS.Cloudflare have no umbrella modules (#317, #320, #329)

Lasm.UI is cut to its core; browser effects go through Cmd.task (#311)

Lasm.JS.Deno and Lasm.JS.Bun (#307, #312)

Lasm.RPC is deleted (#341)

Lake projects require Lasm's library as a package (#332)

Lasm.WASI.Http exports respond (#306)

New

Node.serve (#222)

Lasm.JS.Cloudflare, Cloudflare Workers' runtime APIs (#216, #320)

Lasm.JS core (#309)

Standard bindings: Node, Deno and Bun (#220, #307, #312)

The whole web platform from Lean (#319)

Generated bindings (#301)

Lasm.WASI.Http (#306)

Changes

Fixes

Internals (no change to how programs build or run)

Sources

More from Learn LasmAbout Lasm