Skip to content

Version Packages #5549

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
Dec 3, 2024
Merged

Version Packages #5549

merged 1 commit into from
Dec 3, 2024

Conversation

jnsdls
Copy link
Member

@jnsdls jnsdls commented Dec 2, 2024

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

  • #5457 57fa96b Thanks @kien-ngo! - Add 2 new Pay functions: convertFiatToCrypto and convertCryptoToFiat

    Examples:

    Convert fiat (USD) to crypto

    import { convertFiatToCrypto } from "thirdweb/pay";
    import { ethereum } from "thirdweb/chains";
    
    // Convert 2 cents to ETH
    const result = await convertFiatToCrypto({
      from: "USD",
      // the token address. For native token, use NATIVE_TOKEN_ADDRESS
      to: "0x...",
      // the chain (of the chain where the token belong to)
      chain: ethereum,
      // 2 cents
      fromAmount: 0.02,
    });
    // Result: 0.0000057 (a number)

    Convert crypto to fiat (USD)

    import { convertCryptoToFiat } from "thirdweb/pay";
    
    // Get Ethereum price
    const result = convertCryptoToFiat({
      fromTokenAddress: NATIVE_TOKEN_ADDRESS,
      to: "USD",
      chain: ethereum,
      fromAmount: 1,
    });
    
    // Result: 3404.11 (number)

Patch Changes

@thirdweb-dev/[email protected]

Patch Changes


PR-Codex overview

This PR focuses on updating the versions of the @thirdweb-dev/react-native-adapter and thirdweb packages, along with enhancing functionality and fixing issues. It includes support for Expo 52, new payment functions, and various bug fixes.

Detailed summary

  • Updated @thirdweb-dev/react-native-adapter version from 1.5.1 to 1.5.2.
  • Added support for Expo 52 and React Native 0.76.
  • Updated thirdweb version from 5.72.0 to 5.73.0.
  • Introduced convertFiatToCrypto and convertCryptoToFiat functions.
  • Improved error handling for account status fetching.
  • Enhanced smart wallet updates when switching signer accounts.
  • Added warnings for rejected transactions due to sponsorship policies.
  • Handled 0 value for maxPriorityFeePerGas in 712 transactions.

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

Copy link

vercel bot commented Dec 2, 2024

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 Dec 3, 2024 9:45am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 3, 2024 9:45am
thirdweb-www ❌ Failed (Inspect) Dec 3, 2024 9:45am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 3, 2024 9:45am

Copy link
Contributor

graphite-app bot commented Dec 2, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

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

Copy link
Contributor

github-actions bot commented Dec 2, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 47.92 KB (0%) 959 ms (0%) 716 ms (+9.12% 🔺) 1.7 s
thirdweb (cjs) 107.39 KB (0%) 2.2 s (0%) 1.9 s (+48.9% 🔺) 4.1 s
thirdweb (minimal + tree-shaking) 5.58 KB (0%) 112 ms (0%) 85 ms (+278.58% 🔺) 197 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 40 ms (+463.39% 🔺) 50 ms
thirdweb/react (minimal + tree-shaking) 18.29 KB (0%) 366 ms (0%) 127 ms (+38.37% 🔺) 492 ms

Copy link

codecov bot commented Dec 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 44.18%. Comparing base (9b45aae) to head (9e040ac).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5549   +/-   ##
=======================================
  Coverage   44.18%   44.18%           
=======================================
  Files        1082     1082           
  Lines       56253    56253           
  Branches     3975     3975           
=======================================
  Hits        24857    24857           
  Misses      30713    30713           
  Partials      683      683           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 9b45aae
packages 39.03% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

@jnsdls jnsdls force-pushed the changeset-release/main branch from 8f4d6e0 to 5f66f1a Compare December 2, 2024 10:34
@jnsdls jnsdls force-pushed the changeset-release/main branch from 5f66f1a to 9019b3e Compare December 2, 2024 13:40
@jnsdls jnsdls force-pushed the changeset-release/main branch from 9019b3e to be97e08 Compare December 2, 2024 21:11
@jnsdls jnsdls force-pushed the changeset-release/main branch from be97e08 to 84ce5e9 Compare December 2, 2024 21:45
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.

2 participants