You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+36Lines changed: 36 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,41 @@
1
1
# Changelog
2
2
3
+
## 3.2.0
4
+
5
+
March 27, 2021
6
+
7
+
A number of improvements to the formatter have been made with this release.
8
+
9
+
- The formatter option `whereClauseOperatorsIndented` has been deprecated and will always be applied.
10
+
- A new boolean formatter option named `newLineAfterKeywords` has been added and will ensure that there is always a new line after any keyword. (#137)
11
+
-`TYPEOF` fields will now always be included on their own line be default, or will span multiple lines, split by keywords if `newLineAfterKeywords` is set to true. (#135)
12
+
13
+
## Example
14
+
15
+
`SELECT Id, TYPEOF What WHEN Account THEN Phone, NumberOfEmployees WHEN Opportunity THEN Amount, CloseDate ELSE Name, Email END, Name FROM Event`
| numIndent | number | The number of tab characters to indent. | FALSE | 1 |
102
-
| fieldMaxLineLength | number | The number of characters that the fields should take up before making a new line. Set this to 1 to have every field on its own line. | FALSE | 60 |
103
-
| fieldSubqueryParensOnOwnLine | boolean | If true, the opening and closing parentheses will be on their own line for subqueries. | FALSE | TRUE |
104
-
| whereClauseOperatorsIndented | boolean | If true, indents the where clause operators. | FALSE | FALSE |
105
-
| logging | boolean | Print out logging statements to the console about the format operation. | FALSE | FALSE |
| numIndent | number | The number of tab characters to indent. | FALSE | 1 |
102
+
| fieldMaxLineLength | number | The number of characters that the fields should take up before making a new line. Set this to 1 to have every field on its own line. | FALSE | 60 |
103
+
| fieldSubqueryParensOnOwnLine | boolean | If true, the opening and closing parentheses will be on their own line for subqueries. | FALSE | TRUE |
104
+
| newLineAfterKeywords | boolean | Adds a new line and indent after all keywords (such as SELECT, FROM, WHERE, ORDER BY, etc..) Setting this to true will add new lines in other places as well, such as complex WHERE clauses | FALSE | FALSE |
105
+
|~~whereClauseOperatorsIndented~~| boolean |**Deprecated** If true, indents the where clause operators. | FALSE | FALSE |
106
+
| logging | boolean | Print out logging statements to the console about the format operation. | FALSE | FALSE |
0 commit comments