Skip to content

0.65

Latest

Choose a tag to compare

@AbdullinAM AbdullinAM released this 07 Oct 13:04

Added

  • Support partial formatting with --lines/--line and matching --offset/--length pairs, mirroring google-java-format's selected-range formatting flags (#627) by @ZacSweers
  • Support selected-range formatting in the IntelliJ plugin (#627) by @ZacSweers
  • GraalVM native image support (#584) by @sgammon
  • Support val/var keywords in destructuring entries (#637) by @asapha
  • Use --stdin-name as the EditorConfig lookup path when formatting source from stdin (#670) by @ZacSweers

Changed

  • Trailing comma is now added when a single parameter is formatted onto its own line (#624) by @lwasyl
  • Migrated from com.facebook.ktfmt package to org.jetbrains.kotlinx.ktfmt
  • Use the file's extension to differentiate between scripts and regular files in the parser

Fixed

  • Fix non-idempotent formatting when a managed trailing comma pushes a line over MAX_WIDTH (e.g. a long qualified expression as the last argument of a call). The comma is now accounted for by re-running the layout, so the line is broken correctly on the first pass (#636) by @MathieuLorber
  • Fix non-idempotent formatting when max width breaks a scoping-function lambda with a chained call (e.g. runCatching { ... }.getOrNull()): the chained call now breaks onto its own line together with the lambda on the first pass (#649) by @lwasyl

Full Changelog: v0.64...v0.65