Releases: sql-formatter-org/sql-formatter
Releases · sql-formatter-org/sql-formatter
15.1.1
15.1.0
New features
- Add support for disable/enable comments to turn off formatting for sections of SQL file #703
- Allow passing inline JSON config object from command line (e.g.
--config '{"keywordCase": "upper"}') #701
Bugfixes
15.0.2
15.0.1
15.0.0
Breaking changes
- The
keywordCaseoption no more applies to data types. - The
identifierCaseoption no more applies to function names. - New formatting style of
CREATE TABLE(#495) Thanks to Timon Jurschitsch - New formatting style of
CREATE VIEW - When using custom dialects:
TokenizerOptionshas new mandatoryreservedDataTypefield.
New features
- Added
functionCaseoption (#237) Thanks to Karl Horky - Added
dataTypeCaseoption (#653) Thanks to Karl Horky
Bugfixes
14.0.0
Breaking changes
These already deprecated features were fundamentally broken and have been removed for good:
- Removed
tabulateAliasconfig option. - Removed
commaPositionconfig option.
Potentially breaking:
- The DB2 support has been completely overhauled. Previously it was a mix of features from DB2 for IBM z mainframe and DB2 for LUW (Linux, Unix, Windows). Now the dialect named "db2" specifically targets the LUW variant.
- Snowflake dialect now includes all data types in the keywords list. Which means that when
keywordCase: upperoption is used, the data type names are also converted to uppercase. (#641) - The
SqlLanguagetype is no more just a plain string (a regression), but a union of the builtin SQL dialect names. - The
DialectOptionstype now includes a mandatorynamefield. (Relevant only when implementing a custom dialect.)
New features
- New experimental
identifierCaseconfig option. This works similarly to the existingkeywordCaseoption. (Thanks to Christian Jorgensen.)
Bugfixes
- Various tweaks and fixes for the new DB2i dialect (introduced in 13.1.0).
- Fixed formatting of
TIMESTAMP() WITH TIME ZONEin PostgreSQL (#618) - Improved error messages from the parser to help users self-diagnose the most common issues.