Skip to content

Releases: dangmai/prettier-plugin-apex

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

v1.0.0-rc.3

14 Jun 17:41
Compare
Choose a tag to compare
  • Update dependency requirement for Prettier.
  • Fix incorrect format for SOQL query with multiple types in FROM clause (issue).
  • Fix incorrect order of expressions in SOSL query (issue).
  • Add support for class and interface generics (issue).

v1.0.0-rc.2

10 Jun 17:20
Compare
Choose a tag to compare
  • Remove references to deleted vendor file apex-ast-serializer-ng.

v1.0.0-rc.1

09 Jun 22:10
Compare
Choose a tag to compare
  • CLI/Option change:
    • Remove apex-verify-ast option. Please use --debug-check instead.
  • Implement comments using Prettier's API.
  • Add support for prettier-ignore directive (issue).
  • Add support for --require-pragma and --insert-pragma CLI directives.
  • Use internal HTTP server instead of Nailgun for built in parser.
  • Fix unstable comments in between If/Else blocks.
  • Fix unstable comments in between Try/Catch/Finally blocks.
  • Fix unstable comments in WhereCompoundExpr.
  • Fix unstable comments for NestedExpr.
  • Fix unstable formatting for Method Declaration with no body.
  • Fix unstable comments for Annotations.
  • Fix unstable leading comments to ValueWhen and ElseWhen blocks.
  • Throw errors when encountering unknown node types.

v1.0.0-beta.2

07 Jun 17:56
Compare
Choose a tag to compare
  • Fix long static method calls producing undeployable code (issue).

v1.0.0-beta.1

03 Jun 23:01
Compare
Choose a tag to compare
  • Add support for Anonymous Code block with --apex-anonymous option.
  • CLI/Option change:
    • use-standalone-server option is now apex-standalone-parser,
      and it is now a choice between none and built-in.
    • server-port option is now apex-standalone-port.
    • Add apex-verify-ast option.
  • Fix dangling comments being printed incorrectly for Triggers (issue).
    Thanks to @praksb, @ntotten and @vazexqi for their help on getting jorje fixed.
  • Fix SOQL unary expression not generating space before next expression.
  • Add support for SOQL WHERE Calculation Expression (issue).
  • Add support for parameter modifiers (issue).
  • Add support for while loop without body (issue).
  • Add support for for loop without body (issue).
  • Add support for Java expressions/typerefs (issue).
  • Fix Package Version Expression.
  • Fix Unicode characters being printed incorrectly (issue).
  • Workaround for certain cases of AST verification failing (issue).
  • Fix overlapping node with comment when comment contains special characters.
  • Fix awkward breaks for long method call chain (issue),
  • Remove breaks in Map types (issue).
  • Fix binary/boolean expressions breaking after operation despite available space (issue).
  • Fix leading comment to SOQL inner query being misindentified as trailing comment to previous column clause (issue).
  • Fix awkward breaks for multiline binaryish expressions (issue).
  • Fix formatting for Apex types containing expressions but do not add groups and/or breaks.
  • Fix SOQL/SOSL boolean expressions having extra parentheses (issue).
  • Fix ternary expressions not breaking correctly (issue).
  • Fix comments not being indented in binaryish expressions (issue).
  • Fix array index indentation surrounding variable expressions and method call expressions.
  • Fix unstable IfBlock trailing comments.
  • Fix unstable NameValueParameter trailing comments.
  • Fix unstable WhereOpExpr trailing comments.

v1.0.0-alpha.9

28 May 14:17
Compare
Choose a tag to compare
  • Fix trailing comments after class names not being printed (issue).
  • Add new lines in empty blocks for Enum.
  • Add new lines to long list of annotation parameters.
  • Add new lines to long list of method declaration parameters.
  • Add new line after last usage parameter in long list for triggers.
  • Add new lines to long list of conditions in loops.
  • Fix missing alias in FROM expression (issue).
  • Fix double quotes being escaped unnecessarily (issue).
  • Fix inline comments in blocks being attached to wrong node (issue).
  • Fix comments being pushed to next lines because of node's trailing empty line (issue).

v1.0.0-alpha.8

28 May 14:18
Compare
Choose a tag to compare
  • Fix comments not being printed if they appear before the root node (issue).
  • Fix dangling comments not being printed for Class, Interface, Enum and Block Statement (issue).
  • Add new lines in empty blocks (issue).
  • Fix trailing comment being mistaken as leading comment in certain situations,
    because jorje provides wrong start and end indexes for some node types (issue).

v1.0.0-alpha.7

28 May 14:21
Compare
Choose a tag to compare
  • Fix Annotated Declaration being indented too far (issue).
  • Getter and setter will no longer break if they can fit on the same line.
  • Add documentation for configuration options.