Skip to content

Version Packages #7214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2025
Merged

Version Packages #7214

merged 1 commit into from
May 30, 2025

Conversation

joaquim-verges
Copy link
Member

@joaquim-verges joaquim-verges commented May 29, 2025

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

thirdweb@5.102.1

Patch Changes

  • #7211 31c4bb2 Thanks @joaquim-verges! - Add account deletion support when unlinking profiles

    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.

    React Hook Example:

    import { useUnlinkProfile } from "thirdweb/react";
    
    const { mutate: unlinkProfile } = useUnlinkProfile();
    
    const handleUnlink = () => {
      unlinkProfile({
        client,
        profileToUnlink: connectedProfiles[0],
        allowAccountDeletion: true, // Delete account if last profile
      });
    };

    Direct Function Example:

    import { unlinkProfile } from "thirdweb/wallets/in-app";
    
    const updatedProfiles = await unlinkProfile({
      client,
      profileToUnlink: profiles[0],
      allowAccountDeletion: true, // Delete account if last profile
    });

@thirdweb-dev/wagmi-adapter@0.2.87


PR-Codex overview

This PR focuses on updating the version numbers for the thirdweb and @thirdweb-dev/wagmi-adapter packages and introduces new functionality for account deletion support when unlinking profiles.

Detailed summary

  • Updated version in packages/thirdweb/package.json from 5.102.0 to 5.102.1.
  • Updated version in packages/wagmi-adapter/package.json from 0.2.86 to 0.2.87.
  • Added a new section in packages/thirdweb/CHANGELOG.md for version 5.102.1.
  • Introduced account deletion support in the unlinkProfile function and useUnlinkProfile hook.
  • Added allowAccountDeletion parameter to enable account deletion when unlinking the last profile.
  • Provided examples for using the new functionality with both React Hook and Direct Function approaches.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Summary by CodeRabbit

  • New Features
    • Added support for account deletion when unlinking profiles in the in-app wallet system. Users can now choose to delete their entire account if the last profile is unlinked.
  • Chores
    • Updated package versions for thirdweb and wagmi-adapter.
  • Documentation
    • Updated changelogs to reflect the new account deletion option when unlinking profiles.

@joaquim-verges joaquim-verges requested review from a team as code owners May 29, 2025 23:33
Copy link

vercel bot commented May 29, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 29, 2025 11:43pm
login ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 29, 2025 11:43pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 29, 2025 11:43pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 29, 2025 11:43pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 29, 2025 11:43pm

Copy link
Contributor

coderabbitai bot commented May 29, 2025

Walkthrough

This update introduces an optional allowAccountDeletion parameter to both the useUnlinkProfile React hook and the unlinkProfile function in the thirdweb SDK. When set to true, this parameter enables the deletion of the entire account if the last profile is unlinked. Version numbers and changelogs are updated accordingly.

Changes

Files/Paths Change Summary
.changeset/account-deletion-unlink.md Removed documentation file describing the new account deletion option when unlinking profiles.
packages/thirdweb/CHANGELOG.md, package.json Added changelog entry and incremented version to 5.102.1 for account deletion support in unlink profile logic.
packages/wagmi-adapter/CHANGELOG.md, package.json Added new version entry (0.2.87) with no additional changes.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant ReactApp
    participant thirdwebSDK

    User->>ReactApp: Initiate unlink profile (with allowAccountDeletion=true)
    ReactApp->>thirdwebSDK: Call useUnlinkProfile/unlinkProfile({ allowAccountDeletion: true })
    thirdwebSDK->>thirdwebSDK: Check if profile is the last one
    alt Last profile and allowAccountDeletion=true
        thirdwebSDK->>thirdwebSDK: Delete entire account
    else Not last profile or allowAccountDeletion=false
        thirdwebSDK->>thirdwebSDK: Unlink profile only
    end
    thirdwebSDK-->>ReactApp: Return result
    ReactApp-->>User: Show confirmation/status
Loading

Possibly related PRs

Suggested labels

packages, SDK


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

graphite-app bot commented May 29, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
packages/wagmi-adapter/CHANGELOG.md (1)

3-3: Add context to the new version entry
The ## 0.2.87 header is in place but lacks details. Even if there are no adapter-specific changes, consider adding a short note (e.g., “chore: release 0.2.87 to match core SDK update”) or referencing the core feature in thirdweb@5.102.1 for better traceability.

packages/thirdweb/CHANGELOG.md (1)

7-10: Nit: Align list item indentation
The patch entry and its description should be indented consistently to improve readability under the Markdown list. Consider using four spaces for the continuation line.

