Skip to content

Please release a new code generator version for NPM packages with Node.js 18+ major versions #1495

Open
@libre-man

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.

Metadata

Assignees

Labels

closing-soonThis issue will automatically close in 2 days unless further comments are made.pending-releaseThis issue will be fixed by an approved PR that hasn't been released yet.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions