diff --git a/.changeset/clean-yaks-bake.md b/.changeset/clean-yaks-bake.md deleted file mode 100644 index 69de472a54..0000000000 --- a/.changeset/clean-yaks-bake.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@rainbow-me/rainbowkit-siwe-next-auth": minor ---- - -RainbowKit has reached v2 alongside [wagmi](https://wagmi.sh), which includes [breaking changes](https://wagmi.sh/react/guides/migrate-from-v1-to-v2). - -`0.4.x` now requires `@rainbow-me/rainbowkit` v2, specifically: `2.x.x`. diff --git a/.changeset/loud-carrots-check.md b/.changeset/loud-carrots-check.md deleted file mode 100644 index 30668c295f..0000000000 --- a/.changeset/loud-carrots-check.md +++ /dev/null @@ -1,97 +0,0 @@ ---- -"@rainbow-me/rainbowkit": major ---- - -**Breaking:** - -The [wagmi](https://wagmi.sh) and [viem](https://viem.sh) peer dependencies have reached `2.x.x` with breaking changes. - -Follow the steps below to migrate. - -**1. Upgrade RainbowKit, `wagmi`, and `viem` to their latest versions** - -```bash -npm i @rainbow-me/rainbowkit@2 wagmi@2 viem@2.x -``` - -**2. Install `@tanstack/react-query` peer dependency** - -With Wagmi v2, [TanStack Query](https://tanstack.com/query/v5/docs/react/overview) is now a required peer dependency. - -Install it with the following command: - -```bash -npm i @tanstack/react-query -``` - -**3. Upgrade your RainbowKit and Wagmi configurations** - -```diff - import '@rainbow-me/rainbowkit/styles.css' - -+ import { QueryClient, QueryClientProvider } from '@tanstack/react-query' -- import { createPublicClient, http } from 'viem' -- import { WagmiConfig } from 'wagmi' -+ import { WagmiProvider, http } from 'wagmi' -- import { configureChains, createConfig } from 'wagmi' - import { mainnet } from 'wagmi/chains' - import { RainbowKitProvider } from '@rainbow-me/rainbowkit' -- import { getDefaultWallets, connectorsForWallets } from '@rainbow-me/rainbowkit' -+ import { getDefaultConfig } from '@rainbow-me/rainbowkit' - - /* getDefaultWallets is now optional */ -- const { wallets } = getDefaultWallets({ -- appName: 'RainbowKit demo', -- projectId: 'YOUR_PROJECT_ID', -- chains, -- }) - - /* connectorsForWallets is now optional */ -- const connectors = connectorsForWallets([...wallets]) - -- const { chains, publicClient } = configureChains( -- [mainnet, sepolia], -- [publicProvider(), publicProvider()], -- ) - -- const config = createConfig({ -- autoConnect: true, -- publicClient, -- }) - - /* New API that includes Wagmi's createConfig and bundles getDefaultWallets and connectorsForWallets */ -+ const config = getDefaultConfig({ -+ appName: 'RainbowKit demo', -+ projectId: 'YOUR_PROJECT_ID', -+ chains: [mainnet], -+ transports: { -+ [mainnet.id]: http(), -+ }, -+ }) - -+ const queryClient = new QueryClient() - - const App = () => { - return ( -- -+ -+ -- -+ - {/* Your App */} - -+ -- -+ - ) - } -``` - -[You can read an in-depth migration guide here](https://rainbowkit.com/guides/rainbowkit-wagmi-v2). - -**4. Check for breaking changes in `wagmi` and `viem`** - -If you use `wagmi` hooks and `viem` actions in your dApp, you will need to follow the migration guides for v2: - -- [Wagmi v2 Migration Guide](https://wagmi.sh/react/guides/migrate-from-v1-to-v2) -- [Viem v2 Breaking Changes](https://viem.sh/docs/migration-guide.html#_2-x-x-breaking-changes) diff --git a/.changeset/silent-maps-kneel.md b/.changeset/silent-maps-kneel.md deleted file mode 100644 index 6be7f0a885..0000000000 --- a/.changeset/silent-maps-kneel.md +++ /dev/null @@ -1,54 +0,0 @@ ---- -"@rainbow-me/rainbow-button": minor ---- - -**Breaking:** - -The [wagmi](https://wagmi.sh) and [viem](https://viem.sh) peer dependencies have reached `2.x.x` with breaking changes. - -Follow the steps below to migrate. - -**1. Upgrade Rainbow Button, `wagmi`, and `viem` to their latest versions**** - -```bash -npm i @rainbow-me/rainbow-button@2 wagmi@2 viem@2.x -``` - -**2. Install `@tanstack/react-query` peer dependency** - -With Wagmi v2, [TanStack Query](https://tanstack.com/query/v5/docs/react/overview) is now a required peer dependency. - -Install it with the following command: - -```bash -npm i @tanstack/react-query -``` - -**3. Upgrade your Rainbow Button and Wagmi configurations** - -`RainbowConnector` is now `rainbowConnector`, and requires `appName` and no longer accepts the `chains` parameter. - -```diff -- import { RainbowConnector } from '@rainbow-me/rainbow-button' -+ import { rainbowConnector } from '@rainbow-me/rainbow-button' - import { createConfig } from 'wagmi' - - const config = createConfig({ -- connectors: [new RainbowConnector({ chains, projectId })], -+ connectors: [ -+ rainbowConnector({ -+ appName: "RainbowKit demo", -+ projectId: "YOUR_PROJECT_ID", -+ }), -+ ], - }) -``` - -Follow the [Wagmi v2 Migration Guide](https://wagmi.sh/react/guides/migrate-from-v1-to-v2) for additional configuration changes. - -**4. Check for breaking changes in `wagmi` and `viem`** - -If you use `wagmi` hooks and `viem` actions in your dApp, you will need to follow the full migration guides for v2: - -- [Wagmi v2 Migration Guide](https://wagmi.sh/react/guides/migrate-from-v1-to-v2) -- [Viem v2 Breaking Changes](https://viem.sh/docs/migration-guide.html#_2-x-x-breaking-changes) \ No newline at end of file diff --git a/.changeset/soft-hotels-joke.md b/.changeset/soft-hotels-joke.md deleted file mode 100644 index 733ceaedb4..0000000000 --- a/.changeset/soft-hotels-joke.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@rainbow-me/create-rainbowkit": minor ---- - -Migrated template to Wagmi v2 with the following package changes: - -- updated `wagmi` from `1.4.x` to `^2.0.0` -- updated `viem` from `1.21.x` to `^2.0.0` -- added `@tanstack/react-query` dependency with version `^5` diff --git a/.changeset/stale-ears-rescue.md b/.changeset/stale-ears-rescue.md deleted file mode 100644 index dc191615e6..0000000000 --- a/.changeset/stale-ears-rescue.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"site": patch ---- - -- Added migration guide for `@rainbow-me/rainbowkit` `2.x.x` breaking changes. -- Updated all documentation section to include the latest Wagmi, Viem and TanStack Query usage -- Added migration guide for `2.x.x` breaking changes diff --git a/examples/with-create-react-app/CHANGELOG.md b/examples/with-create-react-app/CHANGELOG.md index bbee64f314..2eb418c76c 100644 --- a/examples/with-create-react-app/CHANGELOG.md +++ b/examples/with-create-react-app/CHANGELOG.md @@ -1,5 +1,12 @@ # with-create-react-app +## 0.1.79 + +### Patch Changes + +- Updated dependencies [aa0269e] + - @rainbow-me/rainbowkit@2.0.0 + ## 0.1.78 ### Patch Changes diff --git a/examples/with-create-react-app/package.json b/examples/with-create-react-app/package.json index f9ff1dca86..ba3a610473 100644 --- a/examples/with-create-react-app/package.json +++ b/examples/with-create-react-app/package.json @@ -1,6 +1,6 @@ { "name": "with-create-react-app", - "version": "0.1.78", + "version": "0.1.79", "private": true, "dependencies": { "@rainbow-me/rainbowkit": "workspace:*", diff --git a/examples/with-next-app-i18n/CHANGELOG.md b/examples/with-next-app-i18n/CHANGELOG.md index 658a9e1c9f..fc27a6df4f 100644 --- a/examples/with-next-app-i18n/CHANGELOG.md +++ b/examples/with-next-app-i18n/CHANGELOG.md @@ -1,5 +1,12 @@ # with-next-app-i18n +## 0.0.28 + +### Patch Changes + +- Updated dependencies [aa0269e] + - @rainbow-me/rainbowkit@2.0.0 + ## 0.0.27 ### Patch Changes diff --git a/examples/with-next-app-i18n/package.json b/examples/with-next-app-i18n/package.json index b473635251..642cf5918e 100644 --- a/examples/with-next-app-i18n/package.json +++ b/examples/with-next-app-i18n/package.json @@ -1,7 +1,7 @@ { "name": "with-next-app-i18n", "private": true, - "version": "0.0.27", + "version": "0.0.28", "scripts": { "dev": "next dev", "build": "next build", diff --git a/examples/with-next-app/CHANGELOG.md b/examples/with-next-app/CHANGELOG.md index 7ab716e7ea..9110f0ef3d 100644 --- a/examples/with-next-app/CHANGELOG.md +++ b/examples/with-next-app/CHANGELOG.md @@ -1,5 +1,12 @@ # with-next-app +## 0.0.28 + +### Patch Changes + +- Updated dependencies [aa0269e] + - @rainbow-me/rainbowkit@2.0.0 + ## 0.0.27 ### Patch Changes diff --git a/examples/with-next-app/package.json b/examples/with-next-app/package.json index cf7dcd77c5..c9f0ea63fe 100644 --- a/examples/with-next-app/package.json +++ b/examples/with-next-app/package.json @@ -1,7 +1,7 @@ { "name": "with-next-app", "private": true, - "version": "0.0.27", + "version": "0.0.28", "scripts": { "dev": "next dev", "build": "next build", diff --git a/examples/with-next-custom-button/CHANGELOG.md b/examples/with-next-custom-button/CHANGELOG.md index cd89f13350..fe979f59d6 100644 --- a/examples/with-next-custom-button/CHANGELOG.md +++ b/examples/with-next-custom-button/CHANGELOG.md @@ -1,5 +1,12 @@ # with-next-custom-button +## 0.0.80 + +### Patch Changes + +- Updated dependencies [aa0269e] + - @rainbow-me/rainbowkit@2.0.0 + ## 0.0.79 ### Patch Changes diff --git a/examples/with-next-custom-button/package.json b/examples/with-next-custom-button/package.json index fc22e7506d..437cbfc2db 100644 --- a/examples/with-next-custom-button/package.json +++ b/examples/with-next-custom-button/package.json @@ -1,7 +1,7 @@ { "name": "with-next-custom-button", "private": true, - "version": "0.0.79", + "version": "0.0.80", "scripts": { "dev": "next dev", "build": "next build", diff --git a/examples/with-next-mint-nft/CHANGELOG.md b/examples/with-next-mint-nft/CHANGELOG.md index 7b26b2483d..2683b8582b 100644 --- a/examples/with-next-mint-nft/CHANGELOG.md +++ b/examples/with-next-mint-nft/CHANGELOG.md @@ -1,5 +1,12 @@ # with-next-mint-nft +## 0.0.80 + +### Patch Changes + +- Updated dependencies [aa0269e] + - @rainbow-me/rainbowkit@2.0.0 + ## 0.0.79 ### Patch Changes diff --git a/examples/with-next-mint-nft/package.json b/examples/with-next-mint-nft/package.json index 6b5f1911c1..c7f161060d 100644 --- a/examples/with-next-mint-nft/package.json +++ b/examples/with-next-mint-nft/package.json @@ -1,7 +1,7 @@ { "name": "with-next-mint-nft", "private": true, - "version": "0.0.79", + "version": "0.0.80", "scripts": { "dev": "next dev", "build": "next build", diff --git a/examples/with-next-rainbow-button/CHANGELOG.md b/examples/with-next-rainbow-button/CHANGELOG.md index 5b4ac7c1a9..dd0ef57090 100644 --- a/examples/with-next-rainbow-button/CHANGELOG.md +++ b/examples/with-next-rainbow-button/CHANGELOG.md @@ -1,5 +1,12 @@ # with-next-rainbow-button +## 0.0.9 + +### Patch Changes + +- Updated dependencies [aa0269e] + - @rainbow-me/rainbow-button@0.2.0 + ## 0.0.8 ### Patch Changes diff --git a/examples/with-next-rainbow-button/package.json b/examples/with-next-rainbow-button/package.json index e13d1d9f8d..6b3e2e7eb4 100644 --- a/examples/with-next-rainbow-button/package.json +++ b/examples/with-next-rainbow-button/package.json @@ -1,7 +1,7 @@ { "name": "with-next-rainbow-button", "private": true, - "version": "0.0.8", + "version": "0.0.9", "scripts": { "dev": "next dev", "build": "next build", diff --git a/examples/with-next-siwe-iron-session/CHANGELOG.md b/examples/with-next-siwe-iron-session/CHANGELOG.md index 9dd1cce4c4..7161c5cb6f 100644 --- a/examples/with-next-siwe-iron-session/CHANGELOG.md +++ b/examples/with-next-siwe-iron-session/CHANGELOG.md @@ -1,5 +1,12 @@ # with-next-siwe-iron-session +## 0.0.62 + +### Patch Changes + +- Updated dependencies [aa0269e] + - @rainbow-me/rainbowkit@2.0.0 + ## 0.0.61 ### Patch Changes diff --git a/examples/with-next-siwe-iron-session/package.json b/examples/with-next-siwe-iron-session/package.json index 930fb19852..4335187d4b 100644 --- a/examples/with-next-siwe-iron-session/package.json +++ b/examples/with-next-siwe-iron-session/package.json @@ -1,7 +1,7 @@ { "name": "with-next-siwe-iron-session", "private": true, - "version": "0.0.61", + "version": "0.0.62", "scripts": { "dev": "next dev", "build": "next build", diff --git a/examples/with-next-siwe-next-auth/CHANGELOG.md b/examples/with-next-siwe-next-auth/CHANGELOG.md index 4febabd2ad..16efe3c85a 100644 --- a/examples/with-next-siwe-next-auth/CHANGELOG.md +++ b/examples/with-next-siwe-next-auth/CHANGELOG.md @@ -1,5 +1,14 @@ # with-next-siwe-next-auth +## 0.0.63 + +### Patch Changes + +- Updated dependencies [aa0269e] +- Updated dependencies [aa0269e] + - @rainbow-me/rainbowkit-siwe-next-auth@0.4.0 + - @rainbow-me/rainbowkit@2.0.0 + ## 0.0.62 ### Patch Changes diff --git a/examples/with-next-siwe-next-auth/package.json b/examples/with-next-siwe-next-auth/package.json index de87815735..136d317477 100644 --- a/examples/with-next-siwe-next-auth/package.json +++ b/examples/with-next-siwe-next-auth/package.json @@ -1,7 +1,7 @@ { "name": "with-next-siwe-next-auth", "private": true, - "version": "0.0.62", + "version": "0.0.63", "scripts": { "dev": "next dev", "build": "next build", diff --git a/examples/with-next-wallet-button/CHANGELOG.md b/examples/with-next-wallet-button/CHANGELOG.md index f399e9dba2..932dd9926e 100644 --- a/examples/with-next-wallet-button/CHANGELOG.md +++ b/examples/with-next-wallet-button/CHANGELOG.md @@ -1,5 +1,12 @@ # with-next-wallet-button +## 0.0.9 + +### Patch Changes + +- Updated dependencies [aa0269e] + - @rainbow-me/rainbowkit@2.0.0 + ## 0.0.8 ### Patch Changes diff --git a/examples/with-next-wallet-button/package.json b/examples/with-next-wallet-button/package.json index d871702e4d..d1df727164 100644 --- a/examples/with-next-wallet-button/package.json +++ b/examples/with-next-wallet-button/package.json @@ -1,7 +1,7 @@ { "name": "with-next-wallet-button", "private": true, - "version": "0.0.8", + "version": "0.0.9", "scripts": { "dev": "next dev", "build": "next build", diff --git a/examples/with-next/CHANGELOG.md b/examples/with-next/CHANGELOG.md index cc5800bf48..a446029edd 100644 --- a/examples/with-next/CHANGELOG.md +++ b/examples/with-next/CHANGELOG.md @@ -1,5 +1,12 @@ # with-next +## 0.0.80 + +### Patch Changes + +- Updated dependencies [aa0269e] + - @rainbow-me/rainbowkit@2.0.0 + ## 0.0.79 ### Patch Changes diff --git a/examples/with-next/package.json b/examples/with-next/package.json index e394d35b03..20be19a997 100644 --- a/examples/with-next/package.json +++ b/examples/with-next/package.json @@ -1,7 +1,7 @@ { "name": "with-next", "private": true, - "version": "0.0.79", + "version": "0.0.80", "scripts": { "dev": "next dev", "build": "next build", diff --git a/examples/with-remix/CHANGELOG.md b/examples/with-remix/CHANGELOG.md index 047076a701..8c285a84f2 100644 --- a/examples/with-remix/CHANGELOG.md +++ b/examples/with-remix/CHANGELOG.md @@ -1,5 +1,12 @@ # with-remix +## 0.0.79 + +### Patch Changes + +- Updated dependencies [aa0269e] + - @rainbow-me/rainbowkit@2.0.0 + ## 0.0.78 ### Patch Changes diff --git a/examples/with-remix/package.json b/examples/with-remix/package.json index 571cd8ceda..bc60a5b404 100644 --- a/examples/with-remix/package.json +++ b/examples/with-remix/package.json @@ -32,5 +32,5 @@ "engines": { "node": ">=14" }, - "version": "0.0.78" + "version": "0.0.79" } diff --git a/examples/with-vite/CHANGELOG.md b/examples/with-vite/CHANGELOG.md index 1e23ae9e17..4a51dd6352 100644 --- a/examples/with-vite/CHANGELOG.md +++ b/examples/with-vite/CHANGELOG.md @@ -1,5 +1,12 @@ # with-vite +## 0.0.68 + +### Patch Changes + +- Updated dependencies [aa0269e] + - @rainbow-me/rainbowkit@2.0.0 + ## 0.0.67 ### Patch Changes diff --git a/examples/with-vite/package.json b/examples/with-vite/package.json index 88496a4b47..bce43a4ec1 100644 --- a/examples/with-vite/package.json +++ b/examples/with-vite/package.json @@ -1,7 +1,7 @@ { "name": "with-vite", "private": true, - "version": "0.0.67", + "version": "0.0.68", "type": "module", "scripts": { "dev": "vite", diff --git a/packages/create-rainbowkit/CHANGELOG.md b/packages/create-rainbowkit/CHANGELOG.md index be37d3ebaf..c67086edb1 100644 --- a/packages/create-rainbowkit/CHANGELOG.md +++ b/packages/create-rainbowkit/CHANGELOG.md @@ -1,5 +1,15 @@ # @rainbow-me/create-rainbowkit +## 0.3.0 + +### Minor Changes + +- aa0269e: Migrated template to Wagmi v2 with the following package changes: + + - updated `wagmi` from `1.4.x` to `^2.0.0` + - updated `viem` from `1.21.x` to `^2.0.0` + - added `@tanstack/react-query` dependency with version `^5` + ## 0.2.11 ### Patch Changes diff --git a/packages/create-rainbowkit/generated-test-app/CHANGELOG.md b/packages/create-rainbowkit/generated-test-app/CHANGELOG.md index 5851c0ad41..80a7c2c45d 100644 --- a/packages/create-rainbowkit/generated-test-app/CHANGELOG.md +++ b/packages/create-rainbowkit/generated-test-app/CHANGELOG.md @@ -1,5 +1,12 @@ # generated-test-app +## 0.1.82 + +### Patch Changes + +- Updated dependencies [aa0269e] + - @rainbow-me/rainbowkit@2.0.0 + ## 0.1.81 ### Patch Changes diff --git a/packages/create-rainbowkit/generated-test-app/package.json b/packages/create-rainbowkit/generated-test-app/package.json index 16eedbac7f..8219af4a55 100644 --- a/packages/create-rainbowkit/generated-test-app/package.json +++ b/packages/create-rainbowkit/generated-test-app/package.json @@ -1,7 +1,7 @@ { "name": "generated-test-app", "private": true, - "version": "0.1.81", + "version": "0.1.82", "scripts": { "dev": "next dev", "build": "next build", diff --git a/packages/create-rainbowkit/package.json b/packages/create-rainbowkit/package.json index 8f160ece65..34ee50a119 100644 --- a/packages/create-rainbowkit/package.json +++ b/packages/create-rainbowkit/package.json @@ -1,7 +1,7 @@ { "name": "@rainbow-me/create-rainbowkit", "description": "Scaffold a new RainbowKit project", - "version": "0.3.0-beta.6", + "version": "0.3.0", "files": [ "dist", "templates" diff --git a/packages/create-rainbowkit/templates/next-app/CHANGELOG.md b/packages/create-rainbowkit/templates/next-app/CHANGELOG.md index b3d66c5d82..3c1d979cde 100644 --- a/packages/create-rainbowkit/templates/next-app/CHANGELOG.md +++ b/packages/create-rainbowkit/templates/next-app/CHANGELOG.md @@ -1,5 +1,12 @@ # rainbowkit-next-app +## 0.0.82 + +### Patch Changes + +- Updated dependencies [aa0269e] + - @rainbow-me/rainbowkit@2.0.0 + ## 0.0.81 ### Patch Changes diff --git a/packages/create-rainbowkit/templates/next-app/package.json b/packages/create-rainbowkit/templates/next-app/package.json index b8daf6f79e..b4a8d20bea 100644 --- a/packages/create-rainbowkit/templates/next-app/package.json +++ b/packages/create-rainbowkit/templates/next-app/package.json @@ -1,7 +1,7 @@ { "name": "rainbowkit-next-app", "private": true, - "version": "0.0.81", + "version": "0.0.82", "scripts": { "dev": "next dev", "build": "next build", diff --git a/packages/example/CHANGELOG.md b/packages/example/CHANGELOG.md index 5a01827ab8..365585e058 100644 --- a/packages/example/CHANGELOG.md +++ b/packages/example/CHANGELOG.md @@ -1,5 +1,16 @@ # example +## 0.0.90 + +### Patch Changes + +- Updated dependencies [aa0269e] +- Updated dependencies [aa0269e] +- Updated dependencies [aa0269e] + - @rainbow-me/rainbowkit-siwe-next-auth@0.4.0 + - @rainbow-me/rainbowkit@2.0.0 + - @rainbow-me/rainbow-button@0.2.0 + ## 0.0.89 ### Patch Changes diff --git a/packages/example/package.json b/packages/example/package.json index a8ba0b5506..2f6f81f052 100644 --- a/packages/example/package.json +++ b/packages/example/package.json @@ -1,6 +1,6 @@ { "name": "example", - "version": "0.0.89", + "version": "0.0.90", "description": "", "private": true, "main": "index.js", diff --git a/packages/rainbow-button/CHANGELOG.md b/packages/rainbow-button/CHANGELOG.md index a738ee5784..96487ca4c7 100644 --- a/packages/rainbow-button/CHANGELOG.md +++ b/packages/rainbow-button/CHANGELOG.md @@ -1,5 +1,65 @@ # @rainbow-me/rainbow-button +## 0.2.0 + +### Minor Changes + +- aa0269e: **Breaking:** + + The [wagmi](https://wagmi.sh) and [viem](https://viem.sh) peer dependencies have reached `2.x.x` with breaking changes. + + Follow the steps below to migrate. + + **1. Upgrade Rainbow Button, `wagmi`, and `viem` to their latest versions\*\*** + + ```bash + npm i @rainbow-me/rainbow-button@2 wagmi@2 viem@2.x + ``` + + **2. Install `@tanstack/react-query` peer dependency** + + With Wagmi v2, [TanStack Query](https://tanstack.com/query/v5/docs/react/overview) is now a required peer dependency. + + Install it with the following command: + + ```bash + npm i @tanstack/react-query + ``` + + **3. Upgrade your Rainbow Button and Wagmi configurations** + + `RainbowConnector` is now `rainbowConnector`, and requires `appName` and no longer accepts the `chains` parameter. + + ```diff + - import { RainbowConnector } from '@rainbow-me/rainbow-button' + + import { rainbowConnector } from '@rainbow-me/rainbow-button' + import { createConfig } from 'wagmi' + + const config = createConfig({ + - connectors: [new RainbowConnector({ chains, projectId })], + + connectors: [ + + rainbowConnector({ + + appName: "RainbowKit demo", + + projectId: "YOUR_PROJECT_ID", + + }), + + ], + }) + ``` + + Follow the [Wagmi v2 Migration Guide](https://wagmi.sh/react/guides/migrate-from-v1-to-v2) for additional configuration changes. + + **4. Check for breaking changes in `wagmi` and `viem`** + + If you use `wagmi` hooks and `viem` actions in your dApp, you will need to follow the full migration guides for v2: + + - [Wagmi v2 Migration Guide](https://wagmi.sh/react/guides/migrate-from-v1-to-v2) + - [Viem v2 Breaking Changes](https://viem.sh/docs/migration-guide.html#_2-x-x-breaking-changes) + +### Patch Changes + +- Updated dependencies [aa0269e] + - @rainbow-me/rainbowkit@2.0.0 + ## 0.1.6 ### Patch Changes diff --git a/packages/rainbow-button/package.json b/packages/rainbow-button/package.json index 326de2136e..527b3dbc1d 100644 --- a/packages/rainbow-button/package.json +++ b/packages/rainbow-button/package.json @@ -1,7 +1,7 @@ { "name": "@rainbow-me/rainbow-button", "description": "Rainbow connector button", - "version": "0.2.0-beta.6", + "version": "0.2.0", "files": [ "dist", "styles.css" diff --git a/packages/rainbowkit-siwe-next-auth/CHANGELOG.md b/packages/rainbowkit-siwe-next-auth/CHANGELOG.md index 268eb3ec97..a95e6a11d5 100644 --- a/packages/rainbowkit-siwe-next-auth/CHANGELOG.md +++ b/packages/rainbowkit-siwe-next-auth/CHANGELOG.md @@ -1,5 +1,13 @@ # @rainbow-me/rainbowkit-siwe-next-auth +## 0.4.0 + +### Minor Changes + +- aa0269e: RainbowKit has reached v2 alongside [wagmi](https://wagmi.sh), which includes [breaking changes](https://wagmi.sh/react/guides/migrate-from-v1-to-v2). + + `0.4.x` now requires `@rainbow-me/rainbowkit` v2, specifically: `2.x.x`. + ## 0.3.4 ### Patch Changes diff --git a/packages/rainbowkit-siwe-next-auth/package.json b/packages/rainbowkit-siwe-next-auth/package.json index 91af7e15f4..fc69c62e8f 100644 --- a/packages/rainbowkit-siwe-next-auth/package.json +++ b/packages/rainbowkit-siwe-next-auth/package.json @@ -1,6 +1,6 @@ { "name": "@rainbow-me/rainbowkit-siwe-next-auth", - "version": "0.4.0-beta.6", + "version": "0.4.0", "description": "RainbowKit authentication adapter for Sign-In with Ethereum and NextAuth.js", "files": [ "dist" diff --git a/packages/rainbowkit/CHANGELOG.md b/packages/rainbowkit/CHANGELOG.md index 15708e8d84..bf64dfac7a 100644 --- a/packages/rainbowkit/CHANGELOG.md +++ b/packages/rainbowkit/CHANGELOG.md @@ -1,5 +1,103 @@ # @rainbow-me/rainbowkit +## 2.0.0 + +### Major Changes + +- aa0269e: **Breaking:** + + The [wagmi](https://wagmi.sh) and [viem](https://viem.sh) peer dependencies have reached `2.x.x` with breaking changes. + + Follow the steps below to migrate. + + **1. Upgrade RainbowKit, `wagmi`, and `viem` to their latest versions** + + ```bash + npm i @rainbow-me/rainbowkit@2 wagmi@2 viem@2.x + ``` + + **2. Install `@tanstack/react-query` peer dependency** + + With Wagmi v2, [TanStack Query](https://tanstack.com/query/v5/docs/react/overview) is now a required peer dependency. + + Install it with the following command: + + ```bash + npm i @tanstack/react-query + ``` + + **3. Upgrade your RainbowKit and Wagmi configurations** + + ```diff + import '@rainbow-me/rainbowkit/styles.css' + + + import { QueryClient, QueryClientProvider } from '@tanstack/react-query' + - import { createPublicClient, http } from 'viem' + - import { WagmiConfig } from 'wagmi' + + import { WagmiProvider, http } from 'wagmi' + - import { configureChains, createConfig } from 'wagmi' + import { mainnet } from 'wagmi/chains' + import { RainbowKitProvider } from '@rainbow-me/rainbowkit' + - import { getDefaultWallets, connectorsForWallets } from '@rainbow-me/rainbowkit' + + import { getDefaultConfig } from '@rainbow-me/rainbowkit' + + /* getDefaultWallets is now optional */ + - const { wallets } = getDefaultWallets({ + - appName: 'RainbowKit demo', + - projectId: 'YOUR_PROJECT_ID', + - chains, + - }) + + /* connectorsForWallets is now optional */ + - const connectors = connectorsForWallets([...wallets]) + + - const { chains, publicClient } = configureChains( + - [mainnet, sepolia], + - [publicProvider(), publicProvider()], + - ) + + - const config = createConfig({ + - autoConnect: true, + - publicClient, + - }) + + /* New API that includes Wagmi's createConfig and bundles getDefaultWallets and connectorsForWallets */ + + const config = getDefaultConfig({ + + appName: 'RainbowKit demo', + + projectId: 'YOUR_PROJECT_ID', + + chains: [mainnet], + + transports: { + + [mainnet.id]: http(), + + }, + + }) + + + const queryClient = new QueryClient() + + const App = () => { + return ( + - + + + + + - + + + {/* Your App */} + + + + - + + + ) + } + ``` + + [You can read an in-depth migration guide here](https://rainbowkit.com/guides/rainbowkit-wagmi-v2). + + **4. Check for breaking changes in `wagmi` and `viem`** + + If you use `wagmi` hooks and `viem` actions in your dApp, you will need to follow the migration guides for v2: + + - [Wagmi v2 Migration Guide](https://wagmi.sh/react/guides/migrate-from-v1-to-v2) + - [Viem v2 Breaking Changes](https://viem.sh/docs/migration-guide.html#_2-x-x-breaking-changes) + ## 1.3.6 ### Patch Changes diff --git a/packages/rainbowkit/package.json b/packages/rainbowkit/package.json index 61ed71d9cc..769ba1ff49 100644 --- a/packages/rainbowkit/package.json +++ b/packages/rainbowkit/package.json @@ -1,6 +1,6 @@ { "name": "@rainbow-me/rainbowkit", - "version": "2.0.0-beta.6", + "version": "2.0.0", "description": "The best way to connect a wallet", "files": [ "dist", diff --git a/site/CHANGELOG.md b/site/CHANGELOG.md index f82cf4a508..0067d62b20 100644 --- a/site/CHANGELOG.md +++ b/site/CHANGELOG.md @@ -1,5 +1,15 @@ # site +## 0.0.90 + +### Patch Changes + +- aa0269e: - Added migration guide for `@rainbow-me/rainbowkit` `2.x.x` breaking changes. + - Updated all documentation section to include the latest Wagmi, Viem and TanStack Query usage + - Added migration guide for `2.x.x` breaking changes +- Updated dependencies [aa0269e] + - @rainbow-me/rainbowkit@2.0.0 + ## 0.0.89 ### Patch Changes diff --git a/site/package.json b/site/package.json index f64a1d7827..13908c6e39 100644 --- a/site/package.json +++ b/site/package.json @@ -1,6 +1,6 @@ { "name": "site", - "version": "0.0.89", + "version": "0.0.90", "description": "Site and docs for RainbowKit.", "private": true, "dependencies": {