Skip to content

Version Packages #6728

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
Apr 18, 2025
Merged

Version Packages #6728

merged 1 commit into from
Apr 18, 2025

Conversation

joaquim-verges
Copy link
Member

@joaquim-verges joaquim-verges commented Apr 15, 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-dev/insight@1.0.0

Major Changes

  • #6706 185d2f3 Thanks @joaquim-verges! - Initial release of dedicated insight TS sdk

    This package is a thin openAPI wrapper for insight, our in-house indexer.

    Configuration

    import { configure } from "@thirdweb-dev/insight";
    
    // call this once at the startup of your application
    configure({
      clientId: "<YOUR_CLIENT_ID>",
    });

    Example Usage

    import { getV1Events } from "@thirdweb-dev/insight";
    
    const events = await getV1Events({
      query: {
        chain: [1, 137],
        filter_address: "0x1234567890123456789012345678901234567890",
      },
    });

thirdweb@5.95.0

Minor Changes

  • #6706 185d2f3 Thanks @joaquim-verges! - Expose getOwnedTokens, getOwnedNFTs and getTransaction functions

    You can now use Insight, our in-house indexer directly from the SDK with a simple API:

    Get Owned ERC20 tokens

    import { Insight } from "thirdweb";
    
    const tokens = await Insight.getOwnedTokens({
      client,
      ownerAddress,
      chains: [base, polygon, arbitrum],
    });

    Get Owned NFTs (ERC721 and ERC1155)

    import { Insight } from "thirdweb";
    
    const nfts = await Insight.getOwnedNFTs({
      client,
      ownerAddress,
      chains: [sepolia],
    });

    Get Transactions for a given wallet address

    import { Insight } from "thirdweb";
    
    const transactions = await Insight.getTransactions({
      client,
      walletAddress,
      chains: [sepolia],
    });

    All functions come with extra query filters for more granular queries, refer to the documentation for more details.

Patch Changes

  • #6760 7ecfcb9 Thanks @joaquim-verges! - Add thirdweb branding to PayEmbed

  • #6753 4cf15a2 Thanks @joaquim-verges! - Use insight for 1155 getNFTs, getOwnedNFTs and getNFT

  • #6752 23d3757 Thanks @joaquim-verges! - Simplify RPC request handling

  • #6741 8d4d991 Thanks @joaquim-verges! - Use insight for erc821/getNFT, erc721/getNFTs and erc721/getOwnedNFTs

    Standard ERC721 getNFT, getNFTs and getOwnedNFTs now use insight, our in house indexer by default. If indexer is not availbale, will fallback to RPC.

    You can also use the indexer directly using the Insight API:

    for an entire collection

    import { Insight } from "thirdweb";
    
    const events = await Insight.getContractNFTs({
      client,
      chains: [sepolia],
      contractAddress: "0x1234567890123456789012345678901234567890",
    });

    or for a single NFT

    import { Insight } from "thirdweb";
    
    const events = await Insight.getNFT({
      client,
      chains: [sepolia],
      contractAddress: "0x1234567890123456789012345678901234567890",
      tokenId: 1n,
    });
  • #6683 a3e7300 Thanks @kumaryash90! - Get indexed events from getContractEvents

    You can now automatically query indexed events on supported chains when calling getContractEvents

    import { getContractEvents } from "thirdweb";
    
    const events = await getContractEvents({
      contract: DOODLES_CONTRACT,
      events: [transferEvent()],
    });

    This method falls back to RPC eth_getLogs if the indexer is not available.

    You can also use the dedicated indexer function via the Insight export

    import { Insight } from "thirdweb";
    
    const events = await Insight.getContractEvents({
      client,
      chains: [sepolia],
      contractAddress: "0x1234567890123456789012345678901234567890",
      event: transferEvent(),
      decodeLogs: true,
    });
  • #6732 a45c558 Thanks @gregfromstl! - Improve pay error messages

  • #6758 62ce05e Thanks @joaquim-verges! - Better error message for getUser

  • #6734 2a7df33 Thanks @joaquim-verges! - Better error messages for failed requests

  • Updated dependencies [185d2f3]:

    • @thirdweb-dev/insight@1.0.0

@thirdweb-dev/service-utils@0.9.2

Patch Changes

@thirdweb-dev/wagmi-adapter@0.2.56


PR-Codex overview

This PR focuses on updating package versions, adding new features, and improving error handling across several @thirdweb-dev packages. It also includes the removal of outdated changelogs and introduces the @thirdweb-dev/insight package with its initial release.

