Releases: coinbase/onchainkit
Releases · coinbase/onchainkit
v0.12.1
Patch Changes
- feat: added missing
addressandtransactionfield forFrameValidationDatatype. By @Zizzamia & @SamuelLHuber #287 d61861f
v0.12.0
v0.11.3
v0.11.2
v0.11.1
Patch Changes
- feat: included peer dependency for graphql@15 and graphql@16 support. By @benson-budiman-cb #270 2301e64
v0.11.0
v0.10.2
v0.10.1
v0.10.0
Minor Changes
-
4090f4f: - feat: Replace internal
useOnchainActionWithCachewithtanstack/react-query. This affectsuseNameanduseAvatarhooks. The return type and the input parameters also changed for these 2 hooks.BREAKING CHANGES
The input parameters as well as return types of
useNameanduseAvatarhooks have changed. The return type ofuseNameanduseAvatarhooks changed.useNameBefore
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 }, );
useAvatarBefore
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 }, );