npm / prettier-plugin-sql-cst
prettier-plugin-sql-cst
What changed in prettier-plugin-sql-cst 0.22 to 0.23, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.
1 breaking7 behavior and defaults5 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initprettier-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.221 changes
Fixes and other changes 1
Formatting of
-------------comments is preserved.