File tree Expand file tree Collapse file tree 7 files changed +50
-3
lines changed Expand file tree Collapse file tree 7 files changed +50
-3
lines changed Original file line number Diff line number Diff line change @@ -80,3 +80,17 @@ npm test
80
80
This SDK is distributed under the
81
81
[ Apache License, Version 2.0] ( http://www.apache.org/licenses/LICENSE-2.0 ) ,
82
82
see LICENSE.txt and NOTICE.txt for more information.
83
+
84
+ # Breaking changes from ` preview ` to ` 1.0.0 `
85
+
86
+ The AWS Encryption SDK for JavaScript is generally available
87
+ as of October 1, 2019.
88
+ There were breaking changes during the ` preview ` .
89
+
90
+ * Passing encryption context to ` encrypt ` is now ` { encryptionContext?: EncryptionContext } ` [ #148 ] [ encryptionContext ]
91
+ * The return value of ` encrypt ` is now ` {result: Uint8Array, messageHeader: MessageHeader} ` [ #211 ] [ encryptResult ]
92
+ * ` encrypt ` strictly enforces ` plaintextLength ` [ #213 ] [ plaintextLength ]
93
+
94
+ [ encryptionContext ] : https://github.com/aws/aws-encryption-sdk-javascript/pull/148
95
+ [ encryptResult ] : https://github.com/aws/aws-encryption-sdk-javascript/pull/211
96
+ [ plaintextLength ] : https://github.com/aws/aws-encryption-sdk-javascript/pull/213
Original file line number Diff line number Diff line change @@ -27,7 +27,10 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
27
27
* encrypt/decrypt interface should be the same (#189 ) ff78f94, closes #189 #182
28
28
* Encryption Context changes (#148 ) 5a7e9ca, closes #148 #54
29
29
30
+ ### BREAKING CHANGES
30
31
32
+ * ` decrypt ` now returns ` {plaintext: Uint8Array, messageHeader: MessageHeader} `
33
+ instead of ` {clearMessage: Uint8Array, messageHeader: MessageHeader} ` .
31
34
32
35
33
36
Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
18
18
19
19
* Encrypt name to result (#211 ) 03061d1, closes #211
20
20
21
+ ### BREAKING CHANGES
21
22
23
+ * ` encrypt ` now returns ` {result: Uint8Array, messageHeader: MessageHeader} `
24
+ instead of ` {ciphertext: Uint8Array, messageHeader: MessageHeader} ` .
22
25
23
26
24
27
@@ -32,6 +35,10 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
32
35
* framLength is not passed to the CMM (#190 ) b60f653, closes #190 #161
33
36
34
37
38
+ ### BREAKING CHANGES
39
+
40
+ * ` encrypt ` now returns ` {ciphertext: Uint8Array, messageHeader: MessageHeader} `
41
+ instead of ` {cipherMessage: Uint8Array, messageHeader: MessageHeader} ` .
35
42
36
43
37
44
Original file line number Diff line number Diff line change @@ -19,8 +19,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
19
19
* Encrypt name to result (#211 ) 03061d1, closes #211
20
20
* plaintextLength must be enforced (#213 ) 1788d25, closes #213
21
21
22
+ ### BREAKING CHANGES
22
23
23
-
24
+ * ` encrypt ` now returns ` {result: Uint8Array, messageHeader: MessageHeader} `
25
+ instead of ` {ciphertext: Uint8Array, messageHeader: MessageHeader} ` .
26
+ * ` encrypt ` and ` encryptStream ` will now throw
27
+ if the caller tries to encrypt more data than ` plaintextLength ` .
24
28
25
29
26
30
# [ 0.1.0-preview.3] ( /compare/@aws-crypto/encrypt-node@0.1.0-preview.2...@aws-crypto/encrypt-node@0.1.0-preview.3 ) (2019-08-08)
@@ -31,9 +35,10 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
31
35
* Encryption Context changes (#148 ) 5a7e9ca, closes #148 #54
32
36
* framLength is not passed to the CMM (#190 ) b60f653, closes #190 #161
33
37
38
+ ### BREAKING CHANGES
34
39
35
-
36
-
40
+ * ` encrypt ` and ` encryptStream ` now expect the encryption context
41
+ to be passed as ` encryptionContext ` instead of ` context ` .
37
42
38
43
# [ 0.1.0-preview.2] ( /compare/@aws-crypto/encrypt-node@0.1.0-preview.1...@aws-crypto/encrypt-node@0.1.0-preview.2 ) (2019-07-24)
39
44
Original file line number Diff line number Diff line change @@ -47,7 +47,10 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
47
47
48
48
* Encryption tests for integration-browser (#159 ) 043506d, closes #159
49
49
50
+ ### BREAKING CHANGES
50
51
52
+ * The cli now takes ` encrypt ` and ` decrypt ` as a command,
53
+ instead of only supporting decrypt testing.
51
54
52
55
53
56
Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
38
38
39
39
* Encryption tests for integration-node (#153 ) d7b5e73, closes #153
40
40
41
+ ### BREAKING CHANGES
42
+
43
+ * The cli now takes ` encrypt ` and ` decrypt ` as a command,
44
+ instead of only supporting decrypt testing.
41
45
42
46
43
47
Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
26
26
* Remove unencryptedDataKeyLength (#201 ) bd160c0, closes #201
27
27
* Suport Node.js crypto KeyObjects (#200 ) 77ad031, closes #200 #74
28
28
29
+ ### BREAKING CHANGES
29
30
31
+ * CryptographicMaterial no longer support ` unencryptedDataKeyLength `
30
32
31
33
32
34
@@ -40,7 +42,16 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
40
42
* framLength is not passed to the CMM (#190 ) b60f653, closes #190 #161
41
43
* Multi keyrings should not require a generator (#165 ) 11ff819, closes #165
42
44
45
+ ### BREAKING CHANGES
43
46
47
+ * CryptographicMaterial now require ` encryptionContext ` on creation.
48
+ this includes ` NodeDecryptionMaterial ` , ` NodeEncryptionMaterial ` ,
49
+ ` WebCryptoEncryptionMaterial ` , and ` WebCryptoDecryptionMaterial ` .
50
+ * The Keyring base class no longer accepts ` encryptionContext `
51
+ for ` onDecrypt ` and ` onEncrypt ` .
52
+ It now gets this value from the CryptographicMaterial passed.
53
+ * The CMM interface now returns CryptographicMaterial
54
+ instead of a complex object with material and context.
44
55
45
56
46
57
You can’t perform that action at this time.
0 commit comments