diff --git a/.changeset/red-baboons-share.md b/.changeset/red-baboons-share.md deleted file mode 100644 index effa775451a..00000000000 --- a/.changeset/red-baboons-share.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@thirdweb-dev/react-native-adapter": patch -"thirdweb": patch ---- - -Support for Expo 52 and React Native 0.76 diff --git a/.changeset/rude-radios-smash.md b/.changeset/rude-radios-smash.md deleted file mode 100644 index c8df1d005ac..00000000000 --- a/.changeset/rude-radios-smash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -Display error message when failing to fetch account status from endpoint outside of unauthorized requests diff --git a/.changeset/silver-weeks-rescue.md b/.changeset/silver-weeks-rescue.md deleted file mode 100644 index 7663c299bca..00000000000 --- a/.changeset/silver-weeks-rescue.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -Properly updates active smart wallet when switching signer account on EOA wallet diff --git a/.changeset/stupid-buses-wink.md b/.changeset/stupid-buses-wink.md deleted file mode 100644 index 99248b52728..00000000000 --- a/.changeset/stupid-buses-wink.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -"thirdweb": minor ---- - -Add 2 new Pay functions: convertFiatToCrypto and convertCryptoToFiat - -Examples: - -### Convert fiat (USD) to crypto -```ts -import { convertFiatToCrypto } from "thirdweb/pay"; -import { ethereum } from "thirdweb/chains"; - -// Convert 2 cents to ETH -const result = await convertFiatToCrypto({ - from: "USD", - // the token address. For native token, use NATIVE_TOKEN_ADDRESS - to: "0x...", - // the chain (of the chain where the token belong to) - chain: ethereum, - // 2 cents - fromAmount: 0.02, -}); -// Result: 0.0000057 (a number) -``` - -### Convert crypto to fiat (USD) - -```ts -import { convertCryptoToFiat } from "thirdweb/pay"; - -// Get Ethereum price -const result = convertCryptoToFiat({ - fromTokenAddress: NATIVE_TOKEN_ADDRESS, - to: "USD", - chain: ethereum, - fromAmount: 1, -}); - -// Result: 3404.11 (number) -``` \ No newline at end of file diff --git a/.changeset/tame-melons-poke.md b/.changeset/tame-melons-poke.md deleted file mode 100644 index 154ffaf9ce0..00000000000 --- a/.changeset/tame-melons-poke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -Show warning when sponsorship policy rejects a transaction diff --git a/.changeset/wild-games-vanish.md b/.changeset/wild-games-vanish.md deleted file mode 100644 index 3e26297745a..00000000000 --- a/.changeset/wild-games-vanish.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -Handle 0 value for maxPriorityFeePerGas in 712 transactions diff --git a/packages/react-native-adapter/CHANGELOG.md b/packages/react-native-adapter/CHANGELOG.md index 44d558b4cce..e4647bc8610 100644 --- a/packages/react-native-adapter/CHANGELOG.md +++ b/packages/react-native-adapter/CHANGELOG.md @@ -1,5 +1,11 @@ # @thirdweb-dev/react-native-adapter +## 1.5.2 + +### Patch Changes + +- [#5594](https://github.com/thirdweb-dev/js/pull/5594) [`b7c8854`](https://github.com/thirdweb-dev/js/commit/b7c885432726eeaf3401217573f2cff0f5247ff7) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Support for Expo 52 and React Native 0.76 + ## 1.5.1 ### Patch Changes diff --git a/packages/react-native-adapter/package.json b/packages/react-native-adapter/package.json index 46103b054ea..075724fa65c 100644 --- a/packages/react-native-adapter/package.json +++ b/packages/react-native-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@thirdweb-dev/react-native-adapter", - "version": "1.5.1", + "version": "1.5.2", "repository": { "type": "git", "url": "git+https://github.com/thirdweb-dev/js.git#main" diff --git a/packages/thirdweb/CHANGELOG.md b/packages/thirdweb/CHANGELOG.md index 93eee62c40a..10489a2a769 100644 --- a/packages/thirdweb/CHANGELOG.md +++ b/packages/thirdweb/CHANGELOG.md @@ -1,5 +1,60 @@ # thirdweb +## 5.73.0 + +### Minor Changes + +- [#5457](https://github.com/thirdweb-dev/js/pull/5457) [`57fa96b`](https://github.com/thirdweb-dev/js/commit/57fa96b268671f19c7f57fa2208fb83e2b0e75b5) Thanks [@kien-ngo](https://github.com/kien-ngo)! - Add 2 new Pay functions: convertFiatToCrypto and convertCryptoToFiat + + Examples: + + ### Convert fiat (USD) to crypto + + ```ts + import { convertFiatToCrypto } from "thirdweb/pay"; + import { ethereum } from "thirdweb/chains"; + + // Convert 2 cents to ETH + const result = await convertFiatToCrypto({ + from: "USD", + // the token address. For native token, use NATIVE_TOKEN_ADDRESS + to: "0x...", + // the chain (of the chain where the token belong to) + chain: ethereum, + // 2 cents + fromAmount: 0.02, + }); + // Result: 0.0000057 (a number) + ``` + + ### Convert crypto to fiat (USD) + + ```ts + import { convertCryptoToFiat } from "thirdweb/pay"; + + // Get Ethereum price + const result = convertCryptoToFiat({ + fromTokenAddress: NATIVE_TOKEN_ADDRESS, + to: "USD", + chain: ethereum, + fromAmount: 1, + }); + + // Result: 3404.11 (number) + ``` + +### Patch Changes + +- [#5594](https://github.com/thirdweb-dev/js/pull/5594) [`b7c8854`](https://github.com/thirdweb-dev/js/commit/b7c885432726eeaf3401217573f2cff0f5247ff7) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Support for Expo 52 and React Native 0.76 + +- [#5595](https://github.com/thirdweb-dev/js/pull/5595) [`9b45aae`](https://github.com/thirdweb-dev/js/commit/9b45aae699c6f927816a415cabd61bb30bef72b1) Thanks [@ElasticBottle](https://github.com/ElasticBottle)! - Display error message when failing to fetch account status from endpoint outside of unauthorized requests + +- [#5592](https://github.com/thirdweb-dev/js/pull/5592) [`c3d7b66`](https://github.com/thirdweb-dev/js/commit/c3d7b662c402f96696141070ea42b2e10d94e1f8) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Properly updates active smart wallet when switching signer account on EOA wallet + +- [#5577](https://github.com/thirdweb-dev/js/pull/5577) [`b117cb1`](https://github.com/thirdweb-dev/js/commit/b117cb19279a7807fc956e77ae144788112eec7f) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Show warning when sponsorship policy rejects a transaction + +- [#5531](https://github.com/thirdweb-dev/js/pull/5531) [`1e9a6c7`](https://github.com/thirdweb-dev/js/commit/1e9a6c7d8ae28012956b688f6e0af6f94c075181) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Handle 0 value for maxPriorityFeePerGas in 712 transactions + ## 5.72.0 ### Minor Changes diff --git a/packages/thirdweb/package.json b/packages/thirdweb/package.json index 3eb07df739e..f0feeff791c 100644 --- a/packages/thirdweb/package.json +++ b/packages/thirdweb/package.json @@ -1,6 +1,6 @@ { "name": "thirdweb", - "version": "5.72.0", + "version": "5.73.0", "repository": { "type": "git", "url": "git+https://github.com/thirdweb-dev/js.git#main" @@ -127,24 +127,60 @@ }, "typesVersions": { "*": { - "adapters/*": ["./dist/types/exports/adapters/*.d.ts"], - "auth": ["./dist/types/exports/auth.d.ts"], - "chains": ["./dist/types/exports/chains.d.ts"], - "contract": ["./dist/types/exports/contract.d.ts"], - "deploys": ["./dist/types/exports/deploys.d.ts"], - "event": ["./dist/types/exports/event.d.ts"], - "extensions/*": ["./dist/types/exports/extensions/*.d.ts"], - "pay": ["./dist/types/exports/pay.d.ts"], - "react": ["./dist/types/exports/react.d.ts"], - "react-native": ["./dist/types/exports/react-native.d.ts"], - "rpc": ["./dist/types/exports/rpc.d.ts"], - "storage": ["./dist/types/exports/storage.d.ts"], - "transaction": ["./dist/types/exports/transaction.d.ts"], - "utils": ["./dist/types/exports/utils.d.ts"], - "wallets": ["./dist/types/exports/wallets.d.ts"], - "wallets/*": ["./dist/types/exports/wallets/*.d.ts"], - "modules": ["./dist/types/exports/modules.d.ts"], - "social": ["./dist/types/exports/social.d.ts"] + "adapters/*": [ + "./dist/types/exports/adapters/*.d.ts" + ], + "auth": [ + "./dist/types/exports/auth.d.ts" + ], + "chains": [ + "./dist/types/exports/chains.d.ts" + ], + "contract": [ + "./dist/types/exports/contract.d.ts" + ], + "deploys": [ + "./dist/types/exports/deploys.d.ts" + ], + "event": [ + "./dist/types/exports/event.d.ts" + ], + "extensions/*": [ + "./dist/types/exports/extensions/*.d.ts" + ], + "pay": [ + "./dist/types/exports/pay.d.ts" + ], + "react": [ + "./dist/types/exports/react.d.ts" + ], + "react-native": [ + "./dist/types/exports/react-native.d.ts" + ], + "rpc": [ + "./dist/types/exports/rpc.d.ts" + ], + "storage": [ + "./dist/types/exports/storage.d.ts" + ], + "transaction": [ + "./dist/types/exports/transaction.d.ts" + ], + "utils": [ + "./dist/types/exports/utils.d.ts" + ], + "wallets": [ + "./dist/types/exports/wallets.d.ts" + ], + "wallets/*": [ + "./dist/types/exports/wallets/*.d.ts" + ], + "modules": [ + "./dist/types/exports/modules.d.ts" + ], + "social": [ + "./dist/types/exports/social.d.ts" + ] } }, "browser": {