Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Node.js 14 and NPM 9+ #761

Open
jkelley-godaddy opened this issue Oct 23, 2023 · 0 comments
Open

Support for Node.js 14 and NPM 9+ #761

jkelley-godaddy opened this issue Oct 23, 2023 · 0 comments

Comments

@jkelley-godaddy
Copy link

Background

Please see the original issue for @aws-sdk/client-sts here: aws/aws-sdk-js-v3#5305

Summary

When using @aws-sdk/client-sts as a bundleDependencies, npm pack resolves @aws-sdk/client-sts dependency on @aws-crypto/sha256-browser and @aws-crypto/sha256-js to 3.0.0 for compatibility with Node.js 14.x. Due to breaking changes in NPM 9+ to npm pack these older versions resolve to the deprecated package @aws-sdk/util-utf8-browser which has files omitted, leading to the error Cannot find module. npm pack does not work with overrides as a work-around.

Issue

Since all currently supported versions of Node.js use NPM 9+ we are looking to resolve this issue.

According to the original issue AWS SDK cannot drop support for Node.js 14.x until May 1, 2024 or later. Therefore changing the dependency version in use by @aws-sdk/client-sts on the main branch would require a version of @aws-crypto compaible with both NPM 9+ and Node.js 14.x which we were advised to request.

Please advise if this is possible or if any additional information is required.
Thank you for your time and assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant