trieb-work / strapi-provider-cloudflare-r2

Official strapi provider to use the Cloudflare R2 object storage
https://market.strapi.io/providers/strapi-provider-cloudflare-r2
Other
14 stars 7 forks source link

Switch to v3 AWS SDK #10

Open Cretezy opened 1 year ago

Cretezy commented 1 year ago

v2 will be EOL in 2023, v3 is now recommended.

AWS docs: https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/migrating-to-v3.html

Cloudflare docs: https://developers.cloudflare.com/r2/examples/aws/aws-sdk-js-v3/

I just migrated one of my projects, which basically uses the same API as this one, and here are the changes I did:

tilman commented 1 year ago

Good point 👍 Are you willing to open a PR? Would be great since you already made the migration somewhere else ;)

Cretezy commented 1 year ago

Yes can look into it!

anthlasserre commented 1 month ago

Hey guys 👋🏼 I have made the upgrade to V3. Anyone would be able to test it on their side and with a public bucket, please?

tilman commented 1 month ago

Hey guys 👋🏼 I have made the upgrade to V3. Anyone would be able to test it on their side and with a public bucket, please?

Thanks for your PR. Please see my comments on it for some feedback