Thicket thicket
ocaml
REPOS 1

Tools covers builds, package management, editors, documentation and JavaScript compilation.

W25.2026 · 15–21 Junocsigen/js_of_ocaml

Features

  • js_of_ocaml 6.4.0 released (2026-06-21). Adds OCaml 5.5 support, WASI 0.1 target, Promise/Fetch/Abort modules, OxCaml backend, quickjs-ng support, and dynlink/toplevel on Wasm. (release)

  • Breaking changes in 6.4.0: mediaElement.play returns unit Promise.t; SVG 1.1 getTransformToElement removed; Gecko MouseScrollEvent/_DOMMouseScroll bindings dropped; event_listener return type is now bool t optdef; Intl.Collator.compare returns Js.number_t; several method names renamed (Typed_array._BYTES_PER_ELEMENT_, WebGL._MAX_RENDERBUFFER_SIZE_, canvasElement.toDataURL_compression). (release)

  • Dom_svg aligned with SVG 2 (#2256). Adds graphicsElement/geometryElement parents, SVGFE* filter primitives, markerElement; every SVG element is now an event target. Several properties retyped to opt/optdef (breaking).

  • Cosmetic minification in compact mode (#2257). !0/!1 booleans, stripped leading zeros in fractions, normalised exponents, backtick strings when they reduce escapes. --pretty output 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.Angle now parses "45deg"; Regexp.replace_first preserves all flags except g; EventSource onopen/onerror receive a plain Dom.event; IntersectionObserver.takeRecords wrapped in Js.t.

  • Deriving_Json round-trips non-finite floats (#2365). Writer emits NaN/Infinity/-Infinity matching the reader. Lwt_file read functions raise on error instead of hitting assert false; Lwt_js_events.request_animation_frame is now cancellable.

Compatibility and Releases

  • Documentation: opam package mapping (#2366). Each module page now states its providing opam package; a drift-guard test fails if api.mld falls behind. Closes #607. Broken odoc cross-references and stale published URLs also fixed (#2362).