OCaml trunk merges the -typing-recovery flag, letting the typechecker report multiple errors in one pass. Dune enables its rev_store cache by default on 64-bit platforms for a 3–4× speedup on dune pkg lock, and the tls 2.1.0 release patches two certificate-validation CVEs.
Features
OCaml trunk: adds the -typing-recovery flag; the typechecker continues past the first error and reports multiple errors in one pass. Merged from Merlin's upstreamed patches. #14241
OCaml stdlib: adds Seq.ints_in_range, producing a sequence of integers from a start to a stop by a step. Merged after five years in review. #10480
Dune rev_store cache: enabled by default on 64-bit platforms, caching git ls-tree output in a versioned LMDB store. Benchmarks show 3–4× speedup on dune pkg lock. #14494
Dune 3.24 Melange preprocess: new melange.preprocess and melange.preprocessor_deps fields on buildable stanzas, gated on (lang dune 3.24). Allows separate ppx configuration for Melange compilation. #14572
OxCaml preemptible fibers: merged runtime support for fibers carrying a tickc callback invoked at each runtime tick, enabling cooperative preemption without interval timers. #5913
OxCaml kind any fields: merged support for record fields and constructor arguments declared with kind any, deferring representation resolution to use sites. #5461
Fixes
OCaml typechecker: fixes a stack-overflow expansion loop triggered by with type constraints on module types. The fix rechecks well-foundedness after applying constraints. #14754
OCaml C API: caml_ba_alloc no longer allocates memory when CAML_BA_SUBARRAY is set with data = NULL, preventing OOM crashes in C bindings. Cherry-picked to 5.5. #14820
tls 2.1.0: fixes CVE-2026-45389 and CVE-2026-45388 by adding keyUsage/extendedKeyUsage validation on server and TLS 1.3 client paths. #29930
js_of_ocaml Wasm codegen: two merged fixes correct a closure environment type name collision and bound handler traversal to the dominator subtree. #2246, #2244
Compatibility and Releases
Dune 3.23.1: point release backporting fixes for OCaml < 4.14 support, dune build @doc with dune tools install odoc, and RPC forwarding errors. #14442
js_of_ocaml 6.4: release tracking issue targets OCaml 5.5, listing Promise/Fetch bindings, Oxcaml update, and loop extraction as candidates. #2241