Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
33 KiB
@thirdweb-dev/react
3.7.2
Patch Changes
-
#527
bdd9ed2Thanks @jnsdls! - fix dependency issues with @zag-js/react -
Updated dependencies []:
- @thirdweb-dev/[email protected]
3.7.1
Patch Changes
-
#520
8c81ca5Thanks @adam-maj! - Update auth and react-core dependencies -
Updated dependencies [
8c81ca5]:- @thirdweb-dev/[email protected]
3.7.0
Minor Changes
-
#460
a6c074cThanks @adam-maj! - All Auth hooks and configuration have been upgraded along with the major upgrade to Auth. This includes changes in necessaryauthConfigto theThirdwebProvider, as well as usage of theuseLogin,useLogout, anduseUserhooks.How to upgrade
In order to upgrade your frontend setup to account for these changes, you'll need to make the following changes to your app:
1. Remove
loginRedirectfromauthConfigIn your
ThirdwebProvider, you can remove theloginRedirectoption from theauthConfigobject, as theloginendpoint no longer uses redirects.export default function MyApp({ Component, pageProps }) { return ( <ThirdwebProvider authConfig={{ domain: "example.com", authUrl: "/api/auth", // No more loginRedirect }} > <Component {...pageProps} /> </ThirdwebProvider> ); }2. Update
useLoginanduseLogoutto use object destructuringThe
useLoginanduseLogouthooks now return an object with aloginandlogoutfunction (as well asisLoadingstates), respectively. You'll need to update your usage of these hooks to use object destructuring.import { useLogin, useLogout } from "@thirdweb-dev/react"; export default function Component() { const { login } = useLogin(); const { logout } = useLogout(); return ( <div> <button onClick={login}>Login</button> <button onClick={logout}>Logout</button> </div> ); }
Patch Changes
-
#514
48893c7Thanks @jnsdls! - switch to using the new@thirdweb-dev/react-corepackage to power@thirdweb-dev/react -
#493
f37e86bThanks @joaquim-verges! - Move solana dependencies to peer dependencies, please install them separately:npm install @thirdweb-dev/sdk @thirdweb-dev/react @metaplex-foundation/js @project-serum/anchor @solana/wallet-adapter-wallets -
#512
065c4dbThanks @ikethirdweb! - Updates useClaimedNFTs to only fetch claimed NFTs -
Updated dependencies [
48893c7,a6c074c,62b7388]:- @thirdweb-dev/[email protected]
3.6.11
Patch Changes
- #507
5047686Thanks @nachoiacovino! - Fix ConnectWallet network selector showing all options three times
3.6.10
3.6.9
3.6.8
Patch Changes
-
#422
08d04feThanks @yehia67! - AddbtnTitleprop to theConnectWalletcomponent. Now you can set customized string or child component to the connect button.
3.6.7
Patch Changes
3.6.6
Patch Changes
- #443
8c6cdaaThanks @joaquim-verges! - Fix magic link connector not connecting to the right chain
3.6.5
3.6.4
Patch Changes
3.6.3
3.6.2
Patch Changes
- #405
ccb7db4Thanks @nachoiacovino! - Add updateAll param to creators and royalty update hooks for Solana
3.6.1
Patch Changes
-
#392
846022eThanks @nachoiacovino! - Fix unlimited price for useActiveClaimConditionForWallet -
#388
7c0744aThanks @adam-maj! - Add support for total supply and pagination on get all
3.6.0
Patch Changes
-
#386
612bcddThanks @jnsdls! - [Gnosis Connector] - switch to safe.global hostname & add support for bsc and optimism chains -
#364
7cb8e59Thanks @joaquim-verges! - Add experimentaluseActiveClaimConditionForWallet()hook
3.5.2
Patch Changes
-
#369
2d3fca5Thanks @nachoiacovino! - Add useClaimerProofs hook -
#378
32d91efThanks @mykcryptodev! - round borders for buttons and menus on safari
3.5.1
3.5.0
3.4.5
3.4.4
Patch Changes
- #356
cc4613bThanks @nachoiacovino! - Add Pack and Multiwrap as NFTContract types
3.4.3
Patch Changes
- #353
1c24c3cThanks @nachoiacovino! - Add useUpdateCreators hook, fix CreatorInput schema
3.4.2
Patch Changes
-
#348
7d9a4c6Thanks @nachoiacovino! - [SOL] - adduseUpdateRoyaltySettings()hook [SOL] - changeuseRoyalty()hook ->useRoyaltySettings()for consistency -
#352
3522917Thanks @joaquim-verges! - expose useExecuteAuctionSale and useAcceptDirectListingOffer -
#351
aabbb14Thanks @jnsdls! - [EVM] - fix wallet connection during dev (hot reload)
3.4.1
Patch Changes
- #343
72227b2Thanks @joaquim-verges! - Expose new useOffers and useMakeOffer hooks
3.4.0
Minor Changes
-
#327
ef27aadThanks @jnsdls! - Gnosis Safe and Magic Link connectors are no longer included in the default export. They are now available as named exports instead.Gnosis Safe
Connector
- import { GnosisSafeConnector } from "@thirdweb-dev/react"; + import { GnosisSafeConnector } from "@thirdweb-dev/react/evm/connectors/gnosis-safe";Hook
- import { useGnosis } from "@thirdweb-dev/react"; + import { useGnosis } from "@thirdweb-dev/react/evm/connectors/gnosis-safe";Magic Link
Connector
- import { MagicLink } from "@thirdweb-dev/react"; + import { MagicConnector } from "@thirdweb-dev/react/evm/connectors/magic";Hook
- import { useMagic } from "@thirdweb-dev/react"; + import { useMagic } from "@thirdweb-dev/react/evm/connectors/magic";
Patch Changes
- #339
b03a902Thanks @nachoiacovino! - Fix docs for some functions
3.3.1
3.3.0
3.2.6
Patch Changes
-
#316
6ae5266Thanks @joaquim-verges! - Fix SIWE when using an external signer -
#310
9727502Thanks @nachoiacovino! - [SOL] - add useMintNFTSupply hook in react and accomodate inputs for it in SDK -
#319
2f8ec89Thanks @joaquim-verges! - Expose total claimed and unclaimed supply for erc721 drop contracts -
#318
bb1b4e6Thanks @nachoiacovino! - Add useMinimumNextBid hook and change invariant for other marketplace hooks
3.2.5
3.2.4
Patch Changes
- #301
86f0cefThanks @joaquim-verges! - Remove useAddress hook for now
3.2.3
Patch Changes
- #299
b1218cbThanks @joaquim-verges! - Recreate SDK on wallet changes for hook propagation
3.2.2
Patch Changes
-
#289
521a49cThanks @nachoiacovino! - Standarize useClaimNFT to evm -
#274
ad06c5bThanks @adam-maj! - Add solana auth support and plugins for react and auth package -
#269
b2cadf1Thanks @jnsdls! - [EVM] - remove deprecated chains from support -
#272
2bdf198Thanks @nachoiacovino! - Add claim conditions hook for Solana -
#291
86f6083Thanks @jnsdls! - [SOL] - expose.programonuseProgram()return type to mirror.contracton EVM -
#292
492a818Thanks @jnsdls! - [SOL] exposeuseAddress()hook that returns the connected wallet address in base58 -
#290
8096c78Thanks @jnsdls! - [SOL] -useClaimNFT()allow claiming to connected wallet without passing address explicitly [EVM] -useClaimNFT()allow claiming to connected wallet without passing address explicitly -
#263
d6bb61bThanks @jnsdls! - [EVM] - add chainId getter on contracts -
#282
1f41adbThanks @jarrodwatts! - Fix useActiveClaimCondition invariant failing for token ID 0
3.2.1
Patch Changes
- #264
f669d3eThanks @nachoiacovino! - Standarize data between evm/solana for useLazyMint hook
3.2.0
Patch Changes
-
#261
c8261b7Thanks @jnsdls! - [EVM] - align behavior ofuseContract()andgetContract()across react & sdk to both allow passing optional second params of contract types or ABIs -
#236
cac373bThanks @jnsdls! - [SOL] - do not require a connection, instead handle a network directly -
#251
ea41231Thanks @jnsdls! - fix missing Buffer implementation for WalletConnect and CoinbaseWallet connectors -
#253
b6fc298Thanks @jnsdls! - [EVM] - allow passing contractType as second param touseContract() -
#258
ac232b5Thanks @nachoiacovino! - Accept SmartContract instead of erc20 instance -
#245
1972f3eThanks @jnsdls! - [SOL] - exposeuseBurnNFThook -
#255
9b92697Thanks @jnsdls! - [EVM] -useContract()and<Web3Button />can now accept an optional ABI directly and will return aSmartContractbased on it
3.1.2
Patch Changes
- #229
9c8a3fbThanks @joaquim-verges! - [SOL] Expose useClaimNFT hook
3.1.1
Patch Changes
3.1.0
Minor Changes
- #213
e187d21Thanks @joaquim-verges! - New @thirdweb-dev/react/solana entrypoint
Patch Changes
-
#208
7c86babThanks @jnsdls! - add a bunch of initial solana hooks -
#218
1eaedc2Thanks @jnsdls! - allow bothnullandundefinedto be passed as aRequiredParam -
#220
37a707fThanks @joaquim-verges! - Fix chakra zag-menu breaking update
3.0.8
Patch Changes
-
#209
1bda83bThanks @jnsdls! - fix useLayoutEffect during SSR warning -
Updated dependencies [
ce05bfd]:- @thirdweb-dev/[email protected]
3.0.7
Patch Changes
-
#197
f4f05bdThanks @jnsdls! - make it obvious when the will trigger a network switch -
Updated dependencies [
5f5ab01,5f5ab01]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
3.0.6
Patch Changes
-
#179
63258bcThanks @joaquim-verges! - Expose simple provider and useSDK hooks for Solana -
Updated dependencies [
a80fc97]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
3.0.5
Patch Changes
-
#167
4169b94Thanks @joaquim-verges! - Syntax changes for react native support -
#168
208b038Thanks @jnsdls! - use internals wherever possible to allow wider usecases with<ThirdwebSDKProvider>& add invariants to catch improper use of functionality that requires the full<ThirdwebProviderearlier -
#168
208b038Thanks @jnsdls! - fix case where<ConnectWallet />button would get stuck when user cancels connection -
#168
208b038Thanks @jnsdls! - allow passingclassNameto<ConnectWallet />and<Web3Button />for possible style overrides -
Updated dependencies [
4169b94,3b877ba,b54f95d,f8ab477,772f843,a9ec190,208b038,5345479]:- @thirdweb-dev/[email protected]
3.0.4
Patch Changes
- Updated dependencies []:
- @thirdweb-dev/[email protected]
3.0.3
Patch Changes
-
#143
51dde28Thanks @joaquim-verges! - Fix using external signers with ThirdwebSDKProvider -
Updated dependencies [
51dde28,9d74a43,b234c58]:- @thirdweb-dev/[email protected]
3.0.2
Patch Changes
- Updated dependencies [
42c79e9,fe8751e]:- @thirdweb-dev/[email protected]
3.0.1
Patch Changes
- Updated dependencies [
98dd64a]:- @thirdweb-dev/[email protected]
3.0.0
Major Changes
-
#19
82627eaThanks @joaquim-verges! - 3.0.0 updateMAJOR VERSION CHANGE
- 85% reduction in package size!
- Custom contracts are now first class citizens
Breaking changes:
- Hooks now accept custom contracts direclty and handle the logic internally
before
const { contract } = useContract(...) const { data: nfts } = useNFTs(contract?.nft) const { mutation: claim } = useClaimNFT(contract?.nft)after
const { contract } = useContract(...) // works with any ERC721/ERC1155 contract const { data: nfts} = useNFTs(contract) const { mutation: claim } = useClaimNFT(contract)- Custom contract hooks for reading and writing have been renamed:
before
const { contract } = useContract(...) const { data } = useContractData(contract, "myReadFunction", ...args); const { mutate: myFunction } = useContractCall(contract, "myWriteFunction");after
const { contract } = useContract(...) const { data } = useContractRead(contract, "myReadFunction", ...args); const { mutate: myFunction } = useContractWrite(contract, "myWriteFunction");- Web3Button benefits from the new Extension detection API:
before
<Web3Button contractAddress={...} action={(contract) => contract.nft?.drop?.claim?.to(...)} > Claim </Web3Button>after
<Web3Button contractAddress={...} action={(contract) => contract.erc721.claim(...) } > Claim </Web3Button>
Minor Changes
Patch Changes
-
#109
f7ccc30Thanks @adam-maj! - Add enabled check to useUser -
#114
1df2deaThanks @jnsdls! - only show deprecation method once & add optimism kovan and arbitrum rinkeby to deprecated networks -
#91
2adb8ffThanks @kumaryash90! - Add arbitrum and optimism goerli; rename testnets -
Updated dependencies [
a70b590,a37bc00,b442c97,0fa6f3f,2adb8ff,5a5bc36,820a519,0fa6f3f,82627ea]:- @thirdweb-dev/[email protected]
2.9.7
Patch Changes
- Updated dependencies [
baa87a1,f2bdf47,4079326,05353fd]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
2.9.6
Patch Changes
-
#61
3287c2bThanks @jnsdls! - fix versions in dependencies before releasing stable -
Updated dependencies [
3287c2b]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
2.9.5
Patch Changes
- Updated dependencies [
6ba9cad]:- @thirdweb-dev/[email protected]
2.9.4
Patch Changes
-
Updated dependencies [
5644ccd]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
2.9.3
Patch Changes
-
Updated dependencies [
091f175]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
2.9.2
Patch Changes
- Updated dependencies [
924247a]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
2.9.1
Patch Changes
-
#50
c903ca8Thanks @jnsdls! - apply (sane) sandboxing to<MediaRenderer /> -
Updated dependencies [
e59735b,2eb7e94]:- @thirdweb-dev/[email protected]
2.9.0
Minor Changes
- #42
46ad691Thanks @jnsdls! - removefunctionName+paramsoption from<Web3Button>- useaction={...}instead
Patch Changes
-
#45
ed639d6Thanks @jnsdls! - switch back to preconstruct for building -
#46
349b5c1Thanks @jnsdls! - imrprove babel & tsconfig settings -
Updated dependencies [
ed639d6,349b5c1,46ad691,5731ac2,5731ac2]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
2.8.1
Patch Changes
02c2b52: force version- Updated dependencies [
02c2b52]- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
2.8.0
Minor Changes
3abe26c: initialze monorepo packages
Patch Changes
- Updated dependencies [
3abe26c]- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
2.7.5
Patch Changes
d0a7368: mark old contract hooks as deprecated (useuseContract()instead)d4abb09: Add support for Binance chains (BSC)86e3b58: use storage helpers from @thirdweb-dev/storagecb439a9: useTotalCount always returns unclaimed and claimed tokens7fa920e:<Web3Button />now acceptsactioninstead ofcallable- Updated dependencies [
d4abb09] - Updated dependencies [
274afb5] - Updated dependencies [
86e3b58] - Updated dependencies [
86e3b58] - Updated dependencies [
0c78b16]- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]