Skip to content

Commit f24df9e

Browse files
augustuswmiterion
andauthored
0.7.0-rc.1 (#75)
* Initial sketch * Remove trait. Update test * Do not generate empty serde attributes * Fix spec and root server * Fix sendgrid send_plain_text (#65) * Use url() to get correct url * Clean up method * Add test * Bump version * Fix empty serde attributes * Fix chrono call * Fix deprecation * Chrono fix * Align spec urls with previously used urls * Update drive traits to use url method * Fmt * Fix intro docs for client with multiple root servers * Fix created param format for GitHub workflow listing * Rebuild * Bump h2 * Bump openssl * Fix h2 ck * Add openssl-macros * Comment and derive cleanup * Derive default on fully qualified path * Bump base64 * Bump reqwest-middleware * Remove default opentel feature * Update trait responses * Fmt * Update versions * Add changelog * Add headers to errors * Rust indicators * Add change not about default features * Add redirect policy to remaining clients * Re-export reqwest types * Clarify response values * Clarify new env fns * Clarify docs for constructors and panics * Remove tokio full feature * Fix Google clients with command urls --------- Co-authored-by: Adam Sunderland <[email protected]>
1 parent 7634b34 commit f24df9e

File tree

609 files changed

+20428
-18672
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

609 files changed

+20428
-18672
lines changed

CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Changelog
2+
3+
## 0.7.0-rc.1
4+
5+
This update refactors all of the clients and changes the way responses are handled. Previously methods that make calls to a third party service would return an `anyhow::Result<T>` over some structured interpretation of the response body (i.e. a deserialized struct, a unit type, or a raw string). Methods now return a `Result<Response<T>, ClientError>` where a `Response` contains the body type that was previously returned along with the status code and headers that were sent from the third party service. When requesting unfolded paginated results the status code and headers returned will be the values returned from the final request made to the service. `ClientError` now provides a more structure error type than the previous `anyhow` error.
6+
7+
### Fixes
8+
* Fix missing default deserialization on `HashMap`s with fully qualified types.
9+
10+
### Breaking Changes
11+
12+
* Methods now return `Result<Response<T>, ClientError>` instead of `anyhow::Result<T>`. The body can be accessed via `response.body`.
13+
* Structured errors are now returned instead of `anyhow::Error`.
14+
* Redirects are no longer followed by default. Previously if a 3xx response code was returned by a service, the inner client would follow it. This prevented services from returning meaningful 3xx responses. Methods that receive 3xx responses will now return them immediately and not attempt to follow them.
15+
* Updates to 0.2 `reqwest-middleware` ecosystem.
16+
* OpenTelemetry is no longer a default feature. To enable OpenTelemetry tracing add `reqwest-tracing` with the appropriate version feature enabled to the target project.

0 commit comments

Comments
 (0)