Skip to content

Commit

Permalink
[new release] ocamlformat (0.17.0)
Browse files Browse the repository at this point in the history
CHANGES:

#### Removed

  + Remove the 'let-open' option, deprecated since 0.16.0 (ocaml-ppx/ocamlformat#1563, @gpetiot)

  + Remove support for OCaml 4.06 and 4.07, minimal version requirement bumped to OCaml 4.08 (ocaml-ppx/ocamlformat#1549, @gpetiot)

  + Remove the 'extension-sugar' option, deprecated since 0.14.0 (ocaml-ppx/ocamlformat#1588, @gpetiot)

#### Bug fixes

  + Fix parsing of invalid file wrt original source handling (ocaml-ppx/ocamlformat#1542, @hhugo)

  + Preserve the syntax of infix set/get operators (ocaml-ppx/ocamlformat#1528, @gpetiot)
    `String.get` and similar calls used to be automatically rewritten to their corresponding infix form `.()`, that was incorrect when using the `-unsafe` compilation flag. Now the concrete syntax of these calls is preserved.

  + Add location of invalid docstring in warning messages (ocaml-ppx/ocamlformat#1529, @gpetiot)

  + Fix comments on the same line as prev and next elements (ocaml-ppx/ocamlformat#1556, @gpetiot)

  + Break or-patterns after comments and preserve their position at the end of line (ocaml-ppx/ocamlformat#1555, @gpetiot)

  + Fix linebreak between signature items of the same group (ocaml-ppx/ocamlformat#1560, @gpetiot)

  + Fix stack overflow on large string constants (ocaml-ppx/ocamlformat#1562, @gpetiot)

  + Fix comment position around list cons operator (ocaml-ppx/ocamlformat#1567, @gpetiot)

  + Fix the vertical alignment test to break down comment groups (ocaml-ppx/ocamlformat#1575, @gpetiot)

  + Preserve spacing of toplevel comments (ocaml-ppx/ocamlformat#1554, @gpetiot)

  + Support more sugared extension points (ocaml-ppx/ocamlformat#1587, @gpetiot)

#### Changes

  + Add buffer filename in the logs when applying ocamlformat (ocaml-ppx/ocamlformat#1557, @dannywillems)

  + Improve comment position in pattern collection (ocaml-ppx/ocamlformat#1576, @gpetiot)

  + Consistent positioning of lambda return type annotations when no-break-infix-before-func and pre/post extensions (ocaml-ppx/ocamlformat#1581, @gpetiot)

#### New features

  + Support injectivity type annotations (OCaml 4.12 feature) (ocaml-ppx/ocamlformat#1523, @gpetiot)
  • Loading branch information
gpetiot committed Feb 16, 2021
1 parent 63aacff commit 3682870
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions packages/ocamlformat/ocamlformat.0.17.0/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
opam-version: "2.0"
synopsis: "Auto-formatter for OCaml code"
description:
"OCamlFormat is a tool to automatically format OCaml code in a uniform style."
maintainer: ["OCamlFormat Team <ocamlformat-team@fb.com>"]
authors: ["Josh Berdine <jjb@fb.com>"]
license: "MIT"
homepage: "https://github.com/ocaml-ppx/ocamlformat"
bug-reports: "https://github.com/ocaml-ppx/ocamlformat/issues"
depends: [
"dune" {>= "2.7"}
"ocaml" {>= "4.08" & < "4.13"}
"ocaml-version"
"alcotest" {with-test}
"base" {>= "v0.12.0" & < "v0.15"}
"base-unix"
"cmdliner"
"dune-build-info"
"fix"
"fpath"
"menhir" {>= "20180528"}
"menhirLib" {>= "20200624"}
"menhirSdk" {>= "20200624"}
"ocaml-migrate-parsetree" {>= "2.1.0"}
"ocp-indent" {with-test}
"odoc" {>= "1.4.2"}
"ppxlib" {>= "0.22.0"}
"re"
"stdio" {< "v0.15"}
"uuseg" {>= "10.0.0"}
"uutf" {>= "1.0.1"}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/ocaml-ppx/ocamlformat.git"
x-commit-hash: "bfd6bbe95c614d1d982244c4fd0ba494275d2245"
url {
src:
"https://github.com/ocaml-ppx/ocamlformat/releases/download/0.17.0/ocamlformat-0.17.0.tbz"
checksum: [
"sha256=5849bcdc5ecb45b0ed2d7eb77389add63cabfd53b9fb4fae16a19233082c4aac"
"sha512=ddc3ff3f6e4f6204510062c0dd289770ba4b01bac0dd355becdc8eac4a9dd1d2483413951ec7da689bdb00d7d90cf441f5b6004dabc4514030ae6900c94f44bf"
]
}

0 comments on commit 3682870

Please sign in to comment.