Skip to content

v0.20 (August 10th, 2021)

Pre-release
Pre-release
Compare
Choose a tag to compare
@rcoh rcoh released this 10 Aug 21:37
· 2322 commits to main since this release
731a68d

v0.20 (August 10th, 2021)

This week primarily contains bug fixes and internal changes to the request pipeline. Although many of these changes are breaking, we don't anticipate that many customers will be impacted.

Breaking changes

  • (#635) The config(), config_mut(), request(), and request_mut() methods on operation::Request have been renamed to properties(), properties_mut(), http(), and http_mut() respectively.

  • (#635) The Response type on Tower middleware has been changed from http::Response<SdkBody> to operation::Response. The HTTP response is still available from the operation::Response using its http() and http_mut() methods.

  • (#635) The ParseHttpResponse trait's parse_unloaded() method now takes an operation::Response rather than an http::Response<SdkBody>.

  • (#626) ParseHttpResponse no longer has a generic argument for the body type, but instead, always uses SdkBody. This may cause compilation failures for you if you are using Smithy generated types to parse JSON or XML without using a client to request data from a service. The fix should be as simple as removing <SdkBody> in the example below:

    Before:

    let output = <Query as ParseHttpResponse<SdkBody>>::parse_loaded(&parser, &response).unwrap();

    After:

    let output = <Query as ParseHttpResponse>::parse_loaded(&parser, &response).unwrap();

New This Week

  • Add AssumeRoleProvider parser implementation. (#632)
  • The closure passed to async_provide_credentials_fn can now borrow values (#637)
  • Add Sender/Receiver implementations for Event Stream (#639)
  • Bring in the latest AWS models (#630)