Releases: nene/prettier-plugin-sql-cst
Releases Β· nene/prettier-plugin-sql-cst
0.11.1
0.11.0
New features
- New option
sqlCanonicalSyntax
. When enabled (which is the default), the formatter will perform various transformations on the source code, like addingAS
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
0.10.1
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
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