Skip to content

Commit f910e6f

Browse files
committed
Version 0.4.0
1 parent b251c7c commit f910e6f

File tree

2 files changed

+44
-22
lines changed

2 files changed

+44
-22
lines changed

CHANGELOG.md

Lines changed: 43 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,57 @@
1-
### Version 0.3.5
1+
# Changelog
2+
3+
## Version 0.4.0
4+
5+
- feat!: More formatting options (#78)
6+
- feat!: More formatting options (#74)
7+
- feat: Consistently space blocks after arguments
8+
- feat: Correctly inline opening parentheses (#100)
9+
- feat: Support more conditionally top level tokens (#99)
10+
- feat: Complex insert support (#90)
11+
- feat: Add fmt for SQLite blob literal
12+
- feat: Uniform the behaviour of block and top-level span options
13+
- fix: Place a whitespace between the array type specifier and a reserved word
14+
- fix: Correctly format array type specifier (#91)
15+
- fix: Format inline `CASE <expression> WHEN` correctly (#86)
16+
- fix: Fix formatting WITH as a single line
17+
- fix: Keep the previous tokens per-block
18+
- fix: Improve the inline/columnar combination (#80)
19+
- fix: Consider WITH a top level reserved word
20+
- fix: Fix the span computation and usage
21+
- chore: Upgrade to Winnow 0.7.0 (#79)
22+
23+
## Version 0.3.5
224

325
- Support pg_trgm operators
426
- Remove usage of a deprecated `winnow` function
527

6-
### Version 0.3.4
28+
## Version 0.3.4
729

830
- Migrate from `nom` to `winnow`, provides about 30% performance improvement
931

10-
### Version 0.3.3
32+
## Version 0.3.3
1133

1234
- Reduce binary size by removing regex dependency (#68)
1335

14-
### Version 0.3.2
36+
## Version 0.3.2
1537

1638
- support ClickHouse/DuckDB join variants
1739
- handle double colons better
1840

19-
### Version 0.3.1
41+
## Version 0.3.1
2042

2143
- Allow latest regex version (#55)
2244
- [slightly breaking] Increases minimum Rust version to 1.65
2345
- Fixes for operator parsing (#57)
2446
- Performance improvements (#58)
2547

26-
### Version 0.3.0
48+
## Version 0.3.0
2749

2850
- [breaking] fix: Ignore keywords for uppercase=True (#53)
2951
- fix: uppercase=false does not lowercase the query (#50)
3052
- fix: Possible to provide an escape hatch for expressions (#51)
3153

32-
### Version 0.2.6
54+
## Version 0.2.6
3355

3456
- fix: ON UPDATE with two many blank formatted incorrectly (#46)
3557
- fix: `EXCEPT` not handled well
@@ -38,70 +60,70 @@
3860
- fix: RETURNING is not placed on a new line
3961
- fix: fix the issue of misaligned comments after formatting (#40)
4062

41-
### Version 0.2.4
63+
## Version 0.2.4
4264

4365
- Remove `itertools` dependency [#34](https://github.com/shssoichiro/sqlformat-rs/pull/34)
4466

45-
### Version 0.2.3
67+
## Version 0.2.3
4668

4769
- Allow alphanumeric characters in SQLite style parameters [#32](https://github.com/shssoichiro/sqlformat-rs/pull/32)
4870
- Format "begin" and "declare" for PLPgSql [#30](https://github.com/shssoichiro/sqlformat-rs/pull/30)
4971
- Allow scientific notation with or without "+"/"-" [#31](https://github.com/shssoichiro/sqlformat-rs/pull/31)
5072
- Treat "$$" as a reserved token that sits on its own line [#29](https://github.com/shssoichiro/sqlformat-rs/pull/29)
5173
- Bump itertools to version 0.12 [#28](https://github.com/shssoichiro/sqlformat-rs/pull/28)
5274

53-
### Version 0.2.2
75+
## Version 0.2.2
5476

5577
- Fix a performance issue where the tokenizer would run in O^2
5678
time [#24](https://github.com/shssoichiro/sqlformat-rs/pull/24)
5779

58-
### Version 0.2.1
80+
## Version 0.2.1
5981

6082
- Fix extra spaces inside of scientific notation [#16](https://github.com/shssoichiro/sqlformat-rs/pull/16)
6183
- Remove unnecessary space in BETWEEN clause [#17](https://github.com/shssoichiro/sqlformat-rs/pull/17)
6284
- Denote the minimum Rust version in Cargo.toml
6385

64-
### Version 0.2.0
86+
## Version 0.2.0
6587

6688
- Fix extra spaces in string escaping [#13](https://github.com/shssoichiro/sqlformat-rs/pull/13)
6789
- Fix panic on overflowing integer [#14](https://github.com/shssoichiro/sqlformat-rs/pull/14)
6890
- Bump Rust edition to 2021
6991
- This is technically a breaking change as it bumps the minimum Rust version to 1.56
7092

71-
### Version 0.1.8
93+
## Version 0.1.8
7294

7395
- Remove regex dependency
7496
- Remove unused maplit dependency
7597

76-
### Version 0.1.7
98+
## Version 0.1.7
7799

78100
- Bump nom to 7.0, which reportedly also fixes some build issues
79101

80-
### Version 0.1.6
102+
## Version 0.1.6
81103

82104
- Fix compatibility with Rust 1.44 which was broken in 0.1.5
83105

84-
### Version 0.1.5
106+
## Version 0.1.5
85107

86108
- Fix a possible panic on multibyte unicode strings
87109

88-
### Version 0.1.4
110+
## Version 0.1.4
89111

90112
- Attempt again to fix the issue some users experience where this crate would fail to compile
91113

92-
### Version 0.1.3
114+
## Version 0.1.3
93115

94116
- Fix an issue some users experienced where this crate would fail to compile
95117

96-
### Version 0.1.2
118+
## Version 0.1.2
97119

98120
- Rewrite the parser in nom, providing significant performance improvements across the board
99121
- Other significant performance improvement on pathological queries
100122

101-
### Version 0.1.1
123+
## Version 0.1.1
102124

103125
- Significant performance improvements
104126

105-
### Version 0.1.0
127+
## Version 0.1.0
106128

107129
- Initial release

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sqlformat"
3-
version = "0.3.5"
3+
version = "0.4.0"
44
authors = ["Josh Holmer <jholmer.in@gmail.com>"]
55
edition = "2021"
66
rust-version = "1.84"

0 commit comments

Comments
 (0)