Dune 3.19.0 is released and described as the last version of Dune. Merlin fixes a crash on large files with OCaml 5.3 that halted the editor, and ocamldebug restores source-file lookup for switch-installed libraries by inverting BUILD_PATH_PREFIX_MAP.
Features
- OCaml (proposal): introduces
[@@static_alias]and[@@dynamic_alias]attributes, splitting module aliases into static and dynamic variants. Dynamic aliases are subtypes of static ones. (#14064) - OCaml Hashtbl (proposal): adds
find_and_removeandfind_and_replace, returning the previous binding alongside the mutation. Avoids a separatefind_optcall. (#14060) - Merlin (PR #1936): outline generation now includes object expressions nested inside
letbindings, aligning with ocaml-lsp behaviour. Merged 2025-05-27. - Dune (proposal):
dune format-dune-filewould use the project's Dune language version instead of a fixed one, honouring project-specific formatting settings. (#11865)
Compatibility
- ocamlfind 1.9.5 / 1.9.6: source archives on
download.camlcity.orgare unreachable, breakingopamfetches and CI builds.download2.camlcity.orgserves 1.9.5 but returns 403 for 1.9.6. #108 - OxCaml runtime4: building from
mainwith gcc 15.1.1 fails on conflicting C type declarations; gcc 14 compiles successfully. Issue #4033 remains open.
Fixes
- ocamldebug (PR #14063): inverts
BUILD_PATH_PREFIX_MAPto locate source files in installed packages, restoring pre-Dune-3.0 debugging for switch-installed libraries. Merged. - Merlin (PR #1935): fixes a crash on large files with OCaml 5.3 where the editor stopped working entirely. Merged 2025-05-27; closes #1913.
- js_of_ocaml (PR #2018): ensures inner closures are inlined before their enclosing closure, fixing a recursive-cycle ordering issue. Merged.
- odoc 3.0.0: assertion failures in
html/link.mlandcpath.mlwhen building documentation for odoc 2.0.0 and lascar 0.7.0 respectively. Open bugs. #1345, #1346