Releases: fsprojects/fantomas
v5.0.0-beta-008
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!
v5.0.0-beta-007
v5.0.0-beta-006
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!
v5.0.0-beta-005
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!
v5.0.0-beta-004
v5.0.0-beta-003
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!
v5.0.0-beta-002
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!
v5.0.0-beta-001
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
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!
v5.0.0-alpha-011
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!
v5.0.0-alpha-010
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