Skip to content

Releases: thirdweb-dev/js

@thirdweb-dev/chains@0.1.106

10 May 01:21
aad5f9f
Compare
Choose a tag to compare

Patch Changes

@thirdweb-dev/auth@4.1.77

10 May 22:43
a58d116
Compare
Choose a tag to compare

Patch Changes

@thirdweb-dev/auth@4.1.75

10 May 01:21
aad5f9f
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies []:
    • @thirdweb-dev/wallets@2.5.17

thirdweb@5.16.1

07 May 21:01
149160b
Compare
Choose a tag to compare

Patch Changes

  • #2936 a692154 Thanks @MananTank! - Fix OTP input entered by by clicking on “from messages” option in iOS safari

  • #2934 bdb919f Thanks @gregfromstl! - Updates the CLI create command to use the v5 templates for Next.js and Vite

    Other templates will be updated in the future from within their existing repositories

    Removes React Native starters from the CLI menu
    Removes JS template support from the CLI

  • #2941 795a59e Thanks @gregfromstl! - Can now optionally specify blockRange on getContractEvents in combination with toBlock and fromBlock.

    Usage

    Specify a blockRange, defaulting toBlock to the current block number.

    await getContractEvents({
      contract: myContract,
      blockRange: 123456n,
      events: [preparedEvent, preparedEvent2],
    });

    Specify a block range with toBlock.

    await getContractEvents({
      contract: myContract,
      toBlock: endBlock,
      blockRange: 123456n,
      events: [preparedEvent, preparedEvent2],
    });

    Specify a block range starting from fromBlock (great for pagination).

    await getContractEvents({
      contract: myContract,
      fromBlock: lastBlockFetched,
      blockRange: 123456n,
      events: [preparedEvent, preparedEvent2],
    });
  • #2945 b64c8e7 Thanks @gregfromstl! - Removes deprecated template options from the CLI, specifically PWA Vite, Express, and React

  • #2951 49d4494 Thanks @gregfromstl! - Increase gas on MarketplaceV3 writes

  • #2948 44680c6 Thanks @gregfromstl! - Adds extraGas override to transactions. Useful when gas estimates are faulty or to ensure a transaction goes through.

    Usage

    const transaction = prepareTransaction({
      to: "0x1234567890123456789012345678901234567890",
      chain: ethereum,
      client: thirdwebClient,
      value: toWei("1.0"),
      gasPrice: 30n,
      extraGas: 50_000n,
    });
  • #2932 86105c9 Thanks @gregfromstl! - TransactionButton throws error on reverted transaction

  • #2946 ec149f3 Thanks @gregfromstl! - Read RPC url from viem chain in viem chain adapter

  • #2928 cea736c Thanks @gregfromstl! - Filters invalid listings and auctions from marketplace

  • #2949 0e19911 Thanks @kien-ngo! - Docs update: fix typos and add code snippet

  • #2944 82e8911 Thanks @joaquim-verges! - Show auth provider icon in connect UI when connected to in app wallet

  • #2933 8e0a3ce Thanks @MananTank! - ### Integrate Pay Modal with TransactionButton

    By default, the Pay Modal is integrated with the TransactionButton component. If the user performs a transaction and does not have enough funds to execute it and if thirdweb pay is available for that blockchain, the Pay Modal will be displayed to allow user to buy the required amount of tokens

    A new prop payModal is added to the TransactionButton component customize the Pay Modal UI or disable it entirely

    Example: Disable Pay Modal

    <TransactionButton payModal={false}> Example 1 </TransactionButton>

    Example: Customize Pay Modal UI

    <TransactionButton
      payModal={{
        theme: "light",
      }}
    >
      Example 2
    </TransactionButton>

    Disable Pay Modal for certain configurations in useSendTransaction hook

    If useSendTransaction hook is passed gasless: true configuration or if current active wallet is a smart wallet with sponsorGas: true configuration - the Pay Modal will be disabled

  • #2929 9f817cf Thanks @joaquim-verges! - Tweaked connected modal UI layout

@thirdweb-dev/wallets@2.5.16

07 May 21:01
149160b
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies []:
    • @thirdweb-dev/sdk@4.0.76

@thirdweb-dev/unity-js-bridge@0.6.25

07 May 21:01
149160b
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies []:
    • @thirdweb-dev/sdk@4.0.76
    • @thirdweb-dev/wallets@2.5.16
    • @thirdweb-dev/auth@4.1.74

@thirdweb-dev/sdk@4.0.76

07 May 21:01
149160b
Compare
Choose a tag to compare

Patch Changes

@thirdweb-dev/react@4.6.15

07 May 21:01
149160b
Compare
Choose a tag to compare

Patch Changes

  • #2936 a692154 Thanks @MananTank! - Fix OTP input entered by by clicking on “from messages” option in iOS safari

  • Updated dependencies []:

    • @thirdweb-dev/sdk@4.0.76
    • @thirdweb-dev/react-core@4.6.15
    • @thirdweb-dev/wallets@2.5.16

@thirdweb-dev/react-native@0.7.47

07 May 21:01
149160b
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies []:
    • @thirdweb-dev/sdk@4.0.76
    • @thirdweb-dev/react-core@4.6.15
    • @thirdweb-dev/wallets@2.5.16

@thirdweb-dev/react-native-compat@0.7.47

07 May 21:01
149160b
Compare
Choose a tag to compare
@thirdweb-dev/react-native-compat@0.7.47