Releases: dangmai/prettier-plugin-apex
Releases · dangmai/prettier-plugin-apex
v1.0.0-rc.5
v1.0.0-rc.4
- Add support for AnnotationString (issue).
v1.0.0-rc.3
v1.0.0-rc.2
- Remove references to deleted vendor file
apex-ast-serializer-ng
.
v1.0.0-rc.1
- CLI/Option change:
- Remove
apex-verify-ast
option. Please use--debug-check
instead.
- Remove
- 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
- Fix long static method calls producing undeployable code (issue).
v1.0.0-beta.1
- Add support for Anonymous Code block with
--apex-anonymous
option. - CLI/Option change:
use-standalone-server
option is nowapex-standalone-parser
,
and it is now a choice betweennone
andbuilt-in
.server-port
option is nowapex-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
- 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
- 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,
becausejorje
provides wrong start and end indexes for some node types (issue).
v1.0.0-alpha.7
- 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.