Skip to content

Releases: fsprojects/fantomas

v5.0.0-beta-008

30 Aug 06:35
3d5010d
Compare
Choose a tag to compare
v5.0.0-beta-008 Pre-release
Pre-release

5.0.0-beta-008

Fixed

  • List of functions misaligned and breaks (Elmish). #2158
  • Idempotency problem when Elmish Html. #2195
  • Splitting list results in code that doesn't compile. #2201
  • Idempotency problem when using a list with interpolated strings. #2242
  • Idempotency problem when using set and spread syntax. #2392
  • Formatting (*) returns ( * ). #2452
  • Comment after last case of function with operator is removed. #2454
  • Trailing whitespace in block comments should be preserved. #2450

Special thanks to @cgravill and @alanlomeli!

https://www.nuget.org/packages/fantomas/5.0.0-beta-008

v5.0.0-beta-007

19 Aug 16:32
969b4ae
Compare
Choose a tag to compare
v5.0.0-beta-007 Pre-release
Pre-release

5.0.0-beta-007

Fixed

  • abstract with docstring and comment gets split up. #2433
  • Invalid removal of space in operator which starts with *. #2434
  • Incorrect concatenation of lines with functions. #2435

https://www.nuget.org/packages/fantomas/5.0.0-beta-007

v5.0.0-beta-006

12 Aug 07:34
6ea063c
Compare
Choose a tag to compare
v5.0.0-beta-006 Pre-release
Pre-release

5.0.0-beta-006

Fixed

  • Wrong comma placement results in "Possible incorrect indentation". #2159
  • Indentation warning for update record in infix operation. #2355
  • Use of A | B as c fails to format correctly. #2289

Changed

  • Update FCS to 'Include star in topTupleType rule', commit f8b56cb6db3c90348810263fd7a5d37dc5719e92

Special thanks to @dawedawe!

https://www.nuget.org/packages/fantomas/5.0.0-beta-006

v5.0.0-beta-005

03 Aug 09:05
d4e2ec4
Compare
Choose a tag to compare
v5.0.0-beta-005 Pre-release
Pre-release

5.0.0-beta-005

Changed

  • Update FCS to 'SynType with single slash and type', commit e1f735546a907b0a511b818f10829b1d75139021

Fixed

  • Fantomas moves comma and breaks code. #2381
  • Idempotency problem for unit of measure. 2264
  • Indent interface member after anonymous record as generic type. #2396
  • Unexpected concatenation of docstring lines after private modifier on DU. #2401
  • Star in tuple return type lost. #2403

Special thanks to @edgarfgp, @theimowski and @dawedawe!

https://www.nuget.org/packages/fantomas/5.0.0-beta-005

v5.0.0-beta-004

27 Jul 15:15
b0c6ef6
Compare
Choose a tag to compare
v5.0.0-beta-004 Pre-release
Pre-release

5.0.0-beta-004

Fixed

  • Shebang directives get removed from scripts #2367

Special thanks to @mataha!

https://www.nuget.org/packages/fantomas/5.0.0-beta-004

v5.0.0-beta-003

26 Jul 07:14
f9eaadc
Compare
Choose a tag to compare
v5.0.0-beta-003 Pre-release
Pre-release

5.0.0-beta-003

Changed

  • Show a better error message when the folder does not exist. #2341
  • Update FCS to 'Use SynLongIdent in SynOpenDeclTarget.ModuleOrNamespace', commit c18989124a92cc26a736d89137254f1ca84d4880

Fixed

  • global keyword is escaped with single-backticks when used as part of a namespace/module open. #2274
  • global namespace should not be escaped. #2366
  • Trivia between xml doc and type not restored. #2143

Special thanks to @dawedawe!

https://www.nuget.org/packages/fantomas/5.0.0-beta-003

v5.0.0-beta-002

19 Jul 14:20
6abfcf6
Compare
Choose a tag to compare
v5.0.0-beta-002 Pre-release
Pre-release

5.0.0-beta-002

Fixed

  • Idempotency problem when using object expression and having a space between get / set lines. #2372
  • FSharp.Core version conflict between Fantomas.Core and Fantomas.FCS. #2374

Special thanks to @thinkbeforecoding!

https://www.nuget.org/packages/fantomas/5.0.0-beta-002

v5.0.0-beta-001

15 Jul 08:22
dba5578
Compare
Choose a tag to compare
v5.0.0-beta-001 Pre-release
Pre-release

5.0.0-beta-001

Hello,

We wrapped up all development for v5 πŸŽ‰! As this is labelled beta, we will no longer change any code style and it is safe to start using this version in production. Preview alpha versions were also safe to use but there was no guarantee that the style wouldn't change due to ongoing development. From now on there will only be bug fixing, and style changes (due to updates in the style guide) should be targetted for 5.1.

If you are an existing Fantomas user, please try this version out and report any regressions you may have encountered.
Of course, double-check our Changelog file to learn if certain changes were by design.

Cheers,

The Fantomas team

Changed

  • Don't mark optional parameters as required in public API. #2350
  • Update default value for v5. #2288

Fixed

  • Content of #if block removed - Breaking Code on reformat. #801
  • Using a compiler directive copies the previous(?) line in fsi files. #1186
  • Multiline if expression with multiline infix operations. #1775

Special thanks to @dawedawe!

https://www.nuget.org/packages/fantomas/5.0.0-beta-001

v5.0.0-alpha-011

08 Jul 12:41
2ca49d0
Compare
Choose a tag to compare
v5.0.0-alpha-011 Pre-release
Pre-release

5.0.0-alpha-011

Hello,

We are getting closer to the end of the v5 development.
As long as we label v5 as alpha, we can still change anything. Please speak up if something isn't working out for you.
The moment we start to label v5 as beta is the moment where the API, default settings and setting names become canon.
Speak now or forever hold your peace (or at least until 5.1 or 6.0 😸)

Cheers,

The Fantomas team

Changed

  • Restore the CodeFormatter.MakeRange public API. #2306
  • Update FCS to 'Add arrow to SynType.Fun trivia.', commit 5a5a5f6cd07aa4a8326baa07d4f7af1305ced6f4
  • Update FCS to 'Fix setter first', commit 267d0a57f217df756d9ac33c6aa4ffbfe3b53097
  • Update style of long if/match expressions (See fslang-design#646). #2334
  • --force will now write a file even when the result is invalid. #2346

Added

  • Add setting fsharp_max_if_then_short_width. #2299

Fixed

  • KeepIndentInBranch not respected inside a let and match. 1825

Removed

  • --stdin, --stdout and --fsi flags. #2346

Special thanks to @dawedawe and @DedSec256!

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

v5.0.0-alpha-010

27 Jun 10:33
af3ec62
Compare
Choose a tag to compare
v5.0.0-alpha-010 Pre-release
Pre-release

5.0.0-alpha-010

Hello,

This alpha restores the ability for editors to format a selection of code.
Please check out the documentation to view the limitations of this. Note that there is a new version of Fantomas.Client meaning editor tooling will need to pick this up first before being able to integrate format selection.

During the development of format selection, the trivia node structure was changed from a list to a tree structure. This is an implementation detail but has an impact on the restoration of code comments. In short, please report any issues you encounter when upgrading to this new alpha.

Cheers,

The Fantomas team

Changed

  • Restore the FormatSelection public API. #2237
  • Refactor list of TriviaNodeAssigner to tree structure. #2271

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