Releases: thirdweb-dev/js
thirdweb@5.44.0
thirdweb@5.43.2
Patch Changes
-
#3895
13d9741
Thanks @joaquim-verges! - Add Korean and French Locale -
#3901
825ef23
Thanks @joaquim-verges! - Handle gas free chains where baseFeePerGas is 0 -
#3903
306f3da
Thanks @gregfromstl! - Fix occasional iframe error when logging in with oauth
thirdweb@5.43.1
thirdweb@5.43.0
Minor Changes
-
#3881
e7d6161
Thanks @kien-ngo! - Add CreateDirectListing button for Marketplace v3import { CreateDirectListingButton } from "thirdweb/react"; <CreateDirectListingButton contractAddress="0x..." // contract address for the marketplace-v3 chain={...} // the chain which the marketplace contract is deployed on // These props below are the same props for `createListing` // to get the full list, check the docs link above tokenId={0n} assetContractAddress="0x..." // The NFT contract address whose NFT(s) you want to sell pricePerToken={"0.1"} // sell for 0.1 <native token> > Sell NFT </CreateDirectListingButton>
Patch Changes
-
#3885
6cd279b
Thanks @joaquim-verges! - Fix ethers5adapter transaction result nonces -
#3871
f702cf7
Thanks @jnsdls! - temporarily disable CLI login -
#3882
4171f15
Thanks @MananTank! - Improved error messages when connection management hooks used outside ThirdwebProvider -
#3880
5eb4955
Thanks @MananTank! - Fix autoConnect for wallets that are connected from "All wallets" screen
thirdweb@5.42.0
Minor Changes
-
#3847
e27ebef
Thanks @kien-ngo! - Add prebuilt component: BuyDirectListingButton for Marketplace v3import { BuyDirectListingButton } from "thirdweb/react"; <BuyDirectListingButton contractAddress="0x..." // contract address of the marketplace v3 chain={...} // the chain which the marketplace contract is deployed on client={...} // thirdweb client listingId={100n} // the listingId or the item you want to buy quantity={1n} // optional - see the docs to learn more > Buy NFT </BuyDirectListingButton>
-
#3857
d5e5467
Thanks @gregfromstl! - Adds useChainMetadata to retrieve metadata for a chain such as name, icon, available faucets, block explorers, etc.import { useChainMetadata } from "thirdweb/react"; const { data: chainMetadata } = useChainMetadata(defineChain(11155111)); console.log("Name:", chainMetadata.name); // Sepolia console.log("Faucets:", chainMetadata.faucets); // ["https://thirdweb.com/sepolia/faucet"] console.log("Explorers:", chainMetadata.explorers); // ["https://sepolia.etherscan.io/"]
Patch Changes
-
#3846
cdb2970
Thanks @kien-ngo! - Handle ERC20 approval for the ClaimButton -
#3843
91edae5
Thanks @kien-ngo! - Expose multicall & erc1155:encodeSafeTransferFrom extension -
#3867
109575e
Thanks @gregfromstl! - Fix wallet social login button styling -
#3854
7ec421f
Thanks @kien-ngo! - Add util function: parseAbiParamsimport { parseAbiParams } from "thirdweb/utils"; const example1 = parseAbiParams( ["address", "uint256"], ["0x.....", "1200000"], ); // result: ["0x......", 1200000n]
-
#3869
bd44ce9
Thanks @joaquim-verges! - Export more wallet creation and connection types
thirdweb@5.41.0
Minor Changes
-
#3827
b0a303d
Thanks @gregfromstl! - Adds SIWF for in-app walletsawait wallet.connect({ strategy: "farcaster", client: CLIENT, });
Patch Changes
-
#3831
d775333
Thanks @kien-ngo! - Expose ERC20 extension: getApprovalForTransaction -
#3845
b551b69
Thanks @gregfromstl! - Restyles the View Assets Connect UI page -
#3817
b128530
Thanks @MananTank! - Move connection manager creation to context instead of global singleton
thirdweb@5.40.0
Minor Changes
-
#3750
4a4a061
Thanks @joaquim-verges! - New PayEmbed modes and revamp TransactionButton flowYou can now configure the PayEmbed component to build 3 different flows:
- Fund wallets: Inline component that allows users to buy any currency. (default)
<PayEmbed client={client} payOptions={{ mode: "fund_wallet", }} />
- Direct payments: Take payments from Fiat or Crypto directly to your seller wallet.
<PayEmbed client={client} payOptions={{ mode: "direct_payment", paymentInfo: { sellerAddress: "0x...", chain: base, amount: "0.1", }, metadata: { name: "Black Hoodie (Size L)", image: "https://example.com/image.png", }, }} />
- Transaction payments: Let your users pay for onchain transactions with fiat or crypto on any chain.
<PayEmbed client={client} payOptions={{ mode: "transaction", transaction: claimTo({ contract, tokenId: 0n, to: toAddress, }), metadata: nft?.metadata, }} />
You can also configure the TransactionButton component to show metadata to personalize the transaction payment flow:
<TransactionButton transaction={() => { return transfer({ contract, amount: 10n, to: toAddress, }); }} payModal={{ metadata: { name: "Buy me a coffee", image: "https://example.com/image.png", }, }} />
-
#3822
3848327
Thanks @gregfromstl! - Adds the ability to open OAuth windows as a redirect. This is useful for embedded applications such as telegram web apps.Be sure to include your domain in the allowlisted domains for your client ID.
import { inAppWallet } from "thirdweb/wallets"; const wallet = inAppWallet({ auth: { mode: "redirect", }, });
Patch Changes
thirdweb@5.39.0
Minor Changes
-
#3785
105e523
Thanks @kien-ngo! - Add ClaimButton for claiming tokens from all thirdweb Drop contractsHigher level abstraction to claim tokens from all thirdweb Drop contracts
import { ClaimButton } from "thirdweb/react"; import { ethereum } from "thirdweb/chains"; <ClaimButton contractAddress="0x..." chain={ethereum} client={client} claimParams={{ type: "ERC721", quantity: 1n, }} > Claim now </ClaimButton>;
Patch Changes
-
#3792
5fabe66
Thanks @MananTank! - handlenull
value ofeffectiveGasPrice
insendTransaction
method oftoEthersSigner
adapter that throws error when trying to convert to BigNumber. This is causing issue in XDC Network (chain Id 50) and XDC Apothem testnet (chain id 51) -
#3804
cb616f7
Thanks @joaquim-verges! - Fix gas estimation on arbitrum sepolia -
#3524
8599fbf
Thanks @kumaryash90! - Modular contracts deployment setup -
#3782
c82c524
Thanks @joaquim-verges! - Allow overriding nonce for smart accounts -
#3801
a51f53f
Thanks @gregfromstl! - Fix RPC URL construction for chains -
#3805
5c9af85
Thanks @jnsdls! - [performance] - fix rpc client reuse -
#3796
c51f785
Thanks @joaquim-verges! - Handle polygon amoy gas station -
#3800
b15118a
Thanks @gregfromstl! - Minor style fixes on the Connect UI Send Funds page
thirdweb@5.38.0
Minor Changes
- #3766
9f555ca
Thanks @kien-ngo! - Add more chains: Astria EVM Dusknet (912559), Blast Sepolia (168587773), Celo (42220), Cronos (25), Degen (666666666), Fantom Testnet (4002), Fantom (250), Frame Tesnet (68840142), Gnosis Chiado Testnet (10200), Gnosis (100), GodWoken (71402), GodWoken Testnet (71401), Hokum Testnet (20482050), Localhost (1337), Loot chain (5151706), Manta Pacific (169), Manta Pacific Testnet (3441005), Moonbeam (1284), Palm Testnet (11297108099), Palm (11297108109), Polygon zkEvm Testnet (1442), Polygon zkEVM (1101), Rari Testnet (1918988905), Rari chain (1380012617), Scroll Alpha Testnet (534353), Scroll Sepolia Testnet (534353), Scroll (534352), Xai Sepolia (37714555429), Xai Mainnet(660279), zk Candy Sepolia (302)
Patch Changes
-
#3767
11b2ad0
Thanks @kien-ngo! - Expose roleMap and getRoleHash -
#3764
26d825b
Thanks @kien-ngo! - Add extension support for Lens Protocol -
#3779
d3c8302
Thanks @gregfromstl! - Improved in-app wallet sign-in speed -
#3769
a9a3f0f
Thanks @gregfromstl! - Fix deterministic deploys with specified versions -
#3687
f082af0
Thanks @kumaryash90! - Fix proxy resolution. Use implementation call in case of beacon.
thirdweb@5.37.0
Minor Changes
-
#3678
31ee4e5
Thanks @ElasticBottle! - Add discord login as an option of thirdweb in app wallet and ecosystem wallet loginsimport { inAppWallet } from "thirdweb/wallets"; const wallet = inAppWallet(); const account = await wallet.connect({ client, chain, strategy: "discord", });
-
#3716
ec3405b
Thanks @gregfromstl! - Adds Discord login to the React Native SDK
Patch Changes
-
#3746
870be08
Thanks @gregfromstl! - Update Connect UI tabs styling -
#3751
aba1266
Thanks @joaquim-verges! - Handle minimum amount in buy to crypto flow -
#3762
6a94696
Thanks @MananTank! - Fix Wallet switcher icon position in wallet details modal -
#3661
c6741b4
Thanks @joaquim-verges! - Handle ERC20 transaction value in Pay components -
#3748
24bcee2
Thanks @joaquim-verges! - Fix disconnect button color in light mode SIWE react native -
#3676
56b34ce
Thanks @kien-ngo! - Allow to add extra call data toprepareContractCall