Releases: sql-formatter-org/sql-formatter
Releases · sql-formatter-org/sql-formatter
12.0.0-beta.2
Bugfixes
- Add package.json to list of exports #499
12.0.0-beta.1
Major formatting style change
Most of the simple statements are now formatted more so on one line (#483).
For example the following SQL, previously formatted as follows:
ALTER TABLE
foo
ALTER COLUMN
col1
SET DEFAULT
10;
DROP TABLE
my_tbl;
DELETE FROM
customers
WHERE
age > 99;
UPDATE
orders
SET
price = 0,
total = 0
WHERE
deleted = TRUE;
will now be formatted on a single line:
ALTER TABLE foo
ALTER COLUMN col1
SET DEFAULT 10;
DROP TABLE my_tbl;
DELETE FROM customers
WHERE
age > 99;
UPDATE orders
SET
price = 0,
total = 0
WHERE
deleted = TRUE;
Breaking change in extension API
Instead of extending the Formatter
class, there's now a DialectOptions
object (#493).
This object can now be supplied to language
parameter to implement a custom SQL dialect.
Bugfixes
11.0.2
11.0.1
11.0.0
11.0.0-beta.2
11.0.0-beta.1
New features
- Added support for Snowflake dialect #454
10.8.0-beta.6
Improvements
- Target Node 14.x in ESM build #474
10.8.0-beta.5
- Fix bad merge #470