Skip to content

Releases: smithy-lang/smithy-rs

January 10th, 2024

10 Jan 15:24
Compare
Choose a tag to compare

New this release:

  • 🎉 (all, smithy-rs#3300, aws-sdk-rust#977) Add support for constructing [SdkBody] and [ByteStream] from http-body 1.0 bodies. Note that this is initial support and works via a backwards compatibility shim to http-body 0.4. Hyper 1.0 is not supported.

  • 🎉 (all, smithy-rs#3333, aws-sdk-rust#998, aws-sdk-rust#1010) Add as_service_err() to SdkError to allow checking the type of an error is without taking ownership.

  • (client, smithy-rs#3299, @Ploppz) Add PaginationStreamExt extension trait to aws-smithy-types-convert behind the convert-streams feature. This makes it possible to treat a paginator as a futures_core::Stream, allowing customers to use stream combinators like map and filter.

    Example:

    use aws_smithy_types_convert::stream::PaginationStreamExt
    let stream = s3_client.list_objects_v2().bucket("...").into_paginator().send().into_stream_03x();
  • 🐛 (client, smithy-rs#3252, smithy-rs#3312, @milesziemer) Serialize 0/false in query parameters, and ignore actual default value during serialization instead of just 0/false. See changelog discussion for details.

  • (all, smithy-rs#3292) requireEndpointResolver: false is no longer required to remove the need for an endpoint resolver. Instead, "awsSdkBuilder" (default false), now removes that requirement.

Contributors
Thank you for your contributions! ❤

December 13th, 2023

13 Dec 23:48
Compare
Choose a tag to compare

No changes since the previous release but publishing runtime crates with different versions. See this for more details.

December 11th, 2023

11 Dec 22:24
Compare
Choose a tag to compare

New this release:

  • 🐛 (client, smithy-rs#3305) crate::event_receiver::EventReceiver is now re-exported as crate::primitives::event_stream::EventReceiver when a service supports event stream operations.

December 8th, 2023

08 Dec 22:41
Compare
Choose a tag to compare

New this release:

  • 🎉 (all, smithy-rs#3121, smithy-rs#3295) All generated docs now include docsrs labels when features are required
  • 🐛 (client, smithy-rs#3262) Loading native TLS trusted certs for the default HTTP client now only occurs if the default HTTP client is not overridden in config.
  • (client, smithy-rs#3277) Improve the error messages for when auth fails to select an auth scheme for a request.
  • (client, smithy-rs#3282) Fix documentation and examples on HyperConnector and HyperClientBuilder.
  • (client, aws-sdk-rust#990, @declanvk) Expose local socket address from ConnectionMetadata.
  • (all, smithy-rs#3294) Number TryInto implementations now succesfully convert from f64 to numeric types when no precision is lost. This fixes some deserialization issues where numbers like 25.0 were sent when Byte fields were expected.

Contributors
Thank you for your contributions! ❤

December 1st, 2023

01 Dec 18:55
Compare
Choose a tag to compare

New this release:

  • (client, smithy-rs#3278) RuntimeComponentsBuilder::push_identity_resolver is now deprecated since it does not replace the existing identity resolver of a given auth scheme ID. Use RuntimeComponentsBuilder::set_identity_resolver instead.

November 27th, 2023

27 Nov 23:37
Compare
Choose a tag to compare

New this release:

November 26th, 2023

26 Nov 23:23
Compare
Choose a tag to compare

AWS SDK changes only with this release

November 25th, 2023

25 Nov 14:22
Compare
Choose a tag to compare

AWS SDK changes only with this release

November 21st, 2023

21 Nov 19:07
Compare
Choose a tag to compare

Internal changes only with this release

November 17th, 2023

17 Nov 23:59
Compare
Choose a tag to compare
November 17th, 2023 Pre-release
Pre-release

Breaking Changes:

  • ⚠️🎉 (client, smithy-rs#3202) Add configurable stalled-stream protection for downloads.

    When making HTTP calls,
    it's possible for a connection to 'stall out' and emit no more data due to server-side issues.
    In the event this happens, it's desirable for the stream to error out as quickly as possible.
    While timeouts can protect you from this issue, they aren't adaptive to the amount of data
    being sent and so must be configured specifically for each use case. When enabled, stalled-stream
    protection will ensure that bad streams error out quickly, regardless of the amount of data being
    downloaded.

    Protection is enabled by default for all clients but can be configured or disabled.
    See this discussion for more details.

  • ⚠️ (client, smithy-rs#3222) Types/functions that were deprecated in previous releases were removed. Unfortunately, some of these deprecations
    were ignored by the Rust compiler (we found out later that #[deprecated] on pub use doesn't work). See
    the deprecations removal list for more details.

  • ⚠️ (all, smithy-rs#3236) Conversions for HTTP request in aws-smithy-runtime-api are now feature gated behind the http-02x feature

New this release:

  • 🎉 (all, smithy-rs#3183, @HakanVardarr) Add Display impl for DateTime.
  • 🐛 (client, smithy-rs#3229, aws-sdk-rust#960) Prevent multiplication overflow in backoff computation
  • (client, smithy-rs#3226) Types/functions that were previously #[doc(hidden)] in aws-smithy-async, aws-smithy-runtime-api, aws-smithy-runtime, aws-smithy-types, and the SDK crates are now visible. For those that are not intended to be used directly, they are called out in their docs as such.

Contributors
Thank you for your contributions! ❤