Skip to content

Releases: thirdweb-dev/js

[email protected]

05 Sep 10:07
e6f8b3e
Compare
Choose a tag to compare

Minor Changes

Patch Changes

[email protected]

04 Sep 22:34
257e428
Compare
Choose a tag to compare

Patch Changes

  • #4388 82a30af Thanks @edwardysun! - Update setting default source chain and token

  • #4375 edb95d0 Thanks @jnsdls! - [Extensions] expose permission detection logic

  • #4390 d74e61b Thanks @MananTank! - Fix Swap Fees layout in fees drawer in pay UI

  • #4319 73e5dc7 Thanks @joaquim-verges! - Fix direct payments to the same wallet

  • #4382 9e8d3e6 Thanks @MananTank! - Add props for hiding "Send", "Receive" and "Send" buttons in Connect Details Modal UI for ConnectButton component. By default, all buttons are visible in the modal.

    <ConnectButton
      detailsModal={{
        hideSendFunds: false,
        hideReceiveFunds: true,
        hideBuyFunds: false,
      }}
    />
  • #4363 066aede Thanks @kien-ngo! - Allow to specify "from" and "to" props for the ClaimButton

[email protected]

03 Sep 03:05
cb6d7a3
Compare
Choose a tag to compare

Minor Changes

Patch Changes

[email protected]

30 Aug 10:01
e46b3d3
Compare
Choose a tag to compare

Minor Changes

  • #4179 42d5c65 Thanks @kien-ngo! - Add NFT prebuilt components

    import { getContract } from "thirdweb";
    import { NFT } from "thirdweb/react";
    
    const contract = getContract({
      address: "0x...",
      chain: ethereum,
      client: yourThirdwebClient,
    });
    
    <NFT contract={contract} tokenId={0n}>
      <Suspense fallback={"Loading media..."}>
        <NFT.Media />
      </Suspense>
    </NFT>;

Patch Changes

[email protected]

29 Aug 03:24
0b4c885
Compare
Choose a tag to compare

Patch Changes

[email protected]

24 Aug 23:35
f47aa61
Compare
Choose a tag to compare

Patch Changes

  • #4250 41fbdaf Thanks @gregfromstl! - Add overload to signMessage to pass an account rather than a private key

    import { signMessage } from "thirdweb/utils";
    await signMessage({
      message: "Hello, world!",
      account,
    });
  • #4267 7a2de70 Thanks @alecananian! - Added hideSwitchWallet param to wallet details modal

  • #4224 1405598 Thanks @IDubuque! - Added support for direct transfers in Pay

  • #4269 120d61f Thanks @MananTank! - Show wallet balance with upto 5 decimal places in UI components

  • #4274 a0aea23 Thanks @gregfromstl! - Fix popup and window auth modes conflicting on firefox

  • #4244 44e8e7b Thanks @MananTank! - - Pay UI now selects the fiat currency based on the user's location / timezone

    • Add Japanese Yen (JPY) as a supported fiat currency for thirdweb Pay
    • Added option to configure the default fiat currency for the Pay UI

    Examples

    <PayEmbed
      client={client}
      payOptions={{
        buyWithFiat: {
          prefillSource: {
            currency: "CAD",
          },
        },
      }}
    />
    <ConnectButton
      client={client}
      detailsModal={{
        payOptions: {
          buyWithFiat: {
            prefillSource: {
              currency: "JPY",
            },
          },
        },
      }}
    />
    const sendTransaction = useSendTransaction({
      payModal: {
        buyWithFiat: {
          prefillSource: {
            currency: "CAD",
          },
        },
      },
    });
    <TransactionButton
      transaction={() => someTx}
      payModal={{
        buyWithFiat: {
          prefillSource: {
            currency: "CAD",
          },
        },
      }}
    >
      some tx
    </TransactionButton>

[email protected]

22 Aug 06:56
279d81e
Compare
Choose a tag to compare

Patch Changes

  • #4237 b38308d Thanks @gregfromstl! - Enable external redirects for electron support

    import { authenticate } from "thirdweb/wallets/in-app";
    
    const result = await authenticate({
      client,
      strategy: "google",
      redirectUrl: "https://example.org",
      mode: "window",
    });
  • #4213 6c87d7b Thanks @MananTank! - Fix "conditionally rendereed hooks error" in various components in thirdweb/react and thirdweb/react-native

  • #4214 0a1bce8 Thanks @gregfromstl! - Fix custom image metadata on in-app wallets

  • #4239 d93ec63 Thanks @joaquim-verges! - Fix passkey domain not being respected on login

[email protected]

20 Aug 18:40
bd42363
Compare
Choose a tag to compare

Minor Changes

Patch Changes

  • #4128 ef9cc55 Thanks @kien-ngo! - Expose max() & min() util methods for bigints

  • #4172 cb591aa Thanks @joaquim-verges! - Only show pay modal if active wallet does not have enough funds for a paid transaction

  • #4177 bd46699 Thanks @kien-ngo! - Expsose GaslessConfigs type

    const gaslessOptions: GaslessOptions = {
      provider: "engine",
      relayerUrl: "https://thirdweb.engine-***.thirdweb.com/relayer/***",
      relayerForwarderAddress: "0x...",
    };
  • #4211 4abf7a7 Thanks @MananTank! - Fix Conditionally rendered hook error when Buying funds using fiat

[email protected]

19 Aug 08:30
09927f3
Compare
Choose a tag to compare

Patch Changes

[email protected]

18 Aug 00:50
9e46b5b
Compare
Choose a tag to compare

Minor Changes

Patch Changes