Features
Js_of_ocaml 5.9.0: Released 2024-11-22. Finalizes OCaml 5.3 support and adds partial Wasm backend pipeline support via a new Targetint module. Release notes
Js_of_ocaml 5.9.0 source maps: Index source maps are emitted to avoid shifting mappings; sourcemap decoding is deferred until needed. Improves editor integration and reduces build time. Release notes
Js_of_ocaml 5.9.0 build speed: global_flow and global_deadcode passes are sped up on large bytecode. JSON parsing now relies on Yojson.Raw for faster compilation. Release notes
Fixes
Js_of_ocaml 5.9.0 runtime: Fixes unsigned integer parsing (0u2147483648), makes float_of_string stricter, and corrects pos_in after unmarshalling. Release notes
Js_of_ocaml 5.9.0 separate compilation: Fixes missing toplevel primitives and packed-module linking under separate compilation. Enables dynlink of precompiled JS. Release notes
Compatibility and Releases
Js_of_ocaml 5.9.0 backtraces: Backtraces now require explicit opt-in via --enable with-js-error at compile time or OCAMLRUNPARAM=b=1 at startup. Breaking change for programs relying on default backtraces. Release notes
Js_of_ocaml 5.9.0 platform and API: Sys.os_type on Windows returns "Win32" instead of "Cygwin". Typed_array API is modified for WebAssembly compatibility; yojson is no longer optional. Release notes
Js_of_ocaml 5.9.0 toplevel: The toplevel no longer sets globals for initialization. A warning is emitted on use of joo_global_object. Release notes