Skip to content

Releases: sql-formatter-org/sql-formatter

v2.3.4 - upgrade Lodash (to fix vulnerability)

25 Jan 09:36

Choose a tag to compare

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

25 Jan 09:56

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

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

Choose a tag to compare

v2.1.0 - Improve bundle size

18 Sep 10:06

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

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

Choose a tag to compare

v1.2.2 - Fix MSSQL national characters formatting

14 Jun 13:01

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

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

Choose a tag to compare

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