Skip to content

Conversation

@joaquim-verges
Copy link
Member

@joaquim-verges joaquim-verges commented Oct 20, 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.110.0

Minor Changes

  • #8289 b30369f Thanks @jnsdls! - ### getContractMetadata() now returns a record with unknown values instead of any.

    before:

    const metadata = await getContractMetadata({ contract });
    metadata; // Record<string, any>
    metadata.name; // string
    metadata.symbol; // string

    after:

    const metadata = await getContractMetadata({ contract });
    metadata; // Record<string, unknown>
    metadata.name; // string | null
    metadata.symbol; // string | null

    Metadata is not (and was never) strictly defined outside of name and symbol and may contain any type of data in the record.
    This is not a runtime change but it may break type inference in existing apps that relied on the previous return type.

    Recommended fix:
    You should type-guard any key you access from "metadata".

    const metadata = await getContractMetadata({ contract });
    if ("foo" in metadata && typeof metadata.foo === "string") {
      metadata.foo; // string
    }

    Quick fix:
    If adding type assertions is not something you can do in the short term you can also assert the type directly.
    This is as "unsafe" as the type was before.

    const metadata = await getContractMetadata({ contract });
    const foo = metadata.foo as string;

Patch Changes

  • #8280 ceba683 Thanks @MananTank! - Fix process not defined error when using "thirdweb/contract" import in Vite

@thirdweb-dev/api@0.1.1

Patch Changes

@thirdweb-dev/nebula@0.2.71

Patch Changes

@thirdweb-dev/wagmi-adapter@0.2.168

wagmi-inapp@0.0.13

Patch Changes

  • Updated dependencies [ceba683, b30369f]:
    • thirdweb@5.110.0
    • @thirdweb-dev/wagmi-adapter@0.2.168

PR-Codex overview

This PR focuses on version updates across various packages, including thirdweb, wagmi-adapter, and api, along with notable changes in CHANGELOG.md files. It also introduces a type change in the getContractMetadata() function.

Detailed summary

  • Updated version in packages/thirdweb/package.json to 5.110.0.
  • Updated version in apps/wagmi-demo/package.json to 0.0.13.
  • Updated version in packages/nebula/package.json to 0.2.71.
  • Updated version in packages/wagmi-adapter/package.json to 0.2.168.
  • Updated version in packages/api/package.json to 0.1.1.
  • Added new entries in CHANGELOG.md for nebula, api, wagmi-demo, and thirdweb, detailing patch changes and updates.
  • Changed return type of getContractMetadata() to Record<string, unknown> from Record<string, any>, impacting type inference.

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

Summary by CodeRabbit

  • Bug Fixes

    • Fixed "process not defined" runtime error when importing from Vite
  • New Features

    • Added userId support across wallet APIs
  • Updates

    • Updated getContractMetadata() return type to Record<string, unknown> (may affect type inference; see documentation for type-guarding guidance)
  • Chores

    • Version bumps and dependency updates across packages

@joaquim-verges joaquim-verges requested review from a team as code owners October 20, 2025 14:06
@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 20, 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.

@github-actions github-actions bot added packages SDK Involves changes to the thirdweb SDK labels Oct 20, 2025
@vercel
Copy link

vercel bot commented Oct 20, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
docs-v2 Ready Ready Preview Comment Oct 22, 2025 1:16am
nebula Ready Ready Preview Comment Oct 22, 2025 1:16am
thirdweb_playground Ready Ready Preview Comment Oct 22, 2025 1:16am
thirdweb-www Ready Ready Preview Comment Oct 22, 2025 1:16am
wallet-ui Ready Ready Preview Comment Oct 22, 2025 1:16am

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 20, 2025

Walkthrough

Coordinated version bumps and changelog additions across multiple packages, plus removal of two changeset files; includes a changelog entry documenting a Vite "process not defined" import fix for thirdweb/contract. No source code or public API behavior changes.

Changes

