Skip to content

Releases: facebook/ktfmt

0.15

07 Jul 17:00
Compare
Choose a tag to compare

This version contains tags 0.14 and 0.15; there's no separate v0.14 release.

Release Notes:

  • Handle annotations with type arguments (fixes #48)
  • Fit annotations in one line when possible
  • Handle multi-annotations with use-site targets (fixes #51)
  • Handle the 'dynamic' keyword (#50)
  • Avoid closing block in qualified expression for non-lambdas
  • Fix breaking after = for a property with no type and many annotations
  • Preserve existing line breaks in output (\n, \r or \r\n)
  • Don't add a newline between package and the next element when there are no imports
  • Correctly indent blocky expressions in if-else
  • Fix bug in all-under import deduplication
  • Fix super statements without labels
  • Support super expressions with type qualifier
  • Fix space after return with no value
  • ktfmt now drops redundant semicolons
  • Better formatting for qualified expressions
  • Support suspended types (#33)

Get it on Maven Central: https://search.maven.org/artifact/com.facebook/ktfmt/0.15/jar

0.13

04 May 21:51
Compare
Choose a tag to compare

New:

  • The minimum supported runtime version is JDK 11, released September 2018.
  • ktfmt is now usable directly from Maven central, using the coordinates com.facebook:ktfmt:0.13.

Get it on Maven Central: https://search.maven.org/artifact/com.facebook/ktfmt/0.13/jar

0.12

15 Apr 14:13
Compare
Choose a tag to compare

Delta vs v0.11:

  1. All tests now pass.
  2. ktfmt no longer modifies multiline strings.

Get it on Maven Central: https://search.maven.org/artifact/com.facebook/ktfmt/0.12/jar

0.11

13 Apr 16:12
Compare
Choose a tag to compare
0.11 Pre-release
Pre-release

Just trying the UI :)

Known issue:

  1. One test is failing ("handle comments in the middle of calling chain").
  2. ktfmt may change multiline strings.

Get it from Maven Central: https://search.maven.org/artifact/com.facebook/ktfmt/0.11/jar