Skip to content

@aws/language-server-runtimes depends on deprecated aws-sdk v2 #417

@TrevorBurnham

Description

@TrevorBurnham

If you install the latest @aws/language-server-runtimes with visible postinstall script output (e.g. using npm's --foreground-scripts flag), you'll see this:

╔═════════════════════════════════════════════════╗
║ The AWS SDK for JavaScript (v2) will reach      ║
║ -> maintenance mode on September 8, 2024.       ║
║ -> end-of-support on September 8, 2025.         ║
║                                                 ║
║ To continue receiving updates to AWS services,  ║
║ bug fixes, and security updates please upgrade  ║
║ to AWS SDK for JavaScript (v3).                 ║
║                                                 ║
║ More info: https://a.co/cUPnyil                 ║
╚═════════════════════════════════════════════════╝

Sure enough, the package directly depends on aws-sdk v2.

Aside from the deprecation notice, using aws-sdk v2 adds a huge amount of code to downstream projects. The size of my node_modules/aws-sdk is 103 MB!

Interestingly, looking around the code it looks like this package is only used for types, so the simplest fix would be to move aws-sdk into devDependencies.

If I understand this code correctly, the purpose of those types is backward compatibility with aws-sdk v2, so an alternative option would be to release a new version that drops that backward compatibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions