Skip to content

Releases: ocaml-mlx/ocamlformat-mlx

0.27.0.1

21 Jun 10:07
Compare
Choose a tag to compare

CHANGES:

  • relax OCaml constraints, compatible with OCaml 5.3

0.27.0

06 May 12:22
01b7b3b
Compare
Choose a tag to compare

CHANGES:

Highlight

Added

Changed

  • * Consistent formatting of comments (ocaml-ppx#2371, ocaml-ppx#2550, @Julow)
    This is mostly an internal change but some comments might be formatted differently.

  • * Improve formatting of type constraints with type variables (ocaml-ppx#2437, @gpetiot)
    For example:

    let f : type a b c.
        a -> b -> c =
      ...
    
  • * Improve formatting of functor arguments (ocaml-ppx#2505, @Julow)
    This also reduce the indentation of functor arguments with long signatures.

  • Improvements to the Janestreet profile (ocaml-ppx#2445, ocaml-ppx#2314, ocaml-ppx#2460, ocaml-ppx#2593, ocaml-ppx#2612, @Julow, @tdelvecchio-jsc)

  • * Undo let-bindings and methods normalizations (ocaml-ppx#2523, ocaml-ppx#2529, @gpetiot)
    This remove the rewriting of some forms of let-bindings and methods:

    • let f x = (x : int) is no longer rewritten into let f x : int = x
    • let f (type a) (type b) ... is no longer rewritten into let f (type a b) ...
    • let f = fun x -> ... is no longer rewritten into let f x = ...
  • * The break-colon option is now taken into account for method type constraints (ocaml-ppx#2529, @gpetiot)

  • * Force a break around comments following an infix operator (fix non-stabilizing comments) (ocaml-ppx#2478, @gpetiot)
    This adds a line break:

      a
      ||
      (* this comment is now on its own line *)
      b
    

Fixed

0.6

06 May 11:17
eb0bc4d
Compare
Choose a tag to compare
0.6

Fix prop wrapping #2 by @davesnx

<div
  className="some"
  className="another"
  className="third">
  <div
    className="some"
    className="another"
    className="third"
  />
</div>

0.2

24 Oct 17:08
Compare
Choose a tag to compare
0.2

Add jsx prop punning

0.1

23 Oct 19:09
Compare
Choose a tag to compare
0.1

Preview release