Skip to content

Version Packages #7304

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
Jun 17, 2025
Merged

Version Packages #7304

merged 1 commit into from
Jun 17, 2025

Conversation

joaquim-verges
Copy link
Member

@joaquim-verges joaquim-verges commented Jun 8, 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

[email protected]

Minor Changes

  • #7354 ed81006 Thanks @gregfromstl! - Adds new components BuyWidget, CheckoutWidget, and TransactionWidget

    BuyWidget

    A component that allows users to purchase tokens or NFTs directly within your application.

    Example:

    import { BuyWidget } from "thirdweb/react";
    
    function App() {
      return (
        <BuyWidget
          client={client}
          chain={chain}
          tokenAddress="0x..." // Token or NFT contract address
          recipient="0x..." // Optional: recipient address
          theme="light" // Optional: "light" or "dark"
        />
      );
    }

    CheckoutWidget

    A comprehensive checkout experience for purchasing digital assets with multiple payment options.

    Example:

    import { CheckoutWidget } from "thirdweb/react";
    
    function App() {
      return (
        <CheckoutWidget
          client={client}
          chain={chain}
          items={[
            {
              tokenAddress: "0x...",
              tokenId: "1", // For NFTs
              quantity: "1",
            },
          ]}
          onSuccess={(result) => console.log("Purchase successful:", result)}
          theme="dark" // Optional: "light" or "dark"
        />
      );
    }

    TransactionWidget

    A widget for executing arbitrary blockchain transactions with a user-friendly interface.

    Example:

    import { TransactionWidget } from "thirdweb/react";
    import { prepareContractCall } from "thirdweb";
    
    function App() {
      const transaction = prepareContractCall({
        contract: myContract,
        method: "transfer",
        params: [recipientAddress, amount],
      });
    
      return (
        <TransactionWidget
          client={client}
          transaction={transaction}
          onSuccess={(result) => console.log("Transaction successful:", result)}
          onError={(error) => console.error("Transaction failed:", error)}
          theme="light" // Optional: "light" or "dark"
        />
      );
    }

Patch Changes

@thirdweb-dev/[email protected]

Patch Changes

@thirdweb-dev/[email protected]


PR-Codex overview

This PR primarily focuses on version updates and enhancements across several packages, including @thirdweb-dev/service-utils, @thirdweb-dev/wagmi-adapter, and thirdweb. It introduces new widgets and improves existing components.

Detailed summary

  • Updated @thirdweb-dev/service-utils to version 0.9.13.
  • Updated @thirdweb-dev/wagmi-adapter to version 0.2.93.
  • Updated thirdweb to version 5.103.0.
  • Added BuyWidget, CheckoutWidget, and TransactionWidget components.
  • Enhanced MediaRenderer component to support blob URLs and fixed loading state issues.
  • Fixed NFTMetadata type.

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

Summary by CodeRabbit

  • New Features

    • Introduced three new React components: BuyWidget, CheckoutWidget, and TransactionWidget for streamlined token/NFT purchases, checkout flows, and blockchain transactions.
  • Bug Fixes

    • Enhanced MediaRenderer to support blob URLs and ensured proper application of the className prop during loading.
    • Corrected the NFTMetadata type by removing the id property.
  • Chores

    • Updated package versions and changelogs across service-utils and wagmi-adapter packages.

@joaquim-verges joaquim-verges requested a review from a team as a code owner June 8, 2025 10:00
Copy link

vercel bot commented Jun 8, 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 Jun 17, 2025 0:23am
login ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 17, 2025 0:23am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 17, 2025 0:23am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 17, 2025 0:23am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 17, 2025 0:23am

Copy link
Contributor

coderabbitai bot commented Jun 8, 2025

Walkthrough

This update increments version numbers and changelogs for the @thirdweb-dev/service-utils, thirdweb, and @thirdweb-dev/wagmi-adapter packages. It documents passing the allowImpersonation flag to the authentication server and fixes in the MediaRenderer component, including support for blob URLs and correct application of the className prop during loading. Additionally, it introduces three new React components for token/NFT purchasing and transaction workflows.

Changes

Files/Groups Change Summary
.changeset/whole-ends-like.md, .changeset/better-owls-flash.md, .changeset/red-cooks-juggle.md Deleted changeset files documenting patch updates for @thirdweb-dev/service-utils and thirdweb.
packages/service-utils/CHANGELOG.md, package.json Updated changelog and bumped version to 0.9.13 for @thirdweb-dev/service-utils with allowImpersonation flag.
packages/thirdweb/CHANGELOG.md, package.json Updated changelog and bumped version to 5.103.0 for thirdweb, adding BuyWidget, CheckoutWidget, and TransactionWidget React components, fixing MediaRenderer support for blob URLs and className prop, and correcting NFTMetadata type.
packages/wagmi-adapter/CHANGELOG.md, package.json Updated changelog and bumped version to 0.2.93 for @thirdweb-dev/wagmi-adapter with no additional details.

Sequence Diagram(s)

sequenceDiagram
    participant Client
    participant ServiceUtils
    participant AuthServer

    Client->>ServiceUtils: Request authentication (with allowImpersonation flag)
    ServiceUtils->>AuthServer: Forward authentication request (include allowImpersonation flag)
    AuthServer-->>ServiceUtils: Authentication response
    ServiceUtils-->>Client: Return authentication result
Loading

🪧 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 Jun 8, 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

codecov bot commented Jun 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.58%. Comparing base (913ea98) to head (fa4bc25).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7304   +/-   ##
=======================================
  Coverage   55.58%   55.58%           
