v0.20 (August 10th, 2021)
Pre-releasev0.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(), andrequest_mut()methods onoperation::Requesthave been renamed toproperties(),properties_mut(),http(), andhttp_mut()respectively. -
(#635) The
Responsetype on Tower middleware has been changed fromhttp::Response<SdkBody>tooperation::Response. The HTTP response is still available from theoperation::Responseusing itshttp()andhttp_mut()methods. -
(#635) The
ParseHttpResponsetrait'sparse_unloaded()method now takes anoperation::Responserather than anhttp::Response<SdkBody>. -
(#626)
ParseHttpResponseno longer has a generic argument for the body type, but instead, always usesSdkBody. 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