Features
-
js_of_ocaml 6.4.0 released (2026-06-21). Adds OCaml 5.5 support, WASI 0.1 target,
Promise/Fetch/Abortmodules, OxCaml backend, quickjs-ng support, and dynlink/toplevel on Wasm. (release) -
Breaking changes in 6.4.0:
mediaElement.playreturnsunit Promise.t; SVG 1.1getTransformToElementremoved; GeckoMouseScrollEvent/_DOMMouseScrollbindings dropped;event_listenerreturn type is nowbool t optdef;Intl.Collator.comparereturnsJs.number_t; several method names renamed (Typed_array._BYTES_PER_ELEMENT_,WebGL._MAX_RENDERBUFFER_SIZE_,canvasElement.toDataURL_compression). (release) -
Dom_svgaligned with SVG 2 (#2256). AddsgraphicsElement/geometryElementparents,SVGFE*filter primitives,markerElement; every SVG element is now an event target. Several properties retyped toopt/optdef(breaking). -
Cosmetic minification in compact mode (#2257).
!0/!1booleans, stripped leading zeros in fractions, normalised exponents, backtick strings when they reduce escapes.--prettyoutput unchanged. -
Faster variable-naming and free-variable passes (#2321). Byte-identical output; ~20% speedup on the coloring phase for deeply-nested code.
Fixes
-
Lib binding corrections (#2350).
CSS.Anglenow parses"45deg";Regexp.replace_firstpreserves all flags exceptg;EventSourceonopen/onerrorreceive a plainDom.event;IntersectionObserver.takeRecordswrapped inJs.t. -
Deriving_Jsonround-trips non-finite floats (#2365). Writer emitsNaN/Infinity/-Infinitymatching the reader.Lwt_fileread functions raise on error instead of hittingassert false;Lwt_js_events.request_animation_frameis now cancellable.