Skip to content

Commit

Permalink
chore: upgrade wagmi, @wagmi/core, viem (#1653)
Browse files Browse the repository at this point in the history
* chore: upgrade wagmi, @wagmi/core, viem

* chore: upgrade wagmi, wagmi/core

* chore: upgrade wagmi, wagmi/core, viem,

* chore: pnpm lock

* fix: ignore type error

* chore: changeset
  • Loading branch information
DanielSinclair committed Dec 14, 2023
1 parent 479418d commit 3feab0e
Show file tree
Hide file tree
Showing 21 changed files with 815 additions and 62 deletions.
5 changes: 5 additions & 0 deletions .changeset/clean-baboons-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rainbow-me/rainbowkit": patch
---

Support for Wagmi `1.4.12` to mitigate a supply-chain attack on the `@ledgerhq/connect-kit` package. RainbowKit dApp's were not directly impacted, but dApps that used the `LedgerConnector` connector in earlier versions of Wagmi could have been. This issue has since been resolved [by Ledger](https://x.com/Ledger/status/1735326240658100414?s=20) but the [wagmi team](https://x.com/wevm_dev/status/1735300109879963685?s=20) is encouraging developers to upgrade Wagmi and RainbowKit out of an abundance of caution.
4 changes: 2 additions & 2 deletions examples/with-create-react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"react": "^18.2.0",
"typescript": "^5.0.4",
"util": "0.12.4",
"viem": "~1.19.4",
"wagmi": "~1.4.7",
"viem": "~1.19.15",
"wagmi": "~1.4.12",
"web-vitals": "^2.1.4",
"buffer": "npm:buffer@6.0.3"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/with-next-app-i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"next-intl": "^2.20.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"viem": "~1.19.4",
"wagmi": "~1.4.7"
"viem": "~1.19.15",
"wagmi": "~1.4.12"
},
"devDependencies": {
"@types/node": "^18.18.10",
Expand Down
4 changes: 2 additions & 2 deletions examples/with-next-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"next": "^13.4.19",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"viem": "~1.19.4",
"wagmi": "~1.4.7"
"viem": "~1.19.15",
"wagmi": "~1.4.12"
},
"devDependencies": {
"@types/node": "^18.18.10",
Expand Down
4 changes: 2 additions & 2 deletions examples/with-next-custom-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"next": "^13.4.19",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"viem": "~1.19.4",
"wagmi": "~1.4.7"
"viem": "~1.19.15",
"wagmi": "~1.4.12"
},
"devDependencies": {
"@types/node": "^18.18.10",
Expand Down
4 changes: 2 additions & 2 deletions examples/with-next-mint-nft/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"next": "^13.4.19",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"viem": "~1.19.4",
"wagmi": "~1.4.7"
"viem": "~1.19.15",
"wagmi": "~1.4.12"
},
"devDependencies": {
"@types/node": "^18.18.10",
Expand Down
4 changes: 2 additions & 2 deletions examples/with-next-rainbow-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"next": "^13.4.19",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"viem": "~1.19.4",
"wagmi": "~1.4.7"
"viem": "~1.19.15",
"wagmi": "~1.4.12"
},
"devDependencies": {
"@types/node": "^18.18.10",
Expand Down
1 change: 1 addition & 0 deletions examples/with-next-rainbow-button/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const projectId = "YOUR_PROJECT_ID";

const config = createConfig({
autoConnect: true,
// @ts-ignore - TODO: resolve wagmi/viem issue
connectors: [new RainbowConnector({ chains, projectId })],
publicClient,
webSocketPublicClient,
Expand Down
4 changes: 2 additions & 2 deletions examples/with-next-siwe-iron-session/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"siwe": "^2.1.4",
"viem": "~1.19.4",
"wagmi": "~1.4.7"
"viem": "~1.19.15",
"wagmi": "~1.4.12"
},
"devDependencies": {
"@types/node": "^18.18.10",
Expand Down
4 changes: 2 additions & 2 deletions examples/with-next-siwe-next-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"siwe": "^2.1.4",
"viem": "~1.19.4",
"wagmi": "~1.4.7"
"viem": "~1.19.15",
"wagmi": "~1.4.12"
},
"devDependencies": {
"@types/node": "^18.18.10",
Expand Down
4 changes: 2 additions & 2 deletions examples/with-next-wallet-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"next": "^13.4.19",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"viem": "~1.19.4",
"wagmi": "~1.4.7"
"viem": "~1.19.15",
"wagmi": "~1.4.12"
},
"devDependencies": {
"@types/node": "^18.18.10",
Expand Down
4 changes: 2 additions & 2 deletions examples/with-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"next": "^13.4.19",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"viem": "~1.19.4",
"wagmi": "~1.4.7"
"viem": "~1.19.15",
"wagmi": "~1.4.12"
},
"devDependencies": {
"@types/node": "^18.18.10",
Expand Down
4 changes: 2 additions & 2 deletions examples/with-remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"buffer-polyfill": "npm:buffer@^6.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"viem": "~1.19.4",
"wagmi": "~1.4.7"
"viem": "~1.19.15",
"wagmi": "~1.4.12"
},
"devDependencies": {
"@remix-run/dev": "^1.5.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/with-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"buffer": "^6.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"viem": "~1.19.4",
"wagmi": "~1.4.7"
"viem": "~1.19.15",
"wagmi": "~1.4.12"
},
"devDependencies": {
"@types/react": "^18.2.37",
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"@types/react-dom": "^18.2.15",
"@vanilla-extract/esbuild-plugin": "^2.3.1",
"@vanilla-extract/vite-plugin": "^3.9.2",
"@wagmi/core": "~1.4.7",
"@wagmi/core": "~1.4.12",
"autoprefixer": "^10.4.16",
"esbuild": "^0.14.39",
"esbuild-plugin-replace": "^1.4.0",
Expand All @@ -73,9 +73,9 @@
"react-dom": "^18.2.0",
"recursive-readdir-files": "^2.3.0",
"typescript": "^5.0.4",
"viem": "~1.19.4",
"viem": "~1.19.15",
"vitest": "^0.33.0",
"wagmi": "~1.4.7"
"wagmi": "~1.4.12"
},
"packageManager": "pnpm@8.10.5",
"pnpm": {
Expand Down
4 changes: 2 additions & 2 deletions packages/create-rainbowkit/generated-test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"next": "^13.4.19",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"viem": "~1.19.4",
"wagmi": "~1.4.7"
"viem": "~1.19.15",
"wagmi": "~1.4.12"
},
"devDependencies": {
"@types/node": "^18.18.10",
Expand Down
4 changes: 2 additions & 2 deletions packages/create-rainbowkit/templates/next-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"next": "^13.4.19",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"viem": "~1.19.4",
"wagmi": "~1.4.7"
"viem": "~1.19.15",
"wagmi": "~1.4.12"
},
"devDependencies": {
"@types/node": "^18.18.10",
Expand Down
4 changes: 2 additions & 2 deletions packages/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"siwe": "^2.1.4",
"viem": "~1.19.4",
"wagmi": "~1.4.7"
"viem": "~1.19.15",
"wagmi": "~1.4.12"
},
"scripts": {
"dev": "next dev",
Expand Down
6 changes: 3 additions & 3 deletions packages/rainbowkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@
"nock": "^13.2.4",
"postcss": "^8.4.4",
"react": "^18.2.0",
"viem": "~1.19.4",
"viem": "~1.19.15",
"vitest": "^0.33.0",
"wagmi": "~1.4.7",
"@wagmi/core": "~1.4.7",
"wagmi": "~1.4.12",
"@wagmi/core": "~1.4.12",
"@types/i18n-js": "^3.8.5",
"@types/ua-parser-js": "^0.7.36"
},
Expand Down

2 comments on commit 3feab0e

@vercel
Copy link

@vercel vercel bot commented on 3feab0e Dec 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 3feab0e Dec 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.