Skip to content

Releases: jhipster/prettier-java

2.7.1

01 Jul 05:12
Compare
Choose a tag to compare

What's Changed

  • feat: support experimentalOperatorPosition option (issue #534) by @jtkiesel in #731
  • fix: make formatting of comments on if statements stable (issue #592) by @jtkiesel in #731
  • fix: break nested statements without braces at the top level first (issue #720) by @jtkiesel in #731
  • fix: do not add a blank line at the end of embedded Java (issue #737) by @jtkiesel in #731

2.6.8

04 Jun 04:28
Compare
Choose a tag to compare

What's Changed

  • fix: break hugged lambda body when closing parenthesis wraps by @jtkiesel in #721
  • fix: limit TypePattern's VariableDeclaratorList to a single VariableDeclarator by @jtkiesel in #734

2.6.7

22 Jan 20:11
Compare
Choose a tag to compare

Fixes

  • Restore require support for VS Code compatibility (Issue #711 closed by #714 by @jtkiesel)
  • Fix unstable formatting with comment between class and static function call (Issue #712 closed by #713 and #715 by @clementdessoude)

2.6.6

08 Jan 23:02
Compare
Choose a tag to compare

Enhancements

  • Add typescript support to prettier-plugin-java (#692 by @ntnyq )

Fixes

2.6.5

25 Oct 16:26
Compare
Choose a tag to compare

Fixes

  • Print comment before first binary operator without failing (Issue #685) fixed by #688 by @jtkiesel
  • Add whitespace between label and statement (Issue #686) fixed by #689 by @jtkiesel
  • Break and indent assignments like declarations (Issue #687) fixed by #690 by @jtkiesel

2.6.4

12 Jul 05:44
Compare
Choose a tag to compare

Fixes

Misc

  • Update advanced_usage.md with current working configuration for IntelliJ (#669 by @tfield)
  • Update trailingComma option on advanced_usage.md (#451 by @jslivane)
  • Automate GitHub Pages deployment (#672 by @jtkiesel)

2.6.0

22 Feb 09:50
Compare
Choose a tag to compare

Enhancements

Fixes

  • Consistent break after equals (Issue #638 fixed by #641 by @jtkiesel)
  • Properly break and indent lambda with comments (Issue #581 fixed by #604 by @jtkiesel)
  • Do not fail on constructor and method receiver parameter (Issue #607 fixed by #642 by @jtkiesel)
  • No break in single-block switch case (Issue #635 fixed by #636 by @jtkiesel)
  • Non-block if/else statements are now kept on their own lines (Issue #631 fixed by #633 by @jtkiesel)

Misc

v2.5.0

26 Nov 17:12
Compare
Choose a tag to compare

Latest v2.5.0

Enhancements

Fixes

  • No longer ignore whole block when prettier-ignore at start (#603 by @jtkiesel)

Miscellaneous

v2.4.0

12 Nov 18:21
Compare
Choose a tag to compare

Latest v2.4.0

Enhancements

  • Supports Java 21 record pattern (#611 by @jtkiesel)
  • Supports Java 21 preview feature: unnamed class compilation unit (JEP 445) (#615)

v2.3.1

04 Sep 08:55
Compare
Choose a tag to compare

Fixes

  • Correct indentation of assignment operations (#602 by @jtkiesel)