Skip to content

Releases: thirdweb-dev/js

@thirdweb-dev/react@4.6.30

01 Jun 04:27
4cddbe7
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies []:
    • @thirdweb-dev/sdk@4.0.91
    • @thirdweb-dev/react-core@4.6.30
    • @thirdweb-dev/wallets@2.5.31

@thirdweb-dev/react-core@4.6.30

01 Jun 04:27
4cddbe7
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies []:
    • @thirdweb-dev/sdk@4.0.91
    • @thirdweb-dev/wallets@2.5.31
    • @thirdweb-dev/auth@4.1.89

@thirdweb-dev/cli@0.14.4

01 Jun 04:27
4cddbe7
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies []:
    • @thirdweb-dev/sdk@4.0.91
    • @thirdweb-dev/wallets@2.5.31
    • @thirdweb-dev/auth@4.1.89

@thirdweb-dev/auth@4.1.89

01 Jun 04:27
4cddbe7
Compare
Choose a tag to compare

Patch Changes

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

thirdweb@5.26.0

31 May 19:23
c1e155d
Compare
Choose a tag to compare

Minor Changes

  • #3161 b569eb4 Thanks @gregfromstl! - Adds waitForBundle function to await a sendCalls bundle's complete confirmation.

    Usage

    import { waitForBundle } from "thirdweb/wallets/eip5792";
    const result = await waitForBundle({
      client,
      chain,
      wallet,
      bundleId: "0x123...",
    });
  • #3161 b569eb4 Thanks @gregfromstl! - Adds EIP-5792 react hooks

    useSendCalls

    useSendCalls will automatically revalidate all reads from contracts that are interacted with.

    import { useSendCalls } from "thirdweb/react";
    
    const sendTx1 = approve({
      contract: USDT_CONTRACT,
      amount: 100,
      spender: "0x33d9B8BEfE81027E2C859EDc84F5636cbb202Ed6",
    });
    const sendTx2 = approve({
      contract: USDT_CONTRACT,
      amount: 100,
      spender: "0x2a4f24F935Eb178e3e7BA9B53A5Ee6d8407C0709",
    });
    const { mutate: sendCalls, data: bundleId } = useSendCalls({ client });
    await sendCalls({
      wallet,
      client,
      calls: [sendTx1, sendTx2],
    });

    Await the bundle's full confirmation:

    const { mutate: sendCalls, data: bundleId } = useSendCalls({
      client,
      waitForResult: true,
    });
    await sendCalls({
      wallet,
      client,
      calls: [sendTx1, sendTx2],
    });

    Sponsor transactions with a paymaster:

    const { mutate: sendCalls, data: bundleId } = useSendCalls();
    await sendCalls({
      client,
      calls: [sendTx1, sendTx2],
      capabilities: {
        paymasterService: {
          url: `https://${CHAIN.id}.bundler.thirdweb.com/${client.clientId}`,
        },
      },
    });

    useCapabilities

    import { useCapabilities } from "thirdweb/react";
    const { data: capabilities, isLoading } = useCapabilities();

    useCallsStatus

    import { useCallsStatus } from "thirdweb/react";
    const { data: status, isLoading } = useCallsStatus({ bundleId, client });

Patch Changes

@thirdweb-dev/wallets@2.5.30

31 May 19:23
c1e155d
Compare
Choose a tag to compare

Patch Changes

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

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

31 May 19:23
c1e155d
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies []:
    • @thirdweb-dev/sdk@4.0.90
    • @thirdweb-dev/wallets@2.5.30
    • @thirdweb-dev/auth@4.1.88

@thirdweb-dev/sdk@4.0.90

31 May 19:23
c1e155d
Compare
Choose a tag to compare

Patch Changes

@thirdweb-dev/react@4.6.29

31 May 19:22
c1e155d
Compare
Choose a tag to compare

Patch Changes

  • #3183 7bb241f Thanks @MananTank! - Improved OTP input using input-otp library

  • Updated dependencies []:

    • @thirdweb-dev/sdk@4.0.90
    • @thirdweb-dev/react-core@4.6.29
    • @thirdweb-dev/wallets@2.5.30

@thirdweb-dev/react-core@4.6.29

31 May 19:23
c1e155d
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies []:
    • @thirdweb-dev/sdk@4.0.90
    • @thirdweb-dev/wallets@2.5.30
    • @thirdweb-dev/auth@4.1.88