Dear OCaml users,
I’m proud to announce the release of Melange 5.0
Melange is a backend for the OCaml compiler that emits JavaScript. This release features improvements across a few areas, mostly targeting OCaml 5.3 support and JavaScript expressivity:
- OCaml version support: we’re releasing Melange 5 with full support across a few OCaml versions: 4.14, 5.1, 5.2 and the recently released 5.3
- Melange uses a versioning scheme similar to Merlin’s: releases are suffixed with the OCaml version they support, e.g. 5.0.1-414, 5.0.1-53, etc.
- We’re introducing build system-aware, type-safe support for JavaScript’s dynamic import, allowing to code split Melange-generated JavaScript bundles without sacrificing type-safety.
- Melange can now express discriminated unions, a very common JavaScript pattern that OCaml variants are very well-suited to represent.
The release announcement blog post covers the changes in a lot more detail. Please give it a read.
I’m excited to count on the support of our financial sponsors Ahrefs and the OCaml Software Foundation, without which this release would not have been possible.