Features
-
Pointer Capture API bindings added to
Dom_html.element(merged).setPointerCapture,releasePointerCapture, andhasPointerCaptureare now typed methods;pointerEventgainsgetPredictedEvents,altitudeAngle, andazimuthAngle. #2403 -
Lwt_js_events.load/error/abortaccept any#Dom_html.element(merged). The.mlirestriction toimageElementis removed; the implementation was already generic. Backward compatible. #2404 -
Experimental
--esmflag for ES module output (open, RFC).js_of_ocaml compile --esm,build-runtime --esm, andlink --esmemit.mjsfiles with named imports/exports instead of IIFE globals.link --esm --bundleproduces a single tree-shaken module. Separate-compilation link step is faster than script concatenation when per-unit files are already on disk. #2402 -
Web Audio and Media Capture bindings (open). Adds
AudioContext, the full node-graph hierarchy,AudioParamautomation,MediaStream/MediaStreamTrack, andnavigator.mediaDevices. CompletesDom_html.mediaElementwith text tracks,srcObject, and missing event listeners. #2401
Compatibility and Releases
-
Single linear memory for Safari (open). The runtime previously declared four separate linear memories; Safari rejects multi-memory modules. All memories now share one. #2405
-
Wasm FFI "bad cast" root cause identified (closed, no fix in this repo). A
Js.Unsafe.coerceread in ocsigen-toolkit inferredintfor a fractionalpageYOffset, trapping at the wasm FFI boundary. Fix lands in #271. AnyJs.Unsafe.coerceread typed asint/bool/floatis a latent wasm trap. #2406