Releases: sql-formatter-org/sql-formatter
Releases · sql-formatter-org/sql-formatter
@gwax/sql-formatter v3.0.0 - CLI, Spark & Redshift
New features:
- Command line interface
- Amazone Redshift support
- Spark SQL support
uppercase
option for converting keywords to uppercase
Bugfixes:
- Proper unicode support (e.g. table and column names written in Chinese hieroglyphs or Cyrillic)
- Support all PostgreSQL operators and
:=
operator. - Support CASE...WHEN in standard SQL
- Handle Windows line endings in comments
- When format() not called with string, no more throws error from inside the Tokenizer, just returns empty string.
- Fix block-comment indentation
- Support scientific notation for floating point numbers (e.g.
1.5e-10
) - Prevent splitting of compound tokens like
UNION ALL
- Improve open paren indentation after comma without whitespace
Internals:
- Adopt prettier, re-indent all the code (huh-huh)
- Drop Lodash library dependency
v2.3.3 - Upgrade dependencies
Merge pull request #75 from zeroturnaround/dependabot/npm_and_yarn/ha…
v2.3.0 - Add support for PL/SQL
v2.1.0 - Improve bundle size
v2.0.0 - Remove line break from the end of the output
From now on SQL formatter does not add an extra newline to the end of the output.
Check out PR #27.
v1.3.0 - IBM DB2 support
Merged PR #25.
v1.2.2 - Fix MSSQL national characters formatting
v1.2.1 - Fix PostgreSQL specific operators formatting
This release should fix issue #23. The honor goes to @sasha-alias who fixed the issue with PR #24.
v1.2.0 - Add TSQL keywords
Released PR #18 which added some extra TSQL related keywords to standard SQL formatter.
v1.1.2 - Keep SET SCHEMA query on one line
In previous version we formatted SET SCHEMA db
to:
SET
SCHEMA db
Now it is formatted in this way:
SET SCHEMA
db
This also applies to SET CURRENT SCHEMA
. More info @ docs.oracle.com