Skip to content

Releases: fsprojects/fantomas

February 21st Release

21 Feb 17:20
a7ed99f
Compare
Choose a tag to compare

5.2.2

Fixed

  • Fixes comma breaking with lambda in tuple. #2771

https://www.nuget.org/packages/fantomas/5.2.2

Special thanks to @TheAngryByrd!

February 4th Release

04 Feb 13:58
9f769d8
Compare
Choose a tag to compare

5.2.1

Fixed

  • Conditional defines around selfIdentifier in implicit type constructor. #2733
  • Insert extra spaces around index between method calling and member variable accessing. #2760
  • Exception caused by long line over 80 characters including method calling and member indexing. #2761

Changed

  • Update FCS to 'Add SynMemberDefnImplicitCtorTrivia', commit 924a64e8e40c840f05fbe7113796f267dd603282

https://www.nuget.org/packages/fantomas/5.2.1

January release

19 Jan 10:39
8e7ded9
Compare
Choose a tag to compare

5.2.0 Darkness At The Heart Of My Love - 01/2023

Dear all,

After some regression testing, we have determined that v5.2 is stable and we want to move forward with it.
v5.2 brought us "Project Dallas", a signification rewrite in our codebase where we construct our own syntax tree.
Project Dallas was the groundwork for v6.0 and was introduced to streamline the experience for newcomers.
You can read more about "Project Dallas" in this blog post.

Notable end-user changes:

  • Update config to accept a single option for fsharp_multiline_bracket_style. #2425.
    Please update your .editorconfig as we will deprecate the existing settings in v6 (See #2710)
  • Support for fluent chains. (See fsharp/fslang-design#688)
  • Various Stroustrup improvements. (Special thanks to josh-degraw for all his work!)
  • Numerous bug fixes.

Special thanks to @dawedawe and @josh-degraw!

https://www.nuget.org/packages/fantomas/5.2.0

v5.2.0-alpha-012

14 Jan 10:16
5336c50
Compare
Choose a tag to compare
v5.2.0-alpha-012 Pre-release
Pre-release

v5.2.0-alpha-012

Fixed

  • Trivia before open statement is not preserved. #2704
  • Type app identifier is considered as an expression. #2705
  • Subsequent identifier links in chain should be on the same line. #2712
  • Delegate with many parameters result in a compilation error. #1514
  • MultiLineLambdaClosingNewline + ExperimentalStroustrupStyle is not displaying very well for some use cases. #2378

Special thanks to @dawedawe & @josh-degraw!

https://www.nuget.org/packages/fantomas/5.2.0-alpha-012

v5.2.0-alpha-011

12 Jan 21:01
b6f7ecf
Compare
Choose a tag to compare
v5.2.0-alpha-011 Pre-release
Pre-release

v5.2.0-alpha-011

Hi all,

Due to recently discovered bugs, we have decided to revert 5.2.0 back to the alpha stage.
The primary reason to do this was to solve #2685.
This bug was very hard to solve without making any stylistic changes (as we try to ensure in the beta stage).
In order to solve #2685 we had to revisit the chained expressions altogether.
More details about this can be found at fsharp/fslang-design#688 and #2696.

v5.2.0-beta-001 is unlisted on NuGet and the GitHub release page was deleted. Note that the tag still remains.
Apologies for any inconvenience. We wish to wrap up v5.2 in the near future, so please test out this release.

Fixed

  • Stroustrup: Two lists given directly as parameters, break code #2681
  • fsharp_experimental_stroustrup_style=true breaks on types with nested anonymous records. #2413
  • Stroustrup style breaks on nested records. #2587
  • Unit is lost inside dot get chain. #2683
  • Piped multiline application is indented too far. #2682
  • Comment not assigned to first parameter in constructor. #2692
  • Stroustrup: Type alias for anonymous record type. #2179
  • Space before lambda should not occur in chain. #2685
  • Trivia inside chained lambda is not restored correctly. #2686
  • SpaceBeforeUppercaseInvocation not respected in TypeApp DotGet. #2700

Special thanks to @dawedawe & @josh-degraw!

https://www.nuget.org/packages/fantomas/5.2.0-alpha-011

v5.2.0-alpha-010

30 Dec 09:21
Compare
Choose a tag to compare
v5.2.0-alpha-010 Pre-release
Pre-release

5.2.0-alpha-010

Fixed

  • Conditional compilation of a declaration is lost. #640
  • Block comment is not assigned to trivia node. #2490

https://www.nuget.org/packages/fantomas/5.2.0-alpha-010

v5.2.0-alpha-009

29 Dec 07:40
Compare
Choose a tag to compare
v5.2.0-alpha-009 Pre-release
Pre-release

5.2.0-alpha-009

Fixed

  • ifdef removed when used on inline keyword in function. #2017

Changed

  • Update FCS to 'Include inline in trivia', commit e30d14cb46f290050ac8e2bbea5e9b804b97bdde

https://www.nuget.org/packages/fantomas/5.2.0-alpha-009

v5.2.0-alpha-008

28 Dec 09:22
Compare
Choose a tag to compare
v5.2.0-alpha-008 Pre-release
Pre-release

5.2.0-alpha-008

Fixed

  • else followed by //comment and then if has incorrect indention. #2449
  • Multiple List concat operators are not seen as the same operator. #2472
  • Multiline string inside lambda expression fails to format. #1299
  • Can't format fragment of source code with #if element, and keyword, and triple-slash comment. #2360
  • Wrong formatting applied to fragment of code with #if clause. #2361
  • Comment in middle of pattern fail formatting. #1939

https://www.nuget.org/packages/fantomas/5.2.0-alpha-008

v5.2.0-alpha-007

26 Dec 08:48
Compare
Choose a tag to compare
v5.2.0-alpha-007 Pre-release
Pre-release

5.2.0-alpha-007

Hi all,

In this release, a configuration change was added for multiline brackets.

# Old
## default:
fsharp_multiline_block_brackets_on_same_column = false

## align brackets
fsharp_multiline_block_brackets_on_same_column = true

## experimental stroustrup
fsharp_multiline_block_brackets_on_same_column = true
fsharp_experimental_stroustrup_style = true

# New
## default:
fsharp_multiline_bracket_style = cramped

## align brackets
fsharp_multiline_bracket_style = aligned

## experimental stroustrup
fsharp_multiline_bracket_style = experimental_stroustrup

Both the old and new configurations will be supported in 5.2.x.
In 6.x we will likely sunset the old configuration.

Fixed

  • Comment dropped in constructor parameter list. #1872
  • Block comment before unit is missing. #2660

Changed

  • Update config to accept a single option for multiline_bracket_style. #2425

Special thanks to @josh-degraw!

https://www.nuget.org/packages/fantomas/5.2.0-alpha-007

v5.2.0-alpha-006

22 Dec 09:21
Compare
Choose a tag to compare
v5.2.0-alpha-006 Pre-release
Pre-release

5.2.0-alpha-006

Fixed

  • Conditional directives around internal keyword. #628

https://www.nuget.org/packages/fantomas/5.2.0-alpha-006