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
+54-1Lines changed: 54 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,59 @@
1
1
# CHANGELOG
2
2
3
-
## NEXT [5.0.0] : 2021-11-22
3
+
## [5.1.0] : 2021-12-21
4
+
5
+
### Known Issues
6
+
7
+
-`newline: number` does not work with `[foo]`, `[` and `]` both count as 1 token each so `[foo]` would be 3 items
8
+
-`array[0]` or `map[key]` do still work as they are parsed as WORD
9
+
- BigQuery formatter fails a few tests (ALTER TABLE, tricky line comments) due to those tests not including valid BigQuery SQL, those tests are currently skipped
10
+
11
+
### Added
12
+
13
+
Source:
14
+
15
+
- consumed VSCode Extension as subrepo
16
+
- added support for Hive language
17
+
- added support for BigQuery language
18
+
- added keyword dedupe on Formatter classes via Set
- added settings to override user/workspace `tabSize` and `insertSpaces` settings
25
+
- added error message on format fail
26
+
- added setting to override formatting language for `sql` files when SQL flavour does not have a VSCode language ID (Microsoft PostgreSQL and MSSQL Extensions)
27
+
28
+
Other:
29
+
30
+
- demo page now deployed as git repo subtree, served from root/ (subtree of static/)
31
+
32
+
### Updated
33
+
34
+
- fixed handling of `newline` options
35
+
- simplified `NewlineMode` config
36
+
- fixed ; indentation when used with `semicolonNewline` and `tenSpace` configs
37
+
- Formatter now uses numeric for loop to allow for index manipulation
38
+
- updated `linesBetweenQueries` to add an extra newline (0 lines = 1 line break, no space in between)
39
+
- renamed Formatter class files to `<flavour>.formatter.ts`
40
+
- renamed test files to `<flavour>.test.js`
41
+
42
+
### Removed
43
+
44
+
- removed `newline: hybrid` config
45
+
-`newline: number` now acts like `hybrid`
46
+
47
+
## [5.0.1] : 2021-11-24
48
+
49
+
### Updated
50
+
51
+
- fixed bug when using SELECT \* and `denseOperators`
52
+
- fixed aliasAs option on demo page
53
+
- fixed handling of tokens with `aliasAs` flag
54
+
- demo page now prints stack trace in textarea on error
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
## Bugs
2
2
3
3
Please submit bugs and issues here: https://github.com/inferrinizzard/prettier-sql/issues\
4
-
There are issue templates available for FORMATTINGor SCRIPT related bugs.
4
+
There are issue templates available for FORMATTING, SCRIPT, or VSCODE related bugs.
5
5
6
6
# Development
7
7
@@ -25,6 +25,7 @@ Please use one of the following prefixes: (ie. feature/new-feature)
25
25
26
26
- feature/ - development towards a new feature
27
27
- dev/ - misc development not tied to a key feature / refactoring
28
+
- vscode/ - development related to the VSCode Extension
28
29
- issue/ - fix specifically for a issue #
29
30
- bug/ - misc bug fixes not tied to a public issue
30
31
- repo/ - meta dev related changes (ie. typescript, CI/CD, dependencies)
@@ -43,6 +44,20 @@ It can be invoked via:
43
44
Please add new tests for any new features and bug fixes. \
44
45
Language-specific tests should be included in their respective Test files, tests that apply to all languages should be in `behavesLikeSqlFormatter.js`
45
46
47
+
## VSCode
48
+
49
+
For development on the VSCode Extension, open the vscode/ directory as the workspace folder in VSCode and you'll be able to launch the Extension Host from the Debug menu
50
+
51
+
## Publish Flow
52
+
53
+
For those who have admin access on the repo, the new release publish flow is as such:
0 commit comments