Skip to content

Commit ae8bf5c

Browse files
authored
Make sha256 required parameter for SigV4 constructor (#1335)
1 parent ed4d2b0 commit ae8bf5c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/real-teachers-sort.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@smithy/signature-v4": major
3+
---
4+
5+
Make sha256 required parameter for SigV4 constructor

packages/signature-v4/src/SignatureV4.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export interface SignatureV4Init {
7272
* A constructor function for a hash object that will calculate SHA-256 HMAC
7373
* checksums.
7474
*/
75-
sha256?: ChecksumConstructor | HashConstructor;
75+
sha256: ChecksumConstructor | HashConstructor;
7676

7777
/**
7878
* Whether to uri-escape the request URI path as part of computing the

0 commit comments

Comments
 (0)