From 5133152b09553d446525092b65ab1aee526c69e1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 23 Sep 2024 08:28:42 +0000 Subject: [PATCH] chore(deps): update dependency react-native-quick-crypto to ^0.7.5 (#6069) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [react-native-quick-crypto](https://redirect.github.com/margelo/react-native-quick-crypto) | [`^0.7.4` -> `^0.7.5`](https://renovatebot.com/diffs/npm/react-native-quick-crypto/0.7.4/0.7.5) | [![age](https://developer.mend.io/api/mc/badges/age/npm/react-native-quick-crypto/0.7.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/react-native-quick-crypto/0.7.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/react-native-quick-crypto/0.7.4/0.7.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/react-native-quick-crypto/0.7.4/0.7.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
margelo/react-native-quick-crypto (react-native-quick-crypto) ### [`v0.7.5`](https://redirect.github.com/margelo/react-native-quick-crypto/releases/tag/v0.7.5): Release 0.7.5 [Compare Source](https://redirect.github.com/margelo/react-native-quick-crypto/compare/v0.7.4...v0.7.5) ##### 🐛 Bug Fixes - cipher function signatures now match Node spec again ([#​439](https://redirect.github.com/margelo/react-native-quick-crypto/issues/439)) ([4dc122a](https://redirect.github.com/margelo/react-native-quick-crypto/commit/4dc122ae153941c1791a6e9e205a26b6d4d01e63)) - return Buffer from getAuthTag ([#​443](https://redirect.github.com/margelo/react-native-quick-crypto/issues/443)) ([05d18e2](https://redirect.github.com/margelo/react-native-quick-crypto/commit/05d18e244ad5294952e16fcba54b93cfbd3cf0a1)) - when algo is an object of SubtleAlgorithm ([#​457](https://redirect.github.com/margelo/react-native-quick-crypto/issues/457)) ([89b45cc](https://redirect.github.com/margelo/react-native-quick-crypto/commit/89b45ccd4ad08ab21b166dd723487c4e0b7d3088)) #### New Contributors - [@​jeanregisser](https://redirect.github.com/jeanregisser) made their first contribution in [https://github.com/margelo/react-native-quick-crypto/pull/443](https://redirect.github.com/margelo/react-native-quick-crypto/pull/443) - [@​kjhman21](https://redirect.github.com/kjhman21) made their first contribution in [https://github.com/margelo/react-native-quick-crypto/pull/457](https://redirect.github.com/margelo/react-native-quick-crypto/pull/457)
--- ### Configuration 📅 **Schedule**: Branch creation - "after 5pm,every weekend" in timezone America/Los_Angeles, Automerge - "after 5pm,every weekend" in timezone America/Los_Angeles. 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/valora-inc/wallet). --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jean Regisser Co-authored-by: valora-bot --- ios/Podfile.lock | 4 +- package.json | 2 +- patches/react-native-quick-crypto+0.7.4.patch | 55 ------------------- yarn.lock | 8 +-- 4 files changed, 7 insertions(+), 62 deletions(-) delete mode 100644 patches/react-native-quick-crypto+0.7.4.patch diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 2ad573f14a..85a17e9ef0 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -594,7 +594,7 @@ PODS: - react-native-pager-view (6.4.1): - RCT-Folly (= 2021.07.22.00) - React-Core - - react-native-quick-crypto (0.7.4): + - react-native-quick-crypto (0.7.5): - OpenSSL-Universal - RCT-Folly (= 2021.07.22.00) - React @@ -1273,7 +1273,7 @@ SPEC CHECKSUMS: react-native-launch-arguments: 5f41e0abf88a15e3c5309b8875d6fd5ac43df49d react-native-netinfo: f0a9899081c185db1de5bb2fdc1c88c202a059ac react-native-pager-view: c65514a81a384c3ce244b5bd87167761740308d3 - react-native-quick-crypto: 66ebfd3657f39263ac98af21cfb57f97d3dfc884 + react-native-quick-crypto: 225ad6747aeca66285b9a2bb99f3dece68de6656 react-native-restart: 7595693413fe3ca15893702f2c8306c62a708162 react-native-safe-area-context: 851c62c48dce80ccaa5637b6aa5991a1bc36eca9 react-native-shake: 0c36371dd63019afa68890ccc65a442ee21b4dde diff --git a/package.json b/package.json index 8b1dc6f51a..6340b04232 100644 --- a/package.json +++ b/package.json @@ -159,7 +159,7 @@ "react-native-picker-select": "^9.3.1", "react-native-platform-touchable": "^1.1.1", "react-native-qrcode-svg": "^6.3.2", - "react-native-quick-crypto": "^0.7.4", + "react-native-quick-crypto": "^0.7.5", "react-native-reanimated": "^3.15.1", "react-native-restart": "^0.0.27", "react-native-safe-area-context": "^4.11.0", diff --git a/patches/react-native-quick-crypto+0.7.4.patch b/patches/react-native-quick-crypto+0.7.4.patch deleted file mode 100644 index e0f631b872..0000000000 --- a/patches/react-native-quick-crypto+0.7.4.patch +++ /dev/null @@ -1,55 +0,0 @@ -diff --git a/node_modules/react-native-quick-crypto/lib/commonjs/Cipher.js b/node_modules/react-native-quick-crypto/lib/commonjs/Cipher.js -index 72ccb4e..d09e93e 100644 ---- a/node_modules/react-native-quick-crypto/lib/commonjs/Cipher.js -+++ b/node_modules/react-native-quick-crypto/lib/commonjs/Cipher.js -@@ -150,7 +150,7 @@ class CipherCommon extends _readableStream.default.Transform { - return this; - } - getAuthTag() { -- return this.internal.getAuthTag(); -+ return Buffer.from(this.internal.getAuthTag()); - } - setAuthTag(tag) { - this.internal.setAuthTag((0, _Utils.binaryLikeToArrayBuffer)(tag)); -diff --git a/node_modules/react-native-quick-crypto/lib/module/Cipher.js b/node_modules/react-native-quick-crypto/lib/module/Cipher.js -index 620e5b5..16c86d0 100644 ---- a/node_modules/react-native-quick-crypto/lib/module/Cipher.js -+++ b/node_modules/react-native-quick-crypto/lib/module/Cipher.js -@@ -140,7 +140,7 @@ class CipherCommon extends Stream.Transform { - return this; - } - getAuthTag() { -- return this.internal.getAuthTag(); -+ return Buffer.from(this.internal.getAuthTag()); - } - setAuthTag(tag) { - this.internal.setAuthTag(binaryLikeToArrayBuffer(tag)); -diff --git a/node_modules/react-native-quick-crypto/lib/typescript/src/Cipher.d.ts b/node_modules/react-native-quick-crypto/lib/typescript/src/Cipher.d.ts -index 0ea4183..5eb8f03 100644 ---- a/node_modules/react-native-quick-crypto/lib/typescript/src/Cipher.d.ts -+++ b/node_modules/react-native-quick-crypto/lib/typescript/src/Cipher.d.ts -@@ -21,7 +21,7 @@ declare class CipherCommon extends Stream.Transform { - setAAD(buffer: Buffer, options?: { - plaintextLength: number; - }): this; -- getAuthTag(): ArrayBuffer; -+ getAuthTag(): Buffer; - setAuthTag(tag: Buffer): this; - } - declare class Cipher extends CipherCommon { -diff --git a/node_modules/react-native-quick-crypto/src/Cipher.ts b/node_modules/react-native-quick-crypto/src/Cipher.ts -index 7c4ee20..0386117 100644 ---- a/node_modules/react-native-quick-crypto/src/Cipher.ts -+++ b/node_modules/react-native-quick-crypto/src/Cipher.ts -@@ -222,8 +222,9 @@ class CipherCommon extends Stream.Transform { - return this; - } - -- public getAuthTag(): ArrayBuffer { -- return this.internal.getAuthTag(); -+ public getAuthTag(): Buffer { -+ // TODO: remove this patch once https://github.com/margelo/react-native-quick-crypto/pull/443 lands in a release -+ return Buffer.from(this.internal.getAuthTag()); - } - - public setAuthTag(tag: Buffer): this { diff --git a/yarn.lock b/yarn.lock index 70436df0e9..3fef4349bd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12806,10 +12806,10 @@ react-native-quick-base64@^2.0.5: dependencies: base64-js "^1.5.1" -react-native-quick-crypto@^0.7.4: - version "0.7.4" - resolved "https://registry.yarnpkg.com/react-native-quick-crypto/-/react-native-quick-crypto-0.7.4.tgz#d8fc1b4e15cdf9cfa2d83a255e202d91bef629a0" - integrity sha512-Rg+XKmTIoH9V15PhwiCEatc+1XfO3i5+eIJ8NWRPMvGsrsWrmqakHk+Ik36HxdudFd7Rhm50As2HPA+n8bmXXg== +react-native-quick-crypto@^0.7.5: + version "0.7.5" + resolved "https://registry.yarnpkg.com/react-native-quick-crypto/-/react-native-quick-crypto-0.7.5.tgz#a6ec2f97da5ee7fffcfbe012d641af01fde007a9" + integrity sha512-jFjvoUlgKhDXjwh4UMheW/MHO5TWL0UeRBuzPcLK5UlX5wZaLIChg5gdIw69h00BQHJojEprTboWCwulVGlNZg== dependencies: "@craftzdog/react-native-buffer" "^6.0.5" events "^3.3.0"