diff --git a/.changelog/1724779868.md b/.changelog/1724779868.md deleted file mode 100644 index 09e2238756d393805627e11801514986c7b48087..0000000000000000000000000000000000000000 --- a/.changelog/1724779868.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -applies_to: ["client", "server"] -authors: ["rcoh"] -references: ["smithy-rs#3805"] -breaking: false -new_feature: false -bug_fix: true ---- -Fix bug in `DateTime::from_secs_f64` where certain floating point values could lead to a panic. diff --git a/.changelog/4619777.md b/.changelog/4619777.md deleted file mode 100644 index 966994602d67ceff02010f8906239c5cc60c7033..0000000000000000000000000000000000000000 --- a/.changelog/4619777.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -applies_to: ["server"] -authors: ["drganjoo"] -references: ["smithy-rs#3803"] -breaking: false -new_feature: true -bug_fix: false ---- -Setting the `addValidationExceptionToConstrainedOperations` codegen flag adds `aws.smithy.framework#ValidationException` to operations with constrained inputs that do not already have this exception added. - -Sample `smithy-build-template.json`: - -``` -{ - "...", - "plugins": { - "rust-server-codegen": { - "service": "ServiceToGenerateSDKFor", - "module": "amzn-sample-server-sdk", - "codegen": { - "addValidationExceptionToConstrainedOperations": true, - } - } - } -} -``` \ No newline at end of file diff --git a/.changelog/7869753.md b/.changelog/7869753.md deleted file mode 100644 index 9f2c3cf7c646edd7602e058a10b91757d9485d09..0000000000000000000000000000000000000000 --- a/.changelog/7869753.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -applies_to: ["server"] -authors: ["drganjoo"] -references: ["smithy-rs#3813"] -breaking: true -new_feature: false -bug_fix: true ---- -Operations with event stream member shapes must include `ValidationException` in the errors list. This is necessary because the member shape is a required field, and the builder for the operation input or output returns a `std::result::Result` with the error set to `crate::model::ValidationExceptionField`. diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c2748c5061c5bf93967cc1bedaa88dbfe9b2864..edcd87fe550ee6a3f3adedd6efb8d787305c1ef3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,31 @@ +September 9th, 2024 +=================== +**Breaking Changes:** +- :bug::warning: (server, [smithy-rs#3813](https://github.com/smithy-lang/smithy-rs/issues/3813)) Operations with event stream member shapes must include `ValidationException` in the errors list. This is necessary because the member shape is a required field, and the builder for the operation input or output returns a `std::result::Result` with the error set to `crate::model::ValidationExceptionField`. + +**New this release:** +- :tada: (server, [smithy-rs#3803](https://github.com/smithy-lang/smithy-rs/issues/3803)) Setting the `addValidationExceptionToConstrainedOperations` codegen flag adds `aws.smithy.framework#ValidationException` to operations with constrained inputs that do not already have this exception added. + + Sample `smithy-build-template.json`: + + ``` + { + "...", + "plugins": { + "rust-server-codegen": { + "service": "ServiceToGenerateSDKFor", + "module": "amzn-sample-server-sdk", + "codegen": { + "addValidationExceptionToConstrainedOperations": true, + } + } + } + } + ``` +- :bug: (all, [smithy-rs#3805](https://github.com/smithy-lang/smithy-rs/issues/3805)) Fix bug in `DateTime::from_secs_f64` where certain floating point values could lead to a panic. + + August 28th, 2024 ================= **Breaking Changes:** diff --git a/aws/SDK_CHANGELOG.next.json b/aws/SDK_CHANGELOG.next.json index 7e18d7ec23ef6ff5cc7666d3acbf33db77809844..44689b62b2aeab83d1b5ee1b7ba9a41b0b394922 100644 --- a/aws/SDK_CHANGELOG.next.json +++ b/aws/SDK_CHANGELOG.next.json @@ -5,20 +5,6 @@ { "smithy-rs": [], "aws-sdk-rust": [ - { - "message": "`aws_smithy_runtime_api::client::orchestrator::HttpRequest` and `aws_smithy_runtime_api::client::orchestrator::HttpResponse` are now re-exported in AWS SDK clients so that using these types does not require directly depending on `aws-smithy-runtime-api`.", - "meta": { - "bug": false, - "breaking": false, - "tada": false - }, - "author": "ysaito1001", - "references": [ - "smithy-rs#3591" - ], - "since-commit": "8d23be1392c46a4d59c2910c3dab00ecaad2cf26", - "age": 5 - }, { "message": "Allow [AwsUserAgent](https://docs.rs/aws-runtime/1.3.1/aws_runtime/user_agent/struct.AwsUserAgent.html) to incorporate business metrics, which now deprecates the existing feature and config metadata.\n", "meta": { @@ -31,7 +17,7 @@ "smithy-rs#3781" ], "since-commit": "433e1a00e2d3eadfde78b472d78b30a8f9204dbe", - "age": 4 + "age": 5 }, { "message": "Fix incorrect redaction of `@sensitive` types in maps and lists.\n", @@ -46,7 +32,7 @@ "smithy-rs#3757" ], "since-commit": "433e1a00e2d3eadfde78b472d78b30a8f9204dbe", - "age": 4 + "age": 5 }, { "message": "Upgrade MSRV to Rust 1.78.0.\n", @@ -60,7 +46,7 @@ "smithy-rs#3800" ], "since-commit": "d64aea29ad48d7bddb5a7511f3f1175c478e2c1e", - "age": 1 + "age": 2 }, { "message": "Add minimal support for `AWS::Auth::AccountId` and `AWS::Auth::AccountIdEndpointMode` endpoint built-ins\n", @@ -74,7 +60,7 @@ "smithy-rs#3792" ], "since-commit": "d64aea29ad48d7bddb5a7511f3f1175c478e2c1e", - "age": 1 + "age": 2 }, { "message": "Fix the execution order of [modify_before_serialization](https://docs.rs/aws-smithy-runtime-api/latest/aws_smithy_runtime_api/client/interceptors/trait.Intercept.html#method.modify_before_serialization) and [read_before_serialization](https://docs.rs/aws-smithy-runtime-api/latest/aws_smithy_runtime_api/client/interceptors/trait.Intercept.html#method.read_before_serialization) in the orchestrator. The `modify_before_serialization` method now executes before the `read_before_serialization` method. This adjustment may result in changes in behavior depending on how you customize interceptors.\n", @@ -88,7 +74,7 @@ "smithy-rs#3798" ], "since-commit": "d64aea29ad48d7bddb5a7511f3f1175c478e2c1e", - "age": 1 + "age": 2 }, { "message": "Fix the [Length::UpTo](https://docs.rs/aws-smithy-types/1.2.2/aws_smithy_types/byte_stream/enum.Length.html) usage in [FsBuilder](https://docs.rs/aws-smithy-types/1.2.2/aws_smithy_types/byte_stream/struct.FsBuilder.html), ensuring that the specified length does not exceed the remaining file length.\n", @@ -103,7 +89,7 @@ "smithy-rs#3797" ], "since-commit": "d64aea29ad48d7bddb5a7511f3f1175c478e2c1e", - "age": 1 + "age": 2 }, { "message": "Re-export `ByteStream`'s `Length` and `FsBuilder`. By making these types available directly within a client crate, customers can use `ByteStream::read_from` without needing to import them separately from the `aws-smithy-types` crate.\n", @@ -117,7 +103,7 @@ "aws-sdk-rust#820" ], "since-commit": "d64aea29ad48d7bddb5a7511f3f1175c478e2c1e", - "age": 1 + "age": 2 } ], "aws-sdk-model": []