Cohort / File(s) Summary
Thirdweb package
packages/thirdweb/package.json, packages/thirdweb/CHANGELOG.md
Version bumped to 5.110.0; changelog adds Patch entry fixing runtime "process not defined" when importing thirdweb/contract in Vite and a Minor Changes note about getContractMetadata() typing.
Wagmi adapter
packages/wagmi-adapter/package.json, packages/wagmi-adapter/CHANGELOG.md
Version bumped to 0.2.168; changelog header added for 0.2.168.
Nebula package
packages/nebula/package.json, packages/nebula/CHANGELOG.md
Version bumped to 0.2.71; changelog adds 0.2.71 entry referencing updated thirdweb dependency and commit links.
API package
packages/api/package.json, packages/api/CHANGELOG.md
Version bumped to 0.1.1; changelog adds 0.1.1 Patch entry documenting userId support across wallet APIs.
Wagmi demo app
apps/wagmi-demo/package.json, apps/wagmi-demo/CHANGELOG.md
Version bumped to 0.0.13; changelog adds Patch entry updating dependencies to thirdweb@5.110.0 and @thirdweb-dev/wagmi-adapter@0.2.168.
Removed changesets
.changeset/small-taxes-heal.md, .changeset/breezy-heads-crash.md
Two changeset files deleted (removing prior documentation of patch changes).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Title Check ✅ Passed The title "Version Packages" directly relates to the primary action of this changeset: bumping versions across multiple packages and updating their changelogs. This is a Changesets-generated release PR, and the title accurately describes the mechanical purpose of the changeset, which is to version and prepare packages for npm publication. While the title is concise and somewhat generic, it is not vague in the sense of "misc updates" but rather conveys clear information about versioning packages. The title satisfies the requirement of being specific enough for a teammate scanning history to understand the primary change.
Description Check ✅ Passed The PR description does not follow the template's prescribed structure (title format, Linear tag, "Notes for the reviewer," "How to test"). However, it is comprehensive and highly informative, providing detailed release notes automatically generated by the Changesets action, including version bumps, changelog updates, migration guidance for the type change in getContractMetadata(), and clear attribution of changes. Given that this is an auto-generated release PR from the Changesets GitHub Action (rather than a manual PR), the auto-generated format provides all necessary information about the changes and their impact, making the description complete and fit-for-purpose despite not conforming to the manual PR template.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch changeset-release/main

Comment @coderabbitai help to get the list of available commands and usage tips.

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 (1)
packages/wagmi-adapter/CHANGELOG.md (1)

3-4: Version header added; consider documenting the rationale.

While the version 0.2.168 header follows the existing file pattern (several versions have headers only), adding a minimal Patch Changes section explaining the version bump—such as "Updated dependencies to @thirdweb-dev/wagmi-adapter@0.2.168"—would improve clarity for future maintainers and consistency with release documentation.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between ceba683 and bbc6717.

📒 Files selected for processing (9)
  • .changeset/small-taxes-heal.md (0 hunks)
  • apps/wagmi-demo/CHANGELOG.md (1 hunks)
  • apps/wagmi-demo/package.json (1 hunks)
  • packages/nebula/CHANGELOG.md (1 hunks)
  • packages/nebula/package.json (1 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/small-taxes-heal.md
🧰 Additional context used
📓 Path-based instructions (2)
**/package.json

📄 CodeRabbit inference engine (AGENTS.md)

Track bundle budgets via package.json#size-limit

Files:

  • packages/nebula/package.json
  • packages/wagmi-adapter/package.json
  • packages/thirdweb/package.json
  • apps/wagmi-demo/package.json
packages/wagmi-adapter/**

📄 CodeRabbit inference engine (CLAUDE.md)

Wagmi ecosystem integration is in packages/wagmi-adapter/

Files:

  • packages/wagmi-adapter/package.json
  • packages/wagmi-adapter/CHANGELOG.md
🧠 Learnings (1)
📚 Learning: 2025-07-18T19:19:55.613Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to packages/wagmi-adapter/** : Wagmi ecosystem integration is in `packages/wagmi-adapter/`

Applied to files:

  • packages/wagmi-adapter/package.json
  • packages/wagmi-adapter/CHANGELOG.md
  • apps/wagmi-demo/CHANGELOG.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
  • GitHub Check: Size
  • GitHub Check: Unit Tests
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: Build Packages
  • GitHub Check: Lint Packages
  • GitHub Check: Socket Security: Pull Request Alerts
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (6)
packages/nebula/CHANGELOG.md (1)

3-8: Changelog entry properly formatted and consistent.

The version 0.2.71 entry correctly documents the dependency update to thirdweb@5.109.2 with the matching commit hash.

packages/wagmi-adapter/package.json (1)

59-59: Version bump is consistent and correct.

The version is properly updated to 0.2.168, matching the CHANGELOG entry and dependency references in dependent packages.

apps/wagmi-demo/CHANGELOG.md (1)

3-9: Changelog entry properly documents dependency updates.

Version 0.0.13 correctly lists both updated dependencies (thirdweb@5.109.2 and @thirdweb-dev/wagmi-adapter@0.2.168) with the matching commit hash, consistent with the version bump in this release.

apps/wagmi-demo/package.json (1)

4-4: Version bump looks good.

The patch version increment from 0.0.12 to 0.0.13 is appropriate for a demo app following dependency updates. Workspace dependencies are correctly specified.

packages/nebula/package.json (1)

60-60: Version bump is correct.

The patch version increment from 0.2.70 to 0.2.71 reflects the updated dependency on thirdweb@5.109.2. Workspace reference ensures proper resolution.

packages/thirdweb/package.json (1)

433-433: Version bump is appropriate.

The patch increment from 5.109.1 to 5.109.2 correctly reflects a bug fix release (Vite import error, per PR #8280). No changes to public exports or dependencies. Size-limit tooling and scripts remain intact.

@codecov
Copy link

codecov bot commented Oct 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.90%. Comparing base (b30369f) to head (98dc916).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8281   +/-   ##
=======================================
  Coverage   54.90%   54.90%           
=======================================
  Files         919      919           
  Lines       60665    60665           
  Branches     4128     4129    +1     
=======================================
+ Hits        33309    33310    +1     
  Misses      27254    27254           
+ Partials      102      101    -1     
Flag Coverage Δ
packages 54.90% <ø> (+<0.01%) ⬆️
see 4 files 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.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 20, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 64.55 KB (0%) 1.3 s (0%) 191 ms (+80.19% 🔺) 1.5 s
thirdweb (cjs) 365.82 KB (0%) 7.4 s (0%) 1.1 s (+10.27% 🔺) 8.4 s
thirdweb (minimal + tree-shaking) 5.73 KB (0%) 115 ms (0%) 92 ms (+2036.65% 🔺) 207 ms
thirdweb/chains (tree-shaking) 526 B (0%) 11 ms (0%) 49 ms (+1571.43% 🔺) 59 ms
thirdweb/react (minimal + tree-shaking) 19.09 KB (-0.29% 🔽) 382 ms (-0.29% 🔽) 61 ms (+584.04% 🔺) 443 ms

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 (1)
packages/thirdweb/package.json (1)

56-56: Add size-limit configuration to track bundle budgets.

The package has size-limit and @size-limit/preset-big-lib in devDependencies, but there's no corresponding size-limit configuration field in package.json to define bundle budgets. Per coding guidelines, bundle budgets should be tracked via package.json#size-limit.

Add a size-limit configuration field to define bundle budget constraints. For example:

  "sideEffects": false,
  "type": "module",
  "types": "./dist/types/exports/thirdweb.d.ts",
+ "size-limit": [
+   {
+     "path": "./dist/esm/exports/thirdweb.js",
+     "limit": "100 kB"
+   }
+ ],
  "typesVersions": {

If budgets are defined in a separate config file (.size-limit.json), this is optional.

Also applies to: 91-91

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between bbc6717 and 055dbfa.

📒 Files selected for processing (11)
  • .changeset/small-taxes-heal.md (0 hunks)
  • apps/wagmi-demo/CHANGELOG.md (1 hunks)
  • apps/wagmi-demo/package.json (1 hunks)
  • packages/api/CHANGELOG.md (1 hunks)
  • packages/api/package.json (1 hunks)
  • packages/nebula/CHANGELOG.md (1 hunks)
  • packages/nebula/package.json (1 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/small-taxes-heal.md
✅ Files skipped from review due to trivial changes (4)
  • apps/wagmi-demo/package.json
  • packages/nebula/CHANGELOG.md
  • packages/api/package.json
  • packages/api/CHANGELOG.md
🚧 Files skipped from review as they are similar to previous changes (3)
  • apps/wagmi-demo/CHANGELOG.md
  • packages/wagmi-adapter/package.json
  • packages/nebula/package.json
🧰 Additional context used
📓 Path-based instructions (2)
packages/wagmi-adapter/**

📄 CodeRabbit inference engine (CLAUDE.md)

Wagmi ecosystem integration is in packages/wagmi-adapter/

Files:

  • packages/wagmi-adapter/CHANGELOG.md
**/package.json

📄 CodeRabbit inference engine (AGENTS.md)

Track bundle budgets via package.json#size-limit

Files:

  • packages/thirdweb/package.json
🧠 Learnings (1)
📚 Learning: 2025-07-18T19:19:55.613Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to packages/wagmi-adapter/** : Wagmi ecosystem integration is in `packages/wagmi-adapter/`

Applied to files:

  • packages/wagmi-adapter/CHANGELOG.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Size
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (2)
packages/wagmi-adapter/CHANGELOG.md (1)

3-4: Changelog entry is correctly formatted and positioned.

The new version header 0.2.168 is properly added at the top of the changelog with appropriate markdown formatting and follows the established pattern. The absence of release notes aligns with the PR objectives noting "no additional notes" for this version.

packages/thirdweb/package.json (1)

433-433: Version bump is correct and aligns with PR objectives.

The patch version bump from 5.109.1 to 5.109.2 is semantically correct and matches the changelog entry documenting the Vite "process not defined" fix.

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 (1)
packages/api/package.json (1)

1-61: Consider adding bundle size tracking.

As per coding guidelines, bundle budgets should be tracked via package.json#size-limit. This package lacks a size-limit field. If bundle monitoring is required for this package, add the field to align with best practices.

Example configuration:

{
  "size-limit": [
    {
      "path": "dist/esm/**/*.js",
      "limit": "10 KB"
    }
  ]
}
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 055dbfa and 98dc916.

