Skip to content

Releases: fsprojects/fantomas

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

December 22nd Release

22 Dec 09:08
1394b87
Compare
Choose a tag to compare

5.1.5

Fixed

  • Call ignoreFile.IsIgnored with absolute path. #2656

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

v5.2.0-alpha-005

16 Dec 13:33
Compare
Choose a tag to compare
v5.2.0-alpha-005 Pre-release
Pre-release

5.2.0-alpha-005

Fixed

  • MultiLineLambdaClosingNewline didn't trigger correctly on line which was one character too long. #2642

Changed

  • Enable ServerGarbageCollection. #2655

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

v5.2.0-alpha-004

08 Dec 03:38
Compare
Choose a tag to compare
v5.2.0-alpha-004 Pre-release
Pre-release

5.2.0-alpha-004

Fixed

  • genNode for patterns case by case. #2644
  • Mutable and private keywords are swapped. #2646
  • Stroustrup results in heavily indented second argument. #2648
  • Comment on first chained function call gets lost. #2649
  • Double indents in piped function call. #2650

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

v5.2.0-alpha-003

06 Dec 00:57
Compare
Choose a tag to compare
v5.2.0-alpha-003 Pre-release
Pre-release

5.2.0-alpha-003

Hi all,

In recent weeks we have finished the development of what we call "Project Dallas".
Project Dallas is a significant internal refactor aimed to make the code flow easier for newcomers.
The significant change is that we have constructed our own custom syntax tree (called an Oak for now).
We can insert trivia into this new tree, allowing us to be way more flexible when printing the code.
You can read the contributor's documentation in the v5.2 branch.

We have ported a larger portion of the codebase and thus it was inevitable to stay fully compatible.
Overall almost nothing was deliberately changed. With the exception of some minor things here and there due to the code restructuring.
Some changes to be expected are:

  • Update records ({ x with ... }) should respect the max record width setting.
  • Implicit constructors of type definitions were slightly altered when they are multiline.
  • Infix operators and/or chained expressions.

Please try this version out on your code base! Now is the time to report any regressions that may have slipped in.
If you wait until we call it stable, we'll be looking forward to your pull requests 😏.
So please, try this out and talk to us if you see anything that is out of the ordinary.
Hit us on our Discord server or open an issue here on GitHub.

Many thanks in advance,

The Fantomas team

Fixed

  • Attribute on ExplicitCtor is lost. #2638
  • Comment above single parameter in brackets breaks code due to the wrong indentation. #2594

Special thanks to @dawedawe!

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

November 30th Release

30 Nov 16:25
ec5e33b
Compare
Choose a tag to compare

5.1.4

Fixed

  • Indenting problem with match workaround for single-line stroustrup expressions #2586

Special thanks to @Linschlager

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

November 14th Release

14 Nov 09:46
2ad671f
Compare
Choose a tag to compare

5.1.3

Fixed

  • Idempotency problem with anonymous types in discriminated unions. #2621

Special thanks to @ly29!

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