Skip to content

Releases: facebook/ktfmt

0.51

14 Jun 14:35
Compare
Choose a tag to compare

Changelog

Added

Changed

  • Preserves blank spaces between when clauses (#342) – @hick209
  • Named the default style as Formatter.META_FORMAT / --meta-style (520706e) – @hick209
  • FormattingOptions constructor parameters order was changed (96a7b1e) – @hick209

Fixed

Removed

  • Deleted Formatter.DROPBOX_FORMAT / --dropbox-style (BREAKING CHANGE) (4a393bb) – @hick209
  • Deleted FormattingOptions.Style enum (7edeff1) – @hick209

Full Changelog: v0.50...v0.51

Huge thanks to all the contributors! 🎉

0.50

07 Jun 02:03
Compare
Choose a tag to compare

Changelog

Full Changelog: v0.49...v0.50

0.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)