Skip to content

fix: aws sdk version dependencies pollution #145

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

Merged
merged 2 commits into from
Jul 17, 2019

Conversation

seebees
Copy link
Contributor

@seebees seebees commented Jul 11, 2019

resolves #136
resolved #138

The AWS SDK for JS v2 and v3 have similar types,
but they are not exactly the same.

In a effort to have both versions work,
I imported as dev dependencies all the relevant packages
and tried to use conditional types.
However, since the types are all exported by the functions
this did not work as planed and caused every client to want every SDK.

The interface the AWS Encryption SDK for JS needs
from the AWS SDK is minimal.
Hand rolling the appropriate types is the best solution at this time.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

resolves aws#136
resolved aws#138

The AWS SDK for JS v2 and v3 have similar types,
but they are not exactly the same.

In a effort to have both versions work,
I imported as dev dependencies all the relevant packages
and tried to use conditional types.
However, since the types are all exported by the functions
this did not work as planed and caused _every_ client to want _every_ SDK.

The interface the AWS Encryption SDK for JS needs
from the AWS SDK is minimal.
Hand rolling the appropriate types is the best solution at this time.
@seebees seebees requested review from AllanZhengYP, sharkedj and a team July 11, 2019 17:07
Copy link

@AllanZhengYP AllanZhengYP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me as long as the minimal interface you defined here is stable

@seebees seebees merged commit d73d50d into aws:master Jul 17, 2019
@seebees seebees deleted the aws_sdk_versions branch July 17, 2019 22:12
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

Successfully merging this pull request may close these issues.

Encyrption SDK requires you have aws sdkv3 and sdkv2 installed client-node relies on browser kms client
3 participants