Features
Dune: adds js_of_ocaml support for parameterised libraries, enabling separate compilation for OxCaml projects. Merged via #13414, closing #12564.
js_of_ocaml: open proposal (#2177) adds --build-config and --apply-build-config flags. The latter overrides other flags, enabling coherent compilation of linked units sharing settings.
js_of_ocaml: open proposal (#2166) merges variables with disjoint lifespans in generated JavaScript. Benchmarks show 74–91% fewer V8 stack slots and 10–16% smaller gzip output.
opam: open proposal (#6859) updates the switch bin directory in place within PATH during opam init shell hook, preserving original directory ordering. Does not affect eval $(opam env).
Compatibility and Releases
Dune 3.21.1: release branch merged to main on 2026-02-19 via #13627. A NetBSD build fix is missing from the vendored LMDB; the changelog is being amended (#13076).
Fixes
Dune: C stub build rules now declare dependencies on *.h files in the OCaml runtime directory, so switching compilers under the same prefix triggers recompilation. Merged via #13652, fixing #13651.
Dune: multiple rocq.extraction stanzas in one directory no longer produce a "multiple rules" error. Merged via #13531, fixing #8042.
Dune: jsoo library archive rules are generated on demand per requested configuration rather than upfront for all variants, reducing rule volume and enabling more incremental builds. Merged via #13611.
Dune: := and =: in withenv now add trailing/leading separators when the variable is unset, matching opam's documented semantics. Merged via #13634, fixing #10440.
opam: depexts availability is computed during opam update instead of on demand, resolving the opam show slowdown introduced in 2.1.0-alpha. Merged via #6489.
Merlin: corrects signature-help output when labelled or optional parameters are present in the called function. Merged via #2032.
js_of_ocaml: optimises string conversion and copy operations to and from ArrayBuffer in the Wasm backend. Merged via #2124.