Open
Description
After dropping Node 16, all Smithy helper packages were upgraded to a major version. However, the generated code when using version 0.25.0 still relies on older versions of these packages.
This mismatch causes issues due to AWS SDK peer dependencies, resulting in errors like:
The inferred type of 'MyCommand' cannot be named without a reference to '@smithy/smithy-client/node_modules/@smithy/middleware-endpoint'. This is likely not portable. A type annotation is necessary.
The problem can be resolved by adding the following dependencies to the generated package.json:
{
"@smithy/protocol-http": "^4.1.8",
"@smithy/middleware-endpoint": "^3.2.3"
}
However, it would be much more convenient and robust if the release version of smithy-typescript
was release, so we can generate code that uses the latest versions of the Smithy helper packages directly.