fix(deps): update dependency sql-formatter to v12 #520
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 contains the following updates:
^8.2.0->^12.0.0Release Notes
sql-formatter-org/sql-formatter (sql-formatter)
v12.2.3: 12.2.3Compare Source
Bugfixes
v12.2.2: 12.2.2Compare Source
Bugfixes
v12.2.1: 12.2.1Compare Source
Bugfixes
v12.2.0: 12.2.0Compare Source
New feature
v12.1.4: 12.1.4Compare Source
ParamItemsandParamTypesat top level #577v12.1.3: 12.1.3Compare Source
Bugfixes
v12.1.2: 12.1.2Compare Source
Enhancements
v12.1.1: 12.1.1Compare Source
Bugfixes
BETWEENoperator followed byANDoperator no more causes a crash (#566)IS [NOT] DISTINCT FROMoperator (#565)v12.1.0: 12.1.0Compare Source
New feature
--fixfor formatting files in-place (#406)v12.0.6: 12.0.6Compare Source
Bugfix
$,@,#chars #550v12.0.5: 12.0.5Compare Source
Bugfixes
commaPositionoption (thanks to Stanislav Germanovskii) #505Dependency updates
v12.0.4: 12.0.4Compare Source
Bugfixes
v12.0.3: 12.0.3Compare Source
Bugfixes
v12.0.2: 12.0.2Compare Source
Bugfixes
v12.0.1: 12.0.1Compare Source
Bugfixes
v12.0.0: 12.0.0Compare Source
Major formatting style change
Most of the simple statements are now formatted more on one line (#483).
For example the following SQL, previously formatted as follows:
will now be formatted on a single line:
New API for smaller bundle size
When using the
format()function, all the dialects need to be loaded because the actual dialect is determined at runtime. Which means a bundler like Webpack will need to bundle up code of all the dialects even when just a single one is needed. This will be something like 4x overhead compared to bundling just a single dialect.There's now a new API which enables tree-shaking to eliminate the code of unused dialects:
See the docs for details.
Related issues/PRs: #511 #515 #452
Breaking changes in extension API
The above change also breaks the current extension API. Notably the
languageparameter no more works for specifying a custom dialect. Instead use the newformatDialect()API for the same purpose.Also, instead of extending the
Formatterclass, there's now aDialectOptionsobject (#493). So one no more needs to extend a class, but can simply provide a config object.Other new features
Bugfixes
=>operator #510v11.0.2: 11.0.2Compare Source
Bugfixes
v11.0.1: 11.0.1Compare Source
Bugfixes
v11.0.0: 11.0.0Compare Source
Potentially breaking changes
New features
Improvements
denseOperatorsconfig now also applies to:operator.v10.7.2: 10.7.2Compare Source
Bugfixes
SELECT;statement #447v10.7.1: 10.7.1Compare Source
Bugfixes
v10.7.0: 10.7.0Compare Source
Improvements
Internals
v10.6.0: 10.6.0Compare Source
Bugfixes
denseOperatorsoption.Internal changes
v10.5.1: 10.5.1Compare Source
Bugfixes
ident.*syntax #430||operator to default SQL dialect #433v10.5.0: 10.5.0Compare Source
Enhancements
language: transactsqlas alias fortsql#427v10.4.0: 10.4.0Compare Source
Bugfixes
Mildly breaking changes
\"and"") #425"...) are no more supported #425v10.3.0: 10.3.0Compare Source
Improvements
Mildly breaking changes
/* ...) will now produce an errorv10.2.0: 10.2.0Compare Source
Bugfixes
Internal changes
v10.1.1: 10.1.1Compare Source
Bugfixes
ROWS BETWEENin window definitions #417 #415v10.1.0: 10.1.0Compare Source
Improvements
@@​variablesin MariaDB, MySQL, SingleStoreDB #410Bugfixes
Internal changes
v10.0.0: 10.0.0Compare Source
Breaking changes
{}or brackets[]in SQL dialect not supporting these will now throw error #400()(also{}and[]) will now produce an error #277Performance
Internal changes
v9.2.0: 9.2.0Compare Source
New features:
paramTypesconfig option to allow user-configured parameter placeholder types #367languageoption to allow for passing in a user-defined Formatter class #306Improvements:
v9.1.0: 9.1.0Compare Source
New features
Improvements
aliasAsconfig (removed in 9.0.0) is used #389v9.0.1: 9.0.1Compare Source
Bugfixes:
Internals:
v9.0.0: 9.0.0Compare Source
Breaking changes
aliasAsconfig option #371LIMIT&OFFSETkeywords are no more supported in all dialects #362CREATE TABLEandDROP TABLEfrom N1QL #364New features
Improvements
tbl@dblinksyntax #338#as first char for Redshift identifiers #358SELECT DISTINCT#362WITH RECURSIVEin addition to plainWITH) #362Bugfixes
BETWEENexpressions #318BETWEEN..ANDformatting in tabular style #350Internals:
language.formatter.tsfile to separate directory and separated functions and keywords to separate files #315RESERVED_JOIN_CONDITIONtoken type.BINARY_COMMANDtoSET_OPERATION#351.d.tsfile extensions #370Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.