📒 Files selected for processing (12)
  • .changeset/breezy-heads-crash.md (0 hunks)
  • .changeset/small-taxes-heal.md (0 hunks)
  • apps/wagmi-demo/CHANGELOG.md (1 hunks)
  • apps/wagmi-demo/package.json (1 hunks)
  • packages/api/CHANGELOG.md (1 hunks)
  • packages/api/package.json (1 hunks)
  • packages/nebula/CHANGELOG.md (1 hunks)
  • packages/nebula/package.json (1 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 (2)
  • .changeset/breezy-heads-crash.md
  • .changeset/small-taxes-heal.md
🚧 Files skipped from review as they are similar to previous changes (9)
  • apps/wagmi-demo/CHANGELOG.md
  • packages/nebula/package.json
  • packages/nebula/CHANGELOG.md
  • apps/wagmi-demo/package.json
  • packages/api/CHANGELOG.md
  • packages/wagmi-adapter/CHANGELOG.md
  • packages/thirdweb/CHANGELOG.md
  • packages/wagmi-adapter/package.json
  • packages/thirdweb/package.json
🧰 Additional context used
📓 Path-based instructions (1)
**/package.json

📄 CodeRabbit inference engine (AGENTS.md)

Track bundle budgets via package.json#size-limit

Files:

  • packages/api/package.json
🧠 Learnings (1)
📚 Learning: 2025-08-29T15:37:38.513Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: AGENTS.md:0-0
Timestamp: 2025-08-29T15:37:38.513Z
Learning: Applies to .changeset/*.md : Version bump rules: patch for non‑API changes; minor for new/modified public API

Applied to files:

  • packages/api/package.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
  • GitHub Check: Size
  • GitHub Check: Unit Tests
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: Lint Packages
  • GitHub Check: Build Packages
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (1)
packages/api/package.json (1)

3-3: Verify version bump classification for API changes.

The PR notes "Added support for userId across wallet APIs," which may constitute a new or modified public API. Per versioning guidelines, such changes typically warrant a minor version bump rather than a patch. Confirm whether the userId addition is backward-compatible or introduces breaking changes.

@jnsdls jnsdls merged commit e0ace73 into main Oct 22, 2025
23 checks passed
@jnsdls jnsdls deleted the changeset-release/main branch October 22, 2025 01:31
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.

3 participants