Skip to content

Releases: thirdweb-dev/js

[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

@thirdweb-dev/[email protected]

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

Patch Changes

[email protected]

15 Aug 14:52
c9ac25f
Compare
Choose a tag to compare

Patch Changes

[email protected]

15 Aug 05:27
f2c1278
Compare
Choose a tag to compare

Minor Changes

  • #4045 3c32b99 Thanks @gregfromstl! - Update SIWE interface

    import { inAppWallet, createWallet } from "thirdweb/wallets";
    import { mainnet } from "thirdweb/chains";
    
    const rabby = createWallet("io.rabby");
    const wallet = inAppWallet();
    
    const account = await wallet.connect({
      client: MY_CLIENT,
      strategy: "wallet",
      wallet: rabby,
      chain: mainnet,
    });
  • #4077 ef9c7df Thanks @joaquim-verges! - Passkey login support in React Native

Patch Changes

  • #4033 141fd53 Thanks @kien-ngo! - Add more Split contract extensions

  • #3998 db8695d Thanks @kien-ngo! - Add NFT extension: updateTokenURI

  • #4101 03a809a Thanks @MananTank! - Add onPurchaseSuccess callback to PayEmbed, ConnectButton, TransactionButton and useSendTransaction and gets called when user completes the purchase using thirdweb pay.

    <PayEmbed
      client={client}
      payOptions={{
        onPurchaseSuccess(info) {
          console.log("purchase success", info);
        },
      }}
    />
    <ConnectButton
      client={client}
      detailsModal={{
        payOptions: {
          onPurchaseSuccess(info) {
            console.log("purchase success", info);
          },
        },
      }}
    />
    <TransactionButton
      transaction={...}
      payModal={{
        onPurchaseSuccess(info) {
          console.log("purchase success", info);
        },
      }}
    >
      Some Transaction
    </TransactionButton>
    const sendTransaction = useSendTransaction({
      payModal: {
        onPurchaseSuccess(info) {
          console.log("purchase success", info);
        },
      },
    });
  • #4047 7a68e3b Thanks @gregfromstl! - Switch to the proper chain prior to signing SIWE payloads

  • #4092 0ca1a79 Thanks @gregfromstl! - UI cosmetic improvements

  • #4091 b9ed753 Thanks @MananTank! - Fix connection with Safe using WalletConnect link

  • #4070 e5a046e Thanks @kien-ngo! - Add contract util method: getCompilerMetadata()

[email protected]

11 Aug 19:51
386fe1c
Compare
Choose a tag to compare

Patch Changes

[email protected]

09 Aug 22:04
0fe38b9
Compare
Choose a tag to compare

Minor Changes

  • #3870 bbb4f1c Thanks @gregfromstl! - Adds useProfiles hook to fetch linked profiles for the current wallet.

    import { useProfiles } from "thirdweb/react";
    
    const { data: profiles } = useProfiles();
    
    console.log("Type:", profiles[0].type); // "discord"
    console.log("Email:", profiles[0].email); // "[email protected]"
  • #3870 bbb4f1c Thanks @gregfromstl! - Adds SIWE authentication on in-app wallets

    import { inAppWallet } from "thirdweb/wallets";
    
    const wallet = inAppWallet();
    const account = await wallet.connect({
      client,
      walletId: "io.metamask",
      chainId: 1, // can be anything unless using smart accounts
    });

    This will give you a new in-app wallet, not the injected provider wallet.

  • #3797 f74d523 Thanks @gregfromstl! - Wallets can now add additional profiles to an account. Once added, any connected profile can be used to access the same wallet.

    const wallet = inAppWallet();
    
    await wallet.connect({ strategy: "google" });
    const profiles = await linkProfile(wallet, { strategy: "discord" });

    Both the Google and Discord accounts will now be linked to the same wallet.

    If the Discord account is already linked to this or another wallet, this will throw an error.

    You can retrieve all profiles linked to a wallet using the getProfiles method.

    import { inAppWallet, getProfiles } from "thirdweb/wallets";
    
    const wallet = inAppWallet();
    wallet.connect({ strategy: "google" });
    
    const profiles = getProfiles(wallet);

    This would return an array of profiles like this:

    [
      {
        type: "google",
        details: {
          email: "[email protected]",
        },
      },
      {
        type: "discord",
        details: {
          email: "[email protected]",
        },
      },
    ];
  • #3995 5367eed Thanks @kien-ngo! - Add thirdweb Split contract extensions

  • #3993 c31f25c Thanks @kien-ngo! - Add thirdweb Vote contract extensions

  • #3870 bbb4f1c Thanks @gregfromstl! - Adds account linking to the Connect UI

Patch Changes

[email protected]

06 Aug 22:38
deb704a
Compare
Choose a tag to compare

Patch Changes