Skip to content

Releases: nene/prettier-plugin-sql-cst

0.11.1

28 Jan 09:43
Compare
Choose a tag to compare

Improved PostgreSQL support

  • Formatting of CREATE FUNCTION
  • Formatting of CREATE PROCEDURE
  • Formatting of DROP FUNCTION
  • Formatting of DROP PROCEDURE

0.11.0

22 Jan 18:01
Compare
Choose a tag to compare

New features

  • New option sqlCanonicalSyntax. When enabled (which is the default), the formatter will perform various transformations on the source code, like adding AS keywords to table and column aliases, replacing some deprecated syntax with more modern one, etc.

Improved PostgreSQL and MySQL support

  • Much improved formatting of CREATE TABLE and ALTER TABLE.
  • Along with other parsing improvements form sql-parser-cst 0.23.0

Formatting improvements

  • The formatting of various statements will now adapt to existing code. Similarly to how the formatting of SELECT statement already behaved - i.e. when the original code is on a single line, the formatter also tries to place it on a single line and will only break it up to multiple lines when the statement is short enough.

Bugfixes

  • Created a script to automatically check for unused CST node fields, which uncovered several cases, where the formatter would end up silently deleting code. All fixed now and hopefully won't happen again.

0.10.2

11 Jan 10:03
Compare
Choose a tag to compare

Improved PostgreSQL support

  • PostgreSQL statements INSERT, UPDATE, DELETE, MERGE are now supported.

Improved MySQL support

  • MySQL RENAME TABLE is now properly formatted

Bugfixes

  • Bugfixes and performance improvements from sql-parser-cst 0.22.0 and 0.22.1.

0.10.1

07 Jan 14:01
Compare
Choose a tag to compare

Improved PostgreSQL support.

The support for PostgreSQL SELECT statements is now almost complete.

See sql-parser-cst 0.21.0 release notes for details about the new syntax supported.

0.10.0

31 Dec 14:38
Compare
Choose a tag to compare

New experimental SQL dialects

  • PostgreSQL
  • MySQL
  • MariaDB

Bugfixes

  • Format named function arguments (BigQuery & PostgreSQL)
  • Format special arguments of some BigQuery functions
  • Format blob literals
  • Format NULL constraint
  • Plus all the SQL parsing fixes from sql-parser-cst 0.20.0

0.9.2

29 Dec 10:29
Compare
Choose a tag to compare

Upgrade sql-parser-cst to 0.19.0.

0.9.1

29 Dec 10:27
Compare
Choose a tag to compare

Export SqlPluginOptions type.

0.9.0

29 Dec 10:27
Compare
Choose a tag to compare

Support Prettier 3.