Thicket thicket
ocaml
REPOS 9

Tools covers builds, package management, editors, documentation and JavaScript compilation.

W25.2026 · 15–21 Jun

Tools repository summaries

6 active · 3 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

  • Action runners with bubblewrap sandboxing (--action-runner, --sandbox-actions). Eligible actions run in a bwrap-wrapped worker that cannot write to the shared cache. Merged in #14240. A Landlock backend is proposed in #15231 (open).

  • Per-module library dependency filtering reduces unnecessary recompilation: a consumer module's compile rule sees only artefacts of libraries it references. Open in #14492; fixes #4572.

  • Shell command completion for bash, zsh, and PowerShell via dune completion <shell>. Provides subcommand, flag, and suggestion completion. Open in #14779.

  • env_vars alias added as an underscore-spelled alternative to the env-vars field in (env ...) stanzas. Merged in #15187.

Fixes

  • Cram output sanitization now handles project paths containing spaces. Previously BUILD_PATH_PREFIX_MAP rewriting failed because the path tokenizer split on spaces. Merged in #15017; fixes #14943.

  • Fuzzy offset matching re-enabled for patches applied by dune pkg, restoring compatibility with opam packages whose patches require fuzz. Merged in #15146.

Compatibility and Releases

  • Dune 3.24.0 released (2026-06-21). Directory targets promoted to GA; relocatable compiler enabled by default for package management; %{pkg:<pkg>:<section>:<path>} pform added. See release notes.

  • Breaking: %{bin:NAME} resolution changed. Now resolves to the build-artifact path with a ./ prefix instead of the install-staging path. Rules with %{bin:...} deps get a per-rule .binaries directory on PATH. Requires dune 3.24. Merged in #15156, backported in #15229.

  • Breaking: (lang coq) removed. Projects using (using coq <version>) must migrate to (using rocq <version>). The Rocq (stdlib ...) field is replaced by (no_corelib) in Rocq language 0.14. Shipped in 3.24.0.

ocaml/merlin

Permalink

Fixes

  • Merlin in Emacs (merlin.el) displays only the final line of multi-line compiler error messages on OCaml 5.04. The LSP client discards diagnostic footnote content. Opened by @gasche. #2080

Features

  • Proposed LRU cache to bound indexer memory, replacing unbounded hashtable growth. Also stores small values alongside their parent and relativises filenames to the indexer CWD. Opened by @voodoos; supersedes #2050. #2079

ocaml/ocaml-lsp

Permalink

Compatibility and Releases

  • Merged: #1608 replaces Stdune.Pid with a plain int for process IDs, matching the Dune API change in ocaml/dune@39d8a28. No user-facing option or workflow change; internal type alignment only. (anmonteiro)

ocaml/odoc

Permalink

Fixes

  • odoc driver: link path restricted to a unit's declared library dependencies (closed, unmerged). The driver previously added every library in a package to each unit's -L path; the proposal builds the path from lib_deps only, matching the existing -I behaviour. This would prevent wrong-module resolution when sibling libraries (e.g. eliom.server / eliom.client) share module names such as Content.Html. Closed without merge on 2026-06-20. #1449 — balat.

ocaml/opam

Permalink

Features

  • opam lint currently supports promoting warnings to errors via --warnings @N but offers no mechanism to demote a default error to a warning. A proposal to add this (e.g. for Error 46 in opam-repository policy) is open. #6964
  • An open PR adds root and rootexec sections to .install files, allowing install steps to run with elevated privileges. Not yet merged. #6938

Fixes

  • opam upgrade reinitialises the root without preserving a previously set --no-sandbox option, re-enabling sandboxing on systems where it was disabled. Reported 2026-06-19; open. #6968
  • opam switch create 5.5.0~rc1 fails with a version conflict when the relocatable repository is active, while the same command succeeds on a different user account with the same opam 2.5.1. Workaround: pin ocaml-variants explicitly. Open. #6965
  • opam install aborts with exit code 99 when the target directory is a git repository owned by a different user (common in CI), because git ls-files fails. Expected behaviour is to fall back to path-pinning as when no git directory is present. Open. #6963

ocsigen/js_of_ocaml

Permalink

Features

  • js_of_ocaml 6.4.0 released (2026-06-21). Adds OCaml 5.5 support, WASI 0.1 target, Promise/Fetch/Abort modules, OxCaml backend, quickjs-ng support, and dynlink/toplevel on Wasm. (release)

  • Breaking changes in 6.4.0: mediaElement.play returns unit Promise.t; SVG 1.1 getTransformToElement removed; Gecko MouseScrollEvent/_DOMMouseScroll bindings dropped; event_listener return type is now bool t optdef; Intl.Collator.compare returns Js.number_t; several method names renamed (Typed_array._BYTES_PER_ELEMENT_, WebGL._MAX_RENDERBUFFER_SIZE_, canvasElement.toDataURL_compression). (release)

  • Dom_svg aligned with SVG 2 (#2256). Adds graphicsElement/geometryElement parents, SVGFE* filter primitives, markerElement; every SVG element is now an event target. Several properties retyped to opt/optdef (breaking).

  • Cosmetic minification in compact mode (#2257). !0/!1 booleans, stripped leading zeros in fractions, normalised exponents, backtick strings when they reduce escapes. --pretty output unchanged.

  • Faster variable-naming and free-variable passes (#2321). Byte-identical output; ~20% speedup on the coloring phase for deeply-nested code.

Fixes

  • Lib binding corrections (#2350). CSS.Angle now parses "45deg"; Regexp.replace_first preserves all flags except g; EventSource onopen/onerror receive a plain Dom.event; IntersectionObserver.takeRecords wrapped in Js.t.

  • Deriving_Json round-trips non-finite floats (#2365). Writer emits NaN/Infinity/-Infinity matching the reader. Lwt_file read functions raise on error instead of hitting assert false; Lwt_js_events.request_animation_frame is now cancellable.

Compatibility and Releases

  • Documentation: opam package mapping (#2366). Each module page now states its providing opam package; a drift-guard test fails if api.mld falls behind. Closes #607. Broken odoc cross-references and stale published URLs also fixed (#2362).
3 repositories · no changes