Skip to content

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

Compare
Choose a tag to compare
@nene nene released this 25 Jan 09:56
· 2600 commits to master since this release

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