Releases: facebook/ktfmt
Releases · facebook/ktfmt
v0.49
0.48
Changelog:
- Migrated to Google Java Format 1.22.0 (#440, #452) – @j-bahr, @nreid260
- Added support for RangUntil (
..<
) operator (#433) – @ArchdukeTim - Trailing space issue on lambda blocks (#426) – @fredyw, @hick209
- Fix empty enum parse error (#425) – @fredyw
- Preserving empty enums semicolons (#434) – @nreid260
- Always use UTF8 (#437) – @nreid260
- IntelliJI DEA plugin update (#420) – @greyhairredbear
- Managing trailing commas in enums (#449) – @nreid260
- Badges on README (#448, #453) – @JavierSegoviaCordoba, @hick209
- Emit parsing error for calls with multiple trailing lambdas (#457) – @nreid260
- Removed duplicated line in editorconfig file (#456) – @sabufung30
Big thanks to all the contributors!
Full Changelog: v0.47...v0.48
0.47
0.46
0.45
Fixed
- Line break after
@sample
breaks Intellij functionality (#310) - Don't insert blank lines between line comments at the end of files (#401)
- Support labeled lambdas in block-like scoping functions (#403)
- Guava bump 29.0 to 32.0
- Keep imports from the same package if the name is overloaded (#414)
- Support context receivers (#397, #314 and #374)
- Fix double indentation in Elvis chains (#416)
- Use inExpression in a nullsafe way (#417)
0.44
0.43
- Support disabling import optimization from command line
- Miscellaneous fixes to the KDoc formatter (https://github.com/facebook/ktfmt/pull/372[)](https://github.com/facebook/ktfmt/commit/d400033dc2ceabd430d79316ab0c4780bcb27ab1)
- Fix indentation of initializer-like expressions with leading comments (#382)
0.42
Changes:
- A new kdoc formatting engine! we've integrated https://github.com/tnorbye/kdoc-formatter into ktfmt, which fixes several kdoc formatting bugs.
- Preserve indentation of trailing comments in comma-separated lists (#357)
0.41
- Force-break an indent qualified expression rooted on multiline strings
- Fix unneeded break following long multiline string (google style) (
if (cond) ; else x
no longer crashes- Array literals in annotations are now processed correctly
0.40
- Don't break before '>' in type arguments
- Fix some spacing issues with comma separated lists in --google-style (#…
- Add --stdin-name to specify a file name to use when printing message …
- Fix crashes on intersection types (e.g. Foo<A & B>) (#341)
- When there's a break in value arguments, also break in the lambda body
- Improve lambda indentation when value arguments are on multiple lines
- When there's a break in type arguments, also break in value arguments
- Break before '>' in type arguments when they don't fit on one line