diff --git a/.changeset/pre.json b/.changeset/pre.json index 5f311383..10275e8b 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -7,5 +7,7 @@ "@totejs/walletkit": "0.2.5", "website": "0.0.1" }, - "changesets": [] + "changesets": [ + "late-birds-compare" + ] } diff --git a/packages/walletkit/CHANGELOG.md b/packages/walletkit/CHANGELOG.md index 4a05c786..934c9c2d 100644 --- a/packages/walletkit/CHANGELOG.md +++ b/packages/walletkit/CHANGELOG.md @@ -1,5 +1,13 @@ # @totejs/walletkit +## 0.2.6-alpha.0 + +### Patch Changes + +- 3dd2578: Fixed `WalletConnect` automatic connection issue in the follow scenario: connect the + WalletConnect -> close browser -> reopen browser -> disconnect -> select WalletConnect, will + automatically connect. + ## 0.2.4 ### Patch Changes diff --git a/packages/walletkit/README.md b/packages/walletkit/README.md index b0e3b47f..f5325274 100644 --- a/packages/walletkit/README.md +++ b/packages/walletkit/README.md @@ -5,24 +5,24 @@ WalletKit is a React component library for easily connecting a wallet to your dA ## Features - 💡 Typescript — Get types straight out of the box. -- 🌱 Ecosystem Standards — Built on top of [wagmi](https://wagmi.sh) and [viem](https://viem.sh) +- 🌱 Ecosystem Standards — Built on top of [wagmi](https://wagmi.sh) - 🎨 Customization — Easily customizing wallets and themes ## Documentation -For full documentation, visit [here](https://node-real.github.io/walletkit/website/dist/#/index). +For full documentation, visit [here](https://node-real.github.io/walletkit). ## Examples The following examples are provided in the [examples](./examples/) folder of this repo. -- [nextjs](https://github.com/node-real/walletkit/tree/main/examples/nextjs) -- [vite](https://github.com/node-real/walletkit/tree/main/examples/vite) +- [nextjs](./examples/nextjs/) +- [vite](./examples/vite/) ## Installation ```bash -npm i @totejs/walletkit wagmi viem +npm i @totejs/walletkit^0 wagmi^0 ethers@^5 ``` @@ -30,7 +30,7 @@ npm i @totejs/walletkit wagmi viem ```tsx import '@totejs/walletkit/styles.css'; -import { WagmiConfig, createConfig } from 'wagmi'; +import { WagmiConfig, createClient } from 'wagmi'; import { chains } from './chains'; import { WalletKitButton, @@ -41,7 +41,7 @@ import { } from '@totejs/walletkit'; import { metaMask, trustWallet, walletConnect } from '@totejs/walletkit/wallets'; -const config = createConfig( +const client = createClient( getDefaultConfig({ autoConnect: true, appName: 'WalletKit', @@ -61,7 +61,7 @@ const options: WalletKitOptions = { export default function App() { return ( - + diff --git a/packages/walletkit/package.json b/packages/walletkit/package.json index e37cd420..d0be71df 100644 --- a/packages/walletkit/package.json +++ b/packages/walletkit/package.json @@ -1,6 +1,6 @@ { "name": "@totejs/walletkit", - "version": "0.2.5", + "version": "0.2.6-alpha.0", "author": "node-real", "private": false, "description": "WalletKit is a React component library for easily connecting a wallet to your dApp.",