Repository navigation
Version Packages - #6
Merged
Merged
Conversation
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
September 26, 2026 15:20
f140dda to
7ea8218
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
prettier-plugin-postgresql@0.3.0
Minor Changes
b10a4ef: PostgreSQL: more clauses that were silently dropped are now kept.
ORDER BY … NULLS FIRST/LASTandUSING <,GROUP BY DISTINCT,LIKE/SIMILAR TO … ESCAPE,WITHIN GROUP (ORDER BY …), windowEXCLUDE …and base windows (w2 AS (w …)),NATURAL LEFT/FULL JOIN(printed as an inner join),
JOIN … USING (…) AS j, aliases onparenthesized joins, and the parentheses around nested joins.
OR REPLACE,TEMPORARY, column lists,WITH (…)andWITH CHECK OPTION.NULLS FIRST/LAST, operator classes,COLLATE,NULLS NOT DISTINCT,WITH (…),TABLESPACE,ON ONLY, and parentheses around expression columns.COLLATE; sequenceAS,OWNED BY,TEMPORARYand 64-bit bounds;DROP INDEX CONCURRENTLY; CTE[NOT] MATERIALIZED.EXPLAIN (analyze, …)no longer crashes, andCOPY … csv headerno longerprints
header ''.75e4e70: T-SQL: formatting no longer changes what SQL does.
[order],ON [primary]), andbracketed index, constraint, cursor, window and other names are preserved.
h.GetAncestor(),x.value()) and user functions keeptheir casing; only built-in functions follow
sqlKeywordCase.$actionand other pseudo-columns,GROUP BY ALL,WITH ROLLUP,INSERT TOP (n), andEXEC … WITH RECOMPILEare kept.SET NOCOUNT, XACT_ABORT ONno longer printsXACTABORT.ALTER TABLE … DROP CONSTRAINT x, COLUMN ykeeps each keyword, soyis nolonger dropped as a constraint.
OUTPUTis placed beforeFROMinUPDATEand multi-tableDELETE;SET @v = col = exprandSET col.WRITE(…)print valid SQL.@variablesin hints (OPTIMIZE FOR (@p = 1)) keep their case.Both plugins can now be loaded in the same process (for example a Prettier config
listing both); previously whichever parsed second failed.
2b0cc80: PostgreSQL: formatting no longer changes what a query means.
parenthesis was dropped, so
(a + b) * cbecamea + b * cand(x or y) and zbecamex or y and z."My Table"printed asMy Table(invalid SQL) and"MixedCase"(1)asmixedcase(1)(a differentfunction). Names are now quoted exactly when PostgreSQL requires it.
IS TRUE/IS NOT FALSE/IS UNKNOWNno longer print asis istrueetc.T-SQL:
sqlKeywordCaseno longer recases the inside of double-quoted names.8a001d9: PostgreSQL: more fixes for formatting that changed what SQL does.
CREATE POLICY … AS RESTRICTIVEand theTO role, …list ofCREATE POLICY/ALTER POLICYwere dropped, turning restrictive policies permissive androle-scoped policies into policies for everyone.
ALTER TABLE IF EXISTS,DROP CONSTRAINT IF EXISTS, andCASCADEon droppedcolumns and constraints were dropped;
ADD COLUMN IF NOT EXISTSprinted as theinvalid
ADD COLUMN IF EXISTS.ONLYwas dropped fromSELECT,UPDATE,DELETE,ALTER TABLE,TRUNCATEand
LOCK, so statements recursed into inheritance children and partitions.ALTER VIEW/ALTER INDEX/ALTER MATERIALIZED VIEWprinted asALTER TABLE,and
ALTER TABLE s.t SET SCHEMA xlost the table name.ALTER TABLEsubcommands (e.g.OWNER TO) now fail with a clearerror instead of printing invalid SQL such as
changeowner.SETvalues: numbers were dropped (set statement_timeout = ;) and quotedmixed-case values were lowercased (
search_path"MySchema"→myschema).sqlKeywordCaseand weren't escaped.Both plugins:
sqlKeywordCasenever recases the inside of single-quoted literals.d9fd592: PostgreSQL: DDL formatting no longer drops clauses that change what a statement does.
CREATE TEMP/UNLOGGED TABLE,ON COMMIT,IF NOT EXISTS,INHERITS,USING,WITH (…)andTABLESPACEare kept;CREATE TABLE … ASandmaterialized views also keep their column lists and
WITH NO DATA.GRANT/REVOKEkeep column lists (INSERT (a)),GRANT OPTION FORandGRANTED BY;CURRENT_USERand similar grantees no longer print as nothing.CREATE FUNCTIONkeepsOR REPLACE,SETOF, parameter defaults and everyattribute (
SECURITY DEFINER,STRICT, volatility,PARALLEL,COST,SET,…);
CREATE PROCEDUREno longer prints asCREATE FUNCTION; C functions keeptheir link symbol; bodies containing
$$get a safe dollar-quote tag.ALTER FUNCTION … SECURITY DEFINERno longer prints asSECURITY INVOKER.CREATE TRIGGERkeepsUPDATE OFcolumns, function arguments,OR REPLACE,constraint-trigger options and
REFERENCINGtransition tables.VALUESlists inFROMformat again, and alias column lists(
AS g(n),WITH c(a, b)) are kept.DROP,ALTER,COMMENT ONandGRANTkeep function and operator argumenttypes.
08b14d5: -
sqlKeywordCase: "preserve"now follows the input: an upper-case file keepsupper-case keywords and anything else is lower case. It previously behaved like
"upper".printers.
prettier-plugin-tsql@0.9.0
Minor Changes
75e4e70: T-SQL: formatting no longer changes what SQL does.
[order],ON [primary]), andbracketed index, constraint, cursor, window and other names are preserved.
h.GetAncestor(),x.value()) and user functions keeptheir casing; only built-in functions follow
sqlKeywordCase.$actionand other pseudo-columns,GROUP BY ALL,WITH ROLLUP,INSERT TOP (n), andEXEC … WITH RECOMPILEare kept.SET NOCOUNT, XACT_ABORT ONno longer printsXACTABORT.ALTER TABLE … DROP CONSTRAINT x, COLUMN ykeeps each keyword, soyis nolonger dropped as a constraint.
OUTPUTis placed beforeFROMinUPDATEand multi-tableDELETE;SET @v = col = exprandSET col.WRITE(…)print valid SQL.@variablesin hints (OPTIMIZE FOR (@p = 1)) keep their case.Both plugins can now be loaded in the same process (for example a Prettier config
listing both); previously whichever parsed second failed.
2b0cc80: PostgreSQL: formatting no longer changes what a query means.
parenthesis was dropped, so
(a + b) * cbecamea + b * cand(x or y) and zbecamex or y and z."My Table"printed asMy Table(invalid SQL) and"MixedCase"(1)asmixedcase(1)(a differentfunction). Names are now quoted exactly when PostgreSQL requires it.
IS TRUE/IS NOT FALSE/IS UNKNOWNno longer print asis istrueetc.T-SQL:
sqlKeywordCaseno longer recases the inside of double-quoted names.8a001d9: PostgreSQL: more fixes for formatting that changed what SQL does.
CREATE POLICY … AS RESTRICTIVEand theTO role, …list ofCREATE POLICY/ALTER POLICYwere dropped, turning restrictive policies permissive androle-scoped policies into policies for everyone.
ALTER TABLE IF EXISTS,DROP CONSTRAINT IF EXISTS, andCASCADEon droppedcolumns and constraints were dropped;
ADD COLUMN IF NOT EXISTSprinted as theinvalid
ADD COLUMN IF EXISTS.ONLYwas dropped fromSELECT,UPDATE,DELETE,ALTER TABLE,TRUNCATEand
LOCK, so statements recursed into inheritance children and partitions.ALTER VIEW/ALTER INDEX/ALTER MATERIALIZED VIEWprinted asALTER TABLE,and
ALTER TABLE s.t SET SCHEMA xlost the table name.ALTER TABLEsubcommands (e.g.OWNER TO) now fail with a clearerror instead of printing invalid SQL such as
changeowner.SETvalues: numbers were dropped (set statement_timeout = ;) and quotedmixed-case values were lowercased (
search_path"MySchema"→myschema).sqlKeywordCaseand weren't escaped.Both plugins:
sqlKeywordCasenever recases the inside of single-quoted literals.08b14d5: -
sqlKeywordCase: "preserve"now follows the input: an upper-case file keepsupper-case keywords and anything else is lower case. It previously behaved like
"upper".printers.