Skip to content

Commit 763d370

Browse files
chore: version packages (#4895)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent d7b132e commit 763d370

File tree

7 files changed

+64
-30
lines changed

7 files changed

+64
-30
lines changed

.changeset/eager-jobs-rhyme.md

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

packages/react/CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
# wagmi
22

3+
## 3.1.0
4+
5+
### Minor Changes
6+
7+
- Deprecated custom mutate function names and renamed to `mutate`/`mutateAsync` to reduce destructure key renaming fatigue and align with TanStack Query terminology. ([#4878](https://github.com/wevm/wagmi/pull/4878))
8+
9+
**Before**
10+
11+
Had to destructure hook result and often rename keys when using multiple of the same hook. Could decide not to destructure, but syntax becomes awkward for mutate functions (e.g. `connect.connect` or `connect.connectAsync`).
12+
13+
```ts
14+
const { connect, isPending: connectIsPending } = useConnect();
15+
const {
16+
writeContract: transfer,
17+
error: transferError,
18+
isPending: transferIsPending,
19+
} = useWriteContract();
20+
const { writeContract: approve, error: approveError } = useWriteContract();
21+
```
22+
23+
**After**
24+
25+
Allows you to name the hook result whatever you want and not worry about also renaming properties.
26+
27+
```ts
28+
const connect = useConnect(); // connect.isPending
29+
const transfer = useWriteContract(); // transfer.mutate, transfer.error, transfer.isPending
30+
const approve = useWriteContract(); // approve.mutate, approve.error
31+
```
32+
333
## 3.0.2
434

535
### Patch Changes

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "wagmi",
33
"description": "React Hooks for Ethereum",
4-
"version": "3.0.2",
4+
"version": "3.1.0",
55
"license": "MIT",
66
"repository": {
77
"type": "git",

packages/react/src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const version = '3.0.2'
1+
export const version = '3.1.0'

packages/vue/CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
# @wagmi/vue
22

3+
## 0.4.3
4+
5+
### Patch Changes
6+
7+
- Deprecated custom mutate function names and renamed to `mutate`/`mutateAsync` to reduce destructure key renaming fatigue and align with TanStack Query terminology. ([#4878](https://github.com/wevm/wagmi/pull/4878))
8+
9+
**Before**
10+
11+
Had to destructure hook result and often rename keys when using multiple of the same hook. Could decide not to destructure, but syntax becomes awkward for mutate functions (e.g. `connect.connect` or `connect.connectAsync`).
12+
13+
```ts
14+
const { connect, isPending: connectIsPending } = useConnect();
15+
const {
16+
writeContract: transfer,
17+
error: transferError,
18+
isPending: transferIsPending,
19+
} = useWriteContract();
20+
const { writeContract: approve, error: approveError } = useWriteContract();
21+
```
22+
23+
**After**
24+
25+
Allows you to name the hook result whatever you want and not worry about also renaming properties.
26+
27+
```ts
28+
const connect = useConnect(); // connect.isPending
29+
const transfer = useWriteContract(); // transfer.mutate, transfer.error, transfer.isPending
30+
const approve = useWriteContract(); // approve.mutate, approve.error
31+
```
32+
333
## 0.4.2
434

535
### Patch Changes

packages/vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@wagmi/vue",
33
"description": "Vue Composables for Ethereum",
4-
"version": "0.4.2",
4+
"version": "0.4.3",
55
"license": "MIT",
66
"repository": {
77
"type": "git",

packages/vue/src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const version = '0.4.2'
1+
export const version = '0.4.3'

0 commit comments

Comments
 (0)