Skip to content

Releases: dangmai/prettier-plugin-apex

v2.1.0

21 Feb 04:20
Compare
Choose a tag to compare

If you are upgrading from Prettier Apex v1, please follow this guide to upgrade to v2.

  • Add support for Null Coalescing Expression (doc).
  • Add experimental support for using native executables to speed up parsing Apex code. Follow the documentation to try it out, and please report any issues you encounter.

Internal Changes

  • Use pnpm for internal dependency management instead of yarn. If you forked this repository before this change, make sure to follow CONTRIBUTING.md to set up your environment again.
  • This repository is now a monorepo (managed by nx), containing all packages related to this project. This change should not affect normal usage of the library, but if you are maintaining a fork of this library, please make sure to update your workflow accordingly.
  • Our new Playground has been published, allowing users to try out Prettier Apex without installing anything.
  • Allow user to customize the secret used to shut down the parsing server.
  • Allow user to specify the protocol (HTTP/HTTPS) that the parsing server uses.

v2.1.0-rc.7

21 Feb 03:47
Compare
Choose a tag to compare
v2.1.0-rc.7 Pre-release
Pre-release

Pre-release version for v2.1.0 to test out native executable distribution

v2.0.1

05 Jul 20:35
Compare
Choose a tag to compare

This is a fix version that includes the correct Production bundle. Please refer to the 2.0.0 changes for actual change notes.

v2.0.0

05 Jul 19:26
Compare
Choose a tag to compare

Please follow this guide to upgrade Prettier Apex to this new major version.

Dependency Changes

  • Support Prettier v3 (issue). You cannot use this version with Prettier v2, please plan your upgrade accordingly.
  • Drop support for NodeJS < 18.11.0.

Internal Changes

  • Prettier Apex is now distributed as an ECMAScript Module. This shouldn't affect normal usage of the library, but if you are importing code from Prettier Apex you may need to change your code to adapt.

v1.13.0

23 Apr 18:11
Compare
Choose a tag to compare

Formatting Changes

  • Add support for User Mode in Database Operations (issue).

Internal Changes

  • start-apex-server takes optional -c flag, which will be passed on to apex-ast-serializer as a comma-delimited list of allowed origins that will be added to the CORS headers returned by the parsing server.
  • start-apex-server pipes internal logs to console, so that errors can be caught more quickly by users.

v1.12.0

04 Dec 23:55
Compare
Choose a tag to compare

Formatting Changes

  • Fix binaryish expressions having wrong indentation inside parentheses (issue).
  • Keep original position for comments in between If-Else blocks and Try-Catch blocks, accordingly fix issue with unprinted comment (issue).

Internal Changes

  • Use yarn for internal dependency management instead of npm. If you forked this repository before this change, make sure to follow CONTRIBUTING.md to set up your environment again.
  • start-apex-server and stop-apex-server no longer exports any methods. This should not affect any user functionality, but if you are a developer who's relying on those methods, please import start and stop from http-server instead.

v1.11.0

23 Oct 22:43
Compare
Choose a tag to compare

Dependency Changes

  • Drop support for NodeJS < 14

Internal Changes

  • Prettier Apex has been converted to Typescript, enabling faster response time to internal jorje changes from Salesforce.

CLI Changes

  • Breaking: Locations for start-apex-server.js and stop-apex-server.js are changed - they are now in the dist directory.
  • Add ability to specify host and port options for built-in parsing server (issue).

Formatting Changes

  • Add support for SOQL Geolocation Expression (issue).
  • Fix SOQL Time literals always getting printed in UTC timezone.
  • Fix wrong indentations inside long SELECT functions (issue).
  • Remove extraneous newline at the end of long GROUP BY and WITH DATA CATEGORY clauses (issue).
  • Fix unstable leading comment formatting for ternary expressions (issue).
  • Add support for prettier-ignore comments in the middle of IfElseBlock (issue).
  • Use user input to improve line break heuristics in short SOQL/SOSL queries (issue).
  • Fix unstable leading comments before Block Statement.
  • Support trailing prettier-ignore comments (issue).
  • Fix failure to call apex-ast-serializer because of excessively long CLASSPATH on Windows (issue).
  • Fix unstable end of line comments in binaryish expressions.

v1.10.0

16 Jun 17:29
Compare
Choose a tag to compare

Dependency Changes

  • Drop support for NodeJS < 12.

Formatting Changes

  • Fix last comment inside New Expression turning into trailing comment (issue).
  • Fix prettier-ignore comment getting attached to modifier node instead of surrounding expressions (issue).

v1.9.1

26 Apr 17:30
Compare
Choose a tag to compare
  • Fix Enum cases using wrong separator in switch statements (issue).

v1.9.0

09 Apr 17:45
Compare
Choose a tag to compare

Dependency Changes

  • Drop support for Java < 11.
  • Add support for Java 16.

Formatting Changes

  • Fix SOQL query string getting quoted incorrectly in LIKE expressions (issue).
  • Prefer list init syntax new Object[0] in certain situations (issue) - thanks to @brianmfear.