aws-amplify / amplify-js

A declarative JavaScript library for application development using cloud services.
https://docs.amplify.aws/lib/q/platform/js
Apache License 2.0
9.44k stars 2.13k forks source link

feat(storage): calculate crc32 by default and deprecate md5 #13968

Closed AllanZhengYP closed 3 weeks ago

AllanZhengYP commented 3 weeks ago

Description of changes

  1. Remove the checksumAlgorithm option from upload(single & multipart) API and instead calculate the crc32 checksum by default.
  2. Deprecate the MD5 checksum when objectLockEnabled configuration is set. It's not useful since we send crc32 by default now.
  3. Update tests accordingly.

Issue #, if available

Description of how you validated changes

Checklist

Checklist for repo maintainers

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