Skip to content

0.24.0

Choose a tag to compare

@nene nene released this 02 Nov 10:20
· 53 commits to master since this release

New feature

  • Added sqlWrap option, which allows formatting the SQL without paying any attention to the original line breaks in source code. Similarly to the way objectWrap works in Prettier. (Thanks to @abrahamguo)

Bugfixes

  • Avoid removing double-parenthesis around ((SELECT ...)) expressions. The previous implementation of parenthesis removal was too aggressive. Now it's probably a little too careful. In general, that feature needs more work. But it should be safer now. (Thanks to @wleeaf for reporting the issues.)
  • Also avoid excessive parenthesis removal around PostgreSQL row constructors, like SELECT foo(10, (1, 2)) was previously collapsed to SELECT foo(10, 1, 2), which was a definite bug. (Thanks again to @wleeaf for bringing this out.)

Internals