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

latest releases: v15.4.8, v15.4.7, v15.4.6...
3 years ago

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

Don't miss a new sql-formatter release

NewReleases is sending notifications on new releases.