From 3b780668f56c6f6ed0fd720a4745f93eecb10fd2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 12 Apr 2024 19:31:15 +0000 Subject: [PATCH] fix(deps): update dependency @walletconnect/utils to ^2.12.1 (#5229) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@walletconnect/utils](https://togithub.com/walletconnect/walletconnect-monorepo) | [`^2.11.3` -> `^2.12.1`](https://renovatebot.com/diffs/npm/@walletconnect%2futils/2.11.3/2.12.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@walletconnect%2futils/2.12.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@walletconnect%2futils/2.12.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@walletconnect%2futils/2.11.3/2.12.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@walletconnect%2futils/2.11.3/2.12.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
walletconnect/walletconnect-monorepo (@​walletconnect/utils) ### [`v2.12.1`](https://togithub.com/WalletConnect/walletconnect-monorepo/releases/tag/2.12.1) [Compare Source](https://togithub.com/walletconnect/walletconnect-monorepo/compare/2.12.0...2.12.1) #### What's Changed - chore: prep for `2.12.0` release by [@​ganchoradkov](https://togithub.com/ganchoradkov) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/4392](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/4392) - fix: fallback event listener cleanup by [@​ganchoradkov](https://togithub.com/ganchoradkov) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/4403](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/4403) - fix: handle `loadPersistedSession` exceptions by [@​ganchoradkov](https://togithub.com/ganchoradkov) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/4404](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/4404) **Full Changelog**: https://github.com/WalletConnect/walletconnect-monorepo/compare/2.12.0...2.12.1 ### [`v2.12.0`](https://togithub.com/WalletConnect/walletconnect-monorepo/releases/tag/2.12.0) [Compare Source](https://togithub.com/walletconnect/walletconnect-monorepo/compare/2.11.3...2.12.0) ##### What's Changed - feat: add visionOS support by [@​thiagobrez](https://togithub.com/thiagobrez) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/4340](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/4340) - chore: prep for 2.11.3 release by [@​ganchoradkov](https://togithub.com/ganchoradkov) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/4343](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/4343) - fix: optimize cleanup by [@​chris13524](https://togithub.com/chris13524) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/4351](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/4351) - chore: add code to for chunk logging by [@​devceline](https://togithub.com/devceline) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/4342](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/4342) - fix: adds `http://` support for deeplinks by [@​ganchoradkov](https://togithub.com/ganchoradkov) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/4349](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/4349) - feat: optionally disable deeplinks by [@​ganchoradkov](https://togithub.com/ganchoradkov) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/4373](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/4373) - chore: fix some comments by [@​kaifulee](https://togithub.com/kaifulee) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/4325](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/4325) - feat: updates session without waiting for an ack from the peer by [@​ganchoradkov](https://togithub.com/ganchoradkov) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/4346](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/4346) - chore(deps): update actions/add-to-project action to v0.6.1 by [@​renovate](https://togithub.com/renovate) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/4354](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/4354) - chore(deps): update actions/add-to-project action to v1 by [@​renovate](https://togithub.com/renovate) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/4380](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/4380) - feat: auth aka sign 2.5 by [@​ganchoradkov](https://togithub.com/ganchoradkov) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/4331](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/4331) ##### New Contributors - [@​thiagobrez](https://togithub.com/thiagobrez) made their first contribution in [https://github.com/WalletConnect/walletconnect-monorepo/pull/4340](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/4340) - [@​chris13524](https://togithub.com/chris13524) made their first contribution in [https://github.com/WalletConnect/walletconnect-monorepo/pull/4351](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/4351) - [@​kaifulee](https://togithub.com/kaifulee) made their first contribution in [https://github.com/WalletConnect/walletconnect-monorepo/pull/4325](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/4325) **Full Changelog**: https://github.com/WalletConnect/walletconnect-monorepo/compare/2.11.3...2.12.0
--- ### 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 becomes conflicted, 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 has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/valora-inc/wallet). --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Satish Ravi --- package.json | 2 +- test/RootStateSchema.json | 210 +++++++++++++++++++++++++++++++++++++- yarn.lock | 36 ++++++- 3 files changed, 240 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index e041f3a323f..0f784bd86a5 100644 --- a/package.json +++ b/package.json @@ -119,7 +119,7 @@ "@toruslabs/fetch-node-details": "^13.2.0", "@toruslabs/torus.js": "^12.2.0", "@walletconnect/react-native-compat": "^2.12.1", - "@walletconnect/utils": "^2.11.3", + "@walletconnect/utils": "^2.12.1", "@walletconnect/web3wallet": "^1.10.3", "Base64": "^1.3.0", "bignumber.js": "^9.1.2", diff --git a/test/RootStateSchema.json b/test/RootStateSchema.json index 28d6634e1fd..efde1703c7b 100644 --- a/test/RootStateSchema.json +++ b/test/RootStateSchema.json @@ -416,6 +416,119 @@ ], "type": "object" }, + "AuthTypes.Cacao": { + "additionalProperties": false, + "properties": { + "h": { + "$ref": "#/definitions/AuthTypes.CacaoHeader" + }, + "p": { + "$ref": "#/definitions/AuthTypes.CacaoPayload" + }, + "s": { + "$ref": "#/definitions/AuthTypes.CacaoSignature" + } + }, + "required": [ + "h", + "p", + "s" + ], + "type": "object" + }, + "AuthTypes.CacaoHeader": { + "additionalProperties": false, + "properties": { + "t": { + "const": "caip122", + "type": "string" + } + }, + "required": [ + "t" + ], + "type": "object" + }, + "AuthTypes.CacaoPayload": { + "additionalProperties": false, + "properties": { + "aud": { + "type": "string" + }, + "chainId": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "exp": { + "type": "string" + }, + "expiry": { + "type": "number" + }, + "iat": { + "type": "string" + }, + "iss": { + "type": "string" + }, + "nbf": { + "type": "string" + }, + "nonce": { + "type": "string" + }, + "requestId": { + "type": "string" + }, + "resources": { + "items": { + "type": "string" + }, + "type": "array" + }, + "statement": { + "type": "string" + }, + "type": { + "type": "string" + }, + "version": { + "type": "string" + } + }, + "required": [ + "aud", + "domain", + "iss", + "nonce" + ], + "type": "object" + }, + "AuthTypes.CacaoSignature": { + "additionalProperties": false, + "properties": { + "m": { + "type": "string" + }, + "s": { + "type": "string" + }, + "t": { + "enum": [ + "eip1271", + "eip191" + ], + "type": "string" + } + }, + "required": [ + "s", + "t" + ], + "type": "object" + }, "BaseToken": { "additionalProperties": false, "properties": { @@ -932,6 +1045,48 @@ ], "type": "object" }, + "CoreTypes.Metadata_1": { + "additionalProperties": false, + "properties": { + "description": { + "type": "string" + }, + "icons": { + "items": { + "type": "string" + }, + "type": "array" + }, + "name": { + "type": "string" + }, + "redirect": { + "additionalProperties": false, + "properties": { + "native": { + "type": "string" + }, + "universal": { + "type": "string" + } + }, + "type": "object" + }, + "url": { + "type": "string" + }, + "verifyUrl": { + "type": "string" + } + }, + "required": [ + "description", + "icons", + "name", + "url" + ], + "type": "object" + }, "CryptoType": { "enum": [ "CELO", @@ -2393,14 +2548,26 @@ "additionalProperties": false, "type": "object" }, + "ProposalTypes.OptionalNamespaces_1": { + "additionalProperties": false, + "type": "object" + }, "ProposalTypes.RequiredNamespaces": { "additionalProperties": false, "type": "object" }, + "ProposalTypes.RequiredNamespaces_1": { + "additionalProperties": false, + "type": "object" + }, "ProposalTypes.SessionProperties": { "additionalProperties": false, "type": "object" }, + "ProposalTypes.SessionProperties_1": { + "additionalProperties": false, + "type": "object" + }, "ProposalTypes.Struct": { "additionalProperties": false, "properties": { @@ -2414,7 +2581,7 @@ "type": "number" }, "optionalNamespaces": { - "$ref": "#/definitions/ProposalTypes.OptionalNamespaces" + "$ref": "#/definitions/ProposalTypes.OptionalNamespaces_1" }, "pairingTopic": { "type": "string" @@ -2423,7 +2590,7 @@ "additionalProperties": false, "properties": { "metadata": { - "$ref": "#/definitions/CoreTypes.Metadata" + "$ref": "#/definitions/CoreTypes.Metadata_1" }, "publicKey": { "type": "string" @@ -2437,15 +2604,15 @@ }, "relays": { "items": { - "$ref": "#/definitions/RelayerTypes.ProtocolOptions" + "$ref": "#/definitions/RelayerTypes.ProtocolOptions_1" }, "type": "array" }, "requiredNamespaces": { - "$ref": "#/definitions/ProposalTypes.RequiredNamespaces" + "$ref": "#/definitions/ProposalTypes.RequiredNamespaces_1" }, "sessionProperties": { - "$ref": "#/definitions/ProposalTypes.SessionProperties" + "$ref": "#/definitions/ProposalTypes.SessionProperties_1" } }, "required": [ @@ -2592,6 +2759,21 @@ ], "type": "object" }, + "RelayerTypes.ProtocolOptions_1": { + "additionalProperties": false, + "properties": { + "data": { + "type": "string" + }, + "protocol": { + "type": "string" + } + }, + "required": [ + "protocol" + ], + "type": "object" + }, "Screens": { "enum": [ "AccounSetupFailureScreen", @@ -2760,12 +2942,27 @@ "additionalProperties": false, "type": "object" }, + "SessionTypes.SessionConfig": { + "additionalProperties": false, + "properties": { + "disableDeepLink": { + "type": "boolean" + } + }, + "type": "object" + }, "SessionTypes.Struct": { "additionalProperties": false, "properties": { "acknowledged": { "type": "boolean" }, + "authentication": { + "items": { + "$ref": "#/definitions/AuthTypes.Cacao" + }, + "type": "array" + }, "controller": { "type": "string" }, @@ -2819,6 +3016,9 @@ ], "type": "object" }, + "sessionConfig": { + "$ref": "#/definitions/SessionTypes.SessionConfig" + }, "sessionProperties": { "$ref": "#/definitions/ProposalTypes.SessionProperties" }, diff --git a/yarn.lock b/yarn.lock index f60d12473b5..8e3c6767155 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5415,7 +5415,7 @@ dependencies: tslib "1.14.1" -"@walletconnect/types@2.11.3", "@walletconnect/types@^2.11.3": +"@walletconnect/types@2.11.3": version "2.11.3" resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.11.3.tgz#8ce43cb77e8fd9d5269847cdd73bcfa7cce7dd1a" integrity sha512-JY4wA9MVosDW9dcJMTpnwliste0aJGJ1X6Q4ulLsQsgWRSEBRkLila0oUT01TDBW9Yq8uUp7uFOUTaKx6KWVAg== @@ -5427,7 +5427,19 @@ "@walletconnect/logger" "^2.0.1" events "^3.3.0" -"@walletconnect/utils@2.11.3", "@walletconnect/utils@^2.10.1", "@walletconnect/utils@^2.11.3": +"@walletconnect/types@2.12.2", "@walletconnect/types@^2.11.3": + version "2.12.2" + resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.12.2.tgz#8b64a2015a0a96972d28acb2ff317a9a994abfdb" + integrity sha512-9CmwTlPbrFTzayTL9q7xM7s3KTJkS6kYFtH2m1/fHFgALs6pIUjf1qAx1TF2E4tv7SEzLAIzU4NqgYUt2vWXTg== + dependencies: + "@walletconnect/events" "^1.0.1" + "@walletconnect/heartbeat" "1.2.1" + "@walletconnect/jsonrpc-types" "1.0.3" + "@walletconnect/keyvaluestorage" "^1.1.1" + "@walletconnect/logger" "^2.0.1" + events "^3.3.0" + +"@walletconnect/utils@2.11.3": version "2.11.3" resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.11.3.tgz#3731809b54902655cf202e0bf0e8f268780e8b54" integrity sha512-jsdNkrl/IcTkzWFn0S2d0urzBXg6RxVJtUYRsUx3qI3wzOGiABP9ui3yiZ3SgZOv9aRe62PaNp1qpbYZ+zPb8Q== @@ -5447,6 +5459,26 @@ query-string "7.1.3" uint8arrays "^3.1.0" +"@walletconnect/utils@^2.10.1", "@walletconnect/utils@^2.12.1": + version "2.12.2" + resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.12.2.tgz#a2c349d4effef7c1c5e72e74a5483d8dfbb10918" + integrity sha512-zf50HeS3SfoLv1N9GPl2IXTZ9TsXfet4usVAsZmX9P6/Xzq7d/7QakjVQCHH/Wk1O9XkcsfeoZoUhRxoMJ5uJw== + dependencies: + "@stablelib/chacha20poly1305" "1.0.1" + "@stablelib/hkdf" "1.0.1" + "@stablelib/random" "^1.0.2" + "@stablelib/sha256" "1.0.1" + "@stablelib/x25519" "^1.0.3" + "@walletconnect/relay-api" "^1.0.9" + "@walletconnect/safe-json" "^1.0.2" + "@walletconnect/time" "^1.0.2" + "@walletconnect/types" "2.12.2" + "@walletconnect/window-getters" "^1.0.1" + "@walletconnect/window-metadata" "^1.0.1" + detect-browser "5.3.0" + query-string "7.1.3" + uint8arrays "^3.1.0" + "@walletconnect/web3wallet@^1.10.3": version "1.10.3" resolved "https://registry.yarnpkg.com/@walletconnect/web3wallet/-/web3wallet-1.10.3.tgz#8195308757bd298ccc9caa6e3fe9f4ff82b94607"