Upgrade guide
We wish to capture all changes required to upgrade to a new version. Please note that the focus of this document is about how to upgrade.
New features are not covered in detail here, for those please refer to our changelog.
If you find something to be missing from this guide, please consider opening a PR to mend the gap instead of opening an issue.
v5.0
.editorconfig
fsharp_max_elmish_widthwas removed.fsharp_single_argument_web_modewas removed.fsharp_disable_elmish_syntaxwas removed.fsharp_semicolon_at_end_of_linewas removed.fsharp_keep_if_then_in_same_linewas removed.fsharp_indent_on_try_withwas removed.- If you were using Elmish inspired code (or
fsharp_single_argument_web_mode) use
fsharp_multiline_block_brackets_on_same_column = true
fsharp_experimental_stroustrup_style = true
fsharp_keep_indent_in_branchwas renamed tofsharp_experimental_keep_indent_in_branch
console application
- The dotnet tool is now targeting
net6.0. --stdinwas removed.--stdoutwas removed.--fsiwas removed.--forcenow writes a formatted file to disk, regardless of its validity.
Miscellaneous
- NuGet package
Fantomaswas renamed toFantomas.Core. - NuGet package
fantomas-toolwas renamed tofantomas. Fantomas.Coreuses Fantomas.FCS instead of FSharp.Compiler.Service- NuGet package
Fantomas.Extrasis deprecated.
v5.1
.editorconfig
-
The space in patterns is no longer controlled by
fsharp_space_before_parameter,
fsharp_space_before_lowercase_invocationandfsharp_space_before_uppercase_invocationare now used.
v5.2
.editorconfig
-
fsharp_multiline_block_brackets_on_same_columnandfsharp_experimental_stroustrup_styleare now merged into one settingfsharp_multiline_bracket_style.
The accepted values forfsharp_multiline_bracket_stylearecramped,alignedandexperimental_stroustrup.
Note thatfsharp_multiline_block_brackets_on_same_columnandfsharp_experimental_stroustrup_stylewill continue to work until the next major version.
v6.0
.editorconfig
fsharp_multiline_block_brackets_on_same_columnandfsharp_experimental_stroustrup_styleare replaced withfsharp_multiline_bracket_styleexperimental_stroustrupforfsharp_multiline_bracket_styleis nowstroustrupfsharp_newline_before_multiline_computation_expressionwas extracted fromfsharp_multiline_bracket_style = stroustrupand now controls how computation expression behave.fsharp_strict_modewas removed and can no longer be used.
console application
-vis now short for--verbosityinstead of--version- The console output was revamped.
--recursewas removed. Please use .fantomasignore file if you wish to ignore certain files.
Miscellaneous
- The public API of CodeFormatter no longer uses
FSharpOption<'T>, instead overloads are now used. StrictModewas removed fromFormatConfig, not passing the source text in the public API will have the same effect.
v6.1
Miscellaneous
- The namespace in Fantomas.FCS changed from
FSharp.CompilertoFantomas.FCS.
v7 alpha
console application
- Target framework is now
net8.0.
.editorconfig
fsharp_max_dot_get_expression_widthwas removed.
fantomas