unstale

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 init

@unstale/cli on npm

prettier-plugin-sql-cst 0.253 changes

Breaking changes 2

  • Short CASE expressions are kept on one line.

    0.25.0release notes

  • Operator formatting reverts the change made in 0.23.0.

    0.25.0release notes

Fixes and other changes 1

  • RETURN statement formatting keeps the value at least partly on the same line as the RETURN keyword.

    0.25.0release notes

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.

    0.24.0release notes

Fixes and other changes 2

  • Avoids removing double parentheses around ((SELECT ...)) expressions.

    0.24.0release notes

  • Avoids excessive parenthesis removal around PostgreSQL row constructors, which previously collapsed SELECT foo(10, (1, 2)) to SELECT foo(10, 1, 2).

    0.24.0release notes

prettier-plugin-sql-cst 0.2312 changes

Breaking changes 1

  • PostgreSQL -> and ->> operators are formatted without spaces around them.

    0.23.0release notes

Behavior and default changes 7

  • CREATE INDEX formatting is improved.

    0.23.0release notes

  • Empty parentheses after a function name no longer get a line break.

    0.23.0release notes

  • SQL inside PL/pgSQL EXECUTE and BigQuery EXECUTE IMMEDIATE is formatted.

    0.23.0release notes

  • JOINs are formatted at the same indentation level as FROM.

    0.23.0release notes

  • PL/pgSQL and SQL inside PostgreSQL DO statements are formatted.

    0.23.0release notes

  • A single-column SELECT no longer uses a hanging indent.

    0.23.0release notes

  • CASE expressions use improved WHEN/THEN/ELSE formatting.

    0.23.0release notes

Fixes and other changes 4

  • Long binary expressions break after the operator.

    0.23.0release notes

  • COMMENT ON formatting is improved.

    0.23.0release notes

  • Parentheses in count(DISTINCT (foo, bar)) are preserved.

    0.23.0release notes

  • Strings in the LANGUAGE clause are recognized.

    0.23.0release notes

prettier-plugin-sql-cst 0.222 changes

Breaking changes 1

  • The option was removed; use conditional comments instead.

    0.22.0release notes

Fixes and other changes 1

  • Formatting of ------------- comments is preserved.

    0.22.1release notes

prettier-plugin-sql-cst 0.211 changes

New APIs and options 1

  • Enables formatting of PL/pgSQL inside function bodies when set to true.

    0.21.0release notes

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.

    0.19.3release notes

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.

    0.18.0release notes

prettier-plugin-sql-cst 0.1710 changes

Breaking changes 4

  • The option now affects ARRAY[] case in BigQuery, but not in PostgreSQL.

    0.17.2release notes

  • CREATE PROCEDURE is formatted similarly to CREATE FUNCTION.

    0.17.0release notes

  • Custom data types are treated as identifiers and left as-is by default.

    0.17.0release notes

  • PostgreSQL builtin data type names are now formatted in upper case by default.

    0.17.0release notes

New APIs and options 3

  • Adds an option to control SQL function casing.

    0.17.0release notes

  • Adds an option to control SQL identifier casing.

    0.17.0release notes

  • Adds an option to control SQL data type casing.

    0.17.0release notes

Fixes and other changes 3

  • Formatting is improved for ANALYZE TABLE statements listing multiple tables.

    0.17.0release notes

  • Formatting is improved for CREATE TABLE ... LIKE statements.

    0.17.0release notes

  • Formatting is improved for DROP TABLE statements listing multiple tables.

    0.17.0release notes

prettier-plugin-sql-cst 0.162 changes

Breaking changes 1

  • ADD CONSTRAINT in ALTER TABLE is formatted like CONSTRAINT definitions in CREATE TABLE.

    0.16.0release notes

Fixes and other changes 1

  • PostgreSQL parsing improvements from sql-parser-cst 0.36.1.

    0.16.0release notes

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.

    0.15.0release notes

Behavior and default changes 1

  • PostgreSQL data type support now includes SETOF types.

    0.15.0release notes

Fixes and other changes 1

  • PostgreSQL data type support now includes schema-qualified type names.

    0.15.0release notes

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.

    0.14.1release notes

New APIs and options 7

  • Support added for PostgreSQL CREATE, DROP, and ALTER PUBLICATION syntax.

    0.14.1release notes

  • Support added for PostgreSQL CREATE and DROP SUBSCRIPTION syntax.

    0.14.1release notes

  • Support added for PostgreSQL DO statements.

    0.14.0release notes

  • Support added for PostgreSQL RESET statements.

    0.14.0release notes

  • Support added for PostgreSQL SET statements.

    0.14.0release notes

  • Support added for PostgreSQL SHOW statements.

    0.14.0release notes

  • Added the sqlLiteralCase option.

    0.14.0release notes

Behavior and default changes 2

  • Support added for DEALLOCATE statements in PostgreSQL, MySQL, and MariaDB.

    0.14.0release notes

  • Support added for EXECUTE statements in PostgreSQL, MySQL, and MariaDB.

    0.14.0release notes

Fixes and other changes 5

  • Support added for PostgreSQL ALTER DEFAULT PRIVILEGES syntax.

    0.14.1release notes

  • Support added for the PostgreSQL COMMENT IN syntax.

    0.14.1release notes

  • Support added for PostgreSQL CREATE and DROP EXTENSION syntax.

    0.14.1release notes

  • Support added for PostgreSQL CALL statements.

    0.14.0release notes

  • Support added for PREPARE statements in PostgreSQL, MySQL, and MariaDB.

    0.14.0release notes