Releases: thirdweb-dev/js
[email protected]
Patch Changes
-
#4237
b38308d
Thanks @gregfromstl! - Enable external redirects for electron supportimport { 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 inthirdweb/react
andthirdweb/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]
Minor Changes
-
#4191
42cdc3a
Thanks @gregfromstl! - Updates connect modal styles -
#4124
246701d
Thanks @gregfromstl! - Adds the ability to link a wallet in the Connect UI
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 typeconst 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]
Patch Changes
-
#4173
7778063
Thanks @gregfromstl! - Update Blobbie appearance -
#4154
9133b45
Thanks @kien-ngo! - Update tsdocs for Vote extensions -
#4150
a43907e
Thanks @kien-ngo! - Lens's resolveAddress for sending crypto with lens handles -
#4163
fc8daaa
Thanks @kien-ngo! - Export util method: isBytes -
#4165
43f9319
Thanks @kien-ngo! - Add GaslessOptions to useSendAndConfirmTransaction
[email protected]
Minor Changes
Patch Changes
-
#4120
8253524
Thanks @gregfromstl! - Throw error when no encryption key is provided to custom auth -
#4159
cf4443a
Thanks @gregfromstl! - Improves the Blobbie algorithm -
#4126
13764f1
Thanks @gregfromstl! - Connect UI cosmetic improvements -
#4157
355795a
Thanks @gregfromstl! - Fix text wrapping on Connect Button -
#4160
e0dcc64
Thanks @gregfromstl! - Fix connect button border on firefox browser -
#4156
f0d6e34
Thanks @gregfromstl! - Fix smart contract wallet signature validation on older chains
@thirdweb-dev/[email protected]
[email protected]
Patch Changes
- #4099
79260c8
Thanks @WyattMufson! - Add new auth fields to support redirect in web and electron applications
[email protected]
Minor Changes
-
#4045
3c32b99
Thanks @gregfromstl! - Update SIWE interfaceimport { 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! - AddonPurchaseSuccess
callback toPayEmbed
,ConnectButton
,TransactionButton
anduseSendTransaction
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]
[email protected]
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 walletsimport { 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
-
#4029
b0494f6
Thanks @gregfromstl! - Fix SIWE auth in ecosystem wallets -
#4015
05cee23
Thanks @gregfromstl! - Fix native AutoConnect -
#3997
dd7d28c
Thanks @gregfromstl! - Improved serializeTransaction interface to include separate signature input (maintains backwards compatibility) -
#4014
419873a
Thanks @kien-ngo! - Small fix for ethers5 adapter -
#3986
4d0e00a
Thanks @jarrodwatts! - add abstract l2 chain definition (ZKSync ZK stack) -
#4008
7cba594
Thanks @MananTank! - Fix "All Wallets" not shown by default in Pay UI when trying to connect a new wallet -
#3989
a4bc285
Thanks @MananTank! - Update the chain object in connection manager and wallets when chain objects passed to UI components are updated. -
#3996
2b4629b
Thanks @0xScratch! - Added Fraxtal and Mode Testnets to the chain-definitions -
#4032
c953c3f
Thanks @alecananian! - Addedenabled
param touseWalletBalance
hook
[email protected]
Patch Changes
-
#3976
358a757
Thanks @gregfromstl! - Fix wallet info retrieval for adapter wallets -
#3963
2e3c5e9
Thanks @jnsdls! - handle switching accounts inside a connected wallet in SIWE auth states -
#3934
d7e5930
Thanks @jxom! - Fix 6492 signature verification for undeployed accounts -
#3894
dc86fa2
Thanks @IDubuque! - updated pay interface for onramp + gas