js icon indicating copy to clipboard operation
js copied to clipboard

Version Packages

Open jnsdls opened this issue 1 year ago • 4 comments

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/[email protected]

Major Changes

[email protected]

Minor Changes

  • #3001 726618b Thanks @gregfromstl! - Adds basic EIP-5792 support for wallets with functions getCapabilities, sendCalls, showCallsStatus, getCallsStatus.

    Example Usage

    getCapabilities

    Returns the capabilities of the wallet according to EIP-5792.

    import { getCapabilities } from "thirdweb/wallets/eip5792";
    
    const capabilities = await getCapabilities({ wallet });
    

    sendCalls

    Sends the given calls to the wallet for execution, and attempts to fallback to normal execution if the wallet does not support EIP-5792.

    import { sendCalls } from "thirdweb/wallets/eip5792";
    
    const transfer1 = transfer({
      contract: USDC_CONTRACT,
      amount: 5000,
      to: "0x33d9B8BEfE81027E2C859EDc84F5636cbb202Ed6",
    });
    
    const transfer2 = transfer({
      contract: USDT_CONTRACT,
      amount: 1000,
      to: "0x33d9B8BEfE81027E2C859EDc84F5636cbb202Ed6",
    });
    
    const bundleId = await sendCalls({
      wallet,
      client,
      calls: [transfer1, transfer2],
    });
    

    showCallsStatus

    Requests the wallet to show the status of a given bundle ID.

    import { showCallsStatus } from "thirdweb/wallets/eip5792";
    
    await showCallsStatus({ wallet, bundleId });
    

    getCallsStatus

    Returns the status of the given bundle ID and the transaction receipts if completed.

    import { getCallsStatus } from "thirdweb/wallets/eip5792";
    
    const status = await getCallsStatus({ wallet, bundleId });
    

Patch Changes

@thirdweb-dev/[email protected]

Patch Changes

@thirdweb-dev/[email protected]

Patch Changes

@thirdweb-dev/[email protected]

Patch Changes

@thirdweb-dev/[email protected]

Patch Changes

@thirdweb-dev/[email protected]

Patch Changes

@thirdweb-dev/[email protected]

Patch Changes

@thirdweb-dev/[email protected]

Patch Changes

@thirdweb-dev/[email protected]

Patch Changes

@thirdweb-dev/[email protected]

Patch Changes


PR-Codex overview

This PR updates package versions for @thirdweb-dev/auth, @thirdweb-dev/chains, @thirdweb-dev/wallets, @thirdweb-dev/service-utils, @thirdweb-dev/sdk, @thirdweb-dev/react, @thirdweb-dev/react-core, @thirdweb-dev/unity-js-bridge, and @thirdweb-dev/cli. It also includes improvements for thirdweb package.

Detailed summary

  • Updated package versions for multiple packages
  • Added functionality for EIP-5792 support in wallets
  • Improved error messages and caching in thirdweb package

The following files were skipped due to too many changes: packages/thirdweb/CHANGELOG.md

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

jnsdls avatar May 16 '24 01:05 jnsdls

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 64.09%. Comparing base (ff0c9c7) to head (f792f53).

:exclamation: Current head f792f53 differs from pull request most recent head b63f1cb

Please upload reports for the commit b63f1cb to get more accurate results.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3044      +/-   ##
==========================================
+ Coverage   64.08%   64.09%   +0.01%     
==========================================
  Files         775      775              
  Lines       55109    55112       +3     
  Branches     3169     3169              
==========================================
+ Hits        35316    35324       +8     
+ Misses      19124    19120       -4     
+ Partials      669      668       -1     
Flag Coverage Δ *Carryforward flag
legacy_packages 65.65% <ø> (+0.03%) :arrow_up: Carriedforward from ad88ece
packages 63.70% <ø> (+<0.01%) :arrow_up:

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

see 8 files with indirect coverage changes

codecov[bot] avatar May 16 '24 01:05 codecov[bot]

CodSpeed Performance Report

Merging #3044 will not alter performance

Comparing changeset-release/main (ce264f8) with main (ff0c9c7)

Summary

✅ 9 untouched benchmarks

codspeed-hq[bot] avatar May 16 '24 01:05 codspeed-hq[bot]

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 39.22 KB (0%) 785 ms (0%) 388 ms (+70.3% 🔺) 1.2 s
thirdweb (cjs) 88.71 KB (0%) 1.8 s (0%) 737 ms (+30.59% 🔺) 2.6 s
thirdweb (minimal + tree-shaking) 4.75 KB (0%) 96 ms (0%) 153 ms (+594.99% 🔺) 248 ms
thirdweb/chains (tree-shaking) 423 B (0%) 10 ms (0%) 80 ms (+1596.57% 🔺) 90 ms
thirdweb/react (minimal + tree-shaking) 15.09 KB (0%) 302 ms (0%) 152 ms (+289.4% 🔺) 454 ms

github-actions[bot] avatar May 16 '24 01:05 github-actions[bot]