Skip to content

Commit

Permalink
chore: version packages v0.10.2 🌊 (#245)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] committed Mar 12, 2024
1 parent d0a2a35 commit 71002ec
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
5 changes: 0 additions & 5 deletions .changeset/angry-fishes-greet.md

This file was deleted.

28 changes: 20 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.10.2

### Patch Changes

- d0a2a35: fix: `button.target` is not dependent on `button.action` (#243)

## 0.10.1

### Patch Changes
Expand All @@ -23,15 +29,15 @@ The input parameters as well as return types of `useName` and `useAvatar` hooks
Before

```tsx
import { useName } from '@coinbase/onchainkit/identity';
import { useName } from "@coinbase/onchainkit/identity";

const { ensName, isLoading } = useName('0x1234');
const { ensName, isLoading } = useName("0x1234");
```

After

```tsx
import { useName } from '@coinbase/onchainkit/identity';
import { useName } from "@coinbase/onchainkit/identity";

// Return type signature is following @tanstack/react-query useQuery hook signature
const {
Expand All @@ -40,23 +46,26 @@ const {
isError,
error,
status,
} = useName({ address: '0x1234' }, { enabled: true, cacheTime: 1000 * 60 * 60 * 24 });
} = useName(
{ address: "0x1234" },
{ enabled: true, cacheTime: 1000 * 60 * 60 * 24 },
);
```

### `useAvatar`

Before

```tsx
import { useAvatar } from '@coinbase/onchainkit/identity';
import { useAvatar } from "@coinbase/onchainkit/identity";

const { ensAvatar, isLoading } = useAvatar('vitalik.eth');
const { ensAvatar, isLoading } = useAvatar("vitalik.eth");
```

After

```tsx
import { useAvatar } from '@coinbase/onchainkit/identity';
import { useAvatar } from "@coinbase/onchainkit/identity";

// Return type signature is following @tanstack/react-query useQuery hook signature
const {
Expand All @@ -65,7 +74,10 @@ const {
isError,
error,
status,
} = useAvatar({ ensName: 'vitalik.eth' }, { enabled: true, cacheTime: 1000 * 60 * 60 * 24 });
} = useAvatar(
{ ensName: "vitalik.eth" },
{ enabled: true, cacheTime: 1000 * 60 * 60 * 24 },
);
```

## 0.9.12
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coinbase/onchainkit",
"version": "0.10.1",
"version": "0.10.2",
"repository": "https://github.com/coinbase/onchainkit.git",
"license": "MIT",
"scripts": {
Expand Down

0 comments on commit 71002ec

Please sign in to comment.