Skip to content

Releases: facebook/ktfmt

v0.49

24 Apr 19:11
Compare
Choose a tag to compare

Changelog

  • Stop emitting multiple trailing commas in enum entry lists with multiline items (#458) – @nreid260

Full Changelog: v0.48...v0.49

0.48

23 Apr 13:35
Compare
Choose a tag to compare

Changelog:

Big thanks to all the contributors!

Full Changelog: v0.47...v0.48

0.47

17 Jan 19:33
Compare
Choose a tag to compare

0.46

19 Sep 12:01
Compare
Choose a tag to compare
  • Now targeting Kotlin 1.8.22
  • Adjust .editorconfig for kotlinlang style for IntelliJ to better align with ktfmt (#412)
  • Fix indentation of trailing comments in a bunch of cases (#418)

Big thanks to @nreid260 and @cloudshiftchris for their contributions!

0.45

18 Sep 15:37
Compare
Choose a tag to compare

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)

Huge thanks to @nreid260 and @bddckr for the contributions!

0.44

28 Apr 14:22
Compare
Choose a tag to compare
  • Allow optional break after string-literals
  • Don't crash on nullable reference types with parens
  • Enforce blank lines between class members

0.43

07 Feb 16:08
Compare
Choose a tag to compare

0.42

09 Dec 12:37
Compare
Choose a tag to compare

Changes:

  1. A new kdoc formatting engine! we've integrated https://github.com/tnorbye/kdoc-formatter into ktfmt, which fixes several kdoc formatting bugs.
  2. Preserve indentation of trailing comments in comma-separated lists (#357)

0.41

23 Sep 21:02
Compare
Choose a tag to compare

0.40

02 Sep 15:53
Compare
Choose a tag to compare
  • 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