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.Printworks under node and in the browser; the newjs_of_ocaml.devtoolslibrary 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, andworker_lwt_clientsublibraries. -
Faster debug-event parsing (#2548, merged 2026-10-19). Reduces
--pretty/--debug-infoparsing time by 15–25% on multi-unit programs.
Fixes
-
messageEventclass-type regression (#2555, merged 2026-10-20).EventSource.messageEventandWorker.messageEventare restored as class type aliases ofDom_html.messageEvent, fixing a 6.5.0~beta1 breakage injsoo_broadcastchannel. -
Security fix:
Str.string_partial_matchcorrected (OSEC-2026-21, #2492).
Compatibility and Releases
-
Breaking:
Typed_array.float32Array_fromArray/float64Array_fromArraynow takenumber_t js_array t;js_of_ocaml-lwt.loggeris removed (lwt_logis 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.