Detailed summary

  • Removed multiple outdated .changeset files.
  • Updated @thirdweb-dev/service-utils version from 0.9.1 to 0.9.2.
  • Updated @thirdweb-dev/wagmi-adapter version from 0.2.55 to 0.2.56.
  • Updated @thirdweb-dev/insight version from 0.0.1 to 1.0.0, introducing its initial release.
  • Added new features and usage examples for the @thirdweb-dev/insight package.
  • Updated thirdweb version from 5.94.2 to 5.95.0, exposing new functions and improving error messages.
  • Enhanced error handling and messaging for various functions across packages.
  • Updated dependencies for better compatibility and performance.

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

@joaquim-verges joaquim-verges requested review from a team as code owners April 15, 2025 03:34
Copy link

vercel bot commented Apr 15, 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 Apr 18, 2025 1:07am
login ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 18, 2025 1:07am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 18, 2025 1:07am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 18, 2025 1:07am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 18, 2025 1:07am

Copy link
Contributor

graphite-app bot commented Apr 15, 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

github-actions bot commented Apr 15, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 50.75 KB (0%) 1.1 s (0%) 186 ms (+172.05% 🔺) 1.3 s
thirdweb (cjs) 138.9 KB (0%) 2.8 s (0%) 267 ms (+53.81% 🔺) 3.1 s
thirdweb (minimal + tree-shaking) 5.59 KB (0%) 112 ms (0%) 78 ms (+1176.85% 🔺) 190 ms
thirdweb/chains (tree-shaking) 514 B (0%) 11 ms (0%) 31 ms (+670.12% 🔺) 41 ms
thirdweb/react (minimal + tree-shaking) 19.36 KB (0%) 388 ms (0%) 68 ms (+482.22% 🔺) 455 ms

Copy link

codecov bot commented Apr 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.16%. Comparing base (7ecfcb9) to head (7a71f49).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6728   +/-   ##
=======================================
  Coverage   55.16%   55.16%           
=======================================
  Files         896      896           
  Lines       56910    56910           
  Branches     3940     3938    -2     
=======================================
  Hits        31396    31396           
  Misses      25419    25419           
  Partials       95       95           
Flag Coverage Δ
packages 55.16% <ø> (ø)
🚀 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 force-pushed the changeset-release/main branch from 2f5bec1 to cd1d23c Compare April 15, 2025 09:39
@joaquim-verges joaquim-verges force-pushed the changeset-release/main branch from cd1d23c to 41bfa08 Compare April 15, 2025 09:56
@joaquim-verges joaquim-verges force-pushed the changeset-release/main branch from 41bfa08 to 1e74b5d Compare April 15, 2025 11:04
@joaquim-verges joaquim-verges force-pushed the changeset-release/main branch from 87f870d to 55ec12b Compare April 17, 2025 01:09
@joaquim-verges joaquim-verges force-pushed the changeset-release/main branch from 55ec12b to b797db0 Compare April 17, 2025 23:14
@joaquim-verges joaquim-verges force-pushed the changeset-release/main branch from b797db0 to 0405f8c Compare April 18, 2025 00:02
@joaquim-verges joaquim-verges force-pushed the changeset-release/main branch from 0405f8c to 7a71f49 Compare April 18, 2025 00:56

- [#6741](https://github.com/thirdweb-dev/js/pull/6741) [`8d4d991`](https://github.com/thirdweb-dev/js/commit/8d4d991e5710cbed668a52522686cc2dce4e4790) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Use insight for erc821/getNFT, erc721/getNFTs and erc721/getOwnedNFTs

Standard ERC721 getNFT, getNFTs and getOwnedNFTs now use insight, our in house indexer by default. If indexer is not availbale, will fallback to RPC.
Copy link
Contributor

Choose a reason for hiding this comment

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

There's a typo in the documentation: "availbale" should be corrected to "available" in the sentence describing the fallback behavior. This appears in the changelog entry for the insight integration with ERC721 methods.

Suggested change
Standard ERC721 getNFT, getNFTs and getOwnedNFTs now use insight, our in house indexer by default. If indexer is not availbale, will fallback to RPC.
Standard ERC721 getNFT, getNFTs and getOwnedNFTs now use insight, our in house indexer by default. If indexer is not available, will fallback to RPC.

Spotted by Diamond

Is this helpful? React 👍 or 👎 to let us know.

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