Skip to content

Commit ff78527

Browse files
authored
changelog: add missing ppxlib, ocamlformat, ocp-indent releases (#3251)
1 parent 3244d34 commit ff78527

5 files changed

Lines changed: 109 additions & 2 deletions

File tree

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
title: OCamlFormat 0.25.0
3+
tags:
4+
- ocamlformat
5+
- platform
6+
authors:
7+
contributors:
8+
changelog: |
9+
### Library
10+
11+
* The declaration of options is a regular module instead of a functor. ([#2193](https://github.com/ocaml-ppx/ocamlformat/pull/2193), [@EmileTrotignon](https://github.com/EmileTrotignon))
12+
13+
### Bug fixes
14+
15+
* Fix indentation when ocamlformat is disabled on an expression ([#2129](https://github.com/ocaml-ppx/ocamlformat/pull/2129), [@gpetiot](https://github.com/gpetiot))
16+
* Reset max-indent when the `max-indent` option is not set ([#2131](https://github.com/ocaml-ppx/ocamlformat/pull/2131), [@hhugo](https://github.com/hhugo), [@gpetiot](https://github.com/gpetiot))
17+
* Add missing parentheses around immediate objects having attributes attached in 4.14 ([#2144](https://github.com/ocaml-ppx/ocamlformat/pull/2144), [@gpetiot](https://github.com/gpetiot))
18+
* Fix dropped comment attached to the identifier of an open-expression ([#2155](https://github.com/ocaml-ppx/ocamlformat/pull/2155), [@gpetiot](https://github.com/gpetiot))
19+
* Correctly format chunks of file in presence of `enable`/`disable` floating attributes ([#2156](https://github.com/ocaml-ppx/ocamlformat/pull/2156), [@gpetiot](https://github.com/gpetiot))
20+
* Remove abusive normalization in docstrings references ([#2159](https://github.com/ocaml-ppx/ocamlformat/pull/2159), [#2162](https://github.com/ocaml-ppx/ocamlformat/pull/2162), [@EmileTrotignon](https://github.com/EmileTrotignon))
21+
* Fix parentheses around symbols in if-then-else branches ([#2169](https://github.com/ocaml-ppx/ocamlformat/pull/2169), [@gpetiot](https://github.com/gpetiot))
22+
* Preserve position of comments around variant identifiers ([#2179](https://github.com/ocaml-ppx/ocamlformat/pull/2179), [@gpetiot](https://github.com/gpetiot))
23+
* Fix parentheses around symbol identifiers ([#2185](https://github.com/ocaml-ppx/ocamlformat/pull/2185), [@gpetiot](https://github.com/gpetiot))
24+
* Fix alignment inconsistency between let-binding and let-open ([#2187](https://github.com/ocaml-ppx/ocamlformat/pull/2187), [@gpetiot](https://github.com/gpetiot))
25+
* Fix reporting of operational settings origin in presence of profiles ([#2188](https://github.com/ocaml-ppx/ocamlformat/pull/2188), [@EmileTrotignon](https://github.com/EmileTrotignon))
26+
* Fix alignment inconsistency of if-then-else in apply ([#2203](https://github.com/ocaml-ppx/ocamlformat/pull/2203), [@gpetiot](https://github.com/gpetiot))
27+
* Fix automated Windows build ([#2205](https://github.com/ocaml-ppx/ocamlformat/pull/2205), [@nojb](https://github.com/nojb))
28+
* Fix spacing between recursive module bindings and recursive module declarations ([#2217](https://github.com/ocaml-ppx/ocamlformat/pull/2217), [@gpetiot](https://github.com/gpetiot))
29+
* ocamlformat-rpc: use binary mode for stdin/stdout ([#2218](https://github.com/ocaml-ppx/ocamlformat/pull/2218), [@rgrinberg](https://github.com/rgrinberg))
30+
* Fix interpretation of glob pattern in `.ocamlformat-ignore` under Windows ([#2206](https://github.com/ocaml-ppx/ocamlformat/pull/2206), [@nojb](https://github.com/nojb))
31+
* Remove conf mutability, and correctly display the conventional profile when using print-config ([#2233](https://github.com/ocaml-ppx/ocamlformat/pull/2233), [@EmileTrotignon](https://github.com/EmileTrotignon))
32+
* Preserve position of comments around type alias ([#2239](https://github.com/ocaml-ppx/ocamlformat/pull/2239), [@EmileTrotignon](https://github.com/EmileTrotignon))
33+
* Preserve position of comments around constructor record ([#2237](https://github.com/ocaml-ppx/ocamlformat/pull/2237), [@EmileTrotignon](https://github.com/EmileTrotignon))
34+
* Preserve position of comments around external declaration strings ([#2238](https://github.com/ocaml-ppx/ocamlformat/pull/2238), [@EmileTrotignon](https://github.com/EmileTrotignon), [@gpetiot](https://github.com/gpetiot))
35+
* Preserve position of comments around module pack expressions ([#2234](https://github.com/ocaml-ppx/ocamlformat/pull/2234), [@EmileTrotignon](https://github.com/EmileTrotignon), [@gpetiot](https://github.com/gpetiot))
36+
* Correctly parenthesize array literals with attributes in argument positions ([#2250](https://github.com/ocaml-ppx/ocamlformat/pull/2250), [@ccasin](https://github.com/ccasin))
37+
38+
### Changes
39+
40+
* Indent 2 columns after `initializer` keyword ([#2145](https://github.com/ocaml-ppx/ocamlformat/pull/2145), [@gpetiot](https://github.com/gpetiot))
41+
* Preserve syntax of generative modules (`(struct end)` vs `()`) ([#2135](https://github.com/ocaml-ppx/ocamlformat/pull/2135), [#2146](https://github.com/ocaml-ppx/ocamlformat/pull/2146), [@trefis](https://github.com/trefis), [@gpetiot](https://github.com/gpetiot))
42+
* Preserve syntax of module unpack with type constraint (`((module X) : (module Y))` vs `(module X : Y)`) ([#2136](https://github.com/ocaml-ppx/ocamlformat/pull/2136), [@trefis](https://github.com/trefis), [@gpetiot](https://github.com/gpetiot))
43+
* Normalize location format for warning and error messages ([#2139](https://github.com/ocaml-ppx/ocamlformat/pull/2139), [@gpetiot](https://github.com/gpetiot))
44+
* Preserve syntax and improve readability of indexop-access expressions ([#2150](https://github.com/ocaml-ppx/ocamlformat/pull/2150), [@trefis](https://github.com/trefis), [@gpetiot](https://github.com/gpetiot))
45+
* Break sequences containing indexop-access assignments
46+
* Remove unnecessary parentheses around indices
47+
* Mute warnings for odoc code blocks whose syntax is not specified ([#2151](https://github.com/ocaml-ppx/ocamlformat/pull/2151), [@gpetiot](https://github.com/gpetiot))
48+
* Improve formatting of odoc links ([#2152](https://github.com/ocaml-ppx/ocamlformat/pull/2152), [@gpetiot](https://github.com/gpetiot))
49+
* Preserve sugared extension node attached to an `if` carrying attributes ([#2167](https://github.com/ocaml-ppx/ocamlformat/pull/2167), [@trefis](https://github.com/trefis), [@gpetiot](https://github.com/gpetiot))
50+
* Remove unnecessary parentheses around partially applied infix operators with attributes ([#2198](https://github.com/ocaml-ppx/ocamlformat/pull/2198), [@gpetiot](https://github.com/gpetiot))
51+
* JaneStreet profile: doesn't align infix ops with open paren ([#2204](https://github.com/ocaml-ppx/ocamlformat/pull/2204), [@gpetiot](https://github.com/gpetiot))
52+
* Re-use the type let\_binding from the parser instead of value\_binding, improve the spacing of let-bindings regarding of having extension or comments ([#2219](https://github.com/ocaml-ppx/ocamlformat/pull/2219), [@gpetiot](https://github.com/gpetiot))
53+
* The `ocamlformat` package now only contains the binary, the library is available through the `ocamlformat-lib` package ([#2230](https://github.com/ocaml-ppx/ocamlformat/pull/2230), [@gpetiot](https://github.com/gpetiot))
54+
55+
### New features
56+
57+
* Add a `break-colon` option to decide whether to break before or after the `:` symbol in value binding declarations and type constraints. This behavior is no longer ensured by `ocp-indent-compat`. ([#2149](https://github.com/ocaml-ppx/ocamlformat/pull/2149), [@gpetiot](https://github.com/gpetiot))
58+
* Format `.mld` files as odoc documentation files ([#2008](https://github.com/ocaml-ppx/ocamlformat/pull/2008), [@gpetiot](https://github.com/gpetiot))
59+
* New value `vertical` for option `if-then-else` ([#2174](https://github.com/ocaml-ppx/ocamlformat/pull/2174), [@gpetiot](https://github.com/gpetiot))
60+
* New value `vertical` for option `break-cases` ([#2176](https://github.com/ocaml-ppx/ocamlformat/pull/2176), [@gpetiot](https://github.com/gpetiot))
61+
* New value `wrap-or-vertical` for option `break-infix` that only wraps high precedence infix ops ([#1865](https://github.com/ocaml-ppx/ocamlformat/pull/1865), [@gpetiot](https://github.com/gpetiot))
62+
versions:
63+
unstable: false
64+
ignore: false
65+
github_release_tags:
66+
- 0.25.0
67+
---
68+
69+
OCamlFormat 0.25.0 is now available with expanded formatting capabilities!
70+
71+
This release addresses numerous inconsistencies and bugs, particularly around comment positioning, parentheses handling, and alignment issues. Key fixes include proper indentation when OCamlFormat is disabled on expressions, correct formatting of chunks with enable/disable attributes, and improved handling of comments around variant identifiers, type aliases, and constructor records. The release also resolves several platform-specific issues, including Windows build automation and glob pattern interpretation in `.ocamlformat-ignore` files.
72+
73+
New formatting options provide developers with more control over code layout. The `break-colon` option allows customization of line breaks around colons in value bindings and type constraints. Both `if-then-else` and `break-cases` options now support a `vertical` value for consistent vertical formatting. Additionally, OCamlFormat can now format `.mld` files as odoc documentation, and a new `wrap-or-vertical` value for `break-infix` provides more nuanced control over high-precedence infix operator wrapping.

data/changelog/releases/ocp-indent/2020-02-06-ocp-indent-nlfork-1.5.4-ignore.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: nlfork-1.5.4
2+
title: Ocp-indent nlfork-1.5.4
33
tags:
44
- ocp-indent
55
- platform
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: Ocp-indent 1.8.2
3+
tags:
4+
- ocp-indent
5+
- platform
6+
authors:
7+
contributors:
8+
changelog:
9+
versions:
10+
unstable: false
11+
ignore: false
12+
github_release_tags:
13+
- 1.8.2
14+
---
15+
16+
We're happy to announce the release of ocp-indent 1.8.2!

data/changelog/releases/ocp-indent/2025-01-22-ocp-indent-nlfork-1.5.5-ignore.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: nlfork-1.5.5
2+
title: Ocp-indent nlfork-1.5.5
33
tags:
44
- ocp-indent
55
- platform
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Ppxlib 0.36.1
3+
tags:
4+
- ppxlib
5+
- platform
6+
authors:
7+
- NathanReb
8+
contributors:
9+
changelog: |
10+
* Fix ppxlib driver's AST to source printer. Our copy of pprintast was not properly updated which resulted in incorrect printing of value bindings' constraints ([#585](https://github.com/ocaml-ppx/ppxlib/pull/585), [@NathanReb](https://github.com/NathanReb))
11+
versions:
12+
unstable: false
13+
ignore: false
14+
github_release_tags:
15+
- 0.36.1
16+
---
17+
18+
We're happy to announce the release of Ppxlib 0.36.1!

0 commit comments

Comments
 (0)