Skip to content

Commit 71002ec

Browse files
chore: version packages v0.10.2 🌊 (#245)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent d0a2a35 commit 71002ec

File tree

3 files changed

+21
-14
lines changed

3 files changed

+21
-14
lines changed

.changeset/angry-fishes-greet.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.10.2
4+
5+
### Patch Changes
6+
7+
- d0a2a35: fix: `button.target` is not dependent on `button.action` (#243)
8+
39
## 0.10.1
410

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

2531
```tsx
26-
import { useName } from '@coinbase/onchainkit/identity';
32+
import { useName } from "@coinbase/onchainkit/identity";
2733

28-
const { ensName, isLoading } = useName('0x1234');
34+
const { ensName, isLoading } = useName("0x1234");
2935
```
3036

3137
After
3238

3339
```tsx
34-
import { useName } from '@coinbase/onchainkit/identity';
40+
import { useName } from "@coinbase/onchainkit/identity";
3541

3642
// Return type signature is following @tanstack/react-query useQuery hook signature
3743
const {
@@ -40,23 +46,26 @@ const {
4046
isError,
4147
error,
4248
status,
43-
} = useName({ address: '0x1234' }, { enabled: true, cacheTime: 1000 * 60 * 60 * 24 });
49+
} = useName(
50+
{ address: "0x1234" },
51+
{ enabled: true, cacheTime: 1000 * 60 * 60 * 24 },
52+
);
4453
```
4554

4655
### `useAvatar`
4756

4857
Before
4958

5059
```tsx
51-
import { useAvatar } from '@coinbase/onchainkit/identity';
60+
import { useAvatar } from "@coinbase/onchainkit/identity";
5261

53-
const { ensAvatar, isLoading } = useAvatar('vitalik.eth');
62+
const { ensAvatar, isLoading } = useAvatar("vitalik.eth");
5463
```
5564

5665
After
5766

5867
```tsx
59-
import { useAvatar } from '@coinbase/onchainkit/identity';
68+
import { useAvatar } from "@coinbase/onchainkit/identity";
6069

6170
// Return type signature is following @tanstack/react-query useQuery hook signature
6271
const {
@@ -65,7 +74,10 @@ const {
6574
isError,
6675
error,
6776
status,
68-
} = useAvatar({ ensName: 'vitalik.eth' }, { enabled: true, cacheTime: 1000 * 60 * 60 * 24 });
77+
} = useAvatar(
78+
{ ensName: "vitalik.eth" },
79+
{ enabled: true, cacheTime: 1000 * 60 * 60 * 24 },
80+
);
6981
```
7082

7183
## 0.9.12

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coinbase/onchainkit",
3-
"version": "0.10.1",
3+
"version": "0.10.2",
44
"repository": "https://github.com/coinbase/onchainkit.git",
55
"license": "MIT",
66
"scripts": {

0 commit comments

Comments
 (0)