npm / prettier-plugin-sql-cst
prettier-plugin-sql-cst
What changed in prettier-plugin-sql-cst 0.14 to 0.25, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-27.
11 breaking12 new APIs and options12 behavior and defaults18 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initprettier-plugin-sql-cst 0.253 changes
Breaking changes 2
Short CASE expressions are kept on one line.
Operator formatting reverts the change made in 0.23.0.
Fixes and other changes 1
RETURN statement formatting keeps the value at least partly on the same line as the RETURN keyword.
prettier-plugin-sql-cst 0.243 changes
New APIs and options 1
Allows formatting SQL without paying attention to the original line breaks in source code, similarly to Prettier's objectWrap.
Fixes and other changes 2
Avoids removing double parentheses around
((SELECT ...))expressions.Avoids excessive parenthesis removal around PostgreSQL row constructors, which previously collapsed
SELECT foo(10, (1, 2))toSELECT foo(10, 1, 2).
prettier-plugin-sql-cst 0.2312 changes
Breaking changes 1
PostgreSQL -> and ->> operators are formatted without spaces around them.
Behavior and default changes 7
CREATE INDEX formatting is improved.
Empty parentheses after a function name no longer get a line break.
SQL inside PL/pgSQL EXECUTE and BigQuery EXECUTE IMMEDIATE is formatted.
JOINs are formatted at the same indentation level as FROM.
PL/pgSQL and SQL inside PostgreSQL DO statements are formatted.
A single-column SELECT no longer uses a hanging indent.
CASE expressions use improved WHEN/THEN/ELSE formatting.
Fixes and other changes 4
Long binary expressions break after the operator.
COMMENT ON formatting is improved.
Parentheses in count(DISTINCT (foo, bar)) are preserved.
Strings in the LANGUAGE clause are recognized.
prettier-plugin-sql-cst 0.222 changes
Breaking changes 1
The option was removed; use conditional comments instead.
Fixes and other changes 1
Formatting of
-------------comments is preserved.
prettier-plugin-sql-cst 0.211 changes
New APIs and options 1
Enables formatting of PL/pgSQL inside function bodies when set to true.
prettier-plugin-sql-cst 0.191 changes
Behavior and default changes 1
The package is compiled into a single .js file, eliminating the need to deal with ES module imports.
prettier-plugin-sql-cst 0.181 changes
Behavior and default changes 1
SQL code inside CREATE FUNCTION and CREATE PROCEDURE bodies is now formatted when LANGUAGE sql is used in PostgreSQL.
prettier-plugin-sql-cst 0.1710 changes
Breaking changes 4
The option now affects ARRAY[] case in BigQuery, but not in PostgreSQL.
CREATE PROCEDURE is formatted similarly to CREATE FUNCTION.
Custom data types are treated as identifiers and left as-is by default.
PostgreSQL builtin data type names are now formatted in upper case by default.
New APIs and options 3
Adds an option to control SQL function casing.
Adds an option to control SQL identifier casing.
Adds an option to control SQL data type casing.
Fixes and other changes 3
Formatting is improved for ANALYZE TABLE statements listing multiple tables.
Formatting is improved for CREATE TABLE ... LIKE statements.
Formatting is improved for DROP TABLE statements listing multiple tables.
prettier-plugin-sql-cst 0.162 changes
Breaking changes 1
ADD CONSTRAINT in ALTER TABLE is formatted like CONSTRAINT definitions in CREATE TABLE.
Fixes and other changes 1
PostgreSQL parsing improvements from sql-parser-cst 0.36.1.
prettier-plugin-sql-cst 0.153 changes
Breaking changes 1
PostgreSQL data types are now treated as identifiers rather than keywords, so sqlKeywordCase has no effect on them.
Behavior and default changes 1
PostgreSQL data type support now includes SETOF types.
Fixes and other changes 1
PostgreSQL data type support now includes schema-qualified type names.
prettier-plugin-sql-cst 0.1415 changes
Breaking changes 1
ON and OFF values in PostgreSQL SET statements are formatted as literals and respect sqlLiteralCase.
New APIs and options 7
Support added for PostgreSQL CREATE, DROP, and ALTER PUBLICATION syntax.
Support added for PostgreSQL CREATE and DROP SUBSCRIPTION syntax.
Support added for PostgreSQL DO statements.
Support added for PostgreSQL RESET statements.
Support added for PostgreSQL SET statements.
Support added for PostgreSQL SHOW statements.
Added the sqlLiteralCase option.
Behavior and default changes 2
Support added for DEALLOCATE statements in PostgreSQL, MySQL, and MariaDB.
Support added for EXECUTE statements in PostgreSQL, MySQL, and MariaDB.
Fixes and other changes 5
Support added for PostgreSQL ALTER DEFAULT PRIVILEGES syntax.
Support added for the PostgreSQL COMMENT IN syntax.
Support added for PostgreSQL CREATE and DROP EXTENSION syntax.
Support added for PostgreSQL CALL statements.
Support added for PREPARE statements in PostgreSQL, MySQL, and MariaDB.