Skip to content

Releases: sql-formatter-org/sql-formatter

@gwax/sql-formatter v3.0.0 - CLI, Spark & Redshift

25 Jan 09:56
Compare
Choose a tag to compare

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

10 Jun 13:32
5ed09d9
Compare
Choose a tag to compare
Merge pull request #75 from zeroturnaround/dependabot/npm_and_yarn/ha…

v2.3.0 - Add support for PL/SQL

11 Apr 09:47
Compare
Choose a tag to compare

v2.1.0 - Improve bundle size

18 Sep 10:06
Compare
Choose a tag to compare

Big thanks goes to @osv who added tree-shaking support for Lodash by using implicit import.

Old bundle:

sql-formatter.js  607 kB
sql-formatter.min.js  96.6 kB

New bundle:

sql-formatter.js  102 kB
sql-formatter.min.js  35.3 kB

Check out PR #32

v2.0.0 - Remove line break from the end of the output

12 Jul 07:23
Compare
Choose a tag to compare

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

07 Jul 12:18
Compare
Choose a tag to compare

v1.2.2 - Fix MSSQL national characters formatting

14 Jun 13:01
Compare
Choose a tag to compare

Vuhuu! @mtxr fixed N'string' formatting issue with PR #21.

v1.2.1 - Fix PostgreSQL specific operators formatting

13 Jun 09:55
Compare
Choose a tag to compare

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

27 Feb 15:46
Compare
Choose a tag to compare

Released PR #18 which added some extra TSQL related keywords to standard SQL formatter.

v1.1.2 - Keep SET SCHEMA query on one line

18 Jan 12:20
Compare
Choose a tag to compare

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