Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: version packages #1765

Merged
merged 1 commit into from
Feb 11, 2024
Merged

chore: version packages #1765

merged 1 commit into from
Feb 11, 2024

Conversation

github-actions[bot]
Copy link
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@rainbow-me/rainbowkit@2.0.0

Major Changes

  • aa0269e: Breaking:

    The wagmi and viem 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

    npm i @rainbow-me/rainbowkit@2 wagmi@2 viem@2.x

    2. Install @tanstack/react-query peer dependency

    With Wagmi v2, TanStack Query is now a required peer dependency.

    Install it with the following command:

    npm i @tanstack/react-query

    3. Upgrade your RainbowKit and Wagmi configurations

      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 (
    -     <WagmiConfig config={config}>
    +     <WagmiProvider config={config}>
    +       <QueryClientProvider client={queryClient}>
    -         <RainbowKitProvider chains={chains}>
    +         <RainbowKitProvider>
                {/* Your App */}
              </RainbowKitProvider>
    +       </QueryClientProvider>
    -     </WagmiConfig>
    +     </WagmiProvider>
        )
      }

    You can read an in-depth migration guide here.

    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:

@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

@rainbow-me/rainbow-button@0.2.0

Minor Changes

  • aa0269e: Breaking:

    The wagmi and viem 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**

    npm i @rainbow-me/rainbow-button@2 wagmi@2 viem@2.x

    2. Install @tanstack/react-query peer dependency

    With Wagmi v2, TanStack Query is now a required peer dependency.

    Install it with the following command:

    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.

    - 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 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:

Patch Changes

  • Updated dependencies [aa0269e]
    • @rainbow-me/rainbowkit@2.0.0

@rainbow-me/rainbowkit-siwe-next-auth@0.4.0

Minor Changes

  • aa0269e: RainbowKit has reached v2 alongside wagmi, which includes breaking changes.

    0.4.x now requires @rainbow-me/rainbowkit v2, specifically: 2.x.x.

with-create-react-app@0.1.79

Patch Changes

  • Updated dependencies [aa0269e]
    • @rainbow-me/rainbowkit@2.0.0

with-next@0.0.80

Patch Changes

  • Updated dependencies [aa0269e]
    • @rainbow-me/rainbowkit@2.0.0

with-next-app@0.0.28

Patch Changes

  • Updated dependencies [aa0269e]
    • @rainbow-me/rainbowkit@2.0.0

with-next-app-i18n@0.0.28

Patch Changes

  • Updated dependencies [aa0269e]
    • @rainbow-me/rainbowkit@2.0.0

with-next-custom-button@0.0.80

Patch Changes

  • Updated dependencies [aa0269e]
    • @rainbow-me/rainbowkit@2.0.0

with-next-mint-nft@0.0.80

Patch Changes

  • Updated dependencies [aa0269e]
    • @rainbow-me/rainbowkit@2.0.0

with-next-rainbow-button@0.0.9

Patch Changes

  • Updated dependencies [aa0269e]
    • @rainbow-me/rainbow-button@0.2.0

with-next-siwe-iron-session@0.0.62

Patch Changes

  • Updated dependencies [aa0269e]
    • @rainbow-me/rainbowkit@2.0.0

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

with-next-wallet-button@0.0.9

Patch Changes

  • Updated dependencies [aa0269e]
    • @rainbow-me/rainbowkit@2.0.0

with-remix@0.0.79

Patch Changes

  • Updated dependencies [aa0269e]
    • @rainbow-me/rainbowkit@2.0.0

with-vite@0.0.68

Patch Changes

  • Updated dependencies [aa0269e]
    • @rainbow-me/rainbowkit@2.0.0

generated-test-app@0.1.82

Patch Changes

  • Updated dependencies [aa0269e]
    • @rainbow-me/rainbowkit@2.0.0

rainbowkit-next-app@0.0.82

Patch Changes

  • Updated dependencies [aa0269e]
    • @rainbow-me/rainbowkit@2.0.0

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

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

@github-actions github-actions bot requested a review from a team as a code owner February 11, 2024 07:26
Copy link

vercel bot commented Feb 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rainbowkit-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 11, 2024 7:31am
rainbowkit-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 11, 2024 7:31am

Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant