Skip to content

Commit 9e1aa74

Browse files
committed
chore: prepare changelog entry for 0.8.0
1 parent c90a7ff commit 9e1aa74

File tree

1 file changed

+207
-0
lines changed

1 file changed

+207
-0
lines changed

CHANGELOG.md

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,178 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## 0.8.0 - 2024-07-22
9+
10+
69 pull requests were merged this release cycle.
11+
12+
### Breaking
13+
* [[#2973]]: Generic Associated Types in Database, replacing HasValueRef, HasArguments, HasStatement [[@nitn3lav]]
14+
* [[#2482]]: chore: bump syn to 2.0 [[@saiintbrisson]]
15+
* Deprecated type ascription syntax in the query macros was removed.
16+
* [[#2736]]: Fix describe on PostgreSQL views with rules [[@tsing]]
17+
* Potentially breaking: nullability inference changes for Postgres.
18+
* [[#2869]]: Implement PgHasArrayType for all references [[@tylerhawkes]]
19+
* Conflicts with existing manual implementations.
20+
* [[#2940]]: fix: Decode and Encode derives (#1031) [[@benluelo]]
21+
* Changes lifetime obligations for field types.
22+
* [[#3064]]: Sqlite explain graph [[@tyrelr]]
23+
* Potentially breaking: nullability inference changes for SQLite.
24+
* [[#3123]]: Reorder attrs in sqlx::test macro [[@bobozaur]]
25+
* Potentially breaking: attributes on `#[sqlx::test]` usages are applied in the correct order now.
26+
* [[#3126]]: Make Encode return a result [[@FSMaxB]]
27+
* [[#3130]]: Add version information for failed cli migration (#3129) [[@FlakM]]
28+
* Breaking changes to `MigrateError`.
29+
* [[#3181]]: feat: no tx migration [[@cleverjam]]
30+
* (Postgres only) migrations that should not run in a transaction can be flagged by adding `-- no-transaction` to the beginning.
31+
* Breaking change: added field to `Migration`
32+
* [[#3184]]: [BREAKING} fix(sqlite): always use `i64` as intermediate when decoding [[@abonander]]
33+
* integer decoding will now loudly error on overflow instead of silently truncating.
34+
* some usages of the query!() macros might change an i32 to an i64.
35+
* [[#3252]]: fix `#[derive(sqlx::Type)]` in Postgres [[@abonander]]
36+
* Manual implementations of PgHasArrayType for enums will conflict with the generated one. Delete the manual impl or add `#[sqlx(no_pg_array)]` where conflicts occur.
37+
* Type equality for PgTypeInfo is now schema-aware.
38+
* [[#3329]]: fix: correct handling of arrays of custom types in Postgres [[@abonander]]
39+
* Potential breaking change: `PgTypeInfo::with_name()` infers types that start with `_` to be arrays of the un-prefixed type. Wrap type names in quotes to bypass this behavior.
40+
* [[#3356]]: breaking: fix name collision in `FromRow`, return `Error::ColumnDecode` for `TryFrom` errors [[@abonander]]
41+
* Breaking behavior change: errors with `#[sqlx(try_from = "T")]` now return `Error::ColumnDecode` instead of `Error::ColumnNotFound`.
42+
* Breaking because `#[sqlx(default)]` on an individual field or the struct itself would have previously suppressed the error.
43+
This doesn't seem like good behavior as it could result in some potentially very difficult bugs.
44+
* Instead, create a wrapper implementing `From` and apply the default explicitly.
45+
* [[#3337]]: allow rename with rename_all (close #2896) [[@DirectorX]]
46+
* Changes the precedence of `#[sqlx(rename)]` and `#[sqlx(rename_all)]` to match the expected behavior (`rename` wins).
47+
* [[#3285]]: fix: use correct names for sslmode options [[@lily-mosquitoes]]
48+
* Changes the output of `ConnectOptions::to_url_lossy()` to match what parsing expects.
49+
50+
### Added
51+
* [[#2917]]: Add Debug impl for PgRow [[@g-bartoszek]]
52+
* [[#3113]]: feat: new derive feature flag [[@saiintbrisson]]
53+
* [[#3154]]: feat: add `MySqlTime`, audit `mysql::types` for panics [[@abonander]]
54+
* [[#3188]]: feat(cube): support postgres cube [[@jayy-lmao]]
55+
* [[#3244]]: feat: support `NonZero*` scalar types [[@AlphaKeks]]
56+
* [[#3260]]: feat: Add set_update_hook on SqliteConnection [[@gridbox]]
57+
* [[#3291]]: feat: support the Postgres Bool type for the Any driver [[@etorreborre]]
58+
* [[#3293]]: Add LICENSE-* files to crates [[@LecrisUT]]
59+
* [[#3303]]: add array support for NonZeroI* in postgres [[@JohannesIBK]]
60+
* [[#3311]]: Add example on how to use Transaction as Executor [[@Lachstec]]
61+
* [[#3343]]: Add support for PostgreSQL HSTORE data type [[@KobusEllis]]
62+
63+
### Changed
64+
* [[#2652]]: MySQL: Remove collation compatibility check for strings [[@alu]]
65+
* [[#2960]]: Removed `Send` trait bound from argument binding [[@bobozaur]]
66+
* [[#2970]]: refactor: lift type mappings into driver crates [[@abonander]]
67+
* [[#3148]]: Bump libsqlite3-sys to v0.28 [[@NfNitLoop]]
68+
* Note: version bumps to `libsqlite3-sys` are not considered breaking changes as per our semver guarantees.
69+
* [[#3265]]: perf: box `MySqlConnection` to reduce sizes of futures [[@stepantubanov]]
70+
* [[#3352]]: chore:added a testcase for `sqlx migrate add ...` [[@CommanderStorm]]
71+
* [[#3340]]: ci: Add job to check that sqlx builds with its declared minimum dependencies [[@iamjpotts]]
72+
73+
### Fixed
74+
* [[#2702]]: Constrain cyclic associated types to themselves [[@BadBastion]]
75+
* [[#2954]]: Fix several inter doc links [[@ralpha]]
76+
* [[#3073]]: feat(logging): Log slow acquires from connection pool [[@iamjpotts]]
77+
* [[#3137]]: SqliteConnectOptions::filename() memory fix (#3136) [[@hoxxep]]
78+
* [[#3138]]: PostgreSQL Bugfix: Ensure connection is usable after failed COPY inside a transaction [[@feikesteenbergen]]
79+
* [[#3146]]: fix(sqlite): delete unused `ConnectionHandleRaw` type [[@abonander]]
80+
* [[#3162]]: Drop urlencoding dependency [[@paolobarbolini]]
81+
* [[#3165]]: Bump deps that do not need code changes [[@GnomedDev]]
82+
* [[#3167]]: fix(ci): use `docker compose` instead of `docker-compose` [[@abonander]]
83+
* [[#3172]]: fix: Option decoding in any driver [[@pxp9]]
84+
* [[#3173]]: fix(postgres) : int type conversion while decoding [[@RaghavRox]]
85+
* [[#3190]]: Update time to 0.3.36 [[@BlackSoulHub]]
86+
* [[#3191]]: Fix unclean TLS shutdown [[@levkk]]
87+
* [[#3194]]: Fix leaking connections in fetch_optional (#2647) [[@danjpgriffin]]
88+
* [[#3216]]: security: bump rustls to 0.21.11 [[@toxeus]]
89+
* [[#3230]]: fix: sqlite pragma order for auto_vacuum [[@jasonish]]
90+
* [[#3233]]: fix: get_filename should not consume self [[@jasonish]]
91+
* [[#3234]]: fix(ci): pin Rust version, ditch unmaintained actions [[@abonander]]
92+
* [[#3236]]: fix: resolve `path` ownership problems when using `sqlx_macros_unstable` [[@lily-mosquitoes]]
93+
* [[#3254]]: fix: hide `sqlx_postgres::any` [[@Zarathustra2]]
94+
* [[#3266]]: ci: MariaDB - add back 11.4 and add 11.5 [[@grooverdan]]
95+
* [[#3267]]: ci: syntax fix [[@grooverdan]]
96+
* [[#3271]]: docs(sqlite): fix typo - unixtime() -> unixepoch() [[@joelkoen]]
97+
* [[#3276]]: Invert boolean for `migrate` error message. (#3275) [[@nk9]]
98+
* [[#3279]]: fix Clippy errors [[@abonander]]
99+
* [[#3288]]: fix: sqlite update_hook char types [[@jasonish]]
100+
* [[#3297]]: Pass the `persistent` query setting when preparing queries with the `Any` driver [[@etorreborre]]
101+
* [[#3298]]: Track null arguments in order to provide the appropriate type when converting them. [[@etorreborre]]
102+
* [[#3312]]: doc: Minor rust docs fixes [[@SrGesus]]
103+
* [[#3327]]: chore: fixed one usage of `select_input_type!()` being unhygenic [[@CommanderStorm]]
104+
* [[#3328]]: fix(ci): comment not separated from other characters [[@hamirmahal]]
105+
* [[#3341]]: refactor: Resolve cargo check warnings in postgres examples [[@iamjpotts]]
106+
* [[#3346]]: fix(postgres): don't panic if `M` or `C` Notice fields are not UTF-8 [[@YgorSouza]]
107+
* [[#3350]]: fix:the `json`-feature should activate `sqlx-postgres?/json` as well [[@CommanderStorm]]
108+
* [[#3353]]: fix: build script new line at eof [[@Zarthus]]
109+
* (no PR): activate `clock` and `std` features of `workspace.dependencies.chrono`.
110+
111+
[#2482]: https://github.com/launchbadge/sqlx/pull/2482
112+
[#2652]: https://github.com/launchbadge/sqlx/pull/2652
113+
[#2702]: https://github.com/launchbadge/sqlx/pull/2702
114+
[#2736]: https://github.com/launchbadge/sqlx/pull/2736
115+
[#2869]: https://github.com/launchbadge/sqlx/pull/2869
116+
[#2917]: https://github.com/launchbadge/sqlx/pull/2917
117+
[#2940]: https://github.com/launchbadge/sqlx/pull/2940
118+
[#2954]: https://github.com/launchbadge/sqlx/pull/2954
119+
[#2960]: https://github.com/launchbadge/sqlx/pull/2960
120+
[#2970]: https://github.com/launchbadge/sqlx/pull/2970
121+
[#2973]: https://github.com/launchbadge/sqlx/pull/2973
122+
[#3064]: https://github.com/launchbadge/sqlx/pull/3064
123+
[#3073]: https://github.com/launchbadge/sqlx/pull/3073
124+
[#3113]: https://github.com/launchbadge/sqlx/pull/3113
125+
[#3123]: https://github.com/launchbadge/sqlx/pull/3123
126+
[#3126]: https://github.com/launchbadge/sqlx/pull/3126
127+
[#3130]: https://github.com/launchbadge/sqlx/pull/3130
128+
[#3137]: https://github.com/launchbadge/sqlx/pull/3137
129+
[#3138]: https://github.com/launchbadge/sqlx/pull/3138
130+
[#3146]: https://github.com/launchbadge/sqlx/pull/3146
131+
[#3148]: https://github.com/launchbadge/sqlx/pull/3148
132+
[#3154]: https://github.com/launchbadge/sqlx/pull/3154
133+
[#3162]: https://github.com/launchbadge/sqlx/pull/3162
134+
[#3165]: https://github.com/launchbadge/sqlx/pull/3165
135+
[#3167]: https://github.com/launchbadge/sqlx/pull/3167
136+
[#3172]: https://github.com/launchbadge/sqlx/pull/3172
137+
[#3173]: https://github.com/launchbadge/sqlx/pull/3173
138+
[#3181]: https://github.com/launchbadge/sqlx/pull/3181
139+
[#3184]: https://github.com/launchbadge/sqlx/pull/3184
140+
[#3188]: https://github.com/launchbadge/sqlx/pull/3188
141+
[#3190]: https://github.com/launchbadge/sqlx/pull/3190
142+
[#3191]: https://github.com/launchbadge/sqlx/pull/3191
143+
[#3194]: https://github.com/launchbadge/sqlx/pull/3194
144+
[#3216]: https://github.com/launchbadge/sqlx/pull/3216
145+
[#3230]: https://github.com/launchbadge/sqlx/pull/3230
146+
[#3233]: https://github.com/launchbadge/sqlx/pull/3233
147+
[#3234]: https://github.com/launchbadge/sqlx/pull/3234
148+
[#3236]: https://github.com/launchbadge/sqlx/pull/3236
149+
[#3244]: https://github.com/launchbadge/sqlx/pull/3244
150+
[#3252]: https://github.com/launchbadge/sqlx/pull/3252
151+
[#3254]: https://github.com/launchbadge/sqlx/pull/3254
152+
[#3260]: https://github.com/launchbadge/sqlx/pull/3260
153+
[#3265]: https://github.com/launchbadge/sqlx/pull/3265
154+
[#3266]: https://github.com/launchbadge/sqlx/pull/3266
155+
[#3267]: https://github.com/launchbadge/sqlx/pull/3267
156+
[#3271]: https://github.com/launchbadge/sqlx/pull/3271
157+
[#3276]: https://github.com/launchbadge/sqlx/pull/3276
158+
[#3279]: https://github.com/launchbadge/sqlx/pull/3279
159+
[#3285]: https://github.com/launchbadge/sqlx/pull/3285
160+
[#3288]: https://github.com/launchbadge/sqlx/pull/3288
161+
[#3291]: https://github.com/launchbadge/sqlx/pull/3291
162+
[#3293]: https://github.com/launchbadge/sqlx/pull/3293
163+
[#3297]: https://github.com/launchbadge/sqlx/pull/3297
164+
[#3298]: https://github.com/launchbadge/sqlx/pull/3298
165+
[#3303]: https://github.com/launchbadge/sqlx/pull/3303
166+
[#3311]: https://github.com/launchbadge/sqlx/pull/3311
167+
[#3312]: https://github.com/launchbadge/sqlx/pull/3312
168+
[#3327]: https://github.com/launchbadge/sqlx/pull/3327
169+
[#3328]: https://github.com/launchbadge/sqlx/pull/3328
170+
[#3329]: https://github.com/launchbadge/sqlx/pull/3329
171+
[#3337]: https://github.com/launchbadge/sqlx/pull/3337
172+
[#3340]: https://github.com/launchbadge/sqlx/pull/3340
173+
[#3341]: https://github.com/launchbadge/sqlx/pull/3341
174+
[#3343]: https://github.com/launchbadge/sqlx/pull/3343
175+
[#3346]: https://github.com/launchbadge/sqlx/pull/3346
176+
[#3350]: https://github.com/launchbadge/sqlx/pull/3350
177+
[#3352]: https://github.com/launchbadge/sqlx/pull/3352
178+
[#3353]: https://github.com/launchbadge/sqlx/pull/3353
179+
[#3356]: https://github.com/launchbadge/sqlx/pull/3356
8180
## 0.7.4 - 2024-03-11
9181

10182
38 pull requests were merged this release cycle.
@@ -2261,3 +2433,38 @@ Fix docs.rs build by enabling a runtime feature in the docs.rs metadata in `Carg
22612433
[@zoomiti]: https://github.com/zoomiti
22622434
[@ciffelia]: https://github.com/ciffelia
22632435
[@rafaelGuerreiro]: https://github.com/rafaelGuerreiro
2436+
[@alu]: https://github.com/alu
2437+
[@BadBastion]: https://github.com/BadBastion
2438+
[@tylerhawkes]: https://github.com/tylerhawkes
2439+
[@g-bartoszek]: https://github.com/g-bartoszek
2440+
[@benluelo]: https://github.com/benluelo
2441+
[@ralpha]: https://github.com/ralpha
2442+
[@nitn3lav]: https://github.com/nitn3lav
2443+
[@FlakM]: https://github.com/FlakM
2444+
[@hoxxep]: https://github.com/hoxxep
2445+
[@NfNitLoop]: https://github.com/NfNitLoop
2446+
[@GnomedDev]: https://github.com/GnomedDev
2447+
[@pxp9]: https://github.com/pxp9
2448+
[@RaghavRox]: https://github.com/RaghavRox
2449+
[@cleverjam]: https://github.com/cleverjam
2450+
[@BlackSoulHub]: https://github.com/BlackSoulHub
2451+
[@levkk]: https://github.com/levkk
2452+
[@danjpgriffin]: https://github.com/danjpgriffin
2453+
[@toxeus]: https://github.com/toxeus
2454+
[@jasonish]: https://github.com/jasonish
2455+
[@AlphaKeks]: https://github.com/AlphaKeks
2456+
[@Zarathustra2]: https://github.com/Zarathustra2
2457+
[@gridbox]: https://github.com/gridbox
2458+
[@joelkoen]: https://github.com/joelkoen
2459+
[@nk9]: https://github.com/nk9
2460+
[@etorreborre]: https://github.com/etorreborre
2461+
[@LecrisUT]: https://github.com/LecrisUT
2462+
[@JohannesIBK]: https://github.com/JohannesIBK
2463+
[@Lachstec]: https://github.com/Lachstec
2464+
[@SrGesus]: https://github.com/SrGesus
2465+
[@CommanderStorm]: https://github.com/CommanderStorm
2466+
[@hamirmahal]: https://github.com/hamirmahal
2467+
[@DirectorX]: https://github.com/DirectorX
2468+
[@KobusEllis]: https://github.com/KobusEllis
2469+
[@YgorSouza]: https://github.com/YgorSouza
2470+
[@Zarthus]: https://github.com/Zarthus

0 commit comments

Comments
 (0)