From 38dc515e5574121fe96f748ce303ff20bfbd60bf Mon Sep 17 00:00:00 2001 From: Daniel Sinclair Date: Tue, 16 Jan 2024 12:13:14 -0500 Subject: [PATCH] chore: upgrade wagmi, viem (#1708) * chore: update wagmi to 2.2.1 * chore: update viem to 2.0.10 * fix: handle unhandled rejection silent * chore: update viem to 2.1.1 * chore: fixed peer version * Revert "fix: handle unhandled rejection silent" This reverts commit 6a609e0b5b14a030099a2c51ebb827547de056f9. --------- Co-authored-by: Magomed Khamidov <53529533+KosmosKey@users.noreply.github.com> --- package.json | 4 +- .../generated-test-app/package.json | 4 +- .../templates/next-app/package.json | 4 +- packages/example/package.json | 4 +- packages/rainbow-button/package.json | 4 +- packages/rainbowkit/package.json | 4 +- pnpm-lock.yaml | 70 +++++++++---------- site/package.json | 4 +- 8 files changed, 49 insertions(+), 49 deletions(-) diff --git a/package.json b/package.json index c2f8ee5ad6..7400b110d8 100644 --- a/package.json +++ b/package.json @@ -71,9 +71,9 @@ "react-dom": "^18.2.0", "recursive-readdir-files": "^2.3.1", "typescript": "^5.0.4", - "viem": "^2.0.6", + "viem": "^2.1.1", "vitest": "^0.33.0", - "wagmi": "^2.2.0" + "wagmi": "^2.2.1" }, "packageManager": "pnpm@8.14.1", "pnpm": { diff --git a/packages/create-rainbowkit/generated-test-app/package.json b/packages/create-rainbowkit/generated-test-app/package.json index c0622b251d..ef65d1ec9d 100644 --- a/packages/create-rainbowkit/generated-test-app/package.json +++ b/packages/create-rainbowkit/generated-test-app/package.json @@ -14,8 +14,8 @@ "next": "^14.0.4", "react": "^18.2.0", "react-dom": "^18.2.0", - "viem": "^2.0.6", - "wagmi": "^2.2.0" + "viem": "^2.1.1", + "wagmi": "^2.2.1" }, "devDependencies": { "@types/node": "^18.19.3", diff --git a/packages/create-rainbowkit/templates/next-app/package.json b/packages/create-rainbowkit/templates/next-app/package.json index 1eb74cbba1..fc4908e588 100644 --- a/packages/create-rainbowkit/templates/next-app/package.json +++ b/packages/create-rainbowkit/templates/next-app/package.json @@ -14,8 +14,8 @@ "next": "^14.0.4", "react": "^18.2.0", "react-dom": "^18.2.0", - "viem": "^2.0.6", - "wagmi": "^2.2.0" + "viem": "^2.1.1", + "wagmi": "^2.2.1" }, "devDependencies": { "@types/node": "^18.19.3", diff --git a/packages/example/package.json b/packages/example/package.json index e61ced814b..b944a004ed 100644 --- a/packages/example/package.json +++ b/packages/example/package.json @@ -15,8 +15,8 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "siwe": "^2.1.4", - "viem": "^2.0.6", - "wagmi": "^2.2.0" + "viem": "^2.1.1", + "wagmi": "^2.2.1" }, "scripts": { "dev": "next dev", diff --git a/packages/rainbow-button/package.json b/packages/rainbow-button/package.json index d60d99a9cd..2d2e295132 100644 --- a/packages/rainbow-button/package.json +++ b/packages/rainbow-button/package.json @@ -39,8 +39,8 @@ "peerDependencies": { "react": ">=17", "react-dom": ">=17", - "viem": "2.x.x", - "wagmi": "2.x.x" + "viem": "2.x", + "wagmi": "2.x" }, "repository": { "type": "git", diff --git a/packages/rainbowkit/package.json b/packages/rainbowkit/package.json index 30df6fbe1a..9e09d244a7 100644 --- a/packages/rainbowkit/package.json +++ b/packages/rainbowkit/package.json @@ -44,8 +44,8 @@ "peerDependencies": { "react": ">=17", "react-dom": ">=17", - "viem": "2.x.x", - "wagmi": "2.x.x" + "viem": "2.x", + "wagmi": "2.x" }, "devDependencies": { "@testing-library/jest-dom": "^6.2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a8ef7889e6..eb3522377f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -102,14 +102,14 @@ importers: specifier: ^5.0.4 version: 5.0.4 viem: - specifier: ^2.0.6 - version: 2.0.6(typescript@5.0.4) + specifier: ^2.1.1 + version: 2.1.1(typescript@5.0.4) vitest: specifier: ^0.33.0 version: 0.33.0(jsdom@23.0.1) wagmi: - specifier: ^2.2.0 - version: 2.2.0(@tanstack/react-query@5.17.9)(@types/react@18.2.46)(react-dom@18.2.0)(react-native@0.73.1)(react@18.2.0)(typescript@5.0.4)(viem@2.0.6) + specifier: ^2.2.1 + version: 2.2.1(@tanstack/react-query@5.17.9)(@types/react@18.2.46)(react-dom@18.2.0)(react-native@0.73.1)(react@18.2.0)(typescript@5.0.4)(viem@2.1.1) packages/create-rainbowkit: dependencies: @@ -204,11 +204,11 @@ importers: specifier: ^2.1.4 version: 2.1.4(ethers@5.6.8) viem: - specifier: ^2.0.6 - version: 2.0.6(typescript@5.0.4) + specifier: ^2.1.1 + version: 2.1.1(typescript@5.0.4) wagmi: - specifier: ^2.2.0 - version: 2.2.0(@tanstack/react-query@5.17.9)(@types/react@18.2.46)(react-dom@18.2.0)(react-native@0.73.1)(react@18.2.0)(typescript@5.0.4)(viem@2.0.6) + specifier: ^2.2.1 + version: 2.2.1(@tanstack/react-query@5.17.9)(@types/react@18.2.46)(react-dom@18.2.0)(react-native@0.73.1)(react@18.2.0)(typescript@5.0.4)(viem@2.1.1) packages/rainbow-button: dependencies: @@ -222,11 +222,11 @@ importers: specifier: '>=17' version: 18.2.0(react@18.2.0) viem: - specifier: 2.x.x - version: 2.0.6(typescript@5.0.4) + specifier: 2.x + version: 2.1.1(typescript@5.0.4) wagmi: - specifier: 2.x.x - version: 2.2.0(@tanstack/react-query@5.17.9)(@types/react@18.2.46)(react-dom@18.2.0)(react-native@0.73.1)(react@18.2.0)(typescript@5.0.4)(viem@2.0.6) + specifier: 2.x + version: 2.2.1(@tanstack/react-query@5.17.9)(@types/react@18.2.46)(react-dom@18.2.0)(react-native@0.73.1)(react@18.2.0)(typescript@5.0.4)(viem@2.1.1) packages/rainbowkit: dependencies: @@ -258,11 +258,11 @@ importers: specifier: ^1.0.37 version: 1.0.37 viem: - specifier: 2.x.x - version: 2.0.6(typescript@5.0.4) + specifier: 2.x + version: 2.1.1(typescript@5.0.4) wagmi: - specifier: 2.x.x - version: 2.2.0(@tanstack/react-query@5.17.9)(@types/react@18.2.46)(react-dom@18.2.0)(react-native@0.73.1)(react@18.2.0)(typescript@5.0.4)(viem@2.0.6) + specifier: 2.x + version: 2.2.1(@tanstack/react-query@5.17.9)(@types/react@18.2.46)(react-dom@18.2.0)(react-native@0.73.1)(react@18.2.0)(typescript@5.0.4)(viem@2.1.1) devDependencies: '@testing-library/jest-dom': specifier: ^6.2.0 @@ -425,11 +425,11 @@ importers: specifier: 4.1.0 version: 4.1.0 viem: - specifier: ^2.0.6 - version: 2.0.6(typescript@5.0.4) + specifier: ^2.1.1 + version: 2.1.1(typescript@5.0.4) wagmi: - specifier: ^2.2.0 - version: 2.2.0(@tanstack/react-query@5.17.9)(@types/react@18.2.46)(react-dom@18.2.0)(react-native@0.73.1)(react@18.2.0)(typescript@5.0.4)(viem@2.0.6) + specifier: ^2.2.1 + version: 2.2.1(@tanstack/react-query@5.17.9)(@types/react@18.2.46)(react-dom@18.2.0)(react-native@0.73.1)(react@18.2.0)(typescript@5.0.4)(viem@2.1.1) devDependencies: contentlayer: specifier: 0.2.9 @@ -7216,10 +7216,10 @@ packages: pretty-format: 29.7.0 dev: true - /@wagmi/connectors@4.1.3(@types/react@18.2.46)(@wagmi/core@2.2.0)(react-dom@18.2.0)(react-native@0.73.1)(react@18.2.0)(typescript@5.0.4)(viem@2.0.6): - resolution: {integrity: sha512-/Ddu92Fwe8BwyUyyOOkDwkg+7R+D0so1kaJ0BU36y+ufiRwhy47OG9Nmibh2tqYRUIGychw2hdsCeCqgIm7ToQ==} + /@wagmi/connectors@4.1.4(@types/react@18.2.46)(@wagmi/core@2.2.1)(react-dom@18.2.0)(react-native@0.73.1)(react@18.2.0)(typescript@5.0.4)(viem@2.1.1): + resolution: {integrity: sha512-Mk/JnVs9pPd9cN/b5F+kHZMRU13yVf1zJwXNzSKpt7BOJQBqiFxJtmuZdRsNboEGEiPDFoEnzOzeAFi2xk3UGw==} peerDependencies: - '@wagmi/core': 2.2.0 + '@wagmi/core': 2.2.1 typescript: '>=5.0.4' viem: 2.x peerDependenciesMeta: @@ -7230,11 +7230,11 @@ packages: '@metamask/sdk': 0.14.1(@types/react@18.2.46)(react-dom@18.2.0)(react-native@0.73.1)(react@18.2.0) '@safe-global/safe-apps-provider': 0.18.1(typescript@5.0.4) '@safe-global/safe-apps-sdk': 8.1.0(typescript@5.0.4) - '@wagmi/core': 2.2.0(@types/react@18.2.46)(react@18.2.0)(typescript@5.0.4)(viem@2.0.6) + '@wagmi/core': 2.2.1(@types/react@18.2.46)(react@18.2.0)(typescript@5.0.4)(viem@2.1.1) '@walletconnect/ethereum-provider': 2.11.0(@types/react@18.2.46)(react@18.2.0) '@walletconnect/modal': 2.6.2(@types/react@18.2.46)(react@18.2.0) typescript: 5.0.4 - viem: 2.0.6(typescript@5.0.4) + viem: 2.1.1(typescript@5.0.4) transitivePeerDependencies: - '@azure/app-configuration' - '@azure/cosmos' @@ -7259,8 +7259,8 @@ packages: - utf-8-validate - zod - /@wagmi/core@2.2.0(@types/react@18.2.46)(react@18.2.0)(typescript@5.0.4)(viem@2.0.6): - resolution: {integrity: sha512-K3nAX9BR73l6sTGlv0grZd8VinOu5/nMA7j0zsTz6hq04glitN4aWiLMw1S8OuxwAVSZIGnpLv6uXjjKgP1low==} + /@wagmi/core@2.2.1(@types/react@18.2.46)(react@18.2.0)(typescript@5.0.4)(viem@2.1.1): + resolution: {integrity: sha512-eoTHG600lFpQyeofuo1nlAuTlI7rjduJK/yU4F8sLwjucROSE5RmD2OpQOkeEC3JGoXjrYxVPbY77PUD6ajzqw==} peerDependencies: '@tanstack/query-core': '>=5.0.0' typescript: '>=5.0.4' @@ -7274,7 +7274,7 @@ packages: eventemitter3: 5.0.1 mipd: 0.0.5(typescript@5.0.4) typescript: 5.0.4 - viem: 2.0.6(typescript@5.0.4) + viem: 2.1.1(typescript@5.0.4) zustand: 4.4.1(@types/react@18.2.46)(react@18.2.0) transitivePeerDependencies: - '@types/react' @@ -16375,8 +16375,8 @@ packages: - utf-8-validate - zod - /viem@2.0.6(typescript@5.0.4): - resolution: {integrity: sha512-u7P/RCHufWZW2x2d1MB9O9S9xAopXlWpWEThxfD7FKKzyFGw0lN3QYC3FG0KHKziRDieeu4lkVzAkdag7W+S6g==} + /viem@2.1.1(typescript@5.0.4): + resolution: {integrity: sha512-gJiwYceD7Dsjioglr+85GQS3u5Gp9XGG8oJqGsauBaEPFlkmbRx7cxD2Q5RZXFToVvEbarOWtITZtGHBsGv4MQ==} peerDependencies: typescript: '>=5.0.4' peerDependenciesMeta: @@ -16624,8 +16624,8 @@ packages: xml-name-validator: 5.0.0 dev: true - /wagmi@2.2.0(@tanstack/react-query@5.17.9)(@types/react@18.2.46)(react-dom@18.2.0)(react-native@0.73.1)(react@18.2.0)(typescript@5.0.4)(viem@2.0.6): - resolution: {integrity: sha512-WX5A7t9ZaCK3Ino0n8MzCmE7+ZWFOjejm3b21K0SiPEGt7v4dbOC0pC0nFUJTz3s1bqkOcWOqzEJiEVNLjgK8w==} + /wagmi@2.2.1(@tanstack/react-query@5.17.9)(@types/react@18.2.46)(react-dom@18.2.0)(react-native@0.73.1)(react@18.2.0)(typescript@5.0.4)(viem@2.1.1): + resolution: {integrity: sha512-lOro0KprkzANip4eV5WoeYenXo3VOWiBcri/l+yqPPpUR/CSQhBR5i04yK9JRS11CQaJp15jZRD3Amwg4Ch1ww==} peerDependencies: '@tanstack/react-query': '>=5.0.0' react: '>=18' @@ -16636,12 +16636,12 @@ packages: optional: true dependencies: '@tanstack/react-query': 5.17.9(react@18.2.0) - '@wagmi/connectors': 4.1.3(@types/react@18.2.46)(@wagmi/core@2.2.0)(react-dom@18.2.0)(react-native@0.73.1)(react@18.2.0)(typescript@5.0.4)(viem@2.0.6) - '@wagmi/core': 2.2.0(@types/react@18.2.46)(react@18.2.0)(typescript@5.0.4)(viem@2.0.6) + '@wagmi/connectors': 4.1.4(@types/react@18.2.46)(@wagmi/core@2.2.1)(react-dom@18.2.0)(react-native@0.73.1)(react@18.2.0)(typescript@5.0.4)(viem@2.1.1) + '@wagmi/core': 2.2.1(@types/react@18.2.46)(react@18.2.0)(typescript@5.0.4)(viem@2.1.1) react: 18.2.0 typescript: 5.0.4 use-sync-external-store: 1.2.0(react@18.2.0) - viem: 2.0.6(typescript@5.0.4) + viem: 2.1.1(typescript@5.0.4) transitivePeerDependencies: - '@azure/app-configuration' - '@azure/cosmos' diff --git a/site/package.json b/site/package.json index fd7fee5c50..98cbaeea08 100644 --- a/site/package.json +++ b/site/package.json @@ -35,8 +35,8 @@ "three": "^0.139.2", "unified": "10.1.2", "unist-util-visit": "4.1.0", - "viem": "^2.0.6", - "wagmi": "^2.2.0", + "viem": "^2.1.1", + "wagmi": "^2.2.1", "@tanstack/react-query": "^5.17.9" }, "devDependencies": {