Repository navigation
Releases
Releases · fsprojects/fantomas
November 19th Release
8.1.3
Fixed
doctorreports a file whose only change is the newline at its end as a line endings change. It now reports the final newline and the line endings each on its own, againstinsert_final_newlineandend_of_line, and--jsoncarries them asfinalNewlineandlineEndingsin place of theline-endingsstatus. A file that is empty or holds only whitespace gets a warning of its own, since Fantomas leaves it empty whateverinsert_final_newlineasks, and--jsoncarries that aswhitespaceOnlyon thefilekey. #3524
Special thanks to @Primeteumm, @claude and @nojaf!
November 18th Release
8.1.2
Fixed
- Settings with a word starting with
iin their editorconfig name, such asfsharp_keep_indent_in_branch, are ignored on a system with a Turkish culture. #3581 - With
fsharp_multi_line_lambda_closing_newline = true, a comment between a lambda argument and its closing)gets one more blank line above the)on every format. #3577
Special thanks to @Copilot, @Primeteumm, @claude, @dsyme and @nojaf!
November 3rd Release
8.1.1
Fixed
- Comment between the type name and the primary constructor is removed. #3569
Special thanks to @claude, @nojaf and @xperiandri!
October 21 Release
9.0.0-alpha-002
Changed
- Everything that changed in 8.1.0, the layout changes and fixes listed under that release below. v8.1.0
October 21st Release
8.1.0 Umbra - 21-10-2026
Changed
- Multiline tuple type after a cast or type annotation operator goes one level in. #3561
- Line comment lined up with the first element of its container stays with the elements. #3561
Fixed
- Parenthesized function type gets an extra indent level where no outer function type needs it. #3554
- Multiline tuple in the middle of a function type gives invalid code. #3556
- Parenthesized function type after an arrow gives invalid code with indent_size 2. #3557
- Long type test with :? gives invalid code. #3558
- Line comment after the opening parenthesis of a type moves and breaks the type. #3559
- Comment between a match pattern and its when guard gives invalid code. #3560
- Regression: Stroustrup bracket style in anonymous record type parameter is not respected. #3069
- Space inserted before final > in type parameter. #2860
October 15 Release
9.0.0-alpha-001
Changed
- Fantomas checks that its output keeps every
//and(* *)comment of the file. A format run searches its result for each of them, and does not write a result that is missing one, even when it is valid F#. The daemon that editors use refuses such output too, and output that is not valid F#, where it used to send both to the editor.fantomas doctorhas aCommentsstep that checks, more thoroughly than a format run can afford, that the result keeps every comment and directive of the file under every define combination, aParsestep that lists the define combinations the file is parsed under, and ends on aVerdict: what a format run would do with the file.CodeFormatter.FormatDocumentWithValidationsAsynctakes the checks to run asValidations, andFormatResulthas a new field,Issues, with what they found, so code that constructs aFormatResulthas to set it.DefineParseException.Combinationsholds the defines of each combination that failed, rather than their names. #1353 - On Linux x64, the
fantomastool is an executable compiled with Native AOT. It starts in milliseconds rather than first starting the .NET runtime. Thefantomaspackage only names the packages per platform:fantomas.linux-x64and, for Alpine,fantomas.linux-musl-x64hold the executable, and every other platform installsfantomas.any, the tool as it shipped before. #3171
Special thanks to @nojaf!
October 14th Release
October 14th Release
October 9th Release
8.0.8
Changed
- Update FCS to 'Add range of the when keyword to SynMatchClauseTrivia', commit 409c7a62ea193ec060e87ccad78636feeb0883f1 #3531
Fixed
- Comment after 'when' on its own line is lost. The syntax tree had no range for the
whenkeyword of a match clause, so a comment after it had no node on its line to attach to. The parser now records that range, and the comment stays after the keyword. #3521
Special thanks to @nojaf!
October 5th Release
8.0.7
Fixed
- Exception abbreviation loses its right-hand side. #3511
- Static optimization when ^T struct loses struct. #3514
- Static optimization loses the
andbetween its conditions, and reverses its conditions andwhenclauses. #3516 - static extern inside a type loses static. #3515
Special thanks to @nojaf!