js_of_ocaml adds WASI binary output and fixes Str engine and Int64 correctness bugs. Dune 3.24.0 is in progress with a breaking (diff) action change; opam queues new .install sections and removes 366 API symbols.
Features
-
js_of_ocaml:
wasm_of_ocaml --enable wasinow emits a WASI binary runnable by wasmtime or wizeng, with the same.js+.assets/output convention. Merged in #1831. -
Dune Configurator: adds
Pkg_config.query_variable, a wrapper aroundpkg-config --variable=<name> <package>. Merged in #15078. -
Dune: per-module include flags now pass
-I/-Honly for libraries a consumer'socamldepreference set reaches. Merged in #14518. -
opam: new
prefixandprefixexecsections in.installfiles enable path-relative installation of files and executables. Queued for the next release; dune maintainers are evaluating adoption. (#6938, open) -
odoc: OxCaml modalities (e.g.
@@ portable,@@ shared) are now rendered in generated documentation. Merged in #1420.
Releases
- Dune 3.24.0: release branch is open; the melange OCaml 4.14 backport is the latest merge. Tracker: #14620.
Fixes
-
js_of_ocaml:
Int64.shift_rightreturned wrong values for negative operands with shift counts 41–47. Fixed in #2278. -
js_of_ocaml: Str engine SIMPLEOPT/SIMPLESTAR/SIMPLEPLUS opcodes now bound-check against string length, fixing an infinite loop on patterns like
[^;]*;. Merged in #2277. -
Dune: packages containing symlinks (e.g. menhir) are no longer re-downloaded on every
dune build. Fixed in #14509. -
Merlin:
locatenow resolves the correct binding in let-punning syntax (e.g.let+ x in x), returning the outer definition. Merged in #2066.
Compatibility
-
Dune 3.23+: the
(diff)action now distinguishes an empty file from a non-existent file, breaking test suites that omit reference files; use(diff?)for optional arguments. Closed in #15134. -
opam: removes 366 unused exported values, fields, and constructors from the opam API. Downstream packages (opam-rt, opam-publish, opam-bundle) reference removed symbols and will need updates. (#6954, open)