Skip to content

Commit 1783b4e

Browse files
committed
chore: deprecate MD5 and use CRC32 by default
1 parent ba24558 commit 1783b4e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/middleware-flexible-checksums/src/constants.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ export const DEFAULT_RESPONSE_CHECKSUM_VALIDATION = RequestChecksumCalculation.W
5252
* Checksum Algorithms supported by the SDK.
5353
*/
5454
export enum ChecksumAlgorithm {
55+
/**
56+
* @deprecated Use {@link ChecksumAlgorithm.CRC32} instead.
57+
*/
5558
MD5 = "MD5",
5659
CRC32 = "CRC32",
5760
CRC32C = "CRC32C",
@@ -70,7 +73,7 @@ export enum ChecksumLocation {
7073
/**
7174
* @internal
7275
*/
73-
export const DEFAULT_CHECKSUM_ALGORITHM = ChecksumAlgorithm.MD5;
76+
export const DEFAULT_CHECKSUM_ALGORITHM = ChecksumAlgorithm.CRC32;
7477

7578
/**
7679
* @internal

0 commit comments

Comments
 (0)