From e235a2fd9ec45335a3b2018028c2d3a2ac13ffdf Mon Sep 17 00:00:00 2001 From: AWS SDK Rust Bot Date: Wed, 10 Jan 2024 15:20:52 +0000 Subject: [PATCH 1/3] Upgrade the smithy-rs runtime crates version to 1.1.2 --- gradle.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index c7db31d298..1e7ef28b2a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -12,10 +12,10 @@ rust.msrv=1.72.1 org.gradle.jvmargs=-Xmx1024M # Version number to use for the generated stable runtime crates -smithy.rs.runtime.crate.stable.version=1.1.1 +smithy.rs.runtime.crate.stable.version=1.1.2 # Version number to use for the generated unstable runtime crates -smithy.rs.runtime.crate.unstable.version=0.60.1 +smithy.rs.runtime.crate.unstable.version=0.60.2 kotlin.code.style=official From 4bdd9dab74185c82e92a47efe9bbbe5acd101e13 Mon Sep 17 00:00:00 2001 From: AWS SDK Rust Bot Date: Wed, 10 Jan 2024 15:22:38 +0000 Subject: [PATCH 2/3] Update changelog --- CHANGELOG.md | 22 ++++++ CHANGELOG.next.toml | 84 +--------------------- aws/SDK_CHANGELOG.next.json | 140 ++++++++++++++++++++++++++---------- 3 files changed, 124 insertions(+), 122 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e51b8d401..8f5b2bc139 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,26 @@ +January 10th, 2024 +================== +**New this release:** +- :tada: (all, [smithy-rs#3300](https://github.com/smithy-lang/smithy-rs/issues/3300), [aws-sdk-rust#977](https://github.com/awslabs/aws-sdk-rust/issues/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. +- :tada: (all, [smithy-rs#3333](https://github.com/smithy-lang/smithy-rs/issues/3333), [aws-sdk-rust#998](https://github.com/awslabs/aws-sdk-rust/issues/998), [aws-sdk-rust#1010](https://github.com/awslabs/aws-sdk-rust/issues/1010)) Add `as_service_err()` to `SdkError` to allow checking the type of an error is without taking ownership. +- (client, [smithy-rs#3299](https://github.com/smithy-lang/smithy-rs/issues/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`](https://docs.rs/futures-core/latest/futures_core/stream/trait.Stream.html), allowing customers to use stream combinators like [`map`](https://docs.rs/tokio-stream/latest/tokio_stream/trait.StreamExt.html#method.map) and [`filter`](https://docs.rs/tokio-stream/latest/tokio_stream/trait.StreamExt.html#method.filter). + + Example: + + ```rust + use aws_smithy_types_convert::stream::PaginationStreamExt + let stream = s3_client.list_objects_v2().bucket("...").into_paginator().send().into_stream_03x(); + ``` +- :bug: (client, [smithy-rs#3252](https://github.com/smithy-lang/smithy-rs/issues/3252), [smithy-rs#3312](https://github.com/smithy-lang/smithy-rs/issues/3312), @milesziemer) Serialize 0/false in query parameters, and ignore actual default value during serialization instead of just 0/false. See [changelog discussion](https://github.com/smithy-lang/smithy-rs/discussions/3312) for details. +- (all, [smithy-rs#3292](https://github.com/smithy-lang/smithy-rs/issues/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! ❤ +- @Ploppz ([smithy-rs#3299](https://github.com/smithy-lang/smithy-rs/issues/3299)) +- @milesziemer ([smithy-rs#3252](https://github.com/smithy-lang/smithy-rs/issues/3252), [smithy-rs#3312](https://github.com/smithy-lang/smithy-rs/issues/3312)) + + December 13th, 2023 =================== diff --git a/CHANGELOG.next.toml b/CHANGELOG.next.toml index 8ef2fea4c5..fc4c4c2578 100644 --- a/CHANGELOG.next.toml +++ b/CHANGELOG.next.toml @@ -9,86 +9,4 @@ # message = "Fix typos in module documentation for generated crates" # references = ["smithy-rs#920"] # meta = { "breaking" = false, "tada" = false, "bug" = false, "target" = "client | server | all"} -# author = "rcoh" - -[[smithy-rs]] -message = "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." -references = ["smithy-rs#3300", "aws-sdk-rust#977"] -meta = { "breaking" = false, "tada" = true, "bug" = false, "target" = "all" } -author = "rcoh" - -[[aws-sdk-rust]] -message = "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." -references = ["smithy-rs#3300", "aws-sdk-rust#977"] -meta = { "breaking" = false, "tada" = true, "bug" = false } -author = "rcoh" - -[[smithy-rs]] -message = """ 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`](https://docs.rs/futures-core/latest/futures_core/stream/trait.Stream.html), allowing customers to use stream combinators like [`map`](https://docs.rs/tokio-stream/latest/tokio_stream/trait.StreamExt.html#method.map) and [`filter`](https://docs.rs/tokio-stream/latest/tokio_stream/trait.StreamExt.html#method.filter). - -Example: - -```rust -use aws_smithy_types_convert::stream::PaginationStreamExt -let stream = s3_client.list_objects_v2().bucket("...").into_paginator().send().into_stream_03x(); -``` -""" -references = ["smithy-rs#3299"] -meta = { "breaking" = false, "tada" = false, "bug" = false, "target" = "client"} -author = "Ploppz" - -[[aws-sdk-rust]] -message = """ 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`](https://docs.rs/futures-core/latest/futures_core/stream/trait.Stream.html), allowing customers to use stream combinators like [`map`](https://docs.rs/tokio-stream/latest/tokio_stream/trait.StreamExt.html#method.map) and [`filter`](https://docs.rs/tokio-stream/latest/tokio_stream/trait.StreamExt.html#method.filter). - -Example: - -```rust -use aws_smithy_types_convert::stream::PaginationStreamExt -let stream = s3_client.list_objects_v2().bucket("...").into_paginator().send().into_stream_03x(); -``` -""" -references = ["smithy-rs#3299"] -meta = { "breaking" = false, "tada" = false, "bug" = false } -author = "Ploppz" - -[[smithy-rs]] -message = "Serialize 0/false in query parameters, and ignore actual default value during serialization instead of just 0/false. See [changelog discussion](https://github.com/smithy-lang/smithy-rs/discussions/3312) for details." -references = ["smithy-rs#3252", "smithy-rs#3312"] -meta = { "breaking" = false, "tada" = false, "bug" = true, "target" = "client" } -author = "milesziemer" - -[[aws-sdk-rust]] -message = "Serialize 0/false in query parameters, and ignore actual default value during serialization instead of just 0/false. See [changelog discussion](https://github.com/smithy-lang/smithy-rs/discussions/3312) for details." -references = ["smithy-rs#3252", "smithy-rs#3312"] -meta = { "breaking" = false, "tada" = false, "bug" = true } -author = "milesziemer" - -[[smithy-rs]] -message = "Add `as_service_err()` to `SdkError` to allow checking the type of an error is without taking ownership." -references = ["smithy-rs#3333", "aws-sdk-rust#998", "aws-sdk-rust#1010"] -meta = { "breaking" = false, "tada" = true, "bug" = false } -author = "rcoh" - -[[aws-sdk-rust]] -message = "Add `as_service_err()` to `SdkError` to allow checking the type of an error is without taking ownership." -references = ["smithy-rs#3333", "aws-sdk-rust#998", "aws-sdk-rust#1010"] -meta = { "breaking" = false, "tada" = true, "bug" = false } -author = "rcoh" - -[[smithy-rs]] -message = """`requireEndpointResolver: false` is no longer required to remove the need for an endpoint resolver. Instead, `"awsSdkBuilder"` (default false), now _removes_ that requirement.""" -references = ["smithy-rs#3292"] -meta = { "breaking" = false, "tada" = false, "bug" = false } -author = "rcoh" - -[[aws-sdk-rust]] -message = "Fix bug in `CredentialsProcess` provider where `expiry` was incorrectly treated as a required field." -references = ["smithy-rs#3335", "aws-sdk-rust#1021"] -meta = { "breaking" = false, "tada" = false, "bug" = true } -author = "rcoh" - -[[aws-sdk-rust]] -message = "~/.aws/config and ~/.aws/credentials now parse keys in a case-insensitive way. This means the `AWS_SECRET_ACCESS_KEY` is supported in addition to `aws_secret_access_key`." -references = ["aws-sdk#574", "aws-sdk-rust#1020", "smithy-rs#3344"] -meta = { "breaking" = false, "bug" = true, "tada" = false } -author = "rcoh" +# author = "rcoh" \ No newline at end of file diff --git a/aws/SDK_CHANGELOG.next.json b/aws/SDK_CHANGELOG.next.json index 8e14e4d033..455929f32a 100644 --- a/aws/SDK_CHANGELOG.next.json +++ b/aws/SDK_CHANGELOG.next.json @@ -5,35 +5,6 @@ { "smithy-rs": [], "aws-sdk-rust": [ - { - "message": "Retry additional classes of H2 errors (H2 GoAway & H2 ResetStream)", - "meta": { - "bug": false, - "breaking": false, - "tada": false - }, - "author": "rcoh", - "references": [ - "aws-sdk-rust#738", - "aws-sdk-rust#858" - ], - "since-commit": "88970ba88ef45266aade152c7c1da8e90b24c0d7", - "age": 5 - }, - { - "message": "Make some properties for IoT types optional. Previously, they defaulted to false, but that isn't how the service actual works.", - "meta": { - "bug": true, - "breaking": true, - "tada": false - }, - "author": "milesziemer", - "references": [ - "smithy-rs#3256" - ], - "since-commit": "88970ba88ef45266aade152c7c1da8e90b24c0d7", - "age": 5 - }, { "message": "Fix `config::Builder::set_credentials_provider` to override a credentials provider previously set.", "meta": { @@ -47,7 +18,7 @@ "smithy-rs#3278" ], "since-commit": "529b3f03e2b945ea2e5e879183ccfd8e74b7377c", - "age": 4 + "age": 5 }, { "message": "`config::Config::credentials_provider` has been broken since `release-2023-11-15` and is now marked as `deprecated` explicitly.", @@ -62,7 +33,7 @@ "smithy-rs#3278" ], "since-commit": "529b3f03e2b945ea2e5e879183ccfd8e74b7377c", - "age": 4 + "age": 5 }, { "message": "Loading native TLS trusted certs for the default HTTP client now only occurs if the default HTTP client is not overridden in config.", @@ -76,7 +47,7 @@ "smithy-rs#3262" ], "since-commit": "fc335cbc87e70aa63895828fca55b51795b94a6c", - "age": 3 + "age": 4 }, { "message": "Client creation now takes microseconds instead of milliseconds.\nPreviously, it would take 2-3 milliseconds for each client instantiation due to time spent compiling regexes.\nFor applications that used several clients, this would increase start-up time in cases where it really matters,\nsuch as for AWS Lambda cold starts. This time was improved by both changing regex implementation and caching the\nresult of the compilation.", @@ -91,7 +62,7 @@ "smithy-rs#3269" ], "since-commit": "fc335cbc87e70aa63895828fca55b51795b94a6c", - "age": 3 + "age": 4 }, { "message": "Add `test_credentials` to `ConfigLoader` in `aws_config`. This allows the following pattern during tests:\n\n```rust\nasync fn main() {\n let conf = aws_config::defaults(BehaviorVersion::latest())\n .test_credentials()\n .await;\n}\n```\n\nThis is designed for unit tests and using local mocks like DynamoDB Local and LocalStack with the SDK.\n", @@ -106,7 +77,7 @@ "aws-sdk-rust#971" ], "since-commit": "fc335cbc87e70aa63895828fca55b51795b94a6c", - "age": 3 + "age": 4 }, { "message": "Improve the error messages for when auth fails to select an auth scheme for a request.", @@ -121,7 +92,7 @@ "smithy-rs#3277" ], "since-commit": "fc335cbc87e70aa63895828fca55b51795b94a6c", - "age": 3 + "age": 4 }, { "message": "Fix documentation and examples on HyperConnector and HyperClientBuilder.", @@ -136,7 +107,7 @@ "smithy-rs#3282" ], "since-commit": "fc335cbc87e70aa63895828fca55b51795b94a6c", - "age": 3 + "age": 4 }, { "message": "All generated docs now include docsrs labels when features are required", @@ -151,7 +122,7 @@ "smithy-rs#3295" ], "since-commit": "fc335cbc87e70aa63895828fca55b51795b94a6c", - "age": 3 + "age": 4 }, { "message": "`crate::event_receiver::EventReceiver` is now re-exported as `crate::primitives::event_stream::EventReceiver` when a service supports event stream operations.", @@ -165,8 +136,99 @@ "smithy-rs#3305" ], "since-commit": "9f0ba850e03241f657e2e40ca185780e0a5878cb", - "age": 2 + "age": 3 + }, + { + "message": "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.", + "meta": { + "bug": false, + "breaking": false, + "tada": true + }, + "author": "rcoh", + "references": [ + "smithy-rs#3300", + "aws-sdk-rust#977" + ], + "since-commit": "e235a2fd9ec45335a3b2018028c2d3a2ac13ffdf", + "age": 1 + }, + { + "message": " 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`](https://docs.rs/futures-core/latest/futures_core/stream/trait.Stream.html), allowing customers to use stream combinators like [`map`](https://docs.rs/tokio-stream/latest/tokio_stream/trait.StreamExt.html#method.map) and [`filter`](https://docs.rs/tokio-stream/latest/tokio_stream/trait.StreamExt.html#method.filter).\n\nExample:\n\n```rust\nuse aws_smithy_types_convert::stream::PaginationStreamExt\nlet stream = s3_client.list_objects_v2().bucket(\"...\").into_paginator().send().into_stream_03x();\n```\n", + "meta": { + "bug": false, + "breaking": false, + "tada": false + }, + "author": "Ploppz", + "references": [ + "smithy-rs#3299" + ], + "since-commit": "e235a2fd9ec45335a3b2018028c2d3a2ac13ffdf", + "age": 1 + }, + { + "message": "Serialize 0/false in query parameters, and ignore actual default value during serialization instead of just 0/false. See [changelog discussion](https://github.com/smithy-lang/smithy-rs/discussions/3312) for details.", + "meta": { + "bug": true, + "breaking": false, + "tada": false + }, + "author": "milesziemer", + "references": [ + "smithy-rs#3252", + "smithy-rs#3312" + ], + "since-commit": "e235a2fd9ec45335a3b2018028c2d3a2ac13ffdf", + "age": 1 + }, + { + "message": "Add `as_service_err()` to `SdkError` to allow checking the type of an error is without taking ownership.", + "meta": { + "bug": false, + "breaking": false, + "tada": true + }, + "author": "rcoh", + "references": [ + "smithy-rs#3333", + "aws-sdk-rust#998", + "aws-sdk-rust#1010" + ], + "since-commit": "e235a2fd9ec45335a3b2018028c2d3a2ac13ffdf", + "age": 1 + }, + { + "message": "Fix bug in `CredentialsProcess` provider where `expiry` was incorrectly treated as a required field.", + "meta": { + "bug": true, + "breaking": false, + "tada": false + }, + "author": "rcoh", + "references": [ + "smithy-rs#3335", + "aws-sdk-rust#1021" + ], + "since-commit": "e235a2fd9ec45335a3b2018028c2d3a2ac13ffdf", + "age": 1 + }, + { + "message": "~/.aws/config and ~/.aws/credentials now parse keys in a case-insensitive way. This means the `AWS_SECRET_ACCESS_KEY` is supported in addition to `aws_secret_access_key`.", + "meta": { + "bug": true, + "breaking": false, + "tada": false + }, + "author": "rcoh", + "references": [ + "aws-sdk#574", + "aws-sdk-rust#1020", + "smithy-rs#3344" + ], + "since-commit": "e235a2fd9ec45335a3b2018028c2d3a2ac13ffdf", + "age": 1 } ], "aws-sdk-model": [] -} +} \ No newline at end of file From 1c8043f3bed22f046873ce3666dc3f3bee86f974 Mon Sep 17 00:00:00 2001 From: Russell Cohen Date: Wed, 10 Jan 2024 16:51:36 -0500 Subject: [PATCH 3/3] Update tools allow 'aws-sdk' repo name (#3353) ## Motivation and Context Fix missed change to update changelog tool ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._ --- tools/ci-build/changelogger/src/render.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/ci-build/changelogger/src/render.rs b/tools/ci-build/changelogger/src/render.rs index 5b72a253bb..54b8a5dcbd 100644 --- a/tools/ci-build/changelogger/src/render.rs +++ b/tools/ci-build/changelogger/src/render.rs @@ -164,6 +164,7 @@ fn to_md_link(reference: &Reference) -> String { let org_name = match reference.repo.as_str() { "smithy-rs" => "smithy-lang", "aws-sdk-rust" => "awslabs", + "aws-sdk" => "aws", repo => panic!("unrecognized repo named {repo}"), }; format!( @@ -396,6 +397,7 @@ fn render_external_contributors(entries: &[ChangelogEntry], out: &mut String) { .unwrap() .references .iter() + .filter(|r| matches!(r.repo.as_str(), "aws-sdk-rust" | "smithy-rs")) .map(to_md_link) }) .collect::>(); @@ -507,7 +509,7 @@ references = ["smithy-rs#445"] author = "external-contrib" message = "I made a change to update the code generator" meta = { breaking = false, tada = true, bug = false } -references = ["smithy-rs#446"] +references = ["smithy-rs#446", "aws-sdk#123"] [[smithy-rs]] author = "another-contrib" @@ -570,7 +572,7 @@ v0.3.0 (January 4th, 2022) - :warning: (all, [smithy-rs#445](https://github.com/smithy-lang/smithy-rs/issues/445)) I made a major change to update the code generator **New this release:** -- :tada: (all, [smithy-rs#446](https://github.com/smithy-lang/smithy-rs/issues/446), @external-contrib) I made a change to update the code generator +- :tada: (all, [smithy-rs#446](https://github.com/smithy-lang/smithy-rs/issues/446), [aws-sdk#123](https://github.com/aws/aws-sdk/issues/123), @external-contrib) I made a change to update the code generator - :tada: (all, [smithy-rs#446](https://github.com/smithy-lang/smithy-rs/issues/446), @external-contrib) I made a change to update the code generator **Update guide:**