Skip to content

Releases: coinbase/onchainkit

v0.13.0

17 Apr 23:37
b9215b4
Compare
Choose a tag to compare

Minor Changes

v0.12.1

16 Apr 00:31
6bac30b
Compare
Choose a tag to compare

Patch Changes

v0.12.0

12 Apr 21:39
f08e4c2
Compare
Choose a tag to compare

Minor Changes

v0.11.3

11 Apr 22:10
c7b0562
Compare
Choose a tag to compare

Patch Changes

  • feat: exposed the getName and getAvatar utilities to assist in retrieving name and avatar identity information. These utilities come in handy when working with Next.js or any Node.js backend. By @Zizzamia #265 #283 b795268

v0.11.2

10 Apr 23:21
5009107
Compare
Choose a tag to compare

Patch Changes

v0.11.1

10 Apr 19:59
631c0d9
Compare
Choose a tag to compare

Patch Changes

v0.11.0

17 Mar 23:08
7509a07
Compare
Choose a tag to compare

Minor Changes

v0.10.2

12 Mar 00:58
71002ec
Compare
Choose a tag to compare

Patch Changes

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 },
    );