Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
10 KiB
@thirdweb-dev/react
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]