Releases: wevm/wagmi
wagmi@3.1.0
Minor Changes
-
Deprecated custom mutate function names and renamed to
mutate/mutateAsyncto reduce destructure key renaming fatigue and align with TanStack Query terminology. (#4878)Before
Had to destructure hook result and often rename keys when using multiple of the same hook. Could decide not to destructure, but syntax becomes awkward for mutate functions (e.g.
connect.connectorconnect.connectAsync).const { connect, isPending: connectIsPending } = useConnect(); const { writeContract: transfer, error: transferError, isPending: transferIsPending, } = useWriteContract(); const { writeContract: approve, error: approveError } = useWriteContract();
After
Allows you to name the hook result whatever you want and not worry about also renaming properties.
const connect = useConnect(); // connect.isPending const transfer = useWriteContract(); // transfer.mutate, transfer.error, transfer.isPending const approve = useWriteContract(); // approve.mutate, approve.error
@wagmi/vue@0.4.3
Patch Changes
-
Deprecated custom mutate function names and renamed to
mutate/mutateAsyncto reduce destructure key renaming fatigue and align with TanStack Query terminology. (#4878)Before
Had to destructure hook result and often rename keys when using multiple of the same hook. Could decide not to destructure, but syntax becomes awkward for mutate functions (e.g.
connect.connectorconnect.connectAsync).const { connect, isPending: connectIsPending } = useConnect(); const { writeContract: transfer, error: transferError, isPending: transferIsPending, } = useWriteContract(); const { writeContract: approve, error: approveError } = useWriteContract();
After
Allows you to name the hook result whatever you want and not worry about also renaming properties.
const connect = useConnect(); // connect.isPending const transfer = useWriteContract(); // transfer.mutate, transfer.error, transfer.isPending const approve = useWriteContract(); // approve.mutate, approve.error
wagmi@3.0.2
Patch Changes
- Updated dependencies [
0a46561]:- @wagmi/connectors@7.0.2
@wagmi/vue@0.4.2
Patch Changes
- Updated dependencies [
0a46561]:- @wagmi/connectors@7.0.2
@wagmi/connectors@7.0.2
Patch Changes
- Fixed account ordering in
baseAccountconnection response (#4882)
wagmi@3.0.1
Patch Changes
- Updated dependencies [
856548a]:- @wagmi/connectors@7.0.1
create-wagmi@2.0.18
Patch Changes
- Bumped next.js template dependencies (
d717d86)
@wagmi/vue@0.4.1
Patch Changes
- Updated dependencies [
856548a]:- @wagmi/connectors@7.0.1
@wagmi/connectors@7.0.1
Patch Changes
- Fixed
baseAccountreconnect behavior (#4884)
wagmi@3.0.0
Major Changes
-
All connector dependencies are now optional peer dependencies. This means that if you want to use a specific connector, you need to install its required dependencies. (#4857)
baseAccount
baseAccountrequires@base-org/accountpnpm add @base-org/account@~2.4.0coinbaseWallet
coinbaseWalletrequires@coinbase/wallet-sdkpnpm add @coinbase/wallet-sdk@~4.3.6gemini
geminirequires@gemini-wallet/corepnpm add @gemini-wallet/core@~0.3.1metaMask
metaMaskrequires@metamask/sdkpnpm add @metamask/sdk@~0.33.1porto
portorequiresportopnpm add porto@~0.2.35safe
saferequires@safe-global/safe-apps-providerand@safe-global/safe-apps-sdkpnpm add @safe-global/safe-apps-provider@~0.18.6 @safe-global/safe-apps-sdk@~9.1.0walletConnect
walletConnectrequireswalletconnect/ethereum-providerpnpm add @walletconnect/ethereum-provider@~2.21.1
Patch Changes
- Updated dependencies [
73e7326]:- @wagmi/connectors@7.0.0
- @wagmi/core@3.0.0