From a09ac05b49d099e8772769c7afa972f4a5e1881e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 11 Jan 2024 22:48:39 +0000 Subject: [PATCH] Version Packages --- .changeset/blue-coins-attend.md | 5 - .changeset/curvy-pants-confess.md | 5 - .changeset/dull-hornets-learn.md | 5 - .changeset/fuzzy-windows-tickle.md | 5 - .changeset/gold-zoos-kiss.md | 6 -- .changeset/lucky-pianos-sing.md | 6 -- .changeset/nervous-guests-sort.md | 5 - .changeset/rich-clocks-hammer.md | 5 - .changeset/rude-candles-stare.md | 5 - .changeset/silent-monkeys-help.md | 52 ----------- .changeset/ten-jokes-tickle.md | 7 -- .changeset/tidy-falcons-listen.md | 84 ----------------- .changeset/tiny-scissors-raise.md | 5 - .changeset/two-geckos-refuse.md | 5 - .changeset/unlucky-horses-sort.md | 6 -- .changeset/warm-clocks-sell.md | 5 - packages/auth/CHANGELOG.md | 7 ++ packages/auth/package.json | 2 +- packages/chains/CHANGELOG.md | 6 ++ packages/chains/package.json | 2 +- packages/cli/CHANGELOG.md | 11 +++ packages/cli/package.json | 2 +- packages/eslint-config-thirdweb/CHANGELOG.md | 6 ++ packages/eslint-config-thirdweb/package.json | 2 +- packages/react-core/CHANGELOG.md | 98 ++++++++++++++++++++ packages/react-core/package.json | 2 +- packages/react-native-compat/CHANGELOG.md | 2 + packages/react-native-compat/package.json | 2 +- packages/react-native/CHANGELOG.md | 72 ++++++++++++++ packages/react-native/package.json | 2 +- packages/react/CHANGELOG.md | 96 +++++++++++++++++++ packages/react/package.json | 2 +- packages/sdk/CHANGELOG.md | 17 ++++ packages/sdk/package.json | 2 +- packages/service-utils/CHANGELOG.md | 6 ++ packages/service-utils/package.json | 2 +- packages/unity-js-bridge/CHANGELOG.md | 12 +++ packages/unity-js-bridge/package.json | 2 +- packages/wallets/CHANGELOG.md | 14 +++ packages/wallets/package.json | 2 +- 40 files changed, 359 insertions(+), 223 deletions(-) delete mode 100644 .changeset/blue-coins-attend.md delete mode 100644 .changeset/curvy-pants-confess.md delete mode 100644 .changeset/dull-hornets-learn.md delete mode 100644 .changeset/fuzzy-windows-tickle.md delete mode 100644 .changeset/gold-zoos-kiss.md delete mode 100644 .changeset/lucky-pianos-sing.md delete mode 100644 .changeset/nervous-guests-sort.md delete mode 100644 .changeset/rich-clocks-hammer.md delete mode 100644 .changeset/rude-candles-stare.md delete mode 100644 .changeset/silent-monkeys-help.md delete mode 100644 .changeset/ten-jokes-tickle.md delete mode 100644 .changeset/tidy-falcons-listen.md delete mode 100644 .changeset/tiny-scissors-raise.md delete mode 100644 .changeset/two-geckos-refuse.md delete mode 100644 .changeset/unlucky-horses-sort.md delete mode 100644 .changeset/warm-clocks-sell.md diff --git a/.changeset/blue-coins-attend.md b/.changeset/blue-coins-attend.md deleted file mode 100644 index 6cc6df38a9e..00000000000 --- a/.changeset/blue-coins-attend.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@thirdweb-dev/wallets": patch ---- - -Implements signedData for LocalWallet diff --git a/.changeset/curvy-pants-confess.md b/.changeset/curvy-pants-confess.md deleted file mode 100644 index 225926dfe20..00000000000 --- a/.changeset/curvy-pants-confess.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@thirdweb-dev/react-native": patch ---- - -improve typechecking for deepMerge function diff --git a/.changeset/dull-hornets-learn.md b/.changeset/dull-hornets-learn.md deleted file mode 100644 index 09c6232000d..00000000000 --- a/.changeset/dull-hornets-learn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@thirdweb-dev/react-core": patch ---- - -Add hook for creating direct listings in batch for Marketplace v3 diff --git a/.changeset/fuzzy-windows-tickle.md b/.changeset/fuzzy-windows-tickle.md deleted file mode 100644 index 395086ec8f1..00000000000 --- a/.changeset/fuzzy-windows-tickle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@thirdweb-dev/chains": patch ---- - -update chains diff --git a/.changeset/gold-zoos-kiss.md b/.changeset/gold-zoos-kiss.md deleted file mode 100644 index 7ce7c1eb5fe..00000000000 --- a/.changeset/gold-zoos-kiss.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@thirdweb-dev/react-native": patch -"@thirdweb-dev/react": patch ---- - -Add Filipino language to React and React Native SDK diff --git a/.changeset/lucky-pianos-sing.md b/.changeset/lucky-pianos-sing.md deleted file mode 100644 index f04bc2a2950..00000000000 --- a/.changeset/lucky-pianos-sing.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@thirdweb-dev/wallets": patch -"@thirdweb-dev/sdk": patch ---- - -Fix gas estimations for local and embedded wallets diff --git a/.changeset/nervous-guests-sort.md b/.changeset/nervous-guests-sort.md deleted file mode 100644 index 2293d71186f..00000000000 --- a/.changeset/nervous-guests-sort.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@thirdweb-dev/service-utils": patch ---- - -fix checkout service name diff --git a/.changeset/rich-clocks-hammer.md b/.changeset/rich-clocks-hammer.md deleted file mode 100644 index 8d7de21afae..00000000000 --- a/.changeset/rich-clocks-hammer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@thirdweb-dev/react-native": patch ---- - -Adds Turkish support as locale 'tr' diff --git a/.changeset/rude-candles-stare.md b/.changeset/rude-candles-stare.md deleted file mode 100644 index 81c16e020cc..00000000000 --- a/.changeset/rude-candles-stare.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@thirdweb-dev/react-native": patch ---- - -Correctly pass sdkOptions down diff --git a/.changeset/silent-monkeys-help.md b/.changeset/silent-monkeys-help.md deleted file mode 100644 index 674469fb83e..00000000000 --- a/.changeset/silent-monkeys-help.md +++ /dev/null @@ -1,52 +0,0 @@ ---- -"@thirdweb-dev/react-native": minor ---- - -### API changed for creating wallet configurator - -( This is only relevant if you are creating your own wallet configurator - If you are using the wallet configurators provided by thirdweb such as `metamaskWallet()`, `coinbaseWallet()` etc - This API change does not affect you ) - -We have introduce a few changes to how the wallet configurator should be created: - -Do not use any wallet connection hooks in the wallet configurator. Only use the `props` passed in the `connectUI` and `selectUI`. The wallet configurator's `connectUI` and `selectUI` now gets below mentioned additional props so that you can avoid using the wallet connection hooks - -- `props.connect` - replaces the `useConnect` hook usage -- `props.connectionStatus` - replaces the `useConnectionStatus` hook usage -- `props.setConnectionStatus` - replaces the `useSetConnectionStatus` hook usage -- `props.setConnectedWallet` - replaces the `useSetConnectedWallet` hook usage -- `props.createWalletInstance` - replaces the `useCreateWalletInstance` hook usage -- `props.connectedWalletAddress` - replaces the `useAddress` hook usage - -#### Example - -```tsx -import { WalletConfig } from "@thirdweb-dev/react-native"; -import { MyCustomWallet } from "./MyCustomWallet"; // your custom wallet class - -// your custom wallet configurator -function myCustomWallet(): WalletConfig { - return { - id: "MyCustomWallet", - meta: { - name: "FooBar", - iconURL: "https://link-to-the-wallet-icon.png", - }, - create(walletOptions) { - return new MyCustomWallet(walletOptions); - }, - // only use the props passed in the connectUI and selectUI - // do not use any wallet connection hooks that read or write to the wallet connection state - connectUI(props) { - // const connect = useConnect(); -> old - const connect = props.connect; // new - - return
....
; - }, - selectUI(props) { - return
....
; - }, - }; -} -``` - -`onLocallyConnected` has been removed from the `connectUI` props - You no longer need to worry about whether a wallet is part of another wallet's connection flow or not - just use the regular `props` passed in the `connectUI` and `selectUI` and it will be handled automatically. diff --git a/.changeset/ten-jokes-tickle.md b/.changeset/ten-jokes-tickle.md deleted file mode 100644 index 831f0aacda8..00000000000 --- a/.changeset/ten-jokes-tickle.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@thirdweb-dev/react-core": patch ---- - -Fix return type of `useUnclaimedNFTs` hook. - -This fixes https://github.com/thirdweb-dev/js/issues/2110 diff --git a/.changeset/tidy-falcons-listen.md b/.changeset/tidy-falcons-listen.md deleted file mode 100644 index 98bf6489a71..00000000000 --- a/.changeset/tidy-falcons-listen.md +++ /dev/null @@ -1,84 +0,0 @@ ---- -"@thirdweb-dev/react-core": minor -"@thirdweb-dev/react": minor ---- - -### New `ConnectEmbed` component and `useShowConnectEmbed` hook - -- Add `ConnectEmbed` component and `useShowConnectEmbed` hook allow embedding the `ConnectWallet`'s Modal directly into the page. -- `useShowConnectEmbed` returns `true` if the ``should be rendered. It returns`true` if either one of the following conditions are met: - - - Wallet is NOT connected - - Wallet IS connected but the user is NOT signed in and `auth` is required ( loginOptional is NOT set to false ) - - ```tsx - function Example() { - const loginOptional = false; - const showConnectEmbed = useShowConnectEmbed(loginOptional); - - if (!showConnectEmbed) { - return
Wallet is connected
; - } - - return ( - - ); - } - ``` - -### `ConnectWallet` component changes - -- Fix double connection issue when Connecting a Safe / Smart Wallet. Now the personal wallet will not be set as the active wallet - only the final wallet will be set as the active wallet. This fixes the issue of hooks like `useWallet`, `useAddress`, `useConnectionStatus` etc showing the wrong wallet / address / connection status for a brief moment when connecting a Safe / Smart Wallet. - -- Add "Disconnect Wallet" button in "Sign in" Screen and don't disconnect wallet when the "Sign in" screen is dismissed by closing the modal. This makes this screen reusable for both `ConnectWallet` and `ConnectEmbed` components and also improves the user experience. - -### API changed for creating wallet configurator - -_This is only relevant if you are creating your own wallet configurator - If you are using the wallet configurators provided by thirdweb such as `metamaskWallet()`, `coinbaseWallet()` etc - This API change does not affect you_ - -To Fix the above mentioned "double connection" issue in the `ConnectWallet` component, We have introduce a few changes to how the wallet configurator should be created. - -Do not use any wallet connection hooks in the wallet configurator. Only use the `props` passed in the `connectUI` and `selectUI`. The wallet configurator's `connectUI` and `selectUI` now gets below mentioned additional props so that you can avoid using the wallet connection hooks - -- `props.connect` - replaces the `useConnect` hook usage -- `props.connectionStatus` - replaces the `useConnectionStatus` hook usage -- `props.setConnectionStatus` - replaces the `useSetConnectionStatus` hook usage -- `props.setConnectedWallet` - replaces the `useSetConnectedWallet` hook usage -- `props.createWalletInstance` - replaces the `useCreateWalletInstance` hook usage -- `props.connectedWalletAddress` - replaces the `useAddress` hook usage - -#### Example - -```tsx -import { WalletConfig } from "@thirdweb-dev/react"; -import { MyCustomWallet } from "./MyCustomWallet"; // your custom wallet class - -// your custom wallet configurator -function myCustomWallet(): WalletConfig { - return { - id: "MyCustomWallet", - meta: { - name: "FooBar", - iconURL: "https://link-to-the-wallet-icon.png", - }, - create(walletOptions) { - return new MyCustomWallet(walletOptions); - }, - // only use the props passed in the connectUI and selectUI - // do not use any wallet connection hooks that read or write to the wallet connection state - connectUI(props) { - // const connect = useConnect(); -> old - const connect = props.connect; // new - - return
....
; - }, - selectUI(props) { - return
....
; - }, - }; -} -``` diff --git a/.changeset/tiny-scissors-raise.md b/.changeset/tiny-scissors-raise.md deleted file mode 100644 index ca268c02a44..00000000000 --- a/.changeset/tiny-scissors-raise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@thirdweb-dev/sdk": patch ---- - -Add pagination to ERC721's getAllOwners method diff --git a/.changeset/two-geckos-refuse.md b/.changeset/two-geckos-refuse.md deleted file mode 100644 index 78cb426ee42..00000000000 --- a/.changeset/two-geckos-refuse.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@thirdweb-dev/react-native": patch ---- - -Update WalletConnectUI to use new arch diff --git a/.changeset/unlucky-horses-sort.md b/.changeset/unlucky-horses-sort.md deleted file mode 100644 index 145b2c261b9..00000000000 --- a/.changeset/unlucky-horses-sort.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"eslint-config-thirdweb": patch -"@thirdweb-dev/react": patch ---- - -Enforce react-hooks/exhaustive-deps lint rule diff --git a/.changeset/warm-clocks-sell.md b/.changeset/warm-clocks-sell.md deleted file mode 100644 index b6fd0980fa9..00000000000 --- a/.changeset/warm-clocks-sell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@thirdweb-dev/sdk": patch ---- - -Resolve beacon from beacon-proxy diff --git a/packages/auth/CHANGELOG.md b/packages/auth/CHANGELOG.md index 1093f98fcc6..56dd787f2c0 100644 --- a/packages/auth/CHANGELOG.md +++ b/packages/auth/CHANGELOG.md @@ -1,5 +1,12 @@ # @thirdweb-dev/auth +## 4.1.23 + +### Patch Changes + +- Updated dependencies [[`90a2f2d4`](https://github.com/thirdweb-dev/js/commit/90a2f2d435df796fa9cee4e78d540ecfa10d9166), [`27c00ef7`](https://github.com/thirdweb-dev/js/commit/27c00ef779fd6386b529598a65346bdd1d6ecc70)]: + - @thirdweb-dev/wallets@2.4.1 + ## 4.1.22 ### Patch Changes diff --git a/packages/auth/package.json b/packages/auth/package.json index be5792e15f8..1705f505896 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -1,6 +1,6 @@ { "name": "@thirdweb-dev/auth", - "version": "4.1.22", + "version": "4.1.23", "main": "dist/thirdweb-dev-auth.cjs.js", "module": "dist/thirdweb-dev-auth.esm.js", "browser": { diff --git a/packages/chains/CHANGELOG.md b/packages/chains/CHANGELOG.md index e7eda80de50..7f5c69d50ee 100644 --- a/packages/chains/CHANGELOG.md +++ b/packages/chains/CHANGELOG.md @@ -1,5 +1,11 @@ # @thirdweb-dev/chains +## 0.1.63 + +### Patch Changes + +- [#2145](https://github.com/thirdweb-dev/js/pull/2145) [`d3637a16`](https://github.com/thirdweb-dev/js/commit/d3637a160d088dde6e35dc213ee611b73b831c3f) Thanks [@jnsdls](https://github.com/jnsdls)! - update chains + ## 0.1.62 ### Patch Changes diff --git a/packages/chains/package.json b/packages/chains/package.json index c8f29373bc8..650ae62eb73 100644 --- a/packages/chains/package.json +++ b/packages/chains/package.json @@ -1,6 +1,6 @@ { "name": "@thirdweb-dev/chains", - "version": "0.1.62", + "version": "0.1.63", "main": "dist/thirdweb-dev-chains.cjs.js", "module": "dist/thirdweb-dev-chains.esm.js", "exports": { diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 6cae8375158..0a5fbea3de5 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,16 @@ # thirdweb +## 0.13.31 + +### Patch Changes + +- Updated dependencies [[`90a2f2d4`](https://github.com/thirdweb-dev/js/commit/90a2f2d435df796fa9cee4e78d540ecfa10d9166), [`d3637a16`](https://github.com/thirdweb-dev/js/commit/d3637a160d088dde6e35dc213ee611b73b831c3f), [`27c00ef7`](https://github.com/thirdweb-dev/js/commit/27c00ef779fd6386b529598a65346bdd1d6ecc70), [`eb6544ff`](https://github.com/thirdweb-dev/js/commit/eb6544ffc88385dafd20eabd6cd00ba2b8ba73d3), [`756d5cc9`](https://github.com/thirdweb-dev/js/commit/756d5cc96080964710fafaf2b16ce51124f57808)]: + - @thirdweb-dev/wallets@2.4.1 + - @thirdweb-dev/chains@0.1.63 + - @thirdweb-dev/sdk@4.0.26 + - @thirdweb-dev/auth@4.1.23 + - @thirdweb-dev/storage@2.0.8 + ## 0.13.30 ### Patch Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index 3e383b86347..55b476b1299 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,7 +1,7 @@ { "name": "thirdweb", "main": "dist/cli/index.js", - "version": "0.13.30", + "version": "0.13.31", "repository": "https://github.com/thirdweb-dev/js/tree/main/packages/cli", "author": "thirdweb eng ", "license": "Apache-2.0", diff --git a/packages/eslint-config-thirdweb/CHANGELOG.md b/packages/eslint-config-thirdweb/CHANGELOG.md index d9e7712387e..b75bedc06c3 100644 --- a/packages/eslint-config-thirdweb/CHANGELOG.md +++ b/packages/eslint-config-thirdweb/CHANGELOG.md @@ -1,5 +1,11 @@ # eslint-config-thirdweb +## 0.1.7 + +### Patch Changes + +- [#2138](https://github.com/thirdweb-dev/js/pull/2138) [`6047d67d`](https://github.com/thirdweb-dev/js/commit/6047d67daa5d48e6521b4d71b0c1687742ba7d01) Thanks [@MananTank](https://github.com/MananTank)! - Enforce react-hooks/exhaustive-deps lint rule + ## 0.1.6 ### Patch Changes diff --git a/packages/eslint-config-thirdweb/package.json b/packages/eslint-config-thirdweb/package.json index f4a2e6b2fe3..9ee94b7839f 100644 --- a/packages/eslint-config-thirdweb/package.json +++ b/packages/eslint-config-thirdweb/package.json @@ -1,6 +1,6 @@ { "name": "eslint-config-thirdweb", - "version": "0.1.6", + "version": "0.1.7", "main": "index.js", "license": "Apache-2.0", "dependencies": { diff --git a/packages/react-core/CHANGELOG.md b/packages/react-core/CHANGELOG.md index d9a7c56be51..73a97c3c34c 100644 --- a/packages/react-core/CHANGELOG.md +++ b/packages/react-core/CHANGELOG.md @@ -1,5 +1,103 @@ # @thirdweb-dev/react-core +## 4.3.0 + +### Minor Changes + +- [#2055](https://github.com/thirdweb-dev/js/pull/2055) [`0f9b88ab`](https://github.com/thirdweb-dev/js/commit/0f9b88ab68402ad6c1e596595db08effa540dabc) Thanks [@MananTank](https://github.com/MananTank)! - ### New `ConnectEmbed` component and `useShowConnectEmbed` hook + + - Add `ConnectEmbed` component and `useShowConnectEmbed` hook allow embedding the `ConnectWallet`'s Modal directly into the page. + - `useShowConnectEmbed` returns `true` if the ``should be rendered. It returns`true` if either one of the following conditions are met: + + - Wallet is NOT connected + - Wallet IS connected but the user is NOT signed in and `auth` is required ( loginOptional is NOT set to false ) + + ```tsx + function Example() { + const loginOptional = false; + const showConnectEmbed = useShowConnectEmbed(loginOptional); + + if (!showConnectEmbed) { + return
Wallet is connected
; + } + + return ( + + ); + } + ``` + + ### `ConnectWallet` component changes + + - Fix double connection issue when Connecting a Safe / Smart Wallet. Now the personal wallet will not be set as the active wallet - only the final wallet will be set as the active wallet. This fixes the issue of hooks like `useWallet`, `useAddress`, `useConnectionStatus` etc showing the wrong wallet / address / connection status for a brief moment when connecting a Safe / Smart Wallet. + - Add "Disconnect Wallet" button in "Sign in" Screen and don't disconnect wallet when the "Sign in" screen is dismissed by closing the modal. This makes this screen reusable for both `ConnectWallet` and `ConnectEmbed` components and also improves the user experience. + + ### API changed for creating wallet configurator + + _This is only relevant if you are creating your own wallet configurator - If you are using the wallet configurators provided by thirdweb such as `metamaskWallet()`, `coinbaseWallet()` etc - This API change does not affect you_ + + To Fix the above mentioned "double connection" issue in the `ConnectWallet` component, We have introduce a few changes to how the wallet configurator should be created. + + Do not use any wallet connection hooks in the wallet configurator. Only use the `props` passed in the `connectUI` and `selectUI`. The wallet configurator's `connectUI` and `selectUI` now gets below mentioned additional props so that you can avoid using the wallet connection hooks + + - `props.connect` - replaces the `useConnect` hook usage + - `props.connectionStatus` - replaces the `useConnectionStatus` hook usage + - `props.setConnectionStatus` - replaces the `useSetConnectionStatus` hook usage + - `props.setConnectedWallet` - replaces the `useSetConnectedWallet` hook usage + - `props.createWalletInstance` - replaces the `useCreateWalletInstance` hook usage + - `props.connectedWalletAddress` - replaces the `useAddress` hook usage + + #### Example + + ```tsx + import { WalletConfig } from "@thirdweb-dev/react"; + import { MyCustomWallet } from "./MyCustomWallet"; // your custom wallet class + + // your custom wallet configurator + function myCustomWallet(): WalletConfig { + return { + id: "MyCustomWallet", + meta: { + name: "FooBar", + iconURL: "https://link-to-the-wallet-icon.png", + }, + create(walletOptions) { + return new MyCustomWallet(walletOptions); + }, + // only use the props passed in the connectUI and selectUI + // do not use any wallet connection hooks that read or write to the wallet connection state + connectUI(props) { + // const connect = useConnect(); -> old + const connect = props.connect; // new + + return
....
; + }, + selectUI(props) { + return
....
; + }, + }; + } + ``` + +### Patch Changes + +- [#2089](https://github.com/thirdweb-dev/js/pull/2089) [`e1001689`](https://github.com/thirdweb-dev/js/commit/e1001689794b25618a82d3469c0098b88f593c76) Thanks [@kien-ngo](https://github.com/kien-ngo)! - Add hook for creating direct listings in batch for Marketplace v3 + +- [#2140](https://github.com/thirdweb-dev/js/pull/2140) [`30f16cac`](https://github.com/thirdweb-dev/js/commit/30f16cac6d3c2b736c51b84f2b978537d8bfb8d1) Thanks [@MananTank](https://github.com/MananTank)! - Fix return type of `useUnclaimedNFTs` hook. + + This fixes https://github.com/thirdweb-dev/js/issues/2110 + +- Updated dependencies [[`90a2f2d4`](https://github.com/thirdweb-dev/js/commit/90a2f2d435df796fa9cee4e78d540ecfa10d9166), [`d3637a16`](https://github.com/thirdweb-dev/js/commit/d3637a160d088dde6e35dc213ee611b73b831c3f), [`27c00ef7`](https://github.com/thirdweb-dev/js/commit/27c00ef779fd6386b529598a65346bdd1d6ecc70), [`eb6544ff`](https://github.com/thirdweb-dev/js/commit/eb6544ffc88385dafd20eabd6cd00ba2b8ba73d3), [`756d5cc9`](https://github.com/thirdweb-dev/js/commit/756d5cc96080964710fafaf2b16ce51124f57808)]: + - @thirdweb-dev/wallets@2.4.1 + - @thirdweb-dev/chains@0.1.63 + - @thirdweb-dev/sdk@4.0.26 + - @thirdweb-dev/auth@4.1.23 + - @thirdweb-dev/storage@2.0.8 + ## 4.2.3 ### Patch Changes diff --git a/packages/react-core/package.json b/packages/react-core/package.json index dac2dea53cd..d9ac35bd859 100644 --- a/packages/react-core/package.json +++ b/packages/react-core/package.json @@ -1,6 +1,6 @@ { "name": "@thirdweb-dev/react-core", - "version": "4.2.3", + "version": "4.3.0", "repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-core", "author": "thirdweb eng ", "license": "Apache-2.0", diff --git a/packages/react-native-compat/CHANGELOG.md b/packages/react-native-compat/CHANGELOG.md index a004e7712da..eb2d930f50b 100644 --- a/packages/react-native-compat/CHANGELOG.md +++ b/packages/react-native-compat/CHANGELOG.md @@ -1,5 +1,7 @@ # @thirdweb-dev/react-native-compat +## 0.6.0 + ## 0.5.6 ## 0.5.5 diff --git a/packages/react-native-compat/package.json b/packages/react-native-compat/package.json index dffb13e91ad..e2478a33da2 100644 --- a/packages/react-native-compat/package.json +++ b/packages/react-native-compat/package.json @@ -1,7 +1,7 @@ { "name": "@thirdweb-dev/react-native-compat", "description": "Shims for Thirdweb in React Native Projects", - "version": "0.5.6", + "version": "0.6.0", "author": "thirdweb eng ", "repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-native-compat", "license": "Apache-2.0", diff --git a/packages/react-native/CHANGELOG.md b/packages/react-native/CHANGELOG.md index 9d59dd19f6e..3b792446037 100644 --- a/packages/react-native/CHANGELOG.md +++ b/packages/react-native/CHANGELOG.md @@ -1,5 +1,77 @@ # @thirdweb-dev/react-native +## 0.6.0 + +### Minor Changes + +- [#2150](https://github.com/thirdweb-dev/js/pull/2150) [`6dac95bd`](https://github.com/thirdweb-dev/js/commit/6dac95bd489d28faf3bbd415f6c327022de915ee) Thanks [@MananTank](https://github.com/MananTank)! - ### API changed for creating wallet configurator + + ( This is only relevant if you are creating your own wallet configurator - If you are using the wallet configurators provided by thirdweb such as `metamaskWallet()`, `coinbaseWallet()` etc - This API change does not affect you ) + + We have introduce a few changes to how the wallet configurator should be created: + + Do not use any wallet connection hooks in the wallet configurator. Only use the `props` passed in the `connectUI` and `selectUI`. The wallet configurator's `connectUI` and `selectUI` now gets below mentioned additional props so that you can avoid using the wallet connection hooks + + - `props.connect` - replaces the `useConnect` hook usage + - `props.connectionStatus` - replaces the `useConnectionStatus` hook usage + - `props.setConnectionStatus` - replaces the `useSetConnectionStatus` hook usage + - `props.setConnectedWallet` - replaces the `useSetConnectedWallet` hook usage + - `props.createWalletInstance` - replaces the `useCreateWalletInstance` hook usage + - `props.connectedWalletAddress` - replaces the `useAddress` hook usage + + #### Example + + ```tsx + import { WalletConfig } from "@thirdweb-dev/react-native"; + import { MyCustomWallet } from "./MyCustomWallet"; // your custom wallet class + + // your custom wallet configurator + function myCustomWallet(): WalletConfig { + return { + id: "MyCustomWallet", + meta: { + name: "FooBar", + iconURL: "https://link-to-the-wallet-icon.png", + }, + create(walletOptions) { + return new MyCustomWallet(walletOptions); + }, + // only use the props passed in the connectUI and selectUI + // do not use any wallet connection hooks that read or write to the wallet connection state + connectUI(props) { + // const connect = useConnect(); -> old + const connect = props.connect; // new + + return
....
; + }, + selectUI(props) { + return
....
; + }, + }; + } + ``` + + `onLocallyConnected` has been removed from the `connectUI` props - You no longer need to worry about whether a wallet is part of another wallet's connection flow or not - just use the regular `props` passed in the `connectUI` and `selectUI` and it will be handled automatically. + +### Patch Changes + +- [#2151](https://github.com/thirdweb-dev/js/pull/2151) [`415f2aa8`](https://github.com/thirdweb-dev/js/commit/415f2aa83b40eae56134d486ee83b43ee426efc9) Thanks [@jnsdls](https://github.com/jnsdls)! - improve typechecking for deepMerge function + +- [#1964](https://github.com/thirdweb-dev/js/pull/1964) [`5d567008`](https://github.com/thirdweb-dev/js/commit/5d56700866d5ea2589e415542f261a76f2e913c9) Thanks [@warengonzaga](https://github.com/warengonzaga)! - Add Filipino language to React and React Native SDK + +- [#1962](https://github.com/thirdweb-dev/js/pull/1962) [`517d9a8f`](https://github.com/thirdweb-dev/js/commit/517d9a8f94266b7d365cb69ce744e33d80618a55) Thanks [@iketw](https://github.com/iketw)! - Adds Turkish support as locale 'tr' + +- [#2158](https://github.com/thirdweb-dev/js/pull/2158) [`abbd255e`](https://github.com/thirdweb-dev/js/commit/abbd255efa347a4f213d2bc015885f9bf3aa1034) Thanks [@iketw](https://github.com/iketw)! - Correctly pass sdkOptions down + +- [#2160](https://github.com/thirdweb-dev/js/pull/2160) [`a11b1d49`](https://github.com/thirdweb-dev/js/commit/a11b1d49bd96c2d51e2f47f54a89fe988947c19d) Thanks [@iketw](https://github.com/iketw)! - Update WalletConnectUI to use new arch + +- Updated dependencies [[`90a2f2d4`](https://github.com/thirdweb-dev/js/commit/90a2f2d435df796fa9cee4e78d540ecfa10d9166), [`e1001689`](https://github.com/thirdweb-dev/js/commit/e1001689794b25618a82d3469c0098b88f593c76), [`d3637a16`](https://github.com/thirdweb-dev/js/commit/d3637a160d088dde6e35dc213ee611b73b831c3f), [`27c00ef7`](https://github.com/thirdweb-dev/js/commit/27c00ef779fd6386b529598a65346bdd1d6ecc70), [`30f16cac`](https://github.com/thirdweb-dev/js/commit/30f16cac6d3c2b736c51b84f2b978537d8bfb8d1), [`0f9b88ab`](https://github.com/thirdweb-dev/js/commit/0f9b88ab68402ad6c1e596595db08effa540dabc), [`eb6544ff`](https://github.com/thirdweb-dev/js/commit/eb6544ffc88385dafd20eabd6cd00ba2b8ba73d3), [`756d5cc9`](https://github.com/thirdweb-dev/js/commit/756d5cc96080964710fafaf2b16ce51124f57808)]: + - @thirdweb-dev/wallets@2.4.1 + - @thirdweb-dev/react-core@4.3.0 + - @thirdweb-dev/chains@0.1.63 + - @thirdweb-dev/sdk@4.0.26 + - @thirdweb-dev/storage@2.0.8 + ## 0.5.6 ### Patch Changes diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 1e871370198..32f5c5da14a 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -1,6 +1,6 @@ { "name": "@thirdweb-dev/react-native", - "version": "0.5.6", + "version": "0.6.0", "repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-native", "author": "thirdweb eng ", "license": "Apache-2.0", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index f5f931ffec9..16cacbf7c79 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,101 @@ # @thirdweb-dev/react +## 4.3.0 + +### Minor Changes + +- [#2055](https://github.com/thirdweb-dev/js/pull/2055) [`0f9b88ab`](https://github.com/thirdweb-dev/js/commit/0f9b88ab68402ad6c1e596595db08effa540dabc) Thanks [@MananTank](https://github.com/MananTank)! - ### New `ConnectEmbed` component and `useShowConnectEmbed` hook + + - Add `ConnectEmbed` component and `useShowConnectEmbed` hook allow embedding the `ConnectWallet`'s Modal directly into the page. + - `useShowConnectEmbed` returns `true` if the ``should be rendered. It returns`true` if either one of the following conditions are met: + + - Wallet is NOT connected + - Wallet IS connected but the user is NOT signed in and `auth` is required ( loginOptional is NOT set to false ) + + ```tsx + function Example() { + const loginOptional = false; + const showConnectEmbed = useShowConnectEmbed(loginOptional); + + if (!showConnectEmbed) { + return
Wallet is connected
; + } + + return ( + + ); + } + ``` + + ### `ConnectWallet` component changes + + - Fix double connection issue when Connecting a Safe / Smart Wallet. Now the personal wallet will not be set as the active wallet - only the final wallet will be set as the active wallet. This fixes the issue of hooks like `useWallet`, `useAddress`, `useConnectionStatus` etc showing the wrong wallet / address / connection status for a brief moment when connecting a Safe / Smart Wallet. + - Add "Disconnect Wallet" button in "Sign in" Screen and don't disconnect wallet when the "Sign in" screen is dismissed by closing the modal. This makes this screen reusable for both `ConnectWallet` and `ConnectEmbed` components and also improves the user experience. + + ### API changed for creating wallet configurator + + _This is only relevant if you are creating your own wallet configurator - If you are using the wallet configurators provided by thirdweb such as `metamaskWallet()`, `coinbaseWallet()` etc - This API change does not affect you_ + + To Fix the above mentioned "double connection" issue in the `ConnectWallet` component, We have introduce a few changes to how the wallet configurator should be created. + + Do not use any wallet connection hooks in the wallet configurator. Only use the `props` passed in the `connectUI` and `selectUI`. The wallet configurator's `connectUI` and `selectUI` now gets below mentioned additional props so that you can avoid using the wallet connection hooks + + - `props.connect` - replaces the `useConnect` hook usage + - `props.connectionStatus` - replaces the `useConnectionStatus` hook usage + - `props.setConnectionStatus` - replaces the `useSetConnectionStatus` hook usage + - `props.setConnectedWallet` - replaces the `useSetConnectedWallet` hook usage + - `props.createWalletInstance` - replaces the `useCreateWalletInstance` hook usage + - `props.connectedWalletAddress` - replaces the `useAddress` hook usage + + #### Example + + ```tsx + import { WalletConfig } from "@thirdweb-dev/react"; + import { MyCustomWallet } from "./MyCustomWallet"; // your custom wallet class + + // your custom wallet configurator + function myCustomWallet(): WalletConfig { + return { + id: "MyCustomWallet", + meta: { + name: "FooBar", + iconURL: "https://link-to-the-wallet-icon.png", + }, + create(walletOptions) { + return new MyCustomWallet(walletOptions); + }, + // only use the props passed in the connectUI and selectUI + // do not use any wallet connection hooks that read or write to the wallet connection state + connectUI(props) { + // const connect = useConnect(); -> old + const connect = props.connect; // new + + return
....
; + }, + selectUI(props) { + return
....
; + }, + }; + } + ``` + +### Patch Changes + +- [#1964](https://github.com/thirdweb-dev/js/pull/1964) [`5d567008`](https://github.com/thirdweb-dev/js/commit/5d56700866d5ea2589e415542f261a76f2e913c9) Thanks [@warengonzaga](https://github.com/warengonzaga)! - Add Filipino language to React and React Native SDK + +- [#2138](https://github.com/thirdweb-dev/js/pull/2138) [`6047d67d`](https://github.com/thirdweb-dev/js/commit/6047d67daa5d48e6521b4d71b0c1687742ba7d01) Thanks [@MananTank](https://github.com/MananTank)! - Enforce react-hooks/exhaustive-deps lint rule + +- Updated dependencies [[`90a2f2d4`](https://github.com/thirdweb-dev/js/commit/90a2f2d435df796fa9cee4e78d540ecfa10d9166), [`e1001689`](https://github.com/thirdweb-dev/js/commit/e1001689794b25618a82d3469c0098b88f593c76), [`d3637a16`](https://github.com/thirdweb-dev/js/commit/d3637a160d088dde6e35dc213ee611b73b831c3f), [`27c00ef7`](https://github.com/thirdweb-dev/js/commit/27c00ef779fd6386b529598a65346bdd1d6ecc70), [`30f16cac`](https://github.com/thirdweb-dev/js/commit/30f16cac6d3c2b736c51b84f2b978537d8bfb8d1), [`0f9b88ab`](https://github.com/thirdweb-dev/js/commit/0f9b88ab68402ad6c1e596595db08effa540dabc), [`eb6544ff`](https://github.com/thirdweb-dev/js/commit/eb6544ffc88385dafd20eabd6cd00ba2b8ba73d3), [`756d5cc9`](https://github.com/thirdweb-dev/js/commit/756d5cc96080964710fafaf2b16ce51124f57808)]: + - @thirdweb-dev/wallets@2.4.1 + - @thirdweb-dev/react-core@4.3.0 + - @thirdweb-dev/chains@0.1.63 + - @thirdweb-dev/sdk@4.0.26 + - @thirdweb-dev/payments@1.0.2 + ## 4.2.3 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index 5a6ce96508b..6b97587bb0d 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@thirdweb-dev/react", - "version": "4.2.3", + "version": "4.3.0", "repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react", "author": "thirdweb eng ", "license": "Apache-2.0", diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index 03a24364293..12262d2e507 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -1,5 +1,22 @@ # @thirdweb-dev/sdk +## 4.0.26 + +### Patch Changes + +- [#2143](https://github.com/thirdweb-dev/js/pull/2143) [`27c00ef7`](https://github.com/thirdweb-dev/js/commit/27c00ef779fd6386b529598a65346bdd1d6ecc70) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Fix gas estimations for local and embedded wallets + +- [#1887](https://github.com/thirdweb-dev/js/pull/1887) [`eb6544ff`](https://github.com/thirdweb-dev/js/commit/eb6544ffc88385dafd20eabd6cd00ba2b8ba73d3) Thanks [@kien-ngo](https://github.com/kien-ngo)! - Add pagination to ERC721's getAllOwners method + +- [#2139](https://github.com/thirdweb-dev/js/pull/2139) [`756d5cc9`](https://github.com/thirdweb-dev/js/commit/756d5cc96080964710fafaf2b16ce51124f57808) Thanks [@kumaryash90](https://github.com/kumaryash90)! - Resolve beacon from beacon-proxy + +- Updated dependencies [[`d3637a16`](https://github.com/thirdweb-dev/js/commit/d3637a160d088dde6e35dc213ee611b73b831c3f)]: + - @thirdweb-dev/chains@0.1.63 + - @thirdweb-dev/contracts-js@1.3.16 + - @thirdweb-dev/crypto@0.2.0 + - @thirdweb-dev/merkletree@0.2.0 + - @thirdweb-dev/storage@2.0.8 + ## 4.0.25 ### Patch Changes diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 95c59498902..7d498253812 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@thirdweb-dev/sdk", - "version": "4.0.25", + "version": "4.0.26", "description": "The main thirdweb SDK.", "repository": "https://github.com/thirdweb-dev/js/tree/main/packages/sdk", "license": "Apache-2.0", diff --git a/packages/service-utils/CHANGELOG.md b/packages/service-utils/CHANGELOG.md index 168f4eccd1c..6da2757863c 100644 --- a/packages/service-utils/CHANGELOG.md +++ b/packages/service-utils/CHANGELOG.md @@ -1,5 +1,11 @@ # @thirdweb-dev/service-utils +## 0.4.12 + +### Patch Changes + +- [#2157](https://github.com/thirdweb-dev/js/pull/2157) [`749a12f9`](https://github.com/thirdweb-dev/js/commit/749a12f92f687774330e154d7412aeba79f8fff5) Thanks [@assimovt](https://github.com/assimovt)! - fix checkout service name + ## 0.4.11 ### Patch Changes diff --git a/packages/service-utils/package.json b/packages/service-utils/package.json index 34197b59ff3..dd24a0620db 100644 --- a/packages/service-utils/package.json +++ b/packages/service-utils/package.json @@ -1,6 +1,6 @@ { "name": "@thirdweb-dev/service-utils", - "version": "0.4.11", + "version": "0.4.12", "main": "dist/thirdweb-dev-service-utils.cjs.js", "module": "dist/thirdweb-dev-service-utils.esm.js", "exports": { diff --git a/packages/unity-js-bridge/CHANGELOG.md b/packages/unity-js-bridge/CHANGELOG.md index d6f254d6c07..a9d887bd246 100644 --- a/packages/unity-js-bridge/CHANGELOG.md +++ b/packages/unity-js-bridge/CHANGELOG.md @@ -1,5 +1,17 @@ # @thirdweb-dev/unity-js-bridge +## 0.3.6 + +### Patch Changes + +- Updated dependencies [[`90a2f2d4`](https://github.com/thirdweb-dev/js/commit/90a2f2d435df796fa9cee4e78d540ecfa10d9166), [`d3637a16`](https://github.com/thirdweb-dev/js/commit/d3637a160d088dde6e35dc213ee611b73b831c3f), [`27c00ef7`](https://github.com/thirdweb-dev/js/commit/27c00ef779fd6386b529598a65346bdd1d6ecc70), [`eb6544ff`](https://github.com/thirdweb-dev/js/commit/eb6544ffc88385dafd20eabd6cd00ba2b8ba73d3), [`756d5cc9`](https://github.com/thirdweb-dev/js/commit/756d5cc96080964710fafaf2b16ce51124f57808)]: + - @thirdweb-dev/wallets@2.4.1 + - @thirdweb-dev/chains@0.1.63 + - @thirdweb-dev/sdk@4.0.26 + - @thirdweb-dev/auth@4.1.23 + - @thirdweb-dev/pay@0.1.4 + - @thirdweb-dev/storage@2.0.8 + ## 0.3.5 ### Patch Changes diff --git a/packages/unity-js-bridge/package.json b/packages/unity-js-bridge/package.json index ee8798b56ba..3c416b44dc7 100644 --- a/packages/unity-js-bridge/package.json +++ b/packages/unity-js-bridge/package.json @@ -1,6 +1,6 @@ { "name": "@thirdweb-dev/unity-js-bridge", - "version": "0.3.5", + "version": "0.3.6", "main": "dist/thirdweb-unity-bridge.js", "repository": "https://github.com/thirdweb-dev/js/tree/main/packages/unity-js-bridge", "license": "Apache-2.0", diff --git a/packages/wallets/CHANGELOG.md b/packages/wallets/CHANGELOG.md index db72db803c2..fefcfde112c 100644 --- a/packages/wallets/CHANGELOG.md +++ b/packages/wallets/CHANGELOG.md @@ -1,5 +1,19 @@ # @thirdweb-dev/wallets +## 2.4.1 + +### Patch Changes + +- [#2162](https://github.com/thirdweb-dev/js/pull/2162) [`90a2f2d4`](https://github.com/thirdweb-dev/js/commit/90a2f2d435df796fa9cee4e78d540ecfa10d9166) Thanks [@iketw](https://github.com/iketw)! - Implements signedData for LocalWallet + +- [#2143](https://github.com/thirdweb-dev/js/pull/2143) [`27c00ef7`](https://github.com/thirdweb-dev/js/commit/27c00ef779fd6386b529598a65346bdd1d6ecc70) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Fix gas estimations for local and embedded wallets + +- Updated dependencies [[`d3637a16`](https://github.com/thirdweb-dev/js/commit/d3637a160d088dde6e35dc213ee611b73b831c3f), [`27c00ef7`](https://github.com/thirdweb-dev/js/commit/27c00ef779fd6386b529598a65346bdd1d6ecc70), [`eb6544ff`](https://github.com/thirdweb-dev/js/commit/eb6544ffc88385dafd20eabd6cd00ba2b8ba73d3), [`756d5cc9`](https://github.com/thirdweb-dev/js/commit/756d5cc96080964710fafaf2b16ce51124f57808)]: + - @thirdweb-dev/chains@0.1.63 + - @thirdweb-dev/sdk@4.0.26 + - @thirdweb-dev/contracts-js@1.3.16 + - @thirdweb-dev/crypto@0.2.0 + ## 2.4.0 ### Minor Changes diff --git a/packages/wallets/package.json b/packages/wallets/package.json index 1c2a58b41f5..e7c4a70a98e 100644 --- a/packages/wallets/package.json +++ b/packages/wallets/package.json @@ -1,6 +1,6 @@ { "name": "@thirdweb-dev/wallets", - "version": "2.4.0", + "version": "2.4.1", "main": "dist/thirdweb-dev-wallets.cjs.js", "module": "dist/thirdweb-dev-wallets.esm.js", "browser": {