unstale

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 init

@unstale/cli 0.2.0 on npm

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.221 changes

Fixes and other changes 1

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

    0.22.1release notes