-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
update to use aws-sdk-v3 #153
Conversation
This pull request introduces 1 alert when merging 5a2e5a9 into df3ffd3 - view on LGTM.com new alerts:
|
Thanks a lot @monken.
Sounds good to me. Please forgive me if I don't respond in time, I am very busy with other things at the moment. I may overlook pending things, so ping me if things or stuck. |
@vecerek, as you can see @monken prepared a PR for version 3. |
@Borewit I agree that it's for the better to keep supporting v2. If there's a way to provide additional support for v3, that would be awesome 🙂 |
I was about to totally update one of my projects to AWS SDK v3, but realized I still needed v2 for this library. Is there some way to make |
@Borewit aws-sdk-js-v3 has stable releases now: https://github.com/aws/aws-sdk-js-v3/releases |
I think you can now totally update your project to V3 Sam. |
@Borewit Thank you, always appreciate your help! 🙌 |
aws-sdk-js-v3 is currently in beta but will be released soon. I thought I'd give it a shot and port this package over. I don't expect this to be merged until aws-sdk-js-v3 has been released. The new SDK greatly reduces bundle sizes for applications deployed to Lambda or browser.
This is definitely a breaking change because the user will to provide a different S3 client than before.
I also adjusted the test to request a file on a public bucket (make sure to set
AWS_REGION=us-east-1
). I was unable to test the arrayBuffer function as it wasn't clear to me under what circumstances it is called. It would be possible to also add browser support here. So far only NodeJS is supported.