Skip to content

Releases: dangmai/prettier-plugin-apex

v1.6.0

04 Jul 20:25
Compare
Choose a tag to compare
  • Handle new jorje structure for types in enhanced for loops.
  • Clearer error message when failing to connect to standalone Apex parser server (issue).
  • Handle SOQL Select Distance Expression (issue).
  • Use alignment instead of indentation to provide clarity for ternary expressions (issue).
  • Use uppercase TRUE, FALSE, NULL in SOQL expressions (issue).

v1.5.0

03 Jul 15:54
Compare
Choose a tag to compare
  • Fix incorrect formatting of for loop inits without initialization (issue).

v1.4.0

02 May 16:50
Compare
Choose a tag to compare

Dependency Changes

  • Support Prettier 2.0 (issue).
  • NodeJS support limited to version >= 10.13.0 - driven by Prettier 2.0.

Formatting Changes:

  • Remove extraneous leading empty line in anonymous code blocks.

Misc

  • Sync parser name with Visual Studio Code language Id for Anonymous Apex (issue).

v1.3.0

12 Mar 12:52
Compare
Choose a tag to compare
  • Remove extraneous whitespaces between Enum modifiers (issue).

v1.2.0

03 Feb 04:34
Compare
Choose a tag to compare
  • Preserve code points from original source code (issue).

v1.1.0

17 Nov 02:33
Compare
Choose a tag to compare

Dependency Changes

  • Prettier >= 1.19 is now required to be used with this plugin,
    in order to support new option type string.

CLI Changes

  • Add option apexStandaloneHost, default to localhost.

Formatting Changes

  • Fix last comment in Annotations being put in wrong location (issue).
  • Fix Name Value Parameters using more newlines than necessary (issue).

v1.0.0

05 Oct 16:38
Compare
Choose a tag to compare

At long last, v1.0.0 has been released! It takes more than a year to go from scratch to here, and it wouldn't have been possible without the help from all the contributors (ideas/bug reports/pull requests are all appreciated), so thank you all!

API Changes

  • Remove --apex-anonymous option, use apex-anonymous parser instead (issue).

Formatting Changes

  • By default, add curly bracket spacing for maps, lists and sets (issue).
  • Fix extraneous linebreaks being added after this variable expression (issue).
  • Fix wrong comment position in a long method/variable chain (issue).
  • Fix extraneous linebreaks for empty parameter list in long method declarations (issue).
  • Fix SOQL query numbers losing negative value (issue).
  • Fix method call expressions containing this and super having an extra indentation level.
  • Fix trailing comment wrong location after last element in list/set/map init literals (issue).

v1.0.0-rc.6

07 Aug 17:24
Compare
Choose a tag to compare

One last rc before 1.0.0!

  • Fix incorrect format for decimals/doubles (issue).
  • Add support for Number Expression in SOQL Geolocation Literal (issue).
  • Fix duplicated trailing empty lines for multiple expressions on the same line (issue).
  • Fix expressions in Name Value Parameters not being indented (issue).
  • Fix SOQL queries in binaryish expressions having extraneous indentations (issue).
  • Fix SOQL query number being printed as different types (big-decimal to int) in certain situations.

v1.0.0-rc.5

28 Jun 19:22
Compare
Choose a tag to compare
  • CLI/Option change:
    • Add apex-insert-final-newline option (issue).
  • Remove newline before SOQL expression in ForInit (issue).
  • Add space before colon in ForEnhancedControl (issue).

v1.0.0-rc.4

16 Jun 20:33
Compare
Choose a tag to compare
  • Add support for AnnotationString (issue).