- - [#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**
-   
-   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.
+ - [#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**
+
+     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.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 31c4bb2 and fe60d61.

📒 Files selected for processing (5)
  • .changeset/account-deletion-unlink.md (0 hunks)
  • packages/thirdweb/CHANGELOG.md (1 hunks)
  • packages/thirdweb/package.json (1 hunks)
  • packages/wagmi-adapter/CHANGELOG.md (1 hunks)
  • packages/wagmi-adapter/package.json (1 hunks)
💤 Files with no reviewable changes (1)
  • .changeset/account-deletion-unlink.md
⏰ Context from checks skipped due to timeout of 90000ms (8)
  • GitHub Check: Unit Tests
  • GitHub Check: Size
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: Build Packages
  • GitHub Check: Lint Packages
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (5)
packages/wagmi-adapter/package.json (1)

3-3: Version bump to 0.2.87
The version field has been correctly updated to align with the automated release. The existing peer dependency on thirdweb (^5.85.0) already covers the new 5.102.1 core SDK patch, so no further changes are needed here.

packages/thirdweb/package.json (1)

3-3: Patch version bump looks good.
Updating the version to 5.102.1 correctly reflects the new allowAccountDeletion feature in the useUnlinkProfile hook and unlinkProfile function.

packages/thirdweb/CHANGELOG.md (3)

11-25: Examples look accurate — React hook usage is clear
The tsx code fence and the hook invocation with allowAccountDeletion: true are correct and aligned with the new API.


3-4:

✅ Verification successful

Verify version bump matches package.json
Please ensure that the new ## 5.102.1 heading aligns with the actual version in packages/thirdweb/package.json.


🏁 Script executed:

#!/bin/bash
# Check that the package.json version has been updated to 5.102.1
rg '"version"\s*:\s*"5\.102\.1"' packages/thirdweb/package.json

Length of output: 89


✅ Confirmed version bump to 5.102.1

  • CHANGELOG.md entry (## 5.102.1) matches packages/thirdweb/package.json ("version": "5.102.1").

No further action needed.


27-37:

✅ Verification successful

Confirm the direct function import path
Double-check that import { unlinkProfile } from "thirdweb/wallets/in-app"; is the correct path for the standalone function—this may differ based on package exports or index files.


🏁 Script executed:

#!/bin/bash
# Verify that the in-app unlinkProfile export exists at the expected path
rg '^export .*unlinkProfile' -A2 packages/thirdweb/wallets/in-app.ts

Length of output: 146


🏁 Script executed:

#!/bin/bash
# Search for unlinkProfile definition or export across the repo
rg --ignore-case 'unlinkProfile' -nR .

Length of output: 443


🏁 Script executed:

#!/bin/bash
# Correctly search for unlinkProfile definition or usage across the repo
rg -n 'unlinkProfile' .

Length of output: 6409


🏁 Script executed:

#!/bin/bash
# Inspect the subpath exports in package.json to verify if "./wallets/in-app" is supported
rg -n '"exports"' -A20 packages/thirdweb/package.json

Length of output: 828


🏁 Script executed:

#!/bin/bash
# Check if the package exports include the wallets subpath for in-app
rg -n '"\./wallets' -A5 packages/thirdweb/package.json

Length of output: 841


Direct import path confirmed
The unlinkProfile function is correctly exported from the thirdweb/wallets/in-app subpath:

  • packages/thirdweb/package.json defines an "./wallets/in-app" export (lines 105–110).
  • packages/thirdweb/src/exports/wallets/in-app.ts includes unlinkProfile in its export list.

No changes needed.

Copy link
Contributor

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 62.11 KB (0%) 1.3 s (0%) 239 ms (+216.01% 🔺) 1.5 s
thirdweb (cjs) 345.28 KB (0%) 7 s (0%) 630 ms (+1.42% 🔺) 7.6 s
thirdweb (minimal + tree-shaking) 5.7 KB (0%) 114 ms (0%) 64 ms (+1066.51% 🔺) 178 ms
thirdweb/chains (tree-shaking) 531 B (0%) 11 ms (0%) 30 ms (+1430.56% 🔺) 40 ms
thirdweb/react (minimal + tree-shaking) 19.52 KB (0%) 391 ms (0%) 103 ms (+859.46% 🔺) 493 ms

Copy link

codecov bot commented May 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.63%. Comparing base (31c4bb2) to head (fe60d61).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7214   +/-   ##
=======================================
  Coverage   55.63%   55.63%           
=======================================
  Files         908      908           
  Lines       58546    58546           
  Branches     4128     4127    -1     
=======================================
  Hits        32572    32572           
  Misses      25868    25868           
  Partials      106      106           
Flag Coverage Δ
packages 55.63% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@joaquim-verges joaquim-verges merged commit 3bb1fe0 into main May 30, 2025
25 checks passed
@joaquim-verges joaquim-verges deleted the changeset-release/main branch May 30, 2025 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages SDK Involves changes to the thirdweb SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant