Skip to content

Releases: wevm/wagmi

wagmi@3.1.0

03 Dec 18:20
763d370

Choose a tag to compare

Minor Changes

  • Deprecated custom mutate function names and renamed to mutate/mutateAsync to 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.connect or connect.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

03 Dec 18:20
763d370

Choose a tag to compare

Patch Changes

  • Deprecated custom mutate function names and renamed to mutate/mutateAsync to 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.connect or connect.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

26 Nov 21:59
7e58fe1

Choose a tag to compare

Patch Changes

  • Updated dependencies [0a46561]:
    • @wagmi/connectors@7.0.2

@wagmi/vue@0.4.2

26 Nov 21:59
7e58fe1

Choose a tag to compare

Patch Changes

  • Updated dependencies [0a46561]:
    • @wagmi/connectors@7.0.2

@wagmi/connectors@7.0.2

26 Nov 21:59
7e58fe1

Choose a tag to compare

Patch Changes

  • Fixed account ordering in baseAccount connection response (#4882)

wagmi@3.0.1

20 Nov 02:15
1245dac

Choose a tag to compare

Patch Changes

  • Updated dependencies [856548a]:
    • @wagmi/connectors@7.0.1

create-wagmi@2.0.18

20 Nov 17:45
793e3ff

Choose a tag to compare

Patch Changes

  • Bumped next.js template dependencies (d717d86)

@wagmi/vue@0.4.1

20 Nov 02:15
1245dac

Choose a tag to compare

Patch Changes

  • Updated dependencies [856548a]:
    • @wagmi/connectors@7.0.1

@wagmi/connectors@7.0.1

20 Nov 02:15
1245dac

Choose a tag to compare

Patch Changes

  • Fixed baseAccount reconnect behavior (#4884)

wagmi@3.0.0

19 Nov 19:37
8751554

Choose a tag to compare

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

    baseAccount requires @base-org/account

    pnpm add @base-org/account@~2.4.0
    

    coinbaseWallet

    coinbaseWallet requires @coinbase/wallet-sdk

    pnpm add @coinbase/wallet-sdk@~4.3.6
    

    gemini

    gemini requires @gemini-wallet/core

    pnpm add @gemini-wallet/core@~0.3.1
    

    metaMask

    metaMask requires @metamask/sdk

    pnpm add @metamask/sdk@~0.33.1
    

    porto

    porto requires porto

    pnpm add porto@~0.2.35
    

    safe

    safe requires @safe-global/safe-apps-provider and @safe-global/safe-apps-sdk

    pnpm add @safe-global/safe-apps-provider@~0.18.6 @safe-global/safe-apps-sdk@~9.1.0
    

    walletConnect

    walletConnect requires walletconnect/ethereum-provider

    pnpm add @walletconnect/ethereum-provider@~2.21.1
    

Patch Changes

  • Updated dependencies [73e7326]:
    • @wagmi/connectors@7.0.0
    • @wagmi/core@3.0.0