diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a962c2ac22..ad79907f97e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Smithy Typescript Codegen Changelog +## 0.25.0 (2024-11-18) + +### Features +- Upgraded smithyVersion to 1.52.0 ([#1434](https://github.com/smithy-lang/smithy-typescript/pull/1434)) +- Added default accepts=application/cbor header for Smithy RPC v2 CBOR protocol ([#1427](https://github.com/smithy-lang/smithy-typescript/pull/1427)) +- Added `| undefined` for optional type properties to support `exactOptionalPropertyTypes` ([#1448](https://github.com/smithy-lang/smithy-typescript/pull/1448)) + +### Bug Fixes +- Added uuid types import when adding uuid import ([#1428](https://github.com/smithy-lang/smithy-typescript/pull/1428)) + + ## 0.24.0 (2024-09-30) ### Features @@ -48,7 +59,7 @@ - codegen: Fixed incorrect usage of string templates when generating commands ([#1354](https://github.com/smithy-lang/smithy-typescript/pull/1354)) -- codegen: Fixed serialization of `:event-type` in event-streams where the member target-id was being used instead of the member name ([#1349](https://github.com/smithy-lang/smithy-typescript/pull/1349)) +- codegen: Fixed serialization of `:event-type` in event-streams where the member target-id was being used instead of the member name ([#1349](https://github.com/smithy-lang/smithy-typescript/pull/1349)) - codegen: Fixed issue where content-type was being set when input body was empty ([#1304](https://github.com/smithy-lang/smithy-typescript/pull/1304)) @@ -160,7 +171,7 @@ * Update to generate enum Record keys when target is enum ([#1037](https://github.com/awslabs/smithy-typescript/pull/1037)) * Removed "| string" and "| number" from enum targeted members ([#1028](https://github.com/awslabs/smithy-typescript/pull/1003)) * Added `-p` for `mkdir` in `build-generated-test-packages` ([#1010](https://github.com/awslabs/smithy-typescript/pull/1003)) -* Added logging for `buildAndCopyToNodeModules()` ([#1003](https://github.com/awslabs/smithy-typescript/pull/1003)) +* Added logging for `buildAndCopyToNodeModules()` ([#1003](https://github.com/awslabs/smithy-typescript/pull/1003)) * Reorganized models in `smithy-typescript-codegen-test` ([#995](https://github.com/awslabs/smithy-typescript/pull/995)) * Updated to export empty model index if no `model_*` files exist ([#996](https://github.com/awslabs/smithy-typescript/pull/996)) * Read service specific endpoints for environment or config ([#1014](https://github.com/awslabs/smithy-typescript/pull/1014)) diff --git a/README.md b/README.md index 965f2c0365c..cf1a5602417 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ smithy-typescript-example-client/ └── smithy-build.json ``` -To add a minimal `typescript-client-codegen` plugin, add the following to `smithy-build.json`: +To add a minimal `typescript-client-codegen` plugin, add the following to `smithy-build.json`: ```json // smithy-build.json @@ -47,7 +47,7 @@ To add a minimal `typescript-client-codegen` plugin, add the following to `smith // Add the Smithy TypeScript code generator dependency "maven": { "dependencies": [ - "software.amazon.smithy.typescript:smithy-typescript-codegen:0.24.0" + "software.amazon.smithy.typescript:smithy-typescript-codegen:0.25.0" ] }, "plugins": { @@ -102,7 +102,7 @@ smithy-typescript-example-client-gradle/ └── smithy-build.json ``` -To add a minimal `typescript-client-codegen` plugin, add the following to `smithy-build.json`: +To add a minimal `typescript-client-codegen` plugin, add the following to `smithy-build.json`: ```json // smithy-build.json @@ -141,7 +141,7 @@ dependencies { smithyCli("software.amazon.smithy:smithy-cli:$smithyVersion") // Add the Smithy TypeScript code generator dependency - implementation("software.amazon.smithy.typescript:smithy-typescript-codegen:0.24.0") + implementation("software.amazon.smithy.typescript:smithy-typescript-codegen:0.25.0") // Uncomment below to add various smithy dependencies (see full list of smithy dependencies in https://github.com/awslabs/smithy) // implementation("software.amazon.smithy:smithy-model:$smithyVersion") @@ -327,9 +327,9 @@ Once a `ProtocolGenerator` is implemented, the implementation can be registered ```java // src/main/java/typescript/example/client/gradle/ExampleClientProtocolGeneratorIntegration.java package typescript.example.client.gradle; - + // ... - + public class ExampleClientProtocolGeneratorIntegration implements TypeScriptIntegration { // ProtocolGenerator implementation is inline for brevity, but should be in its // own file @@ -368,9 +368,9 @@ Smithy TypeScript has the `CustomEndpoints` configuration which can be used to a ```java // src/main/java/typescript/example/client/gradle/ExampleClientEndpointResolutionIntegration.java package typescript.example.client.gradle; - + // ... - + public class ExampleClientEndpointResolutionIntegration implements TypeScriptIntegration { @Override public List getClientPlugins() { diff --git a/build.gradle.kts b/build.gradle.kts index d0159e95fe6..2ec48135745 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -28,7 +28,7 @@ plugins { allprojects { group = "software.amazon.smithy.typescript" - version = "0.24.0" + version = "0.25.0" } // The root project doesn't produce a JAR.