Skip to content

Releases: coinbase/onchainkit

v0.10.1

08 Mar 17:05
763af35
Compare
Choose a tag to compare

Patch Changes

v0.10.0

06 Mar 19:29
4907806
Compare
Choose a tag to compare

Minor Changes

  • 4090f4f: - feat: Replace internal useOnchainActionWithCache with tanstack/react-query. This affects useName and useAvatar hooks. The return type and the input parameters also changed for these 2 hooks.

    BREAKING CHANGES

    The input parameters as well as return types of useName and useAvatar hooks have changed. The return type of useName and useAvatar hooks changed.

    useName

    Before

    import { useName } from "@coinbase/onchainkit/identity";
    
    const { ensName, isLoading } = useName("0x1234");

    After

    import { useName } from "@coinbase/onchainkit/identity";
    
    // Return type signature is following @tanstack/react-query useQuery hook signature
    const {
      data: name,
      isLoading,
      isError,
      error,
      status,
    } = useName(
      { address: "0x1234" },
      { enabled: true, cacheTime: 1000 * 60 * 60 * 24 },
    );

    useAvatar

    Before

    import { useAvatar } from "@coinbase/onchainkit/identity";
    
    const { ensAvatar, isLoading } = useAvatar("vitalik.eth");

    After

    import { useAvatar } from "@coinbase/onchainkit/identity";
    
    // Return type signature is following @tanstack/react-query useQuery hook signature
    const {
      data: avatar,
      isLoading,
      isError,
      error,
      status,
    } = useAvatar(
      { ensName: "vitalik.eth" },
      { enabled: true, cacheTime: 1000 * 60 * 60 * 24 },
    );

v0.9.12

06 Mar 02:12
6b7885c
Compare
Choose a tag to compare

Patch Changes

v0.9.11

06 Mar 00:10
93041c2
Compare
Choose a tag to compare

Patch Changes

  • fix: converted the value for FrameTransactionEthSendParams to string. By @Zizzamia 221 6763bb2

v0.9.10

05 Mar 21:23
e913bf7
Compare
Choose a tag to compare

Patch Changes

v0.9.9

05 Mar 20:39
8c2dd91
Compare
Choose a tag to compare

Patch Changes

v0.9.8

05 Mar 19:55
627fe39
Compare
Choose a tag to compare

Patch Changes

v0.9.7

05 Mar 18:48
57bdb68
Compare
Choose a tag to compare

Patch Changes

  • feat: added FrameTransactionResponse and FrameTransactionEthSendParams as initial version of Frame Transaction types. By @Zizzamia #211 8a3138c
  • docs: polished introduction for Frame and Identity pages. By @Zizzamia #211

v0.9.6

04 Mar 21:15
28af5c6
Compare
Choose a tag to compare

Patch Changes

  • feat: added tx as a Frame action option, enabling support for Frame Transactions. By @Zizzamia #208 75dc428

v0.9.5

27 Feb 06:00
9b005af
Compare
Choose a tag to compare

Patch Changes