Skip to content

Commit 3bb1fe0

Browse files
Version Packages (#7214)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent a1aba29 commit 3bb1fe0

File tree

5 files changed

+40
-37
lines changed

5 files changed

+40
-37
lines changed

.changeset/account-deletion-unlink.md

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

packages/thirdweb/CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
11
# thirdweb
22

3+
## 5.102.1
4+
5+
### Patch Changes
6+
7+
- [#7211](https://github.com/thirdweb-dev/js/pull/7211) [`31c4bb2`](https://github.com/thirdweb-dev/js/commit/31c4bb22fc4b9fb5e99824f31ccb25427aaa409e) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - **Add account deletion support when unlinking profiles**
8+
9+
Added optional `allowAccountDeletion` parameter to `useUnlinkProfile` hook and `unlinkProfile` function. When set to `true`, this allows deleting the entire account when unlinking the last profile associated with it.
10+
11+
**React Hook Example:**
12+
13+
```tsx
14+
import { useUnlinkProfile } from "thirdweb/react";
15+
16+
const { mutate: unlinkProfile } = useUnlinkProfile();
17+
18+
const handleUnlink = () => {
19+
unlinkProfile({
20+
client,
21+
profileToUnlink: connectedProfiles[0],
22+
allowAccountDeletion: true, // Delete account if last profile
23+
});
24+
};
25+
```
26+
27+
**Direct Function Example:**
28+
29+
```ts
30+
import { unlinkProfile } from "thirdweb/wallets/in-app";
31+
32+
const updatedProfiles = await unlinkProfile({
33+
client,
34+
profileToUnlink: profiles[0],
35+
allowAccountDeletion: true, // Delete account if last profile
36+
});
37+
```
38+
339
## 5.102.0
440

541
### Minor Changes

packages/thirdweb/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "thirdweb",
3-
"version": "5.102.0",
3+
"version": "5.102.1",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/thirdweb-dev/js.git#main"

packages/wagmi-adapter/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# @thirdweb-dev/wagmi-adapter
22

3+
## 0.2.87
4+
35
## 0.2.86
46

57
## 0.2.85

packages/wagmi-adapter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@thirdweb-dev/wagmi-adapter",
3-
"version": "0.2.86",
3+
"version": "0.2.87",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/thirdweb-dev/js.git#main"

0 commit comments

Comments
 (0)