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.0
Release 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
ParamItems
andParamTypes
at 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
BETWEEN
operator followed byAND
operator no more causes a crash (#566)IS [NOT] DISTINCT FROM
operator (#565)v12.1.0
: 12.1.0Compare Source
New feature
--fix
for formatting files in-place (#406)v12.0.6
: 12.0.6Compare Source
Bugfix
$
,@
,#
chars #550v12.0.5
: 12.0.5Compare Source
Bugfixes
commaPosition
option (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
language
parameter no more works for specifying a custom dialect. Instead use the newformatDialect()
API for the same purpose.Also, instead of extending the
Formatter
class, there's now aDialectOptions
object (#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
denseOperators
config 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
denseOperators
option.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: transactsql
as 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 BETWEEN
in window definitions #417 #415v10.1.0
: 10.1.0Compare Source
Improvements
@@​variables
in 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:
paramTypes
config option to allow user-configured parameter placeholder types #367language
option to allow for passing in a user-defined Formatter class #306Improvements:
v9.1.0
: 9.1.0Compare Source
New features
Improvements
aliasAs
config (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
aliasAs
config option #371LIMIT
&OFFSET
keywords are no more supported in all dialects #362CREATE TABLE
andDROP TABLE
from N1QL #364New features
Improvements
tbl@dblink
syntax #338#
as first char for Redshift identifiers #358SELECT DISTINCT
#362WITH RECURSIVE
in addition to plainWITH
) #362Bugfixes
BETWEEN
expressions #318BETWEEN..AND
formatting in tabular style #350Internals:
language.formatter.ts
file to separate directory and separated functions and keywords to separate files #315RESERVED_JOIN_CONDITION
token type.BINARY_COMMAND
toSET_OPERATION
#351.d.ts
file 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.