The OCaml standard library gains Domain.count and Option.for_all/Option.exists predicates, merged 2025-06-20. Dune 3.19.1 was released and opam 2.4.0~beta1 was published as the first beta of the 2.4.0 series.
Features
- OCaml stdlib: adds
Domain.countreturning the number of spawned, non-terminated domains. Merged 2025-06-20. (#14086) - OCaml stdlib: adds
Option.for_allandOption.existspredicates mirroring theirListcounterparts. Merged 2025-06-20. (#13920) - js_of_ocaml: propagates function arity across compilation units via shape annotations in generated JS. Load shapes with
--load-shape FILE.cma.js. (#1594)
Compatibility and Releases
Fixes
- OCaml ocamldoc: module index table no longer wraps short descriptions in a
<p>tag, restoring correct HTML alignment. Merged 2025-06-20; to be cherry-picked to 5.4. (#14098) - OCaml TSan runtime: initializing writes for strings and bytes are de-instrumented, eliminating false-positive data-race reports. Merged 2025-06-18. (#14059)
- Dune:
dune show depextno longer returns empty output whenDUNE_CONFIG__PORTABLE_LOCK_DIR=enabled. Fixed 2025-06-19. (#11824) - opam 2.4.0~beta1:
--deps-onlyno longer evicts an installed package when installing dependencies of a different version. (#6520) - js_of_ocaml: fixes method lookup cache corruption in separate compilation where multiple units shared the same cache slot. (#2039)
- ocaml-lsp 4.14 LTS: merges a FreeBSD compatibility patch resolving build failures on FreeBSD 14.2. Merged 2025-06-18. (#1466)