Skip to content

Commit fe70498

Browse files
authored
Prepare 0.26.0 (#2403)
* Editorialize the changelog - Non-bug entries are moved to the "Changes" section. - Lists are sorted by PR number. - Similar entries are merged. - Spelling is improved * Bump version numbers * Mark breaking changes in the changelog with `*`
1 parent d5e8ddb commit fe70498

File tree

4 files changed

+32
-26
lines changed

4 files changed

+32
-26
lines changed

CHANGES.md

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
## unreleased
1+
# Changelog
2+
3+
Items marked with an asterisk (`*`) are changes that are likely to format
4+
existing code differently from the previous release when using the default
5+
profile. This started with version 0.26.0.
6+
7+
## 0.26.0 (2023-07-18)
28

39
### Removed
410

@@ -8,36 +14,36 @@
814

915
### Bug fixes
1016

11-
- Fix crash due to `let f (type a) :> a M.u = ..` (#2399, @Julow)
12-
- Fix crash due to `module T = (val (x : (module S)))` (#2370, @Julow)
17+
- Fix crash caused by `let f (type a) :> a M.u = ..` (#2399, @Julow)
18+
- Fix crash caused by `module T = (val (x : (module S)))` (#2370, @Julow)
1319
- Fix invalid formatting of `then begin end` (#2369, @Julow)
1420
- Protect match after `fun _ : _ ->` (#2352, @Julow)
1521
- Fix invalid formatting of `(::)` (#2347, @Julow)
16-
- Fix formatting of string literals in code blocks (#2338, #2349, @Julow)
17-
- Improve formatting of module arguments (#2322, @Julow)
18-
- Consistent indentation of `@@ let+ x = ...` (#2315, #2396, @Julow)
19-
- Remove double parenthesis around tuple in a match (#2308, @Julow)
20-
- Consistent indentation of `fun (type a) ->` that follow `fun x ->` (#2294, @Julow)
21-
- Improve indentation of `~label:(fun` (#2271, #2291, #2293, #2298, #2398, @Julow)
22-
- Fix non-stabilizing comments attached to private/virtual/mutable keywords (#2272, #2307, @gpetiot, @Julow)
23-
- Fix formatting of comments in "disable" chunks (#2279, @gpetiot)
22+
- Fix indentation of module-expr extensions (#2323, @gpetiot)
23+
* Remove double parentheses around tuples in a match (#2308, @Julow)
24+
* Remove extra parentheses around module packs (#2305, @Julow, @gpetiot)
2425
- Fix indentation of trailing double-semicolons (#2295, @gpetiot)
25-
- Remove extra parentheses around module packs (#2305, @Julow, @gpetiot)
26-
- Fix identation of module-expr extensions (#2323, @gpetiot)
27-
- Don't print warnings related to odoc code-blocks when '--quiet' is set (#2336, @gpetiot)
26+
- Fix formatting of comments in "disable" chunks (#2279, @gpetiot)
27+
- Fix non-stabilizing comments attached to private/virtual/mutable keywords (#2272, #2307, @gpetiot, @Julow)
2828

2929
### Changes
3030

31-
- Improve formatting of doc-comments (#2376, #2377, #2379, #2378, @Julow)
32-
- Disable reporting of deprecated alerts while formatting code blocks (#2373, @Julow)
33-
- Improve indentation of `as`-patterns (#2359, @Julow)
34-
- Restore short form for first-class modules: `((module M) : (module S))` is formatted as `(module M : S)`) (#2280, #2300, @gpetiot, @Julow)
35-
- Restore short form formatting of record field aliases (#2282, #2388, @gpetiot, @Julow)
36-
- Tweaks the JaneStreet profile to be more consistent with ocp-indent (#2214, #2281, #2284, #2289, #2299, #2302, #2309, #2310, #2311, #2313, #2316, #2362, #2363, @gpetiot, @Julow)
37-
- Improve formatting of class signatures (#2301, #2387, @gpetiot, @Julow)
31+
- Improve formatting of doc-comments (#2338, #2349, #2376, #2377, #2379, #2378, @Julow)
32+
Remove unnecessary escaping and preserve empty lines.
33+
* Indent `as`-patterns that have parentheses (#2359, @Julow)
34+
- Don't print warnings related to odoc code-blocks when '--quiet' is set (#2336, #2373, @gpetiot, @Julow)
35+
* Improve formatting of module arguments (#2322, @Julow)
36+
* Don't indent attributes after a let/val/external (#2317, @Julow)
37+
- Consistent indentation of `@@ let+ x = ...` (#2315, #2396, @Julow)
38+
It was formatted differently than `@@ let x = ...`.
39+
* Improve formatting of class expressions and signatures (#2301, #2328, #2387, @gpetiot, @Julow)
40+
* Consistent indentation of `fun (type a) ->` following `fun x ->` (#2294, @Julow)
41+
* Restore short-form formatting of record field aliases (#2282, #2388, @gpetiot, @Julow)
42+
* Restore short-form for first-class modules: `((module M) : (module S))` is formatted as `(module M : S)`) (#2280, #2300, @gpetiot, @Julow)
43+
* Improve indentation of `~label:(fun ...` (#2271, #2291, #2293, #2298, #2398, @Julow)
44+
The `fun` keyword is docked where possible and the arguments are indented to avoid confusion with the body.
3845
- JaneStreet profile: treat comments as doc-comments (#2261, #2344, #2354, #2365, #2392, @gpetiot, @Julow)
39-
- Don't indent attributes after a let/val/external (#2317, @Julow)
40-
- Adjust indentation of class-expr function body (#2328, @gpetiot)
46+
- Tweaks the JaneStreet profile to be more consistent with ocp-indent (#2214, #2281, #2284, #2289, #2299, #2302, #2309, #2310, #2311, #2313, #2316, #2362, #2363, @gpetiot, @Julow)
4147

4248
### New features
4349

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ To set up your project to use the default profile and the ocamlformat version yo
2727

2828
```
2929
profile = default
30-
version = 0.25.1
30+
version = 0.26.0
3131
```
3232

3333
For more information on configuration options, check out the [documentation](https://ocaml.org/p/ocamlformat/latest/doc/index.html) or run `ocamlformat --help`.

doc/faq.mld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The recommended way is to use a versioned default profile, such as:
2121

2222
{[
2323
profile = default
24-
version = 0.25.1
24+
version = 0.26.0
2525
]}
2626

2727
(or replace with the output of [ocamlformat --version])

doc/getting_started.mld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dune build @install
2121
First of all, make sure you have an [.ocamlformat] file at the root of your project. Setting up your project to use the default profile and the OCamlFormat version you installed (hopefully the last one) in this [.ocamlformat] file is considered good practice:
2222
{[
2323
profile = default
24-
version = 0.25.1
24+
version = 0.26.0
2525
]}
2626

2727
To manually invoke OCamlformat the general command is:

0 commit comments

Comments
 (0)