Releases: sql-formatter-org/sql-formatter
Releases · sql-formatter-org/sql-formatter
10.5.1
10.5.0
10.4.0
10.3.0
10.2.0
10.1.1
10.1.0
Improvements
- Add support for
@@variables
in MariaDB, MySQL, SingleStoreDB #410 - Remove support of prefixes from double-quoted strings inMariaDB, MySQL, SingleStoreDB (shouldn't break unless you're for some reason formatting invalid code) #408
Bugfixes
- Fix tabular style formatting of LIMIT clause #412
Internal changes
10.0.0
Breaking changes
- Encountering braces
{}
or brackets[]
in SQL dialect not supporting these will now throw error #400 - Encountering unbalanced parenthesis
()
(also{}
and[]
) will now produce an error #277
Performance
- Tokenizer is now faster, thanks to removal of case-insensitive regex transform #394
- Parser is now slower, because of the switch to nearley #277
- Overall performance is more impacted by the parser, so the net result is a slower formatting. Though this should only affect you if you're formatting megabytes worth of SQL.
Internal changes
10.0.0-beta.1
Breaking changes
- Encountering braces
{}
or brackets[]
in SQL dialect not supporting these will now throw error #400 - Encountering unbalanced parenthesis
()
(also{}
and[]
) will now produce an error #277
Performance
- Tokenizer is now faster, thanks to removal of case-insensitive regex transform #394
- Parser is now slower, because of the switch to nearley #277
- Overall performance is more impacted by the parser, so the net result is a slower formatting. Though this should only effect you if you're formatting megabytes worth of SQL.
Internal changes
9.2.0
New features:
- Added
paramTypes
config option to allow user-configured parameter placeholder types #367 - Extended
language
option to allow for passing in a user-defined Formatter class #306
Improvements:
- Better handling of line-comments, preserving their position either at the end of line or between lines #365