=======================================
  Files         909      909           
  Lines       58683    58683           
  Branches     4163     4160    -3     
=======================================
  Hits        32617    32617           
- Misses      25959    25960    +1     
+ Partials      107      106    -1     
Flag Coverage Δ
packages 55.58% <ø> (ø)

see 1 file with indirect coverage changes

🚀 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.

Copy link
Contributor

github-actions bot commented Jun 8, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 62.49 KB (0%) 1.3 s (0%) 348 ms (+211.15% 🔺) 1.6 s
thirdweb (cjs) 350.88 KB (0%) 7.1 s (0%) 1.1 s (+16.79% 🔺) 8.1 s
thirdweb (minimal + tree-shaking) 5.7 KB (0%) 114 ms (0%) 152 ms (+1596.87% 🔺) 266 ms
thirdweb/chains (tree-shaking) 531 B (0%) 11 ms (0%) 50 ms (+1815.9% 🔺) 60 ms
thirdweb/react (minimal + tree-shaking) 19.59 KB (0%) 392 ms (0%) 102 ms (+476.8% 🔺) 493 ms

@joaquim-verges joaquim-verges force-pushed the changeset-release/main branch from d2f67be to b1e5baa Compare June 10, 2025 22:00
@joaquim-verges joaquim-verges requested a review from a team as a code owner June 10, 2025 22:00
@github-actions github-actions bot added the SDK Involves changes to the thirdweb SDK label Jun 10, 2025
@joaquim-verges joaquim-verges force-pushed the changeset-release/main branch from b1e5baa to f04d9a1 Compare June 12, 2025 04:09
@joaquim-verges joaquim-verges force-pushed the changeset-release/main branch from f04d9a1 to e93030a Compare June 12, 2025 04:25
@vercel vercel bot temporarily deployed to Preview – wallet-ui June 13, 2025 19:46 Inactive
@joaquim-verges joaquim-verges force-pushed the changeset-release/main branch from ab0f358 to 1a53fd4 Compare June 16, 2025 01:37
@joaquim-verges joaquim-verges force-pushed the changeset-release/main branch from 1a53fd4 to b7ee87a Compare June 16, 2025 17:41
@joaquim-verges joaquim-verges force-pushed the changeset-release/main branch from b7ee87a to fa4bc25 Compare June 16, 2025 18:07
@joaquim-verges joaquim-verges force-pushed the changeset-release/main branch from fa4bc25 to 1fd16cb Compare June 17, 2025 00:08
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/thirdweb/CHANGELOG.md (2)

13-13: Remove trailing punctuation in example headings
The headings “### Example:” at lines 13, 35, and 63 trigger markdownlint’s MD026 rule. Please remove the trailing colons for consistency with the project’s Markdown style.

Also applies to: 35-35, 63-63


90-94: Correct nested bullet formatting under Patch Changes
The entry for PR #7315 currently reads - - Add support…, introducing an extra hyphen, and the fix for className is shown as a separate top-level bullet. It’s clearer to group both changes under a single PR entry. Consider the following refactor:

- - [#7315](https://github.com/thirdweb-dev/js/pull/7315) [`99d6b3b`](https://github.com/thirdweb-dev/js/commit/99d6b3b151c2af6f0df41513eff44931362d6b11) Thanks [@MananTank](https://github.com/MananTank)! - - Add support for blob urls in `MediaRenderer` component
-   - Fix `className` prop not set in loading state of `MediaRenderer` component
+ - [#7315](https://github.com/thirdweb-dev/js/pull/7315) [`99d6b3b`](https://github.com/thirdweb-dev/js/commit/99d6b3b151c2af6f0df41513eff44931362d6b11) Thanks [@MananTank](https://github.com/MananTank)!
+   - Add support for blob URLs in `MediaRenderer` component
+   - Fix `className` prop not set in loading state of `MediaRenderer` component
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between fa4bc25 and 1fd16cb.

📒 Files selected for processing (9)
  • .changeset/better-owls-flash.md (0 hunks)
  • .changeset/red-cooks-juggle.md (0 hunks)
  • .changeset/whole-ends-like.md (0 hunks)
  • packages/service-utils/CHANGELOG.md (1 hunks)
  • packages/service-utils/package.json (1 hunks)
  • packages/thirdweb/CHANGELOG.md (1 hunks)
  • packages/thirdweb/package.json (2 hunks)
  • packages/wagmi-adapter/CHANGELOG.md (1 hunks)
  • packages/wagmi-adapter/package.json (1 hunks)
💤 Files with no reviewable changes (3)
  • .changeset/whole-ends-like.md
  • .changeset/better-owls-flash.md
  • .changeset/red-cooks-juggle.md
🚧 Files skipped from review as they are similar to previous changes (5)
  • packages/wagmi-adapter/CHANGELOG.md
  • packages/service-utils/package.json
  • packages/service-utils/CHANGELOG.md
  • packages/wagmi-adapter/package.json
  • packages/thirdweb/package.json
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
packages/thirdweb/CHANGELOG.md

13-13: Trailing punctuation in heading
Punctuation: ':'

(MD026, no-trailing-punctuation)


35-35: Trailing punctuation in heading
Punctuation: ':'

(MD026, no-trailing-punctuation)


63-63: Trailing punctuation in heading
Punctuation: ':'

(MD026, no-trailing-punctuation)

⏰ Context from checks skipped due to timeout of 90000ms (8)
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: Size
  • GitHub Check: Unit Tests
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: Lint Packages
  • GitHub Check: Build Packages
  • GitHub Check: Analyze (javascript)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dashboard Involves changes to the Dashboard. packages SDK Involves changes to the thirdweb SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants