|
1 | 1 | <!-- Do not manually edit this file. Use the `changelogger` tool. --> |
| 2 | +July 21st, 2022 |
| 3 | +=============== |
| 4 | +**New this release:** |
| 5 | +- 🎉 ([smithy-rs#1457](https://github.com/awslabs/smithy-rs/issues/1457), @calavera) Re-export aws_types::SdkConfig in aws_config |
| 6 | +- 🎉 ([aws-sdk-rust#581](https://github.com/awslabs/aws-sdk-rust/issues/581)) Add `From<aws_smithy_client::erase::DynConnector>` impl for `aws_smithy_client::http_connector::HttpConnector` |
| 7 | +- 🎉 ([aws-sdk-rust#567](https://github.com/awslabs/aws-sdk-rust/issues/567)) Updated SDK Client retry behavior to allow for a configurable initial backoff. Previously, the initial backoff |
| 8 | + (named `r` in the code) was set to 2 seconds. This is not an ideal default for services like DynamoDB that expect |
| 9 | + clients to quickly retry failed request attempts. Now, users can set quicker (or slower) backoffs according to their |
| 10 | + needs. |
| 11 | + |
| 12 | + ```rust |
| 13 | + #[tokio::main] |
| 14 | + async fn main() -> Result<(), aws_sdk_dynamodb::Error> { |
| 15 | + let retry_config = aws_smithy_types::retry::RetryConfigBuilder::new() |
| 16 | + .max_attempts(4) |
| 17 | + .initial_backoff(Duration::from_millis(20)); |
| 18 | + |
| 19 | + let shared_config = aws_config::from_env() |
| 20 | + .retry_config(retry_config) |
| 21 | + .load() |
| 22 | + .await; |
| 23 | + |
| 24 | + let client = aws_sdk_dynamodb::Client::new(&shared_config); |
| 25 | + |
| 26 | + // Given the 20ms backoff multiplier, and assuming this request fails 3 times before succeeding, |
| 27 | + // the first retry would take place between 0-20ms after the initial request, |
| 28 | + // the second retry would take place between 0-40ms after the first retry, |
| 29 | + // and the third retry would take place between 0-80ms after the second retry. |
| 30 | + let request = client |
| 31 | + .put_item() |
| 32 | + .table_name("users") |
| 33 | + .item("username", "Velfi") |
| 34 | + .item("account_type", "Developer") |
| 35 | + .send().await?; |
| 36 | + |
| 37 | + Ok(()) |
| 38 | + } |
| 39 | + ``` |
| 40 | +- 🎉 ([smithy-rs#1557](https://github.com/awslabs/smithy-rs/issues/1557), [aws-sdk-rust#580](https://github.com/awslabs/aws-sdk-rust/issues/580)) The `imds::Client` in `aws-config` now implements `Clone` |
| 41 | +- 🐛 ([smithy-rs#1541](https://github.com/awslabs/smithy-rs/issues/1541), @joshtriplett) Fix compilation of `aws-config` with `rustls` and `native-tls` disabled. The |
| 42 | + `ProviderConfig::with_tcp_connector` method uses |
| 43 | + `aws_smithy_client::hyper_ext`, which only exists with the `client-hyper` |
| 44 | + feature enabled. Add a feature enabling that, and enable it by default. |
| 45 | +- ([smithy-rs#1263](https://github.com/awslabs/smithy-rs/issues/1263)) Add support for aws-chunked content encoding. Only single-chunk encoding is supported. Multiple chunks and |
| 46 | + chunk signing are not supported at this time. |
| 47 | +- ([smithy-rs#1540](https://github.com/awslabs/smithy-rs/issues/1540)) Until now, SDK crates have all shared the exact same version numbers. |
| 48 | + This changes with this release. From now on, SDK crates will only version |
| 49 | + bump if they have changes. Coincidentally, they may share the same version |
| 50 | + number for some releases since changes to the code generator will cause |
| 51 | + a version bump in all of them, but this should not be relied upon. |
| 52 | +- 🐛 ([smithy-rs#1559](https://github.com/awslabs/smithy-rs/issues/1559), [aws-sdk-rust#582](https://github.com/awslabs/aws-sdk-rust/issues/582)) Remove warning for valid IMDS provider use-case |
| 53 | +- 🐛 ([smithy-rs#1558](https://github.com/awslabs/smithy-rs/issues/1558), [aws-sdk-rust#583](https://github.com/awslabs/aws-sdk-rust/issues/583)) Only emit a warning about failing to expand a `~` to the home |
| 54 | + directory in a profile file's path if that path was explicitly |
| 55 | + set (don't emit it for the default paths) |
| 56 | +- ([smithy-rs#1556](https://github.com/awslabs/smithy-rs/issues/1556)) The `sleep_impl` methods on the `SdkConfig` builder are now exposed and documented. |
| 57 | + |
| 58 | +**Contributors** |
| 59 | +Thank you for your contributions! ❤ |
| 60 | +- @calavera ([smithy-rs#1457](https://github.com/awslabs/smithy-rs/issues/1457)) |
| 61 | +- @joshtriplett ([smithy-rs#1541](https://github.com/awslabs/smithy-rs/issues/1541)) |
| 62 | + |
2 | 63 | v0.15.0 (June 29th, 2022) |
3 | 64 | ========================= |
4 | 65 | **Breaking Changes:** |
|
0 commit comments