Skip to content

chore: version packages v0.10.0 🌊#226

Merged
Zizzamia merged 1 commit intomainfrom
changeset-release/main
Mar 6, 2024
Merged

chore: version packages v0.10.0 🌊#226
Zizzamia merged 1 commit intomainfrom
changeset-release/main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot commented Mar 6, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@coinbase/onchainkit@0.10.0

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

@Zizzamia Zizzamia changed the title chore: version packages 🔖 chore: version packages v0.10.0 🌊 Mar 6, 2024
@Zizzamia Zizzamia merged commit 4907806 into main Mar 6, 2024
@Zizzamia Zizzamia deleted the changeset-release/main branch March 6, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant