Thicket thicket
ocaml
REPOS 1

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

W43.2026 · 19–25 Octocsigen/js_of_ocaml

Features

  • js_of_ocaml / wasm_of_ocaml 6.5.0 released 2026-10-22. Adds OCaml 5.6 support, ~25% faster compilation on large programs, and smaller output (base64 binary constants, tighter generated JS). Release

  • Introcaml introspection in JavaScript (#2433, merged 2026-10-22). Introspect.Print works under node and in the browser; the new js_of_ocaml.devtools library installs a Chrome DevTools formatter that displays OCaml values in OCaml syntax. Gated by --enable/--disable introspection.

  • New web API bindings: WebGL2, Web Crypto, Service Workers, Clipboard, Notification, FontFace, and Pointer Capture. The toplevel can now run in a Web Worker via protocol, worker, and worker_lwt_client sublibraries.

  • Faster debug-event parsing (#2548, merged 2026-10-19). Reduces --pretty / --debug-info parsing time by 15–25% on multi-unit programs.

Fixes

  • messageEvent class-type regression (#2555, merged 2026-10-20). EventSource.messageEvent and Worker.messageEvent are restored as class type aliases of Dom_html.messageEvent, fixing a 6.5.0~beta1 breakage in jsoo_broadcastchannel.

  • Security fix: Str.string_partial_match corrected (OSEC-2026-21, #2492).

Compatibility and Releases

  • Breaking: Typed_array.float32Array_fromArray / float64Array_fromArray now take number_t js_array t; js_of_ocaml-lwt.logger is removed (lwt_log is deprecated).

  • Breaking: identical literals in a bytecode program are bound to a single variable and may now be physically equal (==), matching ocamlopt. Programs relying on != for distinct literal identity will change behaviour.