Thicket thicket
ocaml
REPOS 9

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

W22.2026 · 25–31 Mayocsigen/js_of_ocaml

Features

  • js_of_ocaml 6.4: Merged Promise and Fetch API bindings, including AbortController, Lwt interop, and Promise-typed mediaElement.play. Closes #596 and #2031. (#2239)
  • js_of_ocaml 6.4: Merged Popover API bindings: showPopover/hidePopover/togglePopover methods, beforetoggle/toggle events, and popoverTargetElement on inputs and buttons. (#2252)

Fixes

  • js_of_ocaml compiler: Merged a flat dispatch loop for match expressions exceeding 10 shared continuations, eliminating stack overflows in Firefox/SpiderMonkey. Tunable via --set merge_node_max=N. (#2254)
  • js_of_ocaml 6.4: Merged fix for onbeforeunload: Dom.event_listener now returns bool t optdef, so returning Js._true no longer triggers a spurious browser dialog. (#2251)
  • js_of_ocaml 6.4: Merged fix for deep mutual recursion under --effects=double-translation; direct-style calls now trampoline to avoid JS stack overflow. (#2243)

Compatibility and Releases

  • js_of_ocaml 6.4: Merged breaking retyping of nullable DOM properties (dataTransfer, files, anchorNode, contentWindow, labels) to opt; callers must unwrap with Js.Opt. (#2248)
  • js_of_ocaml wasm: Open PR removes the wasm-opt --opt 1 pass, cutting wasm_of_ocaml compilation time by ~60% and preserving variable names for debugging. (#2238)
  • js_of_ocaml 6.4: Open PR aligns Dom_svg with SVG 2, adding graphicsElement/geometryElement and filter primitives; several properties become opt and getTransformToElement is removed. (#2256)
  • js_of_ocaml 6.4: Release tracking issue lists the merged PRs above plus open items targeting the next release ahead of OCaml 5.5. (#2241)