Repository navigation
Lasm 0.7.0
Lasm 0.7.0
A minor release with breaking changes. Upgrade with npm install -D @lasm/cli@0.7.0; ^0.6.1 does not pick it up.
What breaks: Lasm.Web and its JavaScript module lasm:web are deleted, replaced by the generated browser tier import Lasm.JS.Web.Browser (#193, #197); Lasm.Web.App, the mount glue, moved unchanged to Lasm.UI.Mount, Lasm.UI apps keep their API, and the table under "Old call → new call" maps every Lasm.Web function to its replacement. Lasm.Fastly is generated from Fastly's host ABI (#194), so its five hand-written store calls (configGet, secretGet, secretText, kvGet, kvGetText) are gone; the first section below maps each to the generated calls. lasm init --template fullstack refuses the function platforms it could not deploy to (#168, #184). Unused code was removed (#182, #186, #195, #199).
What's new: platform bindings generated from each platform's own interface definitions. Lasm.Fastly covers 244 of the 252 functions of Fastly Compute's host ABI (#194); Lasm.WASI.Http binds the wasi:http proxy world from the WASI 0.2.12 WIT (#202); Lasm.JS.Web.Browser gives the DOM, HTML elements, Window, UI events, canvas 2D and WebSocket from the specifications' WebIDL (#193); Lasm.JS.Node binds Node's own modules from Node's documentation JSON (#192); and Lasm.JS.Deno and Lasm.JS.Bun bind Deno.serve and Bun.serve, with the Node server path through @hono/node-server (#203). A Lasm.JS object field named __proto__ now crosses as a field, and the repr limits of large values on WASI, the edge and the browser are documented (#179, #183).
Lasm.Fetch still ships in 0.7.0 and works as before on every target; it is scheduled for removal in a later release. Its replacements are Lasm.JS.Web.Fetch (Node, Bun, Deno, the edge and browsers), Lasm.WASI.Http (--target wasi-http) and Lasm.Fastly (--target fastly); the sections below show how a program moves.
Breaking: Lasm.Fastly is generated from Fastly's host ABI
-
Lasm.Fastlyis generated from Fastly's host ABI.import Lasm.Fastly
now binds Fastly Compute's whole host ABI (244 of its 252 functions:
requests, responses, bodies, backends, async I/O, Config, Secret and KV
Stores with metadata, generations and listing, the cache APIs, geolocation,
device detection, rate limiting, ACLs, logging), generated from the witx
that Viceroy v0.21.1 ships, one module per witx module
(Lasm.Fastly.HttpReq,Lasm.Fastly.KvStore, …). Every call is an
EIO FastlyStatusaction that lifts intoIO(a failure is theIO.Error
Fastly host call failed: <status>);found?turns the host's$noneinto
Option.none. In builds other than--target fastlyevery call fails with
FastlyStatus.unsupported. The five hand-written store calls are gone:Before Now ( open Lasm.Fastly)Lasm.Fastly.configGet store key : IO (Option String)found? (ConfigStore.get (← ConfigStore.open store) key)Lasm.Fastly.secretGet store key : IO (Option ByteArray)match ← found? (SecretStore.get (← SecretStore.open store) key) with | some s => some <$> SecretStore.plaintext s | none => pure none(aString)Lasm.Fastly.secretText store key : IO (Option String)as secretGetLasm.Fastly.kvGet store key : IO (Option ByteArray)let (body, metadata, generation, error) ← KvStore.lookupWaitV2 (← KvStore.lookup (← KvStore.open store) key {} {});error == .ok, then readbodywithHttpBody.read body 65536until it returns no bytes;.notFoundfor a missing keyLasm.Fastly.kvGetText store key : IO (Option String)as kvGet, thenString.fromUTF8?Lasm.Fastly.kvPut store key bytes : IO Unit`let b ← HttpBody.new; discard < Lasm.Fastly.kvDelete store key : IO UnitKvStore.deleteWait (← KvStore.delete (← KvStore.open store) key {} {})(aKvError;.notFoundfor a missing key)Lasm.Fetch.serve handleon--target fastly(still works)HttpReq.bodyDownstreamGetfor the request and its body,HttpResp.new,HttpResp.sendDownstream resp body 0(examples/fastly)Lasm.Fetch.fetch req { backend := some "origin" }on Fastly (still works)HttpReq.send req body "origin", orHttpReq.sendAsyncthenHttpReq.pendingReqWaitLasm.Fetch.fetch reqwith a dynamic backend on Fastly (still works)HttpReq.registerDynamicBackend name "host:port" {} {}, thenHttpReq.send req body nameLasm.KV.openon Fastly works as before (it now usesLasm.Fastly.KvStore).
Guide and mapping rules: docs/WASI_FASTLY_BINDINGS.md.
New
-
Lasm.WASI.Http: the wasi:http proxy world, generated from the WASI
0.2.12 WIT.import Lasm.WASI.Httpbinds every stable function of
wasi:http/types,wasi:http/outgoing-handler,wasi:io/{error,poll,streams}
andwasi:clocks/monotonic-clock(90), one module each
(Lasm.WASI.Http.Types,Lasm.WASI.Io.Streams, …), and the export
wasi:http/incoming-handler.handleasIncomingHandler.serve. For
lasm build --target wasi-http; elsewhere each call fails. A wasi-http
program written onLasm.Fetch(which keeps working there until it is
removed) moves like this (open Lasm.WASI.Http Lasm.WASI.Http.Types):Lasm.Fetchon--target wasi-httpLasm.WASI.Httpdef main := Lasm.Fetch.serve handledef main := IncomingHandler.serve fun request out => …(one request per instance)req.method,req.urlrequest.method(aMethod:.get, …,.other "PURGE"),request.pathWithQuery,request.scheme,request.authorityreq.header? "x-a"(← request.headers).get "x-a"(anArray ByteArray: every value)req.body/ streamed request bodieslet .ok body ← request.consume,let .ok s ← body.stream, thens.blockingRead 65536until.error .closed;IncomingBody.finish bodyreturn { status, headers, body }let r ← OutgoingResponse.new (← Fields.fromList …);r.setStatusCode status;let .ok b ← r.body;ResponseOutparam.set out (.ok r);let .ok s ← b.write;s.blockingWriteAndFlush chunk(≤ 4096 bytes a call);s.drop;OutgoingBody.finish b nonestreamed responses the same: the outparam is set first, then chunks are written Lasm.Fetch.fetch reqOutgoingRequest.new,setMethod/setScheme/setAuthority/setPathWithQuery,OutgoingHandler.handle request none, thenfuture.subscribe→pollable.block→future.get(some (.ok (.ok response))); several at once throughLasm.WASI.Io.Poll.pollEvery result is the WIT's own (
IO (Except HeaderError Unit), …); handles
are dropped withR.drop. Guide and mapping rules:
docs/WASI_FASTLY_BINDINGS.md.examples/wasi-httpanswers the routes of
examples/fetchon these bindings. -
Lasm.WASI.Http's conformance checks (
test/fixtures/wasi-http-abi, 35) run
underwasmtime serve. -
examples/fastly: an HTTP server on Fastly's own host calls, answering the
routes ofexamples/fetchplus the stores, checked under Viceroy in CI. -
Lasm.Fastly's conformance checks (
test/fixtures/fastly-abi) run under
Viceroy, and Viceroy checks every bound host function's import. -
Node's own modules from Lean:
Lasm.JS.Node.import Lasm.JS.Nodegives
typed bindings of Node's server-essential modules, as Node 24's docs define
them: the file system's promises API (fsPromises.readFile,writeFile,
readdir,mkdir,stat,rm,openandFileHandle, …),path,os,
process(argv,env,cwd,exit,platform, …), Buffer's encodings
(Buffer.from,Buffer.toStringwithhex,base64,latin1, …,
buffer.isUtf8,transcode),crypto(createHash,createHmac,
randomBytes,randomUUID,timingSafeEqual, andscrypt,pbkdf2and
hkdfasAsync),child_process(spawn, andexecFileasAsync),
EventEmitterandevents.once, and conversions between Node streams and
web streams. They are generated from Node's API docs (pinned to Node.js
24.22.2) with the same rules asLasm.JS.Web, run on Node 24 and 26, and on
Bun and Deno where their Node compatibility implements them
(JS_BINDINGS.md).
node:httpandnode:netare not bound: Node servers go through an npm adapter. -
Servers on Deno and Bun from Lean:
Lasm.JS.DenoandLasm.JS.Bun.
Deno.serve(with its options, TLS,shutdownandfinished) andBun.serve
(withfetch,port,hostname,stop,requestIP,reload, …) take a Lean
handler from a Lasm.JS.WebRequestto aResponse:
Deno.serveWithOptions { port := some 8000 } (← Deno.ServeHandler.ofFn fun request _ => handle request).
They are generated from Deno's and Bun's own TypeScript declarations (Deno
2.9.6, Bun 1.4.4) with the same rules asLasm.JS.Web; experimental members
are left out. On Node, serve the same handler through an npm adapter such as
@hono/node-server, bound with@[js]
(JS_BINDINGS.md). -
Bun and Deno builds load Node's built-in modules (
Lasm.JS.require "node:os")
without listing them inpackage.json'slasm.edge.modules.
Breaking: Lasm.Web is replaced by the generated Lasm.JS.Web.Browser
import Lasm.JS.Web.Browser gives the web platform's own APIs in a browser,
generated from the WebIDL of the DOM, HTML, CSSOM, UI Events, Pointer Events and
WebSockets specifications (with tier 1's fetch, timers, URL, crypto,
console, …): Document, Element, the HTML elements (HTMLInputElement,
HTMLSelectElement, HTMLFormElement, HTMLCanvasElement, …), Window,
Location, History, Storage, the UI events (MouseEvent, KeyboardEvent,
PointerEvent, …), MutationObserver, canvas 2D and WebSocket. Names and
arguments are the standards' own, so MDN documents them. Guide and mapping:
docs/JS_BINDINGS.md, "The browser tier".
The hand-written Lasm.Web and its JavaScript module lasm:web are removed.
Lasm.Web.App (the loader's mount glue) moved unchanged to Lasm.UI.Mount;
Lasm.UI keeps its API. Two behaviours of Lasm.Web have no generated
counterpart:
- Unmount cleanup.
Lasm.Webremoved an app's listeners, timers, animation
frames and sockets when it was unmounted. The generated bindings act on the
page directly: remove what the app added inLasm.UI.Mount.onUnmount
(removeEventListener,clearTimeout,cancelAnimationFrame,close).
Lasm.UIapps are unaffected (their listeners belong tolasm:ui-dom). - Batching.
Context2D.drawran a list of drawing commands in one call into
JavaScript, andEvent.inforead the usual event fields in one call; with the
generated bindings each method or attribute is one call.
Old call → new call
With import Lasm.JS.Web.Browser and open Lasm.JS Lasm.JS.Web. doc is
← document. A handle of a more specific interface is made from the same object:
({ val := e.val } : HTMLInputElement) (unchecked, like a TypeScript cast). A
String coerces to the Trusted Types unions (setAttribute "title" "x"), an
interface to its parent (an Element where a Node is expected), and an
argument union's other member types likewise.
Document and nodes (Lasm.Web.Dom)
Lasm.Web |
Lasm.JS.Web.Browser |
|---|---|
window, document |
window, document |
createElement tag |
doc.createElement tag |
createElementNS ns tag, svgNamespace |
doc.createElementNS (some "http://www.w3.org/2000/svg") tag |
createTextNode s |
doc.createTextNode s |
createFragment |
doc.createDocumentFragment |
getElementById id |
doc.getElementById id |
querySelector s, querySelectorAll s |
doc.querySelector s, doc.querySelectorAll s (a NodeList: length, item i, values) |
node.querySelector s, node.querySelectorAll s |
element.querySelector s, element.querySelectorAll s |
parent.appendChild child |
`discard < |
parent.append #[a, b] |
parent.append #[(a : Node), (b : Node)] |
parent.insertBefore child ref |
`discard < |
parent.removeChild child |
`discard < |
node.remove |
element.remove (on Element, CharacterData, DocumentType) |
node.replaceWith other |
element.replaceWith #[(other : Node)] |
parent.replaceChildren #[…] |
parent.replaceChildren #[…] |
node.textContent, node.setTextContent s |
node.textContent : IO (Option String), node.setTextContent (some s) |
parentNode, parentElement, firstChild, lastChild, nextSibling, previousSibling |
the same names |
node.childNodes : IO (Array Node) |
(← node.childNodes).values |
node.contains other, node.cloneNode deep |
node.contains (some other), node.cloneNode (some deep) |
isConnected, nodeName, tagName |
the same names |
element.children : IO (Array Element) |
element.children (an HTMLCollection: length, item i) |
getAttribute, setAttribute, removeAttribute, hasAttribute, toggleAttribute e n force |
the same names (toggleAttribute n force) |
setAttributes #[(k, v), …] |
one setAttribute k v each |
id, setId |
id, setId |
data key, setData key v |
getAttribute ("data-" ++ key), setAttribute ("data-" ++ key) v |
addClass #[…], removeClass #[…], toggleClass n force, hasClass n |
(← e.classList).add #[…], .remove #[…], .toggle n force, .contains n |
setClassName s |
setClassName s |
setStyle p v, setStyles #[…], removeStyle p, style p |
on an HTMLElement: (← e.style).setProperty p v, .removeProperty p, .getPropertyValue p |
innerHTML, setInnerHTML s |
innerHTML (a TrustedHTMLOrDOMString: .domString s), setInnerHTML s |
value, setValue, checked, setChecked |
on HTMLInputElement, HTMLTextAreaElement, HTMLSelectElement: value, setValue, checked, setChecked |
focus, blur, click |
on an HTMLElement: focus, blur, click |
scrollIntoView smooth |
scrollIntoView (some (.scrollIntoViewOptions { behavior := some .smooth })) |
rect : IO Rect |
getBoundingClientRect (a DOMRect: x, y, width, height, top, right, bottom, left) |
prop name, setProp name v |
the interface's own attribute (HTMLInputElement.disabled, HTMLSelectElement.selectedIndex, HTMLImageElement.naturalWidth, …), or e.val.get name / e.val.set name v (Lasm.JS) |
doc.body, doc.head |
doc.body, doc.head (Option HTMLElement, Option HTMLHeadElement) |
doc.title, doc.setTitle, doc.activeElement |
the same names |
Events (Lasm.Web.Events)
Lasm.Web |
Lasm.JS.Web.Browser |
|---|---|
target.on type f options, addEventListener |
let l ← EventListener.ofSyncFn f; target.addEventListener type (some l) options (options some (.addEventListenerOptions { once := some true })) |
Listener.remove |
target.removeEventListener type (some l) |
dispatchEvent |
dispatchEvent |
Event.create type bubbles cancelable |
Event.new type (some { bubbles := some b, cancelable := some c }) |
Event.custom type detail |
CustomEvent.new type (some { detail, bubbles := …, cancelable := … }) |
e.info |
the fields of the event's interface: ({ val := e.val } : KeyboardEvent).key, .code, .repeat, .shiftKey, …; MouseEvent clientX, offsetX, button, …; WheelEvent deltaX, deltaY |
e.type, e.key |
e.type, ({ val := e.val } : KeyboardEvent).key |
e.targetValue, e.targetChecked, e.targetElement |
e.target, made the input's handle: ({ val := t.val } : HTMLInputElement).value |
target, currentTarget, preventDefault, stopPropagation, stopImmediatePropagation, defaultPrevented |
the same names |
e.detail |
({ val := e.val } : CustomEvent).detail |
e.prop name |
the interface's attribute, or e.val.get name |
ListenerOptions |
AddEventListenerOptions |
Timers (Lasm.Web.Timers)
Lasm.Web |
Lasm.JS.Web |
|---|---|
setTimeout ms f, setInterval ms f |
setTimeout (← JSFunction.ofSyncFn fun _ => do f; pure .undefined) (some ms) (an Int id), likewise setInterval |
clearTimeout t, clearInterval t |
clearTimeout (some t), clearInterval (some t) |
requestAnimationFrame f, cancelAnimationFrame |
requestAnimationFrame (← FrameRequestCallback.ofSyncFn f), cancelAnimationFrame |
queueMicrotask f |
queueMicrotask (← VoidFunction.ofSyncFn f) |
nextFrame : Async Float |
an IO.Promise resolved by a requestAnimationFrame callback, then Std.Async.await |
now |
(← performance).now |
fetch, URLs and forms (Lasm.Web.Fetch, Lasm.Web.Url): tier 1's fetch,
Request, Response, Headers, FormData, URL, URLSearchParams, AbortController.
Lasm.Web |
Lasm.JS.Web |
|---|---|
fetch url { method, headers, body := .text s / .bytes b / .form f / .params p, signal } |
fetch url (some { method := some "POST", headers := some (.record ⟨#[…]⟩), body := some s, signal := some sig }) (body takes a String, ByteArray, FormData, URLSearchParams, Blob or stream) |
body := .json d |
body := some (← jsonString d) with JSON.stringify (an @[js "globalThis" "JSON.stringify"] binding) and a content-type header |
Response.info, status, ok, header n |
status, ok, statusText, url, redirected, type, (← r.headers).get n, (← r.headers).entries |
Response.text, json, bytes |
text, json, bytes |
fetchText, fetchJson |
fetch, check ok, then text or json |
AbortController.create, signal, abort |
AbortController.new, signal, abort |
AbortSignal.timeout ms |
AbortSignal.timeout ms |
Url.parse url base (a record of fields) |
URL.parse url base (a URL: href, origin, protocol, …, searchParams) |
SearchParams.create pairs, parse s |
URLSearchParams.new (some (.sequence …)), URLSearchParams.new (some s) |
SearchParams.get, getAll, has, set, append, delete, entries, toString |
the same names |
encodeURIComponent, decodeURIComponent |
ECMAScript, not WebIDL: (← global).callMethod "encodeURIComponent" #[.string s] String |
FormData.create, ofForm form |
FormData.new, FormData.new (some form.val) |
FormData.append, appendBytes n b file type, get, entries |
append, appendWithBlobValue n (← Blob.new (some #[b]) (some { type := some type })) (some file), get, entries (a FormDataEntryValue: .usvString or .file) |
FormValue.bytes |
File.bytes |
Storage, location and history (Lasm.Web.Storage, Lasm.Web.History)
Lasm.Web |
Lasm.JS.Web.Browser |
|---|---|
localStorage, sessionStorage |
localStorage, sessionStorage |
Storage.get, set, remove, clear, length, key |
getItem, setItem, removeItem, clear, length, key |
Storage.keys |
key i for i < length |
location : IO Location (a record) |
location : IO Location (an object: href, pathname, search, hash, …, read when called) |
Location.assign, replace, reload, setHash |
(← location).assign, .replace, .reload, .setHash |
History.pushState url state, replaceState url state |
(← history).pushState state "" (some url), .replaceState state "" (some url) |
History.back, forward, go, state, length |
(← history).back, .forward, .go (some n), .state, .length |
onPopState f, onHashChange f |
(← window).addEventListener "popstate" … (a PopStateEvent: state), "hashchange" (a HashChangeEvent: newURL) |
WebSocket (Lasm.Web.WebSocket)
Lasm.Web |
Lasm.JS.Web.WebSocket |
|---|---|
WebSocket.connect url protocols |
WebSocket.new url (some (.sequence protocols)), then setBinaryType .arraybuffer for bytes |
send text, sendBytes b |
send text, send b |
close code reason |
close (some code) (some reason) |
readyState (an inductive) |
readyState (a Nat: WebSocket.CONNECTING, OPEN, CLOSING, CLOSED) |
bufferedAmount, protocol |
the same names |
onOpen, onError |
addEventListener "open", "error" |
onMessage f (a Message) |
addEventListener "message"; ({ val := e.val } : MessageEvent).data is a .string, or with binaryType arraybuffer an ArrayBuffer (.ref b _: Support.arrayBufferBytes b) |
onClose f (a CloseInfo) |
addEventListener "close"; ({ val := e.val } : CloseEvent).code, .reason, .wasClean |
Crypto and console (Lasm.Web.Crypto, Lasm.Web.Console): tier 1.
Lasm.Web |
Lasm.JS.Web |
|---|---|
Crypto.randomBytes n |
(← crypto).getRandomValues (ByteArray.mk (Array.replicate n 0)) (at most 65,536 bytes a call), or IO.getRandomBytes n |
Crypto.randomUUID |
(← crypto).randomUUID |
Crypto.digest alg data, sha256 |
(← (← crypto).subtle).digest alg data (Async ByteArray) |
Crypto.hex |
not a web API: write it (four lines) |
Console.log, info, warn, error, debug, logText |
console.log #[…], console.info, console.warn, console.error, console.debug |
Canvas (Lasm.Web.Canvas)
Lasm.Web |
Lasm.JS.Web.Canvas |
|---|---|
canvas.context2d alpha |
({ val := e.val } : HTMLCanvasElement).getContext "2d" (a Value: { val := v : CanvasRenderingContext2D }); options as Data |
ctx.draw #[.fillStyle s, .fillRect x y w h, …] |
one call each: ctx.setFillStyle s, ctx.fillRect x y w h, setStrokeStyle, setLineWidth, setFont, setTextAlign, setTextBaseline, setGlobalAlpha, setLineCap, setLineJoin, strokeRect, clearRect, beginPath, closePath, moveTo, lineTo, rect, arc, quadraticCurveTo, bezierCurveTo, fill, stroke, fillText, strokeText, save, restore, translate, rotate, scale, setTransform, resetTransform, drawImage |
measureText (width, ascent, descent) |
measureText (a TextMetrics: width, actualBoundingBoxAscent, actualBoundingBoxDescent, …) |
imageData x y w h |
(← ctx.getImageData x y w h).data |
putImageData bytes x y w h |
ctx.putImageData (← ImageData.newWithData bytes w (some h)) x y |
The app (Lasm.Web.App): moved unchanged to Lasm.UI.Mount
(import Lasm.UI.Mount): Lasm.Web.App.root → Lasm.UI.Mount.root Element
(the element as any handle type), and flags, hydrating, target, port,
Port.send, Port.subscribe, Port.subscribeAsync, onMessage,
onMessageAsync, onUnmount, hotState, onHotSave under Lasm.UI.Mount.
Helpers: Lasm.Web.background w (start Async work from a handler) →
discard (w.asTask) or Std.Async.background inside Async; Lasm.Web.callback
→ the callback interface's ofSyncFn (EventListener.ofSyncFn, …) or
Lasm.JS.Function.ofSyncFn.
Fixes
lasm init --template fullstackrefuses the function platforms (#168). With--deploy lambda,lambda-zip,lambda-edge,vercel,netlify,azureorgcfit used to write a project that could not deploy there (abuild:undefinedscript, novercel.json,netlify.tomlorDockerfile.lambda, no platform dependency). It now stops with a message naming the templates the target takes and the targets the template takes:workers,vercel-edge,netlify-edge,deno-deploy,fastly,wasi-httpandspin. Every other refused template and target pair names its alternatives the same way. The other server templates keep every function platform.- Lasm.JS: an object field named
__proto__crosses as a field. A Lean
Data.objectwith a__proto__key used to set the JavaScript object's
prototype instead (on Node and on the edge); it is now an own property, as
JSON.parsemakes it. The JavaScript reader also refuses what Lean's reader
refuses, so the two agree on every input: text that is not UTF-8, and
bigint text other than Lean's (String.toInt?). Lean never writes either,
so no program sees a difference. Found by the newlasm-js-wirefuzz target,
which checks the JavaScript codec against Lean's on every input
(docs/TESTING.md, "Fuzzing at the boundaries").
Documentation
reprof a large value on WASI, the edge and the browser (#179). Lean's formatter recurses about twice per element, soreprof an Array prints at most 1,801 elements on wasmtime's default stack, 3,233 to 4,254 on the edge engines (V8, as in Chromium; SpiderMonkey, as in Firefox; Bun; WebKit was not measured), and 3,914 onnode:wasi; Node and native Lean print millions. The engine's stack is what stops it, never the C stack, so Lasm cannot raise it on those platforms (on wasmtime,-W max-wasm-stackdoes).toStringis iterative and prints 100,000 elements everywhere. FUNDAMENTAL_LIMITATIONS.md has the numbers, andscripts/ci/stack-depth.mjsmeasures them on every target.
Repository
- Housekeeping (no behaviour change). The repository's root
lean-toolchainnames Lean 4.35.0 instead of the retired 4.32.0 (it is read only by editors and by pin-less fixtures; the published@lasm/cliis unchanged), eight Node diagnostic reports committed by accident are deleted (and ignored from now on), and docs/RELEASE.md no longer describes the removednpm run test:release. - Unused code removed (no behaviour change). The standalone Wasmtime preview, which the
lasmCLI never reached (src/wasmtime-*.mjs,src/application-metadata*.mjs; 1,384 lines of the published@lasm/cli), the Lean 4.32src/toolchain.mjsandsrc/native-pthread-factory.cjs, and dead code that mutation testing found (#186). In the repository only: about 11,900 lines of unreferenced scripts, integration programs and experiments,examples/lean-server-latest, thevitestdependency, and 70 MB of unreferenced evidence (#195). Removed files are in the git history.
Example apps
- Tandem pushes operations a retried sync carried (#190, #200). Found by deterministic simulation: when a commit landed, reported an error and the check of whether it landed failed too, the client's retry carried those operations with newly typed ones, and the server pushed only the new ones, so idle tabs never received the others. The server now pushes its reply whenever any of a request's operations were already in the log. Porter's simulated world had oracle bugs, not Porter bugs (#189); both are fixed, with regression seeds in CI. The example apps pin the published
@lasm/cliand move to 0.7.0 separately.