diff --git a/.changeset/nasty-rats-destroy.md b/.changeset/nasty-rats-destroy.md deleted file mode 100644 index 39a3c2b3ce..0000000000 --- a/.changeset/nasty-rats-destroy.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -'@reown/appkit-adapter-ethers5': patch -'@reown/appkit-adapter-ethers': patch -'@reown/appkit-adapter-wagmi': patch -'@reown/appkit-wallet': patch -'@reown/appkit-core': patch -'@apps/demo': patch -'@apps/gallery': patch -'@apps/laboratory': patch -'@examples/html-ethers': patch -'@examples/html-ethers5': patch -'@examples/html-wagmi': patch -'@examples/next-ethers': patch -'@examples/next-wagmi': patch -'@examples/react-ethers': patch -'@examples/react-ethers5': patch -'@examples/react-solana': patch -'@examples/react-wagmi': patch -'@examples/vue-ethers5': patch -'@examples/vue-solana': patch -'@examples/vue-wagmi': patch -'@reown/appkit-adapter-polkadot': patch -'@reown/appkit-adapter-solana': patch -'@reown/appkit': patch -'@reown/appkit-utils': patch -'@reown/appkit-cdn': patch -'@reown/appkit-common': patch -'@reown/appkit-ethers': patch -'@reown/appkit-ethers5': patch -'@reown/appkit-polyfills': patch -'@reown/appkit-scaffold-ui': patch -'@reown/appkit-siwe': patch -'@reown/appkit-solana': patch -'@reown/appkit-ui': patch -'@reown/appkit-wagmi': patch ---- - -Fixes issue where wagmi would not reconnect on an active session diff --git a/.changeset/sharp-wombats-fix.md b/.changeset/sharp-wombats-fix.md deleted file mode 100644 index 62e8408b89..0000000000 --- a/.changeset/sharp-wombats-fix.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -'@reown/appkit-adapter-ethers5': patch -'@reown/appkit-adapter-ethers': patch -'@reown/appkit-adapter-solana': patch -'@reown/appkit-adapter-wagmi': patch -'@reown/appkit': patch -'@reown/appkit-wallet': patch -'@reown/appkit-core': patch -'@apps/demo': patch -'@apps/gallery': patch -'@apps/laboratory': patch -'@examples/html-ethers': patch -'@examples/html-ethers5': patch -'@examples/html-wagmi': patch -'@examples/next-ethers': patch -'@examples/next-wagmi': patch -'@examples/react-ethers': patch -'@examples/react-ethers5': patch -'@examples/react-solana': patch -'@examples/react-wagmi': patch -'@examples/vue-ethers5': patch -'@examples/vue-solana': patch -'@examples/vue-wagmi': patch -'@reown/appkit-adapter-polkadot': patch -'@reown/appkit-utils': patch -'@reown/appkit-cdn': patch -'@reown/appkit-common': patch -'@reown/appkit-ethers': patch -'@reown/appkit-ethers5': patch -'@reown/appkit-polyfills': patch -'@reown/appkit-scaffold-ui': patch -'@reown/appkit-siwe': patch -'@reown/appkit-solana': patch -'@reown/appkit-ui': patch -'@reown/appkit-wagmi': patch ---- - -Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection diff --git a/.changeset/small-parents-judge.md b/.changeset/small-parents-judge.md deleted file mode 100644 index 3462b95f5c..0000000000 --- a/.changeset/small-parents-judge.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -'@reown/appkit-adapter-ethers5': patch -'@reown/appkit-adapter-ethers': patch -'@reown/appkit-adapter-solana': patch -'@reown/appkit-adapter-wagmi': patch -'@reown/appkit-wallet': patch -'@reown/appkit-core': patch -'@apps/demo': patch -'@apps/gallery': patch -'@apps/laboratory': patch -'@examples/html-ethers': patch -'@examples/html-ethers5': patch -'@examples/html-wagmi': patch -'@examples/next-ethers': patch -'@examples/next-wagmi': patch -'@examples/react-ethers': patch -'@examples/react-ethers5': patch -'@examples/react-solana': patch -'@examples/react-wagmi': patch -'@examples/vue-ethers5': patch -'@examples/vue-solana': patch -'@examples/vue-wagmi': patch -'@reown/appkit-adapter-polkadot': patch -'@reown/appkit': patch -'@reown/appkit-utils': patch -'@reown/appkit-cdn': patch -'@reown/appkit-common': patch -'@reown/appkit-ethers': patch -'@reown/appkit-ethers5': patch -'@reown/appkit-polyfills': patch -'@reown/appkit-scaffold-ui': patch -'@reown/appkit-siwe': patch -'@reown/appkit-solana': patch -'@reown/appkit-ui': patch -'@reown/appkit-wagmi': patch ---- - -Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension diff --git a/.changeset/two-cats-wave.md b/.changeset/two-cats-wave.md deleted file mode 100644 index 8c1d95707a..0000000000 --- a/.changeset/two-cats-wave.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -'@reown/appkit-adapter-wagmi': patch -'@apps/laboratory': patch -'@reown/appkit-core': patch -'@apps/demo': patch -'@apps/gallery': patch -'@examples/html-ethers': patch -'@examples/html-ethers5': patch -'@examples/html-wagmi': patch -'@examples/next-ethers': patch -'@examples/next-wagmi': patch -'@examples/react-ethers': patch -'@examples/react-ethers5': patch -'@examples/react-solana': patch -'@examples/react-wagmi': patch -'@examples/vue-ethers5': patch -'@examples/vue-solana': patch -'@examples/vue-wagmi': patch -'@reown/appkit-adapter-ethers': patch -'@reown/appkit-adapter-ethers5': patch -'@reown/appkit-adapter-polkadot': patch -'@reown/appkit-adapter-solana': patch -'@reown/appkit': patch -'@reown/appkit-utils': patch -'@reown/appkit-cdn': patch -'@reown/appkit-common': patch -'@reown/appkit-ethers': patch -'@reown/appkit-ethers5': patch -'@reown/appkit-polyfills': patch -'@reown/appkit-scaffold-ui': patch -'@reown/appkit-siwe': patch -'@reown/appkit-solana': patch -'@reown/appkit-ui': patch -'@reown/appkit-wagmi': patch -'@reown/appkit-wallet': patch ---- - -Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors diff --git a/.changeset/wise-bobcats-hang.md b/.changeset/wise-bobcats-hang.md deleted file mode 100644 index d2b1000398..0000000000 --- a/.changeset/wise-bobcats-hang.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -'@reown/appkit-adapter-ethers5': patch -'@reown/appkit-adapter-ethers': patch -'@reown/appkit-utils': patch -'@reown/appkit': patch -'@reown/appkit-common': patch -'@reown/appkit-wallet': patch -'@reown/appkit-core': patch -'@apps/demo': patch -'@apps/gallery': patch -'@apps/laboratory': patch -'@examples/html-ethers': patch -'@examples/html-ethers5': patch -'@examples/html-wagmi': patch -'@examples/next-ethers': patch -'@examples/next-wagmi': patch -'@examples/react-ethers': patch -'@examples/react-ethers5': patch -'@examples/react-solana': patch -'@examples/react-wagmi': patch -'@examples/vue-ethers5': patch -'@examples/vue-solana': patch -'@examples/vue-wagmi': patch -'@reown/appkit-adapter-polkadot': patch -'@reown/appkit-adapter-solana': patch -'@reown/appkit-adapter-wagmi': patch -'@reown/appkit-cdn': patch -'@reown/appkit-ethers': patch -'@reown/appkit-ethers5': patch -'@reown/appkit-polyfills': patch -'@reown/appkit-scaffold-ui': patch -'@reown/appkit-siwe': patch -'@reown/appkit-solana': patch -'@reown/appkit-ui': patch -'@reown/appkit-wagmi': patch ---- - -Updates the localstorage keys diff --git a/.github/workflows/pr_checks.yml b/.github/workflows/pr_checks.yml index ba4cf59138..c1d02a7af3 100644 --- a/.github/workflows/pr_checks.yml +++ b/.github/workflows/pr_checks.yml @@ -30,6 +30,7 @@ jobs: - prettier - typecheck - build:sample-apps + - danger steps: - name: checkout uses: actions/checkout@v3 diff --git a/apps/demo/CHANGELOG.md b/apps/demo/CHANGELOG.md index c871f6c963..06d13e54e1 100644 --- a/apps/demo/CHANGELOG.md +++ b/apps/demo/CHANGELOG.md @@ -1,5 +1,49 @@ # @apps/demo +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-adapter-wagmi@1.0.4 + - @reown/appkit@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-adapter-wagmi@1.0.3 + - @reown/appkit@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-adapter-wagmi@1.0.2 + - @reown/appkit@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/apps/demo/package.json b/apps/demo/package.json index c294950ca2..8cb5df5d61 100644 --- a/apps/demo/package.json +++ b/apps/demo/package.json @@ -1,6 +1,6 @@ { "name": "@apps/demo", - "version": "1.0.1", + "version": "1.0.4", "private": true, "scripts": { "dev": "next dev", diff --git a/apps/gallery/CHANGELOG.md b/apps/gallery/CHANGELOG.md index fa83b1b47c..bb6b59397a 100644 --- a/apps/gallery/CHANGELOG.md +++ b/apps/gallery/CHANGELOG.md @@ -1,5 +1,49 @@ # @apps/gallery +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-common@1.0.4 + - @reown/appkit-ui@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-common@1.0.3 + - @reown/appkit-ui@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-common@1.0.2 + - @reown/appkit-ui@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/apps/gallery/package.json b/apps/gallery/package.json index f4188ecee5..51c13b2c15 100644 --- a/apps/gallery/package.json +++ b/apps/gallery/package.json @@ -1,6 +1,6 @@ { "name": "@apps/gallery", - "version": "1.0.1", + "version": "1.0.4", "private": true, "main": "index.js", "scripts": { diff --git a/apps/laboratory/CHANGELOG.md b/apps/laboratory/CHANGELOG.md index ac9cd118d7..73b2b5ff0b 100644 --- a/apps/laboratory/CHANGELOG.md +++ b/apps/laboratory/CHANGELOG.md @@ -1,5 +1,76 @@ # @apps/laboratory +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-adapter-ethers@1.0.4 + - @reown/appkit-adapter-ethers5@1.0.4 + - @reown/appkit-adapter-solana@1.0.4 + - @reown/appkit-adapter-wagmi@1.0.4 + - @reown/appkit@1.0.4 + - @reown/appkit-ethers@1.0.4 + - @reown/appkit-ethers5@1.0.4 + - @reown/appkit-siwe@1.0.4 + - @reown/appkit-solana@1.0.4 + - @reown/appkit-wagmi@1.0.4 + - @reown/appkit-wallet@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-wallet@1.0.3 + - @reown/appkit-adapter-ethers@1.0.3 + - @reown/appkit-adapter-ethers5@1.0.3 + - @reown/appkit-adapter-solana@1.0.3 + - @reown/appkit-adapter-wagmi@1.0.3 + - @reown/appkit@1.0.3 + - @reown/appkit-ethers@1.0.3 + - @reown/appkit-ethers5@1.0.3 + - @reown/appkit-siwe@1.0.3 + - @reown/appkit-solana@1.0.3 + - @reown/appkit-wagmi@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-adapter-ethers5@1.0.2 + - @reown/appkit-adapter-ethers@1.0.2 + - @reown/appkit-adapter-wagmi@1.0.2 + - @reown/appkit-wallet@1.0.2 + - @reown/appkit-adapter-solana@1.0.2 + - @reown/appkit@1.0.2 + - @reown/appkit-ethers@1.0.2 + - @reown/appkit-ethers5@1.0.2 + - @reown/appkit-siwe@1.0.2 + - @reown/appkit-solana@1.0.2 + - @reown/appkit-wagmi@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/apps/laboratory/package.json b/apps/laboratory/package.json index 3c684c5b11..ff58db79c5 100644 --- a/apps/laboratory/package.json +++ b/apps/laboratory/package.json @@ -1,7 +1,7 @@ { "name": "@apps/laboratory", "type": "module", - "version": "1.0.1", + "version": "1.0.4", "private": true, "scripts": { "dev": "next dev", diff --git a/apps/laboratory/public/logo-dark.svg b/apps/laboratory/public/logo-dark.svg index 1bc3b790a6..fcc8ee3c1f 100644 --- a/apps/laboratory/public/logo-dark.svg +++ b/apps/laboratory/public/logo-dark.svg @@ -1 +1,17 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + diff --git a/apps/laboratory/public/logo-light.svg b/apps/laboratory/public/logo-light.svg index 198c681332..08366dcf03 100644 --- a/apps/laboratory/public/logo-light.svg +++ b/apps/laboratory/public/logo-light.svg @@ -1 +1,17 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + diff --git a/apps/laboratory/src/components/AppKitNetworkInfo.tsx b/apps/laboratory/src/components/AppKitNetworkInfo.tsx index cd1f21a33e..20e6b2be71 100644 --- a/apps/laboratory/src/components/AppKitNetworkInfo.tsx +++ b/apps/laboratory/src/components/AppKitNetworkInfo.tsx @@ -27,7 +27,7 @@ export function AppKitNetworkInfo() { Address - {address} + {address || '-'} diff --git a/apps/laboratory/src/components/ConfigurationList.tsx b/apps/laboratory/src/components/ConfigurationList.tsx new file mode 100644 index 0000000000..5ed26f6fa6 --- /dev/null +++ b/apps/laboratory/src/components/ConfigurationList.tsx @@ -0,0 +1,61 @@ +/* eslint-disable no-negated-condition */ +import { + Box, + Button, + Card, + CardBody, + CardHeader, + Heading, + Link, + Stack, + StackDivider, + Text +} from '@chakra-ui/react' +import type { SdkOption } from '../utils/DataUtil' +import { IoArrowForward } from 'react-icons/io5' +import type { ReactNode } from 'react' +import { RandomLink } from './RandomLink' + +type Props = { + title: ReactNode + sdkOptions: SdkOption[] +} + +export function ConfigurationList({ title, sdkOptions }: Props) { + return ( + <> + + + {title} + + + } spacing="4"> + {sdkOptions.map(option => ( + + + + + {option.title} + + + {option.description} + + + {option.randomLinks !== undefined && option.randomLinks.length > 0 ? ( + + + + ) : ( + + + + )} + + + ))} + + + + + ) +} diff --git a/apps/laboratory/src/components/Wagmi/WagmiModalInfo.tsx b/apps/laboratory/src/components/Wagmi/WagmiModalInfo.tsx index fa3ffa62c7..227db333c8 100644 --- a/apps/laboratory/src/components/Wagmi/WagmiModalInfo.tsx +++ b/apps/laboratory/src/components/Wagmi/WagmiModalInfo.tsx @@ -13,9 +13,9 @@ export function WagmiModalInfo() { async function getClientId() { if (connector?.type === 'walletConnect') { const provider = await connector?.getProvider?.() - const ethereumProvider = provider as UniversalProvider + const universalProvider = provider as UniversalProvider - return ethereumProvider.client?.core?.crypto?.getClientId() + return universalProvider?.client?.core?.crypto?.getClientId() } return null diff --git a/apps/laboratory/src/layout/LayoutHeader.tsx b/apps/laboratory/src/layout/LayoutHeader.tsx index 3565631e8c..4ba000b02f 100644 --- a/apps/laboratory/src/layout/LayoutHeader.tsx +++ b/apps/laboratory/src/layout/LayoutHeader.tsx @@ -17,6 +17,7 @@ import { DownloadIcon } from '@chakra-ui/icons' import { useChakraToast } from '../components/Toast' import { useEffect, useState } from 'react' import { useRouter } from 'next/router' +import { DOCS_URL, GALLERY_URL, REPO_URL } from '../utils/ConstantsUtil' function downloadLogs(toast: ReturnType) { type WindowWithLogs = typeof Window & { @@ -57,13 +58,13 @@ export function LayoutHeader() { - + GitHub - + Gallery - + Docs diff --git a/apps/laboratory/src/pages/index.tsx b/apps/laboratory/src/pages/index.tsx index ebb251f472..dd851d212c 100644 --- a/apps/laboratory/src/pages/index.tsx +++ b/apps/laboratory/src/pages/index.tsx @@ -1,258 +1,32 @@ -import { - Heading, - Card, - CardHeader, - CardBody, - Stack, - StackDivider, - Box, - Text, - Button, - Link, - Badge -} from '@chakra-ui/react' -import { IoArrowForward } from 'react-icons/io5' +import { Badge } from '@chakra-ui/react' import { wagmiSdkOptions, ethersSdkOptions, solanaSdkOptions, - ethers5SdkOptions + ethers5SdkOptions, + featuredSdkOptions, + multichainSdkOptions, + testingSdkOptions } from '../utils/DataUtil' -import { RandomLink } from '../components/RandomLink' +import { ConfigurationList } from '../components/ConfigurationList' export default function HomePage() { return ( <> - - - Testing - - - - } spacing="4"> - - - - - Demo - - - All features enabled and randomly using ethers or wagmi - - - - - - - - - - - } spacing="4"> - - - - - Demo w/ Sample Wallets - - - All features enabled, with sample wallet links, and randomly using ethers or - wagmi - - - - - - - - - - - - - - Wagmi - - - - } spacing="4"> - {wagmiSdkOptions.map(option => ( - - - - - {option.title} - - - {option.description} - - - - - - - - ))} - - - - - - - Ethers - - - - } spacing="4"> - {ethersSdkOptions.map(option => ( - - - - - {option.title} - - - {option.description} - - - - - - - - ))} - - - - - - - Ethers 5 - - - - } spacing="4"> - {ethers5SdkOptions.map(option => ( - - - - - {option.title} - - - {option.description} - - - - - - - - ))} - - - - - - - Solana - - - - } spacing="4"> - {solanaSdkOptions.map(option => ( - - - - - {option.title} - - - {option.description} - - - - - - - - ))} - - - - - - - + + + + + + + AppKit ⛓️ Multichain ✨ New - - - - - } spacing="4"> - - - - - Wagmi + Solana - - - Configuration with Wagmi and Solana adapters enabled for AppKit - - - - - - - - - - - - Ethers + Solana - - - Configuration with Ethers and Solana adapters enabled for AppKit - - - - - - - - - - - - Ethers5 + Solana - - - Configuration with Ethers and Solana adapters enabled for AppKit - - - - - - - - - - - - Basic - - - Configuration with no adapters enabled for AppKit - - - - - - - - - - + + } + sdkOptions={multichainSdkOptions} + /> ) } diff --git a/apps/laboratory/src/utils/ConstantsUtil.ts b/apps/laboratory/src/utils/ConstantsUtil.ts index baba8ee602..87f838d555 100644 --- a/apps/laboratory/src/utils/ConstantsUtil.ts +++ b/apps/laboratory/src/utils/ConstantsUtil.ts @@ -8,6 +8,10 @@ export const WALLET_URL = process.env['WALLET_URL'] || 'https://react-wallet.wal export const WC_COSIGNER_BASE_URL = 'https://rpc.walletconnect.org/v1/sessions' export const USEROP_BUILDER_SERVICE_BASE_URL = 'https://react-wallet.walletconnect.com/api' +export const GALLERY_URL = 'https://appkit-gallery.reown.com/' +export const DOCS_URL = 'https://docs.reown.com/appkit/overview' +export const REPO_URL = 'https://github.com/reown-com/appkit' + export function getPublicUrl() { const publicUrl = process.env['NEXT_PUBLIC_PUBLIC_URL'] if (publicUrl) { diff --git a/apps/laboratory/src/utils/DataUtil.ts b/apps/laboratory/src/utils/DataUtil.ts index 786d658ca0..396573d4be 100644 --- a/apps/laboratory/src/utils/DataUtil.ts +++ b/apps/laboratory/src/utils/DataUtil.ts @@ -16,9 +16,16 @@ export const colors = [ '#414796' ] +export type SdkOption = { + title: string + link: string + description: string + randomLinks?: string[] +} + export const vitalikEthAddress = '0xd8da6bf26964af9d7eed9e03e53415d37aa96045' -export const wagmiSdkOptions = [ +export const wagmiSdkOptions: SdkOption[] = [ { title: 'Default', link: '/library/wagmi', @@ -51,7 +58,7 @@ export const wagmiSdkOptions = [ } ] -export const ethersSdkOptions = [ +export const ethersSdkOptions: SdkOption[] = [ { title: 'Default', link: '/library/ethers', @@ -74,7 +81,7 @@ export const ethersSdkOptions = [ } ] -export const ethers5SdkOptions = [ +export const ethers5SdkOptions: SdkOption[] = [ { title: 'Default', link: '/library/ethers5', @@ -92,7 +99,7 @@ export const ethers5SdkOptions = [ } ] -export const solanaSdkOptions = [ +export const solanaSdkOptions: SdkOption[] = [ { title: 'Default', link: '/library/solana', @@ -109,3 +116,60 @@ export const solanaSdkOptions = [ description: 'Configuration using ethers without socials' } ] + +export const multichainSdkOptions: SdkOption[] = [ + { + title: 'Wagmi + Solana', + link: '/library/multichain-wagmi-solana', + description: 'Configuration with Wagmi and Solana adapters enabled for AppKit' + }, + { + title: 'Ethers + Solana', + link: '/library/multichain-ethers-solana', + description: 'Configuration with Ethers and Solana adapters enabled for AppKit' + }, + { + title: 'Ethers5 + Solana', + link: '/library/multichain-ethers5-solana', + description: 'Configuration with Ethers 5 and Solana adapters enabled for AppKit' + }, + { + title: 'Basic', + link: '/library/multichain-basic', + description: 'Configuration with no adapters enabled for AppKit' + } +] + +export const testingSdkOptions: SdkOption[] = [ + { + title: 'Demo', + link: '', + description: 'All features enabled and randomly using ethers or wagmi', + randomLinks: ['/library/wagmi-all', '/library/ethers-all'] + }, + { + title: 'Demo w/ Sample Wallets', + link: '', + description: + 'All features enabled, with sample wallet links, and randomly using ethers or wagmi', + randomLinks: ['/library/wagmi-all-internal', '/library/ethers-all-internal'] + } +] + +export const featuredSdkOptions: SdkOption[] = [ + { + title: 'Default', + link: '/library/wagmi', + description: 'Basic configuration using wagmi as a driving library' + }, + { + title: 'Multichain', + link: '/library/multichain-wagmi-solana', + description: 'Configuration with Wagmi and Solana adapters enabled for AppKit' + }, + { + title: 'Basic', + link: '/library/multichain-basic', + description: 'Configuration with no adapters enabled for AppKit' + } +] diff --git a/apps/laboratory/src/utils/SiweUtils.ts b/apps/laboratory/src/utils/SiweUtils.ts index e655fe9dde..d0bd97ef4c 100644 --- a/apps/laboratory/src/utils/SiweUtils.ts +++ b/apps/laboratory/src/utils/SiweUtils.ts @@ -1,9 +1,9 @@ import { getCsrfToken, signIn, signOut, getSession } from 'next-auth/react' import type { SIWEVerifyMessageArgs, SIWECreateMessageArgs, SIWESession } from '@reown/appkit-siwe' import { createSIWEConfig, formatMessage } from '@reown/appkit-siwe' -import { arbitrum, base, binanceSmartChain, mainnet, polygon } from '@reown/appkit/networks' +import { arbitrum, mainnet, optimism, polygon, zkSync, sepolia } from '@reown/appkit/networks' -const chains = [mainnet, polygon, base, binanceSmartChain, arbitrum] +const chains = [mainnet, optimism, polygon, zkSync, arbitrum, sepolia] export const siweConfig = createSIWEConfig({ signOutOnAccountChange: true, diff --git a/apps/laboratory/tests/multichain/multichain-wagmi-solana.spec.ts b/apps/laboratory/tests/multichain/multichain-wagmi-solana.spec.ts index 696430d028..3aa394866d 100644 --- a/apps/laboratory/tests/multichain/multichain-wagmi-solana.spec.ts +++ b/apps/laboratory/tests/multichain/multichain-wagmi-solana.spec.ts @@ -48,7 +48,7 @@ test.skip('it should show disabled networks', async () => { await modalPage.closeModal() }) -test.only('it should switch networks and sign', async () => { +test('it should switch networks and sign', async () => { const chains = ['Polygon', 'Solana'] async function processChain(index: number) { diff --git a/apps/laboratory/tests/wallet.spec.ts b/apps/laboratory/tests/wallet.spec.ts index 7e22d70590..14bcd30089 100644 --- a/apps/laboratory/tests/wallet.spec.ts +++ b/apps/laboratory/tests/wallet.spec.ts @@ -81,8 +81,23 @@ sampleWalletTest('it should switch networks and sign', async ({ library }) => { await processChain(0) }) +sampleWalletTest('it should show last connected network after refreshing', async ({ library }) => { + const chainName = library === 'solana' ? 'Solana Testnet' : 'Polygon' + + await modalPage.switchNetwork(chainName) + await modalValidator.expectSwitchedNetwork(chainName) + await modalPage.closeModal() + + await modalPage.page.reload() + + await modalPage.openModal() + await modalPage.openNetworks() + await modalValidator.expectSwitchedNetwork(chainName) + await modalPage.closeModal() +}) + sampleWalletTest('it should reject sign', async ({ library }) => { - const chainName = library === 'solana' ? 'Solana' : DEFAULT_CHAIN_NAME + const chainName = library === 'solana' ? 'Solana Testnet' : 'Polygon' await modalPage.sign() await walletValidator.expectReceivedSign({ chainName }) await walletPage.handleRequest({ accept: false }) diff --git a/examples/html-ethers/CHANGELOG.md b/examples/html-ethers/CHANGELOG.md index f6e33d4907..14395fa913 100644 --- a/examples/html-ethers/CHANGELOG.md +++ b/examples/html-ethers/CHANGELOG.md @@ -1,5 +1,49 @@ # @examples/html-ethers +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-adapter-ethers@1.0.4 + - @reown/appkit@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-adapter-ethers@1.0.3 + - @reown/appkit@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-adapter-ethers@1.0.2 + - @reown/appkit@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/examples/html-ethers/package.json b/examples/html-ethers/package.json index 306652c74b..baeb4c72b3 100644 --- a/examples/html-ethers/package.json +++ b/examples/html-ethers/package.json @@ -1,7 +1,7 @@ { "name": "@examples/html-ethers", "private": true, - "version": "1.0.1", + "version": "1.0.4", "scripts": { "dev": "vite --port 3011", "build": "vite build" diff --git a/examples/html-ethers5/CHANGELOG.md b/examples/html-ethers5/CHANGELOG.md index 73677ecb3c..5f61cb79e1 100644 --- a/examples/html-ethers5/CHANGELOG.md +++ b/examples/html-ethers5/CHANGELOG.md @@ -1,5 +1,49 @@ # @examples/html-ethers5 +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-adapter-ethers5@1.0.4 + - @reown/appkit@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-adapter-ethers5@1.0.3 + - @reown/appkit@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-adapter-ethers5@1.0.2 + - @reown/appkit@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/examples/html-ethers5/package.json b/examples/html-ethers5/package.json index 52f3e80e35..e26ab35523 100644 --- a/examples/html-ethers5/package.json +++ b/examples/html-ethers5/package.json @@ -1,7 +1,7 @@ { "name": "@examples/html-ethers5", "private": true, - "version": "1.0.1", + "version": "1.0.4", "scripts": { "dev": "vite --port 3011", "build": "vite build" diff --git a/examples/html-wagmi/CHANGELOG.md b/examples/html-wagmi/CHANGELOG.md index c1a5c312ed..54821ba5b9 100644 --- a/examples/html-wagmi/CHANGELOG.md +++ b/examples/html-wagmi/CHANGELOG.md @@ -1,5 +1,49 @@ # @examples/html-wagmi +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-adapter-wagmi@1.0.4 + - @reown/appkit@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-adapter-wagmi@1.0.3 + - @reown/appkit@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-adapter-wagmi@1.0.2 + - @reown/appkit@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/examples/html-wagmi/package.json b/examples/html-wagmi/package.json index 8148e0ed9f..7c5544b57c 100644 --- a/examples/html-wagmi/package.json +++ b/examples/html-wagmi/package.json @@ -1,7 +1,7 @@ { "name": "@examples/html-wagmi", "private": true, - "version": "1.0.1", + "version": "1.0.4", "scripts": { "dev": "vite --port 3001", "build": "vite build" diff --git a/examples/next-ethers/CHANGELOG.md b/examples/next-ethers/CHANGELOG.md index 5bb3e8e8a9..52f5f40949 100644 --- a/examples/next-ethers/CHANGELOG.md +++ b/examples/next-ethers/CHANGELOG.md @@ -1,5 +1,49 @@ # @examples/next-ethers +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-adapter-ethers@1.0.4 + - @reown/appkit@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-adapter-ethers@1.0.3 + - @reown/appkit@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-adapter-ethers@1.0.2 + - @reown/appkit@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/examples/next-ethers/package.json b/examples/next-ethers/package.json index 05292a684e..94a741c483 100644 --- a/examples/next-ethers/package.json +++ b/examples/next-ethers/package.json @@ -1,6 +1,6 @@ { "name": "@examples/next-ethers", - "version": "1.0.1", + "version": "1.0.4", "private": true, "scripts": { "dev": "next dev", diff --git a/examples/next-wagmi/CHANGELOG.md b/examples/next-wagmi/CHANGELOG.md index 4c9f044cc4..9f86aaf394 100644 --- a/examples/next-wagmi/CHANGELOG.md +++ b/examples/next-wagmi/CHANGELOG.md @@ -1,5 +1,49 @@ # @examples/next-wagmi +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-adapter-wagmi@1.0.4 + - @reown/appkit@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-adapter-wagmi@1.0.3 + - @reown/appkit@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-adapter-wagmi@1.0.2 + - @reown/appkit@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/examples/next-wagmi/package.json b/examples/next-wagmi/package.json index 5c0483fb03..71b5c9cd68 100644 --- a/examples/next-wagmi/package.json +++ b/examples/next-wagmi/package.json @@ -1,6 +1,6 @@ { "name": "@examples/next-wagmi", - "version": "1.0.1", + "version": "1.0.4", "private": true, "scripts": { "dev": "next dev", diff --git a/examples/react-ethers/CHANGELOG.md b/examples/react-ethers/CHANGELOG.md index 077ad10140..7a8b5cc466 100644 --- a/examples/react-ethers/CHANGELOG.md +++ b/examples/react-ethers/CHANGELOG.md @@ -1,5 +1,49 @@ # @examples/react-ethers +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-adapter-ethers@1.0.4 + - @reown/appkit@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-adapter-ethers@1.0.3 + - @reown/appkit@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-adapter-ethers@1.0.2 + - @reown/appkit@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/examples/react-ethers/package.json b/examples/react-ethers/package.json index 82bafc8010..c2f3737ac7 100644 --- a/examples/react-ethers/package.json +++ b/examples/react-ethers/package.json @@ -1,7 +1,7 @@ { "name": "@examples/react-ethers", "private": true, - "version": "1.0.1", + "version": "1.0.4", "scripts": { "dev": "vite --port 3012", "build": "vite build" diff --git a/examples/react-ethers5/CHANGELOG.md b/examples/react-ethers5/CHANGELOG.md index 0f434dccbb..c37e4127d7 100644 --- a/examples/react-ethers5/CHANGELOG.md +++ b/examples/react-ethers5/CHANGELOG.md @@ -1,5 +1,49 @@ # @examples/react-ethers5 +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-adapter-ethers5@1.0.4 + - @reown/appkit@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-adapter-ethers5@1.0.3 + - @reown/appkit@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-adapter-ethers5@1.0.2 + - @reown/appkit@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/examples/react-ethers5/package.json b/examples/react-ethers5/package.json index a4a41f4284..24889f9afe 100644 --- a/examples/react-ethers5/package.json +++ b/examples/react-ethers5/package.json @@ -1,7 +1,7 @@ { "name": "@examples/react-ethers5", "private": true, - "version": "1.0.1", + "version": "1.0.4", "scripts": { "dev": "vite --port 3012", "build": "vite build" diff --git a/examples/react-solana/CHANGELOG.md b/examples/react-solana/CHANGELOG.md index a8a469aff4..b850df71f6 100644 --- a/examples/react-solana/CHANGELOG.md +++ b/examples/react-solana/CHANGELOG.md @@ -1,5 +1,49 @@ # @examples/react-solana +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit@1.0.4 + - @reown/appkit-solana@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit@1.0.3 + - @reown/appkit-solana@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit@1.0.2 + - @reown/appkit-solana@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/examples/react-solana/package.json b/examples/react-solana/package.json index 309191696d..d994d261d7 100644 --- a/examples/react-solana/package.json +++ b/examples/react-solana/package.json @@ -1,7 +1,7 @@ { "name": "@examples/react-solana", "private": true, - "version": "1.0.1", + "version": "1.0.4", "scripts": { "dev": "vite --port 3002", "build": "vite build" diff --git a/examples/react-wagmi/CHANGELOG.md b/examples/react-wagmi/CHANGELOG.md index 00cfa3846a..3538b531b8 100644 --- a/examples/react-wagmi/CHANGELOG.md +++ b/examples/react-wagmi/CHANGELOG.md @@ -1,5 +1,49 @@ # @examples/react-wagmi +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-adapter-wagmi@1.0.4 + - @reown/appkit@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-adapter-wagmi@1.0.3 + - @reown/appkit@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-adapter-wagmi@1.0.2 + - @reown/appkit@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/examples/react-wagmi/package.json b/examples/react-wagmi/package.json index ae89c36b85..81848a3e7c 100644 --- a/examples/react-wagmi/package.json +++ b/examples/react-wagmi/package.json @@ -1,7 +1,7 @@ { "name": "@examples/react-wagmi", "private": true, - "version": "1.0.1", + "version": "1.0.4", "scripts": { "dev": "vite --port 3002", "build": "vite build", diff --git a/examples/vue-ethers5/CHANGELOG.md b/examples/vue-ethers5/CHANGELOG.md index 41243459d4..a1024f5a29 100644 --- a/examples/vue-ethers5/CHANGELOG.md +++ b/examples/vue-ethers5/CHANGELOG.md @@ -1,5 +1,49 @@ # @examples/vue-ethers5 +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-adapter-ethers5@1.0.4 + - @reown/appkit@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-adapter-ethers5@1.0.3 + - @reown/appkit@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-adapter-ethers5@1.0.2 + - @reown/appkit@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/examples/vue-ethers5/package.json b/examples/vue-ethers5/package.json index 8de94ad8e5..0703030cb9 100644 --- a/examples/vue-ethers5/package.json +++ b/examples/vue-ethers5/package.json @@ -1,7 +1,7 @@ { "name": "@examples/vue-ethers5", "private": true, - "version": "1.0.1", + "version": "1.0.4", "scripts": { "dev": "vite --port 3013", "build": "vite build" diff --git a/examples/vue-solana/CHANGELOG.md b/examples/vue-solana/CHANGELOG.md index 6baf421f93..c472b8b908 100644 --- a/examples/vue-solana/CHANGELOG.md +++ b/examples/vue-solana/CHANGELOG.md @@ -1,5 +1,49 @@ # @examples/vue-solana +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit@1.0.4 + - @reown/appkit-solana@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit@1.0.3 + - @reown/appkit-solana@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit@1.0.2 + - @reown/appkit-solana@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/examples/vue-solana/package.json b/examples/vue-solana/package.json index ffe2663bfd..a627aaef92 100644 --- a/examples/vue-solana/package.json +++ b/examples/vue-solana/package.json @@ -1,7 +1,7 @@ { "name": "@examples/vue-solana", "private": true, - "version": "1.0.1", + "version": "1.0.4", "scripts": { "dev": "vite --port 3013" }, diff --git a/examples/vue-wagmi/CHANGELOG.md b/examples/vue-wagmi/CHANGELOG.md index 7160465781..85439a189c 100644 --- a/examples/vue-wagmi/CHANGELOG.md +++ b/examples/vue-wagmi/CHANGELOG.md @@ -1,5 +1,49 @@ # @examples/vue-wagmi +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-adapter-wagmi@1.0.4 + - @reown/appkit@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-adapter-wagmi@1.0.3 + - @reown/appkit@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-adapter-wagmi@1.0.2 + - @reown/appkit@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/examples/vue-wagmi/package.json b/examples/vue-wagmi/package.json index 356073027b..4ce4b16738 100644 --- a/examples/vue-wagmi/package.json +++ b/examples/vue-wagmi/package.json @@ -1,7 +1,7 @@ { "name": "@examples/vue-wagmi", "private": true, - "version": "1.0.1", + "version": "1.0.4", "scripts": { "dev": "vite --port 3003", "build": "vite build" diff --git a/packages/adapters/ethers/CHANGELOG.md b/packages/adapters/ethers/CHANGELOG.md index bfbe131060..4e6757fe61 100644 --- a/packages/adapters/ethers/CHANGELOG.md +++ b/packages/adapters/ethers/CHANGELOG.md @@ -1,5 +1,70 @@ # @reown/appkit-adapter-ethers +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-scaffold-ui@1.0.4 + - @reown/appkit@1.0.4 + - @reown/appkit-utils@1.0.4 + - @reown/appkit-common@1.0.4 + - @reown/appkit-core@1.0.4 + - @reown/appkit-polyfills@1.0.4 + - @reown/appkit-siwe@1.0.4 + - @reown/appkit-ui@1.0.4 + - @reown/appkit-wallet@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-wallet@1.0.3 + - @reown/appkit@1.0.3 + - @reown/appkit-utils@1.0.3 + - @reown/appkit-common@1.0.3 + - @reown/appkit-core@1.0.3 + - @reown/appkit-polyfills@1.0.3 + - @reown/appkit-scaffold-ui@1.0.3 + - @reown/appkit-siwe@1.0.3 + - @reown/appkit-ui@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-wallet@1.0.2 + - @reown/appkit-core@1.0.2 + - @reown/appkit@1.0.2 + - @reown/appkit-utils@1.0.2 + - @reown/appkit-common@1.0.2 + - @reown/appkit-polyfills@1.0.2 + - @reown/appkit-scaffold-ui@1.0.2 + - @reown/appkit-siwe@1.0.2 + - @reown/appkit-ui@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/packages/adapters/ethers/package.json b/packages/adapters/ethers/package.json index 5e413a601c..e70585a157 100644 --- a/packages/adapters/ethers/package.json +++ b/packages/adapters/ethers/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-adapter-ethers", - "version": "1.0.1", + "version": "1.0.4", "type": "module", "main": "./dist/esm/src/index.js", "types": "./dist/types/src/index.d.ts", diff --git a/packages/adapters/ethers/src/client.ts b/packages/adapters/ethers/src/client.ts index 82ad431a6f..7dccf29f2a 100644 --- a/packages/adapters/ethers/src/client.ts +++ b/packages/adapters/ethers/src/client.ts @@ -613,12 +613,10 @@ export class EthersAdapter { if (provider) { const { addresses, chainId } = await EthersHelpersUtil.getUserInfo(provider) const firstAddress = addresses?.[0] - const caipNetwork = this.caipNetworks.find(c => c.chainId === chainId) const caipAddress = `${this.chainNamespace}:${chainId}:${firstAddress}` as CaipAddress - if (firstAddress && chainId && caipNetwork) { + if (firstAddress && chainId) { this.appKit?.setCaipAddress(caipAddress, this.chainNamespace) - this.appKit?.setCaipNetwork(caipNetwork) ProviderUtil.setProviderId('eip155', providerId) ProviderUtil.setProvider('eip155', provider) this.appKit?.setStatus('connected', this.chainNamespace) @@ -660,8 +658,6 @@ export class EthersAdapter { : [{ address, type: preferredAccountType as 'eoa' | 'smartAccount' }], this.chainNamespace ) - const caipNetwork = this.caipNetworks.find(c => c.chainId === chainId) - this.appKit?.setCaipNetwork(caipNetwork) this.appKit?.setStatus('connected', this.chainNamespace) this.appKit?.setCaipAddress( `${this.chainNamespace}:${chainId}:${address}`, @@ -717,13 +713,13 @@ export class EthersAdapter { } } - const chainChangedHandler = (networkId: string) => { - if (networkId) { - const networkIdNumber = - typeof networkId === 'string' - ? EthersHelpersUtil.hexStringToNumber(networkId) - : Number(networkId) - const caipNetwork = this.caipNetworks.find(c => c.chainId === networkIdNumber) + const chainChangedHandler = (chainId: string) => { + const chainIdNumber = + typeof chainId === 'string' ? EthersHelpersUtil.hexStringToNumber(chainId) : Number(chainId) + const caipNetwork = this.caipNetworks.find(c => c.chainId === chainIdNumber) + const currentCaipNetwork = this.appKit?.getCaipNetwork() + + if (!currentCaipNetwork || currentCaipNetwork?.id !== caipNetwork?.id) { this.appKit?.setCaipNetwork(caipNetwork) } } @@ -836,10 +832,7 @@ export class EthersAdapter { this.appKit?.setLoading(true) const chainId = NetworkUtil.caipNetworkIdToNumber(this.appKit?.getCaipNetwork()?.id) - const caipNetwork = this.caipNetworks.find(c => c.chainId === chainId) - this.appKit?.setCaipAddress(`eip155:${chainId}:${address}`, this.chainNamespace) - this.appKit?.setCaipNetwork(caipNetwork) this.appKit?.setStatus('connected', this.chainNamespace) this.appKit?.setPreferredAccountType(type as W3mFrameTypes.AccountType, this.chainNamespace) @@ -1014,13 +1007,12 @@ export class EthersAdapter { } public async switchNetwork(caipNetwork: CaipNetwork) { - const requestSwitchNetwork = async (provider: Provider) => { + async function requestSwitchNetwork(provider: Provider) { try { await provider.request({ method: 'wallet_switchEthereumChain', params: [{ chainId: EthersHelpersUtil.numberToHexString(caipNetwork.chainId) }] }) - this.appKit?.setCaipNetwork(caipNetwork) // eslint-disable-next-line @typescript-eslint/no-explicit-any } catch (switchError: any) { if ( diff --git a/packages/adapters/ethers/src/tests/client.test.ts b/packages/adapters/ethers/src/tests/client.test.ts index fa86bac689..b46b9c25b5 100644 --- a/packages/adapters/ethers/src/tests/client.test.ts +++ b/packages/adapters/ethers/src/tests/client.test.ts @@ -165,7 +165,6 @@ describe('EthersAdapter', () => { ]) }) ) - expect(mockAppKit.setCaipNetwork).toHaveBeenCalledWith(newNetwork) }) it('should add network if not recognized by wallet', async () => { @@ -344,7 +343,6 @@ describe('EthersAdapter', () => { expect(mockAppKit.setLoading).toHaveBeenCalledWith(true) expect(mockAppKit.setCaipAddress).toHaveBeenCalledWith(`eip155:${1}:${address}`, 'eip155') - expect(mockAppKit.setCaipNetwork).toHaveBeenCalled() expect(mockAppKit.setStatus).toHaveBeenCalledWith('connected', 'eip155') expect(mockAppKit.setPreferredAccountType).toHaveBeenCalledWith(type, 'eip155') @@ -388,7 +386,6 @@ describe('EthersAdapter', () => { [{ address: mockAddress, type: mockPreferredAccountType }], 'eip155' ) - expect(mockAppKit.setCaipNetwork).toHaveBeenCalled() expect(mockAppKit.setStatus).toHaveBeenCalledWith('connected', 'eip155') expect(mockAppKit.setCaipAddress).toHaveBeenCalledWith( `eip155:${mockChainId}:${mockAddress}`, @@ -527,7 +524,6 @@ describe('EthersAdapter', () => { SafeLocalStorageKeys.WALLET_NAME, 'MetaMask' ) - expect(mockAppKit.setCaipNetwork).toHaveBeenCalled() expect(mockAppKit.setCaipAddress).toHaveBeenCalled() expect(ProviderUtil.setProviderId).toHaveBeenCalledWith('eip155', 'injected') expect(ProviderUtil.setProvider).toHaveBeenCalledWith('eip155', mockProvider) @@ -584,7 +580,7 @@ describe('EthersAdapter', () => { const chainChangedHandler = mockProvider.on.mock.calls.find( (call: string[]) => call[0] === 'chainChanged' )[1] - await chainChangedHandler('0x1') + await chainChangedHandler('0x137') expect(mockAppKit.setCaipNetwork).toHaveBeenCalled() }) diff --git a/packages/adapters/ethers5/CHANGELOG.md b/packages/adapters/ethers5/CHANGELOG.md index 16cb8bc819..d090828a27 100644 --- a/packages/adapters/ethers5/CHANGELOG.md +++ b/packages/adapters/ethers5/CHANGELOG.md @@ -1,5 +1,70 @@ # @reown/appkit-adapter-ethers5 +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-scaffold-ui@1.0.4 + - @reown/appkit@1.0.4 + - @reown/appkit-utils@1.0.4 + - @reown/appkit-common@1.0.4 + - @reown/appkit-core@1.0.4 + - @reown/appkit-polyfills@1.0.4 + - @reown/appkit-siwe@1.0.4 + - @reown/appkit-ui@1.0.4 + - @reown/appkit-wallet@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-wallet@1.0.3 + - @reown/appkit@1.0.3 + - @reown/appkit-utils@1.0.3 + - @reown/appkit-common@1.0.3 + - @reown/appkit-core@1.0.3 + - @reown/appkit-polyfills@1.0.3 + - @reown/appkit-scaffold-ui@1.0.3 + - @reown/appkit-siwe@1.0.3 + - @reown/appkit-ui@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-wallet@1.0.2 + - @reown/appkit-core@1.0.2 + - @reown/appkit@1.0.2 + - @reown/appkit-utils@1.0.2 + - @reown/appkit-common@1.0.2 + - @reown/appkit-polyfills@1.0.2 + - @reown/appkit-scaffold-ui@1.0.2 + - @reown/appkit-siwe@1.0.2 + - @reown/appkit-ui@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/packages/adapters/ethers5/package.json b/packages/adapters/ethers5/package.json index 5909c867f4..4710792fa5 100644 --- a/packages/adapters/ethers5/package.json +++ b/packages/adapters/ethers5/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-adapter-ethers5", - "version": "1.0.1", + "version": "1.0.4", "type": "module", "main": "./dist/esm/src/index.js", "types": "./dist/types/src/index.d.ts", diff --git a/packages/adapters/ethers5/src/client.ts b/packages/adapters/ethers5/src/client.ts index b324b14c80..67a55f9300 100644 --- a/packages/adapters/ethers5/src/client.ts +++ b/packages/adapters/ethers5/src/client.ts @@ -722,13 +722,13 @@ export class Ethers5Adapter { } } - const chainChangedHandler = (networkId: string) => { - if (networkId) { - const networkIdNumber = - typeof networkId === 'string' - ? EthersHelpersUtil.hexStringToNumber(networkId) - : Number(networkId) - const caipNetwork = this.caipNetworks.find(c => c.chainId === networkIdNumber) + const chainChangedHandler = (chainId: string) => { + const chainIdNumber = + typeof chainId === 'string' ? EthersHelpersUtil.hexStringToNumber(chainId) : Number(chainId) + const caipNetwork = this.caipNetworks.find(c => c.chainId === chainIdNumber) + const currentCaipNetwork = this.appKit?.getCaipNetwork() + + if (!currentCaipNetwork || currentCaipNetwork?.id !== caipNetwork?.id) { this.appKit?.setCaipNetwork(caipNetwork) } } @@ -829,7 +829,6 @@ export class Ethers5Adapter { return } - this.appKit?.setIsConnected(true, this.chainNamespace) this.appKit?.setPreferredAccountType( preferredAccountType as W3mFrameTypes.AccountType, this.chainNamespace diff --git a/packages/adapters/ethers5/src/tests/client.test.ts b/packages/adapters/ethers5/src/tests/client.test.ts index a0e57eebb8..3909eea4b6 100644 --- a/packages/adapters/ethers5/src/tests/client.test.ts +++ b/packages/adapters/ethers5/src/tests/client.test.ts @@ -349,7 +349,6 @@ describe('EthersAdapter', () => { expect(mockAppKit.setLoading).toHaveBeenCalledWith(true) expect(mockAppKit.setCaipAddress).toHaveBeenCalledWith(`eip155:${1}:${address}`, 'eip155') - expect(mockAppKit.setCaipNetwork).toHaveBeenCalled() expect(mockAppKit.setStatus).toHaveBeenCalledWith('connected', 'eip155') expect(mockAppKit.setPreferredAccountType).toHaveBeenCalledWith(type, 'eip155') @@ -532,7 +531,6 @@ describe('EthersAdapter', () => { SafeLocalStorageKeys.WALLET_NAME, 'MetaMask' ) - expect(mockAppKit.setCaipNetwork).toHaveBeenCalled() expect(ProviderUtil.setProviderId).toHaveBeenCalledWith('eip155', 'injected') expect(ProviderUtil.setProvider).toHaveBeenCalledWith('eip155', mockProvider) expect(mockAppKit.setStatus).toHaveBeenCalledWith('connected', 'eip155') @@ -588,7 +586,7 @@ describe('EthersAdapter', () => { const chainChangedHandler = mockProvider.on.mock.calls.find( (call: string[]) => call[0] === 'chainChanged' )[1] - await chainChangedHandler('0x1') + await chainChangedHandler('0x2') expect(mockAppKit.setCaipNetwork).toHaveBeenCalled() }) diff --git a/packages/adapters/polkadot/CHANGELOG.md b/packages/adapters/polkadot/CHANGELOG.md index 2dde996119..c3380247e0 100644 --- a/packages/adapters/polkadot/CHANGELOG.md +++ b/packages/adapters/polkadot/CHANGELOG.md @@ -1,5 +1,52 @@ # @reown/appkit-adapter-polkadot +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit@1.0.4 + - @reown/appkit-common@1.0.4 + - @reown/appkit-core@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit@1.0.3 + - @reown/appkit-common@1.0.3 + - @reown/appkit-core@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-core@1.0.2 + - @reown/appkit@1.0.2 + - @reown/appkit-common@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/packages/adapters/polkadot/package.json b/packages/adapters/polkadot/package.json index c44ce6af0b..2564717108 100644 --- a/packages/adapters/polkadot/package.json +++ b/packages/adapters/polkadot/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-adapter-polkadot", - "version": "1.0.1", + "version": "1.0.4", "scripts": { "build:clean": "rm -rf dist", "build": "tsc --build tsconfig.build.json", diff --git a/packages/adapters/solana/CHANGELOG.md b/packages/adapters/solana/CHANGELOG.md index 279d0699ef..4ecee030d6 100644 --- a/packages/adapters/solana/CHANGELOG.md +++ b/packages/adapters/solana/CHANGELOG.md @@ -1,5 +1,70 @@ # @reown/appkit-adapter-solana +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-scaffold-ui@1.0.4 + - @reown/appkit@1.0.4 + - @reown/appkit-utils@1.0.4 + - @reown/appkit-common@1.0.4 + - @reown/appkit-core@1.0.4 + - @reown/appkit-polyfills@1.0.4 + - @reown/appkit-siwe@1.0.4 + - @reown/appkit-ui@1.0.4 + - @reown/appkit-wallet@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-wallet@1.0.3 + - @reown/appkit@1.0.3 + - @reown/appkit-utils@1.0.3 + - @reown/appkit-common@1.0.3 + - @reown/appkit-core@1.0.3 + - @reown/appkit-polyfills@1.0.3 + - @reown/appkit-scaffold-ui@1.0.3 + - @reown/appkit-siwe@1.0.3 + - @reown/appkit-ui@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-wallet@1.0.2 + - @reown/appkit-core@1.0.2 + - @reown/appkit@1.0.2 + - @reown/appkit-utils@1.0.2 + - @reown/appkit-common@1.0.2 + - @reown/appkit-polyfills@1.0.2 + - @reown/appkit-scaffold-ui@1.0.2 + - @reown/appkit-siwe@1.0.2 + - @reown/appkit-ui@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/packages/adapters/solana/package.json b/packages/adapters/solana/package.json index b45c73684a..b39bb3c213 100644 --- a/packages/adapters/solana/package.json +++ b/packages/adapters/solana/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-adapter-solana", - "version": "1.0.1", + "version": "1.0.4", "type": "module", "main": "./dist/esm/src/index.js", "types": "./dist/types/src/index.d.ts", diff --git a/packages/adapters/solana/src/client.ts b/packages/adapters/solana/src/client.ts index b0a4cd9f14..dca682af4c 100644 --- a/packages/adapters/solana/src/client.ts +++ b/packages/adapters/solana/src/client.ts @@ -2,7 +2,6 @@ import { Connection } from '@solana/web3.js' import { AccountController, ApiController, - AssetController, ChainController, CoreHelperUtil, EventsController @@ -311,10 +310,6 @@ export class SolanaAdapter implements ChainAdapter { this.syncRequestedNetworks(this.caipNetworks) - AssetController.subscribeNetworkImages(() => { - this.syncNetwork() - }) - ChainController.subscribeKey('activeCaipNetwork', (newCaipNetwork: CaipNetwork | undefined) => { const newChain = this.caipNetworks.find( _chain => _chain.chainId === newCaipNetwork?.id.split(':')[1] diff --git a/packages/adapters/solana/src/providers/AuthProvider.ts b/packages/adapters/solana/src/providers/AuthProvider.ts index a0c780cf22..4759577f0c 100644 --- a/packages/adapters/solana/src/providers/AuthProvider.ts +++ b/packages/adapters/solana/src/providers/AuthProvider.ts @@ -201,8 +201,7 @@ export class AuthProvider extends ProviderEventEmitter implements Provider, Prov required?: Required ): Required extends true ? PublicKey : PublicKey | undefined { const session = this.getSession() - const namespace = this.getActiveNamespace() - if (!session || namespace !== 'solana') { + if (!session) { if (required) { throw new Error('Account is required') } @@ -231,10 +230,11 @@ export class AuthProvider extends ProviderEventEmitter implements Provider, Prov }) this.getProvider().onConnect(response => { - this.setSession(response) - const activeNamespace = this.getActiveNamespace() + const isSolanaNamespace = + typeof response.chainId === 'string' ? response.chainId?.startsWith('solana') : false - if (activeNamespace === 'solana') { + if (isSolanaNamespace) { + this.setSession(response) this.emit('connect', this.getPublicKey(true)) } }) diff --git a/packages/adapters/wagmi/CHANGELOG.md b/packages/adapters/wagmi/CHANGELOG.md index 52cee88492..d4b1524c95 100644 --- a/packages/adapters/wagmi/CHANGELOG.md +++ b/packages/adapters/wagmi/CHANGELOG.md @@ -1,5 +1,70 @@ # @reown/appkit-adapter-wagmi +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-scaffold-ui@1.0.4 + - @reown/appkit@1.0.4 + - @reown/appkit-utils@1.0.4 + - @reown/appkit-common@1.0.4 + - @reown/appkit-core@1.0.4 + - @reown/appkit-polyfills@1.0.4 + - @reown/appkit-siwe@1.0.4 + - @reown/appkit-ui@1.0.4 + - @reown/appkit-wallet@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-wallet@1.0.3 + - @reown/appkit@1.0.3 + - @reown/appkit-utils@1.0.3 + - @reown/appkit-common@1.0.3 + - @reown/appkit-core@1.0.3 + - @reown/appkit-polyfills@1.0.3 + - @reown/appkit-scaffold-ui@1.0.3 + - @reown/appkit-siwe@1.0.3 + - @reown/appkit-ui@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-wallet@1.0.2 + - @reown/appkit-core@1.0.2 + - @reown/appkit@1.0.2 + - @reown/appkit-utils@1.0.2 + - @reown/appkit-common@1.0.2 + - @reown/appkit-polyfills@1.0.2 + - @reown/appkit-scaffold-ui@1.0.2 + - @reown/appkit-siwe@1.0.2 + - @reown/appkit-ui@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/packages/adapters/wagmi/package.json b/packages/adapters/wagmi/package.json index d25a04a292..27132a31c6 100644 --- a/packages/adapters/wagmi/package.json +++ b/packages/adapters/wagmi/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-adapter-wagmi", - "version": "1.0.1", + "version": "1.0.4", "type": "module", "main": "./dist/esm/src/index.js", "types": "./dist/types/src/index.d.ts", diff --git a/packages/adapters/wagmi/src/client.ts b/packages/adapters/wagmi/src/client.ts index 9ee8283a7b..36f2d8c598 100644 --- a/packages/adapters/wagmi/src/client.ts +++ b/packages/adapters/wagmi/src/client.ts @@ -283,68 +283,68 @@ export class WagmiAdapter implements ChainAdapter { > const siweParams = await this.options?.siweConfig?.getMessageParams?.() + const isSiweEnabled = this.options?.siweConfig?.options?.enabled const isProviderSupported = typeof provider?.authenticate === 'function' const isSiweParamsValid = siweParams && Object.keys(siweParams || {}).length > 0 + const siweConfig = this.options?.siweConfig - if (isSiweEnabled && isProviderSupported && isSiweParamsValid) { + if (isSiweEnabled && isProviderSupported && isSiweParamsValid && siweConfig) { // @ts-expect-error - setting requested chains beforehand avoids wagmi auto disconnecting the session when `connect` is called because it things chains are stale await connector.setRequestedChainsIds(siweParams.chains) - const siweConfig = this.options?.siweConfig + const { SIWEController, getDidChainId, getDidAddress } = await import( + '@reown/appkit-siwe' + ) - const params = await siweConfig?.getMessageParams?.() + const chains = this.caipNetworks + ?.filter(network => network.chainNamespace === 'eip155') + .map(chain => chain.id) as string[] - if (siweConfig?.options?.enabled && params && Object.keys(params || {}).length > 0) { - const { SIWEController, getDidChainId, getDidAddress } = await import( - '@reown/appkit-siwe' - ) + siweParams.chains = this.caipNetworks + ?.filter(network => network.chainNamespace === 'eip155') + .map(chain => chain.chainId) as number[] - const chains = this.caipNetworks - ?.filter(network => network.chainNamespace === 'eip155') - .map(chain => chain.id) as string[] + const result = await provider.authenticate({ + nonce: await siweConfig.getNonce(), + methods: [...OPTIONAL_METHODS], + ...siweParams, + chains + }) + // Auths is an array of signed CACAO objects https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-74.md + const signedCacao = result?.auths?.[0] + + if (signedCacao) { + const { p, s } = signedCacao + const cacaoChainId = getDidChainId(p.iss) + const address = getDidAddress(p.iss) + if (address && cacaoChainId) { + SIWEController.setSession({ + address, + chainId: parseInt(cacaoChainId, 10) + }) + } - const result = await provider.authenticate({ - nonce: await siweConfig.getNonce(), - methods: [...OPTIONAL_METHODS], - ...params, - chains - }) - // Auths is an array of signed CACAO objects https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-74.md - const signedCacao = result?.auths?.[0] - - if (signedCacao) { - const { p, s } = signedCacao - const cacaoChainId = getDidChainId(p.iss) - const address = getDidAddress(p.iss) - if (address && cacaoChainId) { - SIWEController.setSession({ - address, - chainId: parseInt(cacaoChainId, 10) - }) - } - - try { - // Kicks off verifyMessage and populates external states - const message = provider.client.formatAuthMessage({ - request: p, - iss: p.iss - }) - - await SIWEController.verifyMessage({ - message, - signature: s.s, - cacao: signedCacao - }) - } catch (error) { - // eslint-disable-next-line no-console - console.error('Error verifying message', error) - // eslint-disable-next-line no-console - await provider.disconnect().catch(console.error) - // eslint-disable-next-line no-console - await SIWEController.signOut().catch(console.error) - throw error - } + try { + // Kicks off verifyMessage and populates external states + const message = provider.client.formatAuthMessage({ + request: p, + iss: p.iss + }) + + await SIWEController.verifyMessage({ + message, + signature: s.s, + cacao: signedCacao + }) + } catch (error) { + // eslint-disable-next-line no-console + console.error('Error verifying message', error) + // eslint-disable-next-line no-console + await provider.disconnect().catch(console.error) + // eslint-disable-next-line no-console + await SIWEController.signOut().catch(console.error) + throw error } } } @@ -394,7 +394,6 @@ export class WagmiAdapter implements ChainAdapter { await SIWEController.signOut() } SafeLocalStorage.removeItem(SafeLocalStorageKeys.WALLET_ID) - SafeLocalStorage.removeItem(SafeLocalStorageKeys.ACTIVE_CAIP_NETWORK) SafeLocalStorage.removeItem(SafeLocalStorageKeys.CONNECTED_CONNECTOR) SafeLocalStorage.removeItem(SafeLocalStorageKeys.WALLET_NAME) this.appKit?.setClientId(null) @@ -609,7 +608,6 @@ export class WagmiAdapter implements ChainAdapter { this.appKit?.resetNetwork() this.appKit?.setAllAccounts([], this.chainNamespace) SafeLocalStorage.removeItem(SafeLocalStorageKeys.WALLET_ID) - SafeLocalStorage.removeItem(SafeLocalStorageKeys.ACTIVE_CAIP_NETWORK) return } @@ -647,7 +645,6 @@ export class WagmiAdapter implements ChainAdapter { } } else if (status === 'connected' && address && chainId) { const caipAddress = `eip155:${chainId}:${address}` as CaipAddress - this.appKit?.resetAccount(this.chainNamespace) this.syncNetwork(address, chainId, true) this.appKit?.setCaipAddress(caipAddress, this.chainNamespace) await Promise.all([ diff --git a/packages/adapters/wagmi/src/connectors/UniversalConnector.ts b/packages/adapters/wagmi/src/connectors/UniversalConnector.ts index ec0324c416..38b68d9b4e 100644 --- a/packages/adapters/wagmi/src/connectors/UniversalConnector.ts +++ b/packages/adapters/wagmi/src/connectors/UniversalConnector.ts @@ -19,10 +19,10 @@ import { numberToHex } from 'viem' import { WcHelpersUtil } from '@reown/appkit' +import { StorageUtil } from '@reown/appkit-core' import type { AppKitOptions } from '@reown/appkit' import type { AppKit } from '@reown/appkit' import { convertToAppKitChains } from '../utils/helpers.js' -import { SafeLocalStorage, SafeLocalStorageKeys } from '@reown/appkit-common' type UniversalConnector = Connector & { onDisplayUri(uri: string): void @@ -231,7 +231,8 @@ export function walletConnect(parameters: AppKitOptionsParams, appKit: AppKit) { const currentChainId = appKit.getCaipNetwork()?.chainId if (chainId && currentChainId !== chainId) { - const storedCaipNetwork = SafeLocalStorage.getItem(SafeLocalStorageKeys.ACTIVE_CAIP_NETWORK) + const storedCaipNetwork = StorageUtil.getStoredActiveCaipNetwork() + if (storedCaipNetwork && storedCaipNetwork.chainNamespace === 'eip155') { await this.switchChain?.({ chainId: Number(storedCaipNetwork.chainId) }) } else { diff --git a/packages/appkit-utils/CHANGELOG.md b/packages/appkit-utils/CHANGELOG.md index 9161f250b7..883528bb04 100644 --- a/packages/appkit-utils/CHANGELOG.md +++ b/packages/appkit-utils/CHANGELOG.md @@ -1,5 +1,55 @@ # @reown/appkit-utils +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-common@1.0.4 + - @reown/appkit-core@1.0.4 + - @reown/appkit-polyfills@1.0.4 + - @reown/appkit-wallet@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-wallet@1.0.3 + - @reown/appkit-common@1.0.3 + - @reown/appkit-core@1.0.3 + - @reown/appkit-polyfills@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-wallet@1.0.2 + - @reown/appkit-core@1.0.2 + - @reown/appkit-common@1.0.2 + - @reown/appkit-polyfills@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/packages/appkit-utils/package.json b/packages/appkit-utils/package.json index fbb7e80b53..50e358210a 100644 --- a/packages/appkit-utils/package.json +++ b/packages/appkit-utils/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-utils", - "version": "1.0.1", + "version": "1.0.4", "type": "module", "main": "./dist/esm/exports/index.js", "types": "./dist/types/exports/index.d.ts", diff --git a/packages/appkit/CHANGELOG.md b/packages/appkit/CHANGELOG.md index e2748ad13e..ab37579e85 100644 --- a/packages/appkit/CHANGELOG.md +++ b/packages/appkit/CHANGELOG.md @@ -1,5 +1,67 @@ # @reown/appkit +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-scaffold-ui@1.0.4 + - @reown/appkit-utils@1.0.4 + - @reown/appkit-common@1.0.4 + - @reown/appkit-core@1.0.4 + - @reown/appkit-polyfills@1.0.4 + - @reown/appkit-siwe@1.0.4 + - @reown/appkit-ui@1.0.4 + - @reown/appkit-wallet@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-wallet@1.0.3 + - @reown/appkit-utils@1.0.3 + - @reown/appkit-common@1.0.3 + - @reown/appkit-core@1.0.3 + - @reown/appkit-polyfills@1.0.3 + - @reown/appkit-scaffold-ui@1.0.3 + - @reown/appkit-siwe@1.0.3 + - @reown/appkit-ui@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-wallet@1.0.2 + - @reown/appkit-core@1.0.2 + - @reown/appkit-utils@1.0.2 + - @reown/appkit-common@1.0.2 + - @reown/appkit-polyfills@1.0.2 + - @reown/appkit-scaffold-ui@1.0.2 + - @reown/appkit-siwe@1.0.2 + - @reown/appkit-ui@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/packages/appkit/package.json b/packages/appkit/package.json index 77b51b1294..e9afc3484a 100644 --- a/packages/appkit/package.json +++ b/packages/appkit/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit", - "version": "1.0.1", + "version": "1.0.4", "type": "module", "main": "./dist/esm/exports/index.js", "types": "./dist/types/exports/index.d.ts", diff --git a/packages/appkit/src/client.ts b/packages/appkit/src/client.ts index fbff2654b5..b5f77d2135 100644 --- a/packages/appkit/src/client.ts +++ b/packages/appkit/src/client.ts @@ -32,7 +32,9 @@ import { ConstantsUtil, type CaipNetwork, type ChainNamespace, - CaipNetworksUtil + CaipNetworksUtil, + SafeLocalStorage, + SafeLocalStorageKeys } from '@reown/appkit-common' import type { AppKitOptions } from './utils/TypesUtil.js' import { UniversalAdapterClient } from './universal-adapter/client.js' @@ -108,10 +110,6 @@ export class AppKit { return NetworkController.switchActiveNetwork(caipNetwork) } - public getIsConnected() { - return AccountController.state.isConnected - } - public getWalletProvider() { return ChainController.state.activeChain ? ProviderUtil.state.providers[ChainController.state.activeChain] @@ -216,15 +214,11 @@ export class AppKit { ]?.replace } - public setIsConnected: (typeof AccountController)['setIsConnected'] = (isConnected, chain) => { - AccountController.setIsConnected(isConnected, chain) - } - public setStatus: (typeof AccountController)['setStatus'] = (status, chain) => { AccountController.setStatus(status, chain) } - public getIsConnectedState = () => AccountController.state.isConnected + public getIsConnectedState = () => Boolean(ChainController.state.activeCaipAddress) public setAllAccounts: (typeof AccountController)['setAllAccounts'] = (addresses, chain) => { AccountController.setAllAccounts(addresses, chain) @@ -292,7 +286,7 @@ export class AppKit { } public setCaipNetwork: (typeof NetworkController)['setCaipNetwork'] = caipNetwork => { - NetworkController.setActiveCaipNetwork(caipNetwork) + ChainController.setActiveCaipNetwork(caipNetwork) } public getCaipNetwork = (chainNamespace?: ChainNamespace) => { @@ -427,32 +421,11 @@ export class AppKit { this.adapters = options.adapters - options.metadata ||= { - name: - typeof document === 'undefined' - ? '' - : document.getElementsByTagName('title')[0]?.textContent || '', - description: - typeof document === 'undefined' - ? '' - : document.querySelector('meta[property="og:description"]')?.content || - '', - url: typeof window === 'undefined' ? '' : window.location.origin, - icons: [ - typeof document === 'undefined' - ? '' - : document.querySelector('link[rel~="icon"]')?.href || '' - ] - } - - options.networks = this.prepareCaipNetworks( - options.networks, - options.chainImages, - options.projectId - ) - + this.setMetadata(options) + this.extendCaipNetworks(options) this.initializeUniversalAdapter(options) this.initializeAdapters(options) + this.setDefaultNetwork(options) OptionsController.setAllWallets(options.allWallets) OptionsController.setIncludeWalletIds(options.includeWalletIds) @@ -498,14 +471,33 @@ export class AppKit { } } + private setMetadata(options: AppKitOptions) { + if (typeof window === 'undefined' || typeof document === 'undefined') { + return + } + + options.metadata = { + name: document.getElementsByTagName('title')[0]?.textContent || '', + description: + document.querySelector('meta[property="og:description"]')?.content || '', + url: window.location.origin, + icons: [document.querySelector('link[rel~="icon"]')?.href || ''] + } + } + + private extendCaipNetworks(options: AppKitOptions) { + options.networks = CaipNetworksUtil.extendCaipNetworks(options.networks, { + networkImageIds: PresetsUtil.NetworkImageIds, + customNetworkImageUrls: options.chainImages, + projectId: options.projectId + }) + options.defaultNetwork = options.networks.find(n => n.id === options.defaultNetwork?.id) + } + private initializeUniversalAdapter(options: AppKitOptions) { this.universalAdapter = new UniversalAdapterClient(options) - ChainController.initializeUniversalAdapter(this.universalAdapter, options.adapters || []) - this.universalAdapter.construct?.(this, options) - - NetworkController.setDefaultCaipNetwork(options.defaultNetwork) } private initializeAdapters(options: AppKitOptions) { @@ -513,11 +505,26 @@ export class AppKit { options.adapters?.forEach(adapter => { // @ts-expect-error will introduce construct later adapter.construct?.(this, options) - - NetworkController.setDefaultCaipNetwork(options.defaultNetwork) }) } + private setDefaultNetwork(options: AppKitOptions) { + const extendedDefaultNetwork = options.defaultNetwork + ? CaipNetworksUtil.extendCaipNetwork(options.defaultNetwork, { + networkImageIds: PresetsUtil.NetworkImageIds, + customNetworkImageUrls: options.chainImages, + projectId: options.projectId + }) + : undefined + const previousNetwork = SafeLocalStorage.getItem(SafeLocalStorageKeys.ACTIVE_CAIP_NETWORK_ID) + const caipNetwork = previousNetwork + ? options.networks.find(n => n.id === previousNetwork) + : undefined + + const network = caipNetwork ?? extendedDefaultNetwork ?? options.networks[0] + ChainController.setActiveCaipNetwork(network) + } + private async initOrContinue() { if (!this.initPromise && !isInitialized && CoreHelperUtil.isClient()) { isInitialized = true @@ -536,17 +543,4 @@ export class AppKit { return this.initPromise } - - private prepareCaipNetworks( - caipNetworks: CaipNetwork[], - caipNetworkImages: Record | undefined, - projectId: string - ): CaipNetwork[] { - return caipNetworks.map(caipNetwork => ({ - ...caipNetwork, - imageId: PresetsUtil.NetworkImageIds[caipNetwork.chainId], - imageUrl: caipNetworkImages?.[caipNetwork.chainId], - rpcUrl: CaipNetworksUtil.extendRpcUrlWithProjectId(caipNetwork.rpcUrl, projectId) - })) - } } diff --git a/packages/appkit/src/tests/appkit.test.ts b/packages/appkit/src/tests/appkit.test.ts index 60782052b9..bf560b4384 100644 --- a/packages/appkit/src/tests/appkit.test.ts +++ b/packages/appkit/src/tests/appkit.test.ts @@ -177,21 +177,11 @@ describe('Base', () => { expect(appKit.isTransactionShouldReplaceView()).toBe(true) }) - it('should set is connected', () => { - appKit.setIsConnected(true, 'eip155') - expect(AccountController.setIsConnected).toHaveBeenCalledWith(true, 'eip155') - }) - it('should set status', () => { appKit.setStatus('connected', 'eip155') expect(AccountController.setStatus).toHaveBeenCalledWith('connected', 'eip155') }) - it('should get is connected state', () => { - vi.mocked(AccountController).state = { isConnected: true } as any - expect(appKit.getIsConnectedState()).toBe(true) - }) - it('should set all accounts', () => { const addresses = ['0x123', '0x456'] as unknown as AccountType[] appKit.setAllAccounts(addresses, 'eip155') @@ -239,6 +229,7 @@ describe('Base', () => { it('should set CAIP address', () => { appKit.setCaipAddress('eip155:1:0x123', 'eip155') + expect(appKit.getIsConnectedState()).toBe(true) expect(AccountController.setCaipAddress).toHaveBeenCalledWith('eip155:1:0x123', 'eip155') }) @@ -276,7 +267,7 @@ describe('Base', () => { it('should set CAIP network', () => { const caipNetwork = { id: 'eip155:1', name: 'Ethereum' } as unknown as CaipNetwork appKit.setCaipNetwork(caipNetwork) - expect(NetworkController.setActiveCaipNetwork).toHaveBeenCalledWith(caipNetwork) + expect(ChainController.setActiveCaipNetwork).toHaveBeenCalledWith(caipNetwork) }) it('should get CAIP network', () => { diff --git a/packages/appkit/src/tests/universal-adapter.test.ts b/packages/appkit/src/tests/universal-adapter.test.ts index 3054521c08..4de82634d9 100644 --- a/packages/appkit/src/tests/universal-adapter.test.ts +++ b/packages/appkit/src/tests/universal-adapter.test.ts @@ -68,8 +68,7 @@ describe('UniversalAdapter', () => { caipNetwork: undefined, requestedCaipNetworks: [mainnet, solana], approvedCaipNetworkIds: [], - supportsAllNetworks: true, - isDefaultCaipNetwork: false + supportsAllNetworks: true }) const adapterSpy = vi.spyOn(universalAdapter as any, 'setDefaultNetwork') diff --git a/packages/appkit/src/universal-adapter/client.ts b/packages/appkit/src/universal-adapter/client.ts index c0dacdfc46..fbe1d4b4c6 100644 --- a/packages/appkit/src/universal-adapter/client.ts +++ b/packages/appkit/src/universal-adapter/client.ts @@ -5,6 +5,7 @@ import { ConnectionController, CoreHelperUtil, NetworkController, + StorageUtil, type ConnectionControllerClient, type Connector, type NetworkControllerClient @@ -25,7 +26,6 @@ import type { import { SafeLocalStorage, SafeLocalStorageKeys } from '@reown/appkit-common' import { ProviderUtil } from '../store/index.js' import type { AppKitOptions } from '../utils/TypesUtil.js' -import { allChains } from '../networks/index.js' type Metadata = { name: string @@ -176,6 +176,10 @@ export class UniversalAdapterClient { ?.filter(network => network.chainNamespace === 'eip155') .map(chain => chain.id) as string[] + siweParams.chains = this.caipNetworks + ?.filter(network => network.chainNamespace === 'eip155') + .map(chain => chain.chainId) as number[] + const result = await WalletConnectProvider.authenticate({ nonce: await siweConfig?.getNonce?.(), methods: [...OPTIONAL_METHODS], @@ -228,7 +232,6 @@ export class UniversalAdapterClient { disconnect: async () => { SafeLocalStorage.removeItem(SafeLocalStorageKeys.WALLET_ID) - SafeLocalStorage.removeItem(SafeLocalStorageKeys.ACTIVE_CAIP_NETWORK) if (siweConfig?.options?.signOutOnDisconnect) { const { SIWEController } = await import('@reown/appkit-siwe') @@ -398,7 +401,7 @@ export class UniversalAdapterClient { } }) - const storedCaipNetwork = SafeLocalStorage.getItem(SafeLocalStorageKeys.ACTIVE_CAIP_NETWORK) + const storedCaipNetwork = StorageUtil.getStoredActiveCaipNetwork() const activeCaipNetwork = ChainController.state.activeCaipNetwork try { @@ -455,7 +458,6 @@ export class UniversalAdapterClient { ConnectionController.resetWcConnection() SafeLocalStorage.removeItem(SafeLocalStorageKeys.WALLET_ID) - SafeLocalStorage.removeItem(SafeLocalStorageKeys.ACTIVE_CAIP_NETWORK) provider?.removeListener('disconnect', disconnectHandler) provider?.removeListener('accountsChanged', accountsChangedHandler) @@ -470,28 +472,24 @@ export class UniversalAdapterClient { const chainChanged = (chainId: number | string) => { // eslint-disable-next-line eqeqeq const caipNetwork = this.caipNetworks.find(c => c.chainId == chainId) - const isSameNetwork = - caipNetwork?.chainId === ChainController.state.activeCaipNetwork?.chainId + const currentCaipNetwork = this.appKit?.getCaipNetwork() + + if (!caipNetwork) { + NetworkController.setActiveCaipNetwork({ + chainId: Number(chainId), + id: `eip155:${chainId}`, + name: 'Unknown Network', + currency: '', + explorerUrl: '', + rpcUrl: '', + chainNamespace: this.appKit?.getActiveChainNamespace() || 'eip155' + }) - if (!isSameNetwork) { - if (caipNetwork) { - NetworkController.setActiveCaipNetwork(caipNetwork) - } else { - const chain = allChains.find(c => c.chainId.toString() === chainId.toString()) - if (chain) { - NetworkController.setActiveCaipNetwork(chain) - } else { - NetworkController.setActiveCaipNetwork({ - chainId: Number(chainId), - id: `eip155:${chainId}`, - name: 'Unknown Network', - currency: '', - explorerUrl: '', - rpcUrl: '', - chainNamespace: this.appKit?.getActiveChainNamespace() || 'eip155' - }) - } - } + return + } + + if (!currentCaipNetwork || currentCaipNetwork?.id !== caipNetwork?.id) { + this.appKit?.setCaipNetwork(caipNetwork) } } @@ -534,9 +532,10 @@ export class UniversalAdapterClient { this.appKit?.setPreferredAccountType(preferredAccountType, chainNamespace) this.appKit?.setCaipAddress(address, chainNamespace) this.syncConnectedWalletInfo() - this.syncAccounts() await Promise.all([this.appKit?.setApprovedCaipNetworksData(chainNamespace)]) } + + this.syncAccounts() }) } else { this.appKit?.resetWcConnection() diff --git a/packages/cdn/CHANGELOG.md b/packages/cdn/CHANGELOG.md index 9ef9f62734..af08824d72 100644 --- a/packages/cdn/CHANGELOG.md +++ b/packages/cdn/CHANGELOG.md @@ -1,5 +1,55 @@ # @reown/appkit-cdn +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-ethers@1.0.4 + - @reown/appkit-ethers5@1.0.4 + - @reown/appkit-polyfills@1.0.4 + - @reown/appkit-wagmi@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-ethers@1.0.3 + - @reown/appkit-ethers5@1.0.3 + - @reown/appkit-polyfills@1.0.3 + - @reown/appkit-wagmi@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-ethers@1.0.2 + - @reown/appkit-ethers5@1.0.2 + - @reown/appkit-polyfills@1.0.2 + - @reown/appkit-wagmi@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/packages/cdn/package.json b/packages/cdn/package.json index 746a2ac9d7..329a11b992 100644 --- a/packages/cdn/package.json +++ b/packages/cdn/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-cdn", - "version": "1.0.1", + "version": "1.0.4", "main": "dist/wagmi.js", "type": "module", "files": [ diff --git a/packages/common/CHANGELOG.md b/packages/common/CHANGELOG.md index 8e3183c533..bd169f88d6 100644 --- a/packages/common/CHANGELOG.md +++ b/packages/common/CHANGELOG.md @@ -1,5 +1,37 @@ # @reown/appkit-common +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + ## 1.0.1 ### Patch Changes diff --git a/packages/common/package.json b/packages/common/package.json index 7dc036f930..96cb5b0ec4 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-common", - "version": "1.0.1", + "version": "1.0.4", "type": "module", "main": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", diff --git a/packages/common/src/utils/CaipNetworksUtil.ts b/packages/common/src/utils/CaipNetworksUtil.ts index 9d75cc6612..7c968554f7 100644 --- a/packages/common/src/utils/CaipNetworksUtil.ts +++ b/packages/common/src/utils/CaipNetworksUtil.ts @@ -1,5 +1,13 @@ +import type { CaipNetwork } from './TypeUtil.js' + const RPC_URL_HOST = 'rpc.walletconnect.org' +type ExtendCaipNetworkParams = { + networkImageIds: Record + customNetworkImageUrls: Record | undefined + projectId: string +} + export const CaipNetworksUtil = { /** * Extends the RPC URL with the project ID if the RPC URL is a Reown URL @@ -12,11 +20,56 @@ export const CaipNetworksUtil = { if (isReownUrl) { const url = new URL(rpcUrl) - url.searchParams.set('projectId', projectId) + if (!url.searchParams.has('projectId')) { + url.searchParams.set('projectId', projectId) + } return url.toString() } return rpcUrl + }, + + /** + * Extends the CaipNetwork object with the image ID and image URL if the image ID is not provided + * @param params - The parameters object + * @param params.caipNetwork - The CaipNetwork object to extend + * @param params.networkImageIds - The network image IDs + * @param params.customNetworkImageUrls - The custom network image URLs + * @param params.projectId - The project ID + * @returns The extended array of CaipNetwork objects + */ + extendCaipNetwork( + caipNetwork: CaipNetwork, + { networkImageIds, customNetworkImageUrls, projectId }: ExtendCaipNetworkParams + ): CaipNetwork { + return { + ...caipNetwork, + imageId: networkImageIds[caipNetwork.chainId], + imageUrl: customNetworkImageUrls?.[caipNetwork.chainId], + rpcUrl: CaipNetworksUtil.extendRpcUrlWithProjectId(caipNetwork.rpcUrl, projectId) + } + }, + + /** + * Extends the array of CaipNetwork objects with the image ID and image URL if the image ID is not provided + * @param caipNetworks - The array of CaipNetwork objects to extend + * @param params - The parameters object + * @param params.networkImageIds - The network image IDs + * @param params.customNetworkImageUrls - The custom network image URLs + * @param params.projectId - The project ID + * @returns The extended array of CaipNetwork objects + */ + extendCaipNetworks( + caipNetworks: CaipNetwork[], + { networkImageIds, customNetworkImageUrls, projectId }: ExtendCaipNetworkParams + ): CaipNetwork[] { + return caipNetworks.map(caipNetwork => + CaipNetworksUtil.extendCaipNetwork(caipNetwork, { + networkImageIds, + customNetworkImageUrls, + projectId + }) + ) } } diff --git a/packages/common/src/utils/SafeLocalStorage.ts b/packages/common/src/utils/SafeLocalStorage.ts index 56f2697ffd..19456c7524 100644 --- a/packages/common/src/utils/SafeLocalStorage.ts +++ b/packages/common/src/utils/SafeLocalStorage.ts @@ -1,17 +1,18 @@ -import type { CaipNetwork } from './TypeUtil.js' - export type SafeLocalStorageItems = { '@appkit/wallet_id': string '@appkit/wallet_name': string '@appkit/solana_wallet': string '@appkit/solana_caip_chain': string - '@appkit/active_caip_network': CaipNetwork '@appkit/active_caip_network_id': string '@appkit/connected_connector': string '@appkit/connected_social': string '@appkit/connected_social_username': string '@appkit/recent_wallets': string - '@appkit/deeplink_choice': { href: string; name: string } + /* + * DO NOT CHANGE: @walletconnect/universal-provider requires us to set this specific key + * This value is a stringified version of { href: stiring; name: string } + */ + WALLETCONNECT_DEEPLINK_CHOICE: string } export const SafeLocalStorageKeys = { @@ -19,13 +20,12 @@ export const SafeLocalStorageKeys = { WALLET_NAME: '@appkit/wallet_name', SOLANA_WALLET: '@appkit/solana_wallet', SOLANA_CAIP_CHAIN: '@appkit/solana_caip_chain', - ACTIVE_CAIP_NETWORK: '@appkit/active_caip_network', ACTIVE_CAIP_NETWORK_ID: '@appkit/active_caip_network_id', CONNECTED_CONNECTOR: '@appkit/connected_connector', CONNECTED_SOCIAL: '@appkit/connected_social', CONNECTED_SOCIAL_USERNAME: '@appkit/connected_social_username', RECENT_WALLETS: '@appkit/recent_wallets', - DEEPLINK_CHOICE: '@appkit/deeplink_choice' + DEEPLINK_CHOICE: 'WALLETCONNECT_DEEPLINK_CHOICE' } as const export const SafeLocalStorage = { @@ -34,24 +34,14 @@ export const SafeLocalStorage = { value: SafeLocalStorageItems[Key] ): void { if (isSafe()) { - localStorage.setItem(key, JSON.stringify(value)) + localStorage.setItem(key, value) } }, getItem( key: Key ): SafeLocalStorageItems[Key] | undefined { if (isSafe()) { - const value = localStorage.getItem(key) - - if (value) { - try { - return JSON.parse(value) - } catch (e) { - console.warn('Error parsing value from localStorage', key, e) - - return undefined - } - } + return localStorage.getItem(key) || undefined } return undefined diff --git a/packages/common/tests/SafeLocalStorage.test.ts b/packages/common/tests/SafeLocalStorage.test.ts index c9e2f574dd..369a70f7c8 100644 --- a/packages/common/tests/SafeLocalStorage.test.ts +++ b/packages/common/tests/SafeLocalStorage.test.ts @@ -24,7 +24,13 @@ describe('SafeLocalStorage unsafe', () => { }) describe('SafeLocalStorage safe', () => { - let getItem = vi.fn(() => '{"test":"test"}') + let getItem = vi.fn(value => { + if (value === '@appkit/wallet_id') { + return 'test' + } + + return undefined + }) let setItem = vi.fn() let removeItem = vi.fn() @@ -40,11 +46,11 @@ describe('SafeLocalStorage safe', () => { it('should setItem', () => { expect(SafeLocalStorage.setItem('@appkit/wallet_id', 'test')).toBe(undefined) - expect(setItem).toHaveBeenCalledWith('@appkit/wallet_id', JSON.stringify('test')) + expect(setItem).toHaveBeenCalledWith('@appkit/wallet_id', 'test') }) it('should getItem ', () => { - expect(SafeLocalStorage.getItem('@appkit/wallet_id')).toEqual({ test: 'test' }) + expect(SafeLocalStorage.getItem('@appkit/wallet_id')).toEqual('test') expect(getItem).toHaveBeenCalledWith('@appkit/wallet_id') }) @@ -53,10 +59,8 @@ describe('SafeLocalStorage safe', () => { expect(removeItem).toHaveBeenCalledWith('@appkit/wallet_id') }) - it('getItem should return undefined when value is not valid JSON', () => { - getItem.mockReturnValueOnce('test') - - expect(SafeLocalStorage.getItem('@appkit/wallet_id')).toBe(undefined) - expect(getItem).toHaveBeenCalledWith('@appkit/wallet_id') + it('getItem should return undefined if the value not exist', () => { + expect(SafeLocalStorage.getItem('@appkit/connected_connector')).toBe(undefined) + expect(getItem).toHaveBeenCalledWith('@appkit/connected_connector') }) }) diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 9489b0717f..07a1fdb506 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,49 @@ # @reown/appkit-core +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-common@1.0.4 + - @reown/appkit-wallet@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-wallet@1.0.3 + - @reown/appkit-common@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-wallet@1.0.2 + - @reown/appkit-common@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index 319dff5976..d9ddf4fd5b 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-core", - "version": "1.0.1", + "version": "1.0.4", "type": "module", "main": "./dist/esm/exports/index.js", "types": "./dist/types/exports/index.d.ts", diff --git a/packages/core/src/controllers/AccountController.ts b/packages/core/src/controllers/AccountController.ts index 4385ba89de..485564760c 100644 --- a/packages/core/src/controllers/AccountController.ts +++ b/packages/core/src/controllers/AccountController.ts @@ -19,7 +19,6 @@ import type UniversalProvider from '@walletconnect/universal-provider' // -- Types --------------------------------------------- // export interface AccountControllerState { - isConnected: boolean currentTab: number caipAddress?: CaipAddress address?: string @@ -45,7 +44,6 @@ export interface AccountControllerState { // -- State --------------------------------------------- // const state = proxy({ - isConnected: false, currentTab: 0, tokenBalance: [], smartAccountDeployed: false, @@ -97,21 +95,10 @@ export const AccountController = { ) }, - setIsConnected( - isConnected: AccountControllerState['isConnected'], - chain: ChainNamespace | undefined - ) { - ChainController.setAccountProp('isConnected', isConnected, chain) - }, - setStatus(status: AccountControllerState['status'], chain: ChainNamespace | undefined) { ChainController.setAccountProp('status', status, chain) }, - getChainIsConnected(chain: ChainNamespace | undefined) { - return ChainController.getAccountProp('isConnected', chain) - }, - getCaipAddress(chain: ChainNamespace | undefined) { return ChainController.getAccountProp('caipAddress', chain) }, diff --git a/packages/core/src/controllers/ChainController.ts b/packages/core/src/controllers/ChainController.ts index 057cae7b49..1bea9b54bd 100644 --- a/packages/core/src/controllers/ChainController.ts +++ b/packages/core/src/controllers/ChainController.ts @@ -12,6 +12,7 @@ import { type CaipNetwork, type ChainNamespace } from '@reown/appkit-common' +import { StorageUtil } from '../utils/StorageUtil.js' // -- Types --------------------------------------------- // export interface ChainControllerState { @@ -38,7 +39,6 @@ type ChainsInitializerAdapter = Pick< // -- Constants ----------------------------------------- // const accountState: AccountControllerState = { - isConnected: false, currentTab: 0, tokenBalance: [], smartAccountDeployed: false, @@ -48,7 +48,6 @@ const accountState: AccountControllerState = { const networkState: NetworkControllerState = { supportsAllNetworks: true, - isDefaultCaipNetwork: false, smartAccountEnabledNetworks: [] } @@ -106,7 +105,6 @@ export const ChainController = { if (!state.noAdapters) { state.activeChain = adapterToActivate?.chainNamespace PublicStateController.set({ activeChain: adapterToActivate?.chainNamespace }) - this.setActiveCaipNetwork(adapterToActivate?.defaultNetwork) adapters.forEach((adapter: ChainsInitializerAdapter) => { state.chains.set(adapter.chainNamespace, { @@ -129,16 +127,14 @@ export const ChainController = { state.universalAdapter = adapter if (adapters.length === 0) { - const storedCaipNetwork = SafeLocalStorage.getItem(SafeLocalStorageKeys.ACTIVE_CAIP_NETWORK) + const storedCaipNetwork = StorageUtil.getStoredActiveCaipNetwork() try { if (storedCaipNetwork) { state.activeChain = storedCaipNetwork.chainNamespace - this.setActiveCaipNetwork(storedCaipNetwork) } else { state.activeChain = adapter?.defaultNetwork?.chainNamespace ?? adapter.caipNetworks[0]?.chainNamespace - this.setActiveCaipNetwork(adapter?.defaultNetwork ?? adapter.caipNetworks[0]) } } catch (error) { console.warn('>>> Error setting active caip network', error) @@ -157,8 +153,6 @@ export const ChainController = { caipNetworks: adapter.caipNetworks }) }) - - this.setActiveChain(adapter.chainNamespace) }, setChainNetworkData( @@ -227,27 +221,19 @@ export const ChainController = { ) }, - setActiveChain( - chain: ChainNamespace | undefined, - caipNetwork?: NetworkControllerState['caipNetwork'] - ) { + setActiveNamespace(chain: ChainNamespace | undefined) { + state.activeChain = chain + const newAdapter = chain ? state.chains.get(chain) : undefined + const caipNetwork = newAdapter?.networkState?.caipNetwork - if (newAdapter && newAdapter.chainNamespace !== state.activeChain) { - state.activeChain = newAdapter.chainNamespace - state.activeCaipAddress = newAdapter.accountState?.caipAddress + if (caipNetwork?.id) { + state.activeCaipAddress = newAdapter?.accountState?.caipAddress state.activeCaipNetwork = caipNetwork - - if (!newAdapter.accountState) { - this.resetAccount(newAdapter.chainNamespace) - } - - NetworkController.replaceState(newAdapter.networkState) - AccountController.replaceState(newAdapter.accountState) - + SafeLocalStorage.setItem(SafeLocalStorageKeys.ACTIVE_CAIP_NETWORK_ID, caipNetwork?.id) PublicStateController.set({ activeChain: chain, - selectedNetworkId: newAdapter.networkState?.caipNetwork?.id + selectedNetworkId: caipNetwork?.id }) } }, @@ -257,22 +243,20 @@ export const ChainController = { return } - if (caipNetwork.chainNamespace !== state.activeChain) { - this.setActiveChain(caipNetwork.chainNamespace, caipNetwork) - SafeLocalStorage.setItem(SafeLocalStorageKeys.ACTIVE_CAIP_NETWORK, caipNetwork) - SafeLocalStorage.setItem(SafeLocalStorageKeys.ACTIVE_CAIP_NETWORK_ID, caipNetwork.id) + const newAdapter = state.chains.get(caipNetwork.chainNamespace) + state.activeChain = caipNetwork.chainNamespace + state.activeCaipNetwork = caipNetwork + state.activeCaipAddress = newAdapter?.accountState?.caipAddress - return + if (newAdapter) { + NetworkController.replaceState(newAdapter.networkState) + AccountController.replaceState(newAdapter.accountState) } - state.activeCaipNetwork = caipNetwork - state.activeChain = caipNetwork.chainNamespace PublicStateController.set({ - activeChain: caipNetwork.chainNamespace, - selectedNetworkId: caipNetwork?.id + activeChain: state.activeChain, + selectedNetworkId: state.activeCaipNetwork?.id }) - - SafeLocalStorage.setItem(SafeLocalStorageKeys.ACTIVE_CAIP_NETWORK, caipNetwork) SafeLocalStorage.setItem(SafeLocalStorageKeys.ACTIVE_CAIP_NETWORK_ID, caipNetwork.id) }, @@ -289,8 +273,12 @@ export const ChainController = { caipNetwork: NetworkControllerState['caipNetwork'], shouldReplace = false ) { - state.activeCaipNetwork = caipNetwork state.activeChain = caipNetwork?.chainNamespace + state.activeCaipNetwork = caipNetwork + PublicStateController.set({ + activeChain: state.activeChain, + selectedNetworkId: state.activeCaipNetwork?.id + }) this.setChainNetworkData(chain, { caipNetwork }, shouldReplace) }, @@ -300,9 +288,9 @@ export const ChainController = { } }, - getNetworkControllerClient() { + getNetworkControllerClient(chainNamespace?: ChainNamespace) { const walletId = SafeLocalStorage.getItem(SafeLocalStorageKeys.WALLET_ID) - const chain = state.activeChain + const chain = chainNamespace || state.activeChain const isWcConnector = walletId === 'walletConnect' const universalNetworkControllerClient = state.universalAdapter.networkControllerClient @@ -409,6 +397,19 @@ export const ChainController = { return chainNetworkState[key] }, + getAllRequestedCaipNetworks(): NetworkControllerState['requestedCaipNetworks'] { + const requestedCaipNetworks: NetworkControllerState['requestedCaipNetworks'] = [] + + state.chains.forEach(chainAdapter => { + const chainNetworkState = chainAdapter.networkState + if (chainNetworkState?.requestedCaipNetworks) { + requestedCaipNetworks.push(...chainNetworkState.requestedCaipNetworks) + } + }) + + return requestedCaipNetworks + }, + getAllApprovedCaipNetworks(): NetworkControllerState['approvedCaipNetworkIds'] { const approvedCaipNetworkIds: NetworkControllerState['approvedCaipNetworkIds'] = [] @@ -433,7 +434,6 @@ export const ChainController = { this.setChainAccountData( chainToWrite, ref({ - isConnected: false, smartAccountDeployed: false, currentTab: 0, caipAddress: undefined, diff --git a/packages/core/src/controllers/ConnectionController.ts b/packages/core/src/controllers/ConnectionController.ts index d2db45f1ee..63d19bab08 100644 --- a/packages/core/src/controllers/ConnectionController.ts +++ b/packages/core/src/controllers/ConnectionController.ts @@ -16,7 +16,6 @@ import { ModalController } from './ModalController.js' import { ConnectorController } from './ConnectorController.js' import { EventsController } from './EventsController.js' import type { ChainNamespace } from '@reown/appkit-common' -import { RouterController } from './RouterController.js' // -- Types --------------------------------------------- // export interface ConnectExternalOptions { @@ -98,7 +97,7 @@ export const ConnectionController = { async connectExternal(options: ConnectExternalOptions, chain: ChainNamespace, setChain = true) { await this._getClient(chain).connectExternal?.(options) if (setChain) { - ChainController.setActiveChain(chain) + ChainController.setActiveNamespace(chain) StorageUtil.setConnectedConnector(options.type) } }, @@ -167,10 +166,6 @@ export const ConnectionController = { state.recentWallet = undefined TransactionsController.resetTransactions() StorageUtil.deleteWalletConnectDeepLink() - if (ModalController.state.open) { - ModalController.close() - RouterController.reset('Connect') - } }, setWcLinking(wcLinking: ConnectionControllerState['wcLinking']) { diff --git a/packages/core/src/controllers/NetworkController.ts b/packages/core/src/controllers/NetworkController.ts index 3bab3f3f32..e9c96a558b 100644 --- a/packages/core/src/controllers/NetworkController.ts +++ b/packages/core/src/controllers/NetworkController.ts @@ -9,7 +9,6 @@ import { type ChainNamespace } from '@reown/appkit-common' import { ChainController } from './ChainController.js' -import { PublicStateController } from './PublicStateController.js' import { ConstantsUtil } from '../utils/ConstantsUtil.js' // -- Types --------------------------------------------- // @@ -23,7 +22,6 @@ export interface NetworkControllerClient { export interface NetworkControllerState { supportsAllNetworks: boolean - isDefaultCaipNetwork: boolean isUnsupportedChain?: boolean _client?: NetworkControllerClient caipNetwork?: CaipNetwork @@ -36,7 +34,6 @@ export interface NetworkControllerState { // -- State --------------------------------------------- // const state = proxy({ supportsAllNetworks: true, - isDefaultCaipNetwork: false, smartAccountEnabledNetworks: [] }) @@ -73,24 +70,6 @@ export const NetworkController = { return ChainController.getNetworkControllerClient() }, - initializeDefaultNetwork() { - const networks = this.getRequestedCaipNetworks() - - if (networks.length > 0) { - this.setCaipNetwork(networks[0]) - } - }, - - setDefaultCaipNetwork(caipNetwork: NetworkControllerState['caipNetwork']) { - if (caipNetwork) { - ChainController.setCaipNetwork(caipNetwork.chainNamespace, caipNetwork) - ChainController.setChainNetworkData(caipNetwork.chainNamespace, { - isDefaultCaipNetwork: true - }) - PublicStateController.set({ selectedNetworkId: caipNetwork.id }) - } - }, - setActiveCaipNetwork(caipNetwork: NetworkControllerState['caipNetwork']) { if (!caipNetwork) { return @@ -183,9 +162,14 @@ export const NetworkController = { }, async switchActiveNetwork(network: NetworkControllerState['caipNetwork']) { - const networkControllerClient = ChainController.getNetworkControllerClient() + const networkControllerClient = ChainController.getNetworkControllerClient( + network?.chainNamespace + ) + + if (networkControllerClient) { + await networkControllerClient.switchCaipNetwork(network) + } - await networkControllerClient?.switchCaipNetwork(network) ChainController.setActiveCaipNetwork(network) if (network) { @@ -277,10 +261,6 @@ export const NetworkController = { throw new Error('chain is required to reset network') } - if (!ChainController.state.chains.get(chain)?.networkState?.isDefaultCaipNetwork) { - ChainController.setChainNetworkData(chain, { caipNetwork: undefined }) - } - ChainController.setChainNetworkData(chain, { approvedCaipNetworkIds: undefined, supportsAllNetworks: true, diff --git a/packages/core/src/utils/StorageUtil.ts b/packages/core/src/utils/StorageUtil.ts index f1b9ff8dd6..1c26bc154c 100644 --- a/packages/core/src/utils/StorageUtil.ts +++ b/packages/core/src/utils/StorageUtil.ts @@ -1,12 +1,13 @@ /* eslint-disable no-console */ import { SafeLocalStorage, SafeLocalStorageKeys } from '@reown/appkit-common' import type { WcWallet, ConnectorType, SocialProvider } from './TypeUtil.js' +import { ChainController } from '../controllers/ChainController.js' // -- Utility ----------------------------------------------------------------- export const StorageUtil = { - setWalletConnectDeepLink({ href, name }: { href: string; name: string }) { + setWalletConnectDeepLink({ name, href }: { href: string; name: string }) { try { - SafeLocalStorage.setItem(SafeLocalStorageKeys.DEEPLINK_CHOICE, { href, name }) + SafeLocalStorage.setItem(SafeLocalStorageKeys.DEEPLINK_CHOICE, JSON.stringify({ href, name })) } catch { console.info('Unable to set WalletConnect deep link') } @@ -16,7 +17,7 @@ export const StorageUtil = { try { const deepLink = SafeLocalStorage.getItem(SafeLocalStorageKeys.DEEPLINK_CHOICE) if (deepLink) { - return deepLink + return JSON.parse(deepLink) } } catch { console.info('Unable to get WalletConnect deep link') @@ -105,5 +106,15 @@ export const StorageUtil = { } return undefined + }, + + getStoredActiveCaipNetwork() { + const storedCaipNetworkId = SafeLocalStorage.getItem( + SafeLocalStorageKeys.ACTIVE_CAIP_NETWORK_ID + ) + const allRequestedCaipNetworks = ChainController.getAllRequestedCaipNetworks() + const storedCaipNetwork = allRequestedCaipNetworks?.find(c => c.id === storedCaipNetworkId) + + return storedCaipNetwork } } diff --git a/packages/core/tests/controllers/AccountController.test.ts b/packages/core/tests/controllers/AccountController.test.ts index 33418d26ad..20729f95c7 100644 --- a/packages/core/tests/controllers/AccountController.test.ts +++ b/packages/core/tests/controllers/AccountController.test.ts @@ -24,7 +24,6 @@ beforeAll(() => { describe('AccountController', () => { it('should have valid default state', () => { expect(AccountController.state).toEqual({ - isConnected: false, smartAccountDeployed: false, currentTab: 0, tokenBalance: [], @@ -33,11 +32,6 @@ describe('AccountController', () => { }) }) - it('should update state correctly on setIsConnected()', () => { - AccountController.setIsConnected(true, chain) - expect(AccountController.state.isConnected).toEqual(true) - }) - it('should update state correctly on setCaipAddress()', () => { AccountController.setCaipAddress(caipAddress, chain) expect(AccountController.state.caipAddress).toEqual(caipAddress) @@ -81,7 +75,6 @@ describe('AccountController', () => { it('should update state correctly on resetAccount()', () => { AccountController.resetAccount(chain) expect(AccountController.state).toEqual({ - isConnected: false, smartAccountDeployed: false, currentTab: 0, caipAddress: undefined, diff --git a/packages/core/tests/controllers/ChainController.test.ts b/packages/core/tests/controllers/ChainController.test.ts index 2db41c8d8f..f74ce5d6b1 100644 --- a/packages/core/tests/controllers/ChainController.test.ts +++ b/packages/core/tests/controllers/ChainController.test.ts @@ -61,7 +61,6 @@ describe('ChainController', () => { it('should reset account as expected', () => { ChainController.resetAccount(ChainController.state.activeChain) - expect(ChainController.getAccountProp('isConnected')).toEqual(false) expect(ChainController.getAccountProp('smartAccountDeployed')).toEqual(false) expect(ChainController.getAccountProp('currentTab')).toEqual(0) expect(ChainController.getAccountProp('caipAddress')).toEqual(undefined) diff --git a/packages/core/tests/controllers/NetworkController.test.ts b/packages/core/tests/controllers/NetworkController.test.ts index df23bec31d..ee0874713d 100644 --- a/packages/core/tests/controllers/NetworkController.test.ts +++ b/packages/core/tests/controllers/NetworkController.test.ts @@ -89,7 +89,6 @@ describe('NetworkController', () => { expect(NetworkController.state).toEqual({ supportsAllNetworks: true, - isDefaultCaipNetwork: false, smartAccountEnabledNetworks: [] }) }) @@ -116,19 +115,6 @@ describe('NetworkController', () => { expect(NetworkController.state.smartAccountEnabledNetworks).toEqual([]) }) - it('should update state correctly on setDefaultCaipNetwork()', () => { - NetworkController.setDefaultCaipNetwork(caipNetwork) - expect(NetworkController.state.caipNetwork).toEqual(caipNetwork) - expect(NetworkController.state.isDefaultCaipNetwork).toEqual(true) - }) - - it('should reset state correctly when default caip network is true', () => { - NetworkController.resetNetwork() - expect(NetworkController.state.caipNetwork).toEqual(caipNetwork) - expect(NetworkController.state.approvedCaipNetworkIds).toEqual(undefined) - expect(NetworkController.state.requestedCaipNetworks).toEqual(requestedCaipNetworks) - }) - it('should check correctly if smart accounts are enabled on the network', () => { NetworkController.setActiveCaipNetwork(caipNetwork) NetworkController.setSmartAccountEnabledNetworks([1], chain) diff --git a/packages/core/tests/utils/StorageUtil.test.ts b/packages/core/tests/utils/StorageUtil.test.ts index 5095c69998..9686f0de4c 100644 --- a/packages/core/tests/utils/StorageUtil.test.ts +++ b/packages/core/tests/utils/StorageUtil.test.ts @@ -46,8 +46,7 @@ describe('StorageUtil', () => { const deepLink = { href: 'https://example.com', name: 'Example Wallet' } StorageUtil.setWalletConnectDeepLink(deepLink) const savedDL = SafeLocalStorage.getItem(SafeLocalStorageKeys.DEEPLINK_CHOICE) - expect(savedDL?.href).toBe(deepLink.href) - expect(savedDL?.name).toBe(deepLink.name) + expect(savedDL).toBe(JSON.stringify({ href: deepLink.href, name: deepLink.name })) }) it('should handle errors when setting deep link', () => { @@ -64,8 +63,14 @@ describe('StorageUtil', () => { describe('getWalletConnectDeepLink', () => { it('should get WalletConnect deep link from localStorage', () => { const deepLink = { href: 'https://example.com', name: 'Example Wallet' } - SafeLocalStorage.setItem('@appkit/deeplink_choice', deepLink) - expect(StorageUtil.getWalletConnectDeepLink()).toEqual(deepLink) + SafeLocalStorage.setItem( + 'WALLETCONNECT_DEEPLINK_CHOICE', + JSON.stringify({ href: deepLink.href, name: deepLink.name }) + ) + expect(StorageUtil.getWalletConnectDeepLink()).toEqual({ + href: deepLink.href, + name: deepLink.name + }) }) it('should return undefined if deep link is not set', () => { @@ -85,12 +90,12 @@ describe('StorageUtil', () => { describe('deleteWalletConnectDeepLink', () => { it('should delete WalletConnect deep link from localStorage', () => { - SafeLocalStorage.setItem('@appkit/deeplink_choice', { - href: 'https://example.com', - name: 'Example Wallet' - }) + SafeLocalStorage.setItem( + 'WALLETCONNECT_DEEPLINK_CHOICE', + JSON.stringify({ href: 'https://example.com', name: 'Example' }) + ) StorageUtil.deleteWalletConnectDeepLink() - expect(SafeLocalStorage.getItem('@appkit/deeplink_choice')).toBeUndefined() + expect(SafeLocalStorage.getItem('WALLETCONNECT_DEEPLINK_CHOICE')).toBeUndefined() }) it('should handle errors when deleting deep link', () => { diff --git a/packages/ethers/CHANGELOG.md b/packages/ethers/CHANGELOG.md index 84f3162bf9..e25def5901 100644 --- a/packages/ethers/CHANGELOG.md +++ b/packages/ethers/CHANGELOG.md @@ -1,5 +1,64 @@ # @reown/appkit-ethers +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-adapter-ethers@1.0.4 + - @reown/appkit@1.0.4 + - @reown/appkit-utils@1.0.4 + - @reown/appkit-common@1.0.4 + - @reown/appkit-polyfills@1.0.4 + - @reown/appkit-siwe@1.0.4 + - @reown/appkit-wallet@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-wallet@1.0.3 + - @reown/appkit-adapter-ethers@1.0.3 + - @reown/appkit@1.0.3 + - @reown/appkit-utils@1.0.3 + - @reown/appkit-common@1.0.3 + - @reown/appkit-polyfills@1.0.3 + - @reown/appkit-siwe@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-adapter-ethers@1.0.2 + - @reown/appkit-wallet@1.0.2 + - @reown/appkit@1.0.2 + - @reown/appkit-utils@1.0.2 + - @reown/appkit-common@1.0.2 + - @reown/appkit-polyfills@1.0.2 + - @reown/appkit-siwe@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/packages/ethers/package.json b/packages/ethers/package.json index 37f651aae0..7cdae59b41 100644 --- a/packages/ethers/package.json +++ b/packages/ethers/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-ethers", - "version": "1.0.1", + "version": "1.0.4", "type": "module", "main": "./dist/esm/exports/index.js", "types": "./dist/types/exports/index.d.ts", diff --git a/packages/ethers5/CHANGELOG.md b/packages/ethers5/CHANGELOG.md index 4cee1861d8..1b7a67e21c 100644 --- a/packages/ethers5/CHANGELOG.md +++ b/packages/ethers5/CHANGELOG.md @@ -1,5 +1,64 @@ # @reown/appkit-ethers5 +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-adapter-ethers5@1.0.4 + - @reown/appkit@1.0.4 + - @reown/appkit-utils@1.0.4 + - @reown/appkit-common@1.0.4 + - @reown/appkit-polyfills@1.0.4 + - @reown/appkit-siwe@1.0.4 + - @reown/appkit-wallet@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-wallet@1.0.3 + - @reown/appkit-adapter-ethers5@1.0.3 + - @reown/appkit@1.0.3 + - @reown/appkit-utils@1.0.3 + - @reown/appkit-common@1.0.3 + - @reown/appkit-polyfills@1.0.3 + - @reown/appkit-siwe@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-adapter-ethers5@1.0.2 + - @reown/appkit-wallet@1.0.2 + - @reown/appkit@1.0.2 + - @reown/appkit-utils@1.0.2 + - @reown/appkit-common@1.0.2 + - @reown/appkit-polyfills@1.0.2 + - @reown/appkit-siwe@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/packages/ethers5/package.json b/packages/ethers5/package.json index 33463fc7b0..677e6acfba 100644 --- a/packages/ethers5/package.json +++ b/packages/ethers5/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-ethers5", - "version": "1.0.1", + "version": "1.0.4", "type": "module", "main": "./dist/esm/exports/index.js", "types": "./dist/types/exports/index.d.ts", diff --git a/packages/polyfills/CHANGELOG.md b/packages/polyfills/CHANGELOG.md index 881984a0fe..27ca1d649d 100644 --- a/packages/polyfills/CHANGELOG.md +++ b/packages/polyfills/CHANGELOG.md @@ -1,5 +1,37 @@ # @reown/appkit-polyfills +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + ## 1.0.1 ### Patch Changes diff --git a/packages/polyfills/package.json b/packages/polyfills/package.json index 14d1aaf65f..0e97a6e9c4 100644 --- a/packages/polyfills/package.json +++ b/packages/polyfills/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-polyfills", - "version": "1.0.1", + "version": "1.0.4", "type": "module", "main": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", diff --git a/packages/scaffold-ui/CHANGELOG.md b/packages/scaffold-ui/CHANGELOG.md index fc943adf08..cbdb003e11 100644 --- a/packages/scaffold-ui/CHANGELOG.md +++ b/packages/scaffold-ui/CHANGELOG.md @@ -1,5 +1,61 @@ # @reown/appkit-scaffold-ui +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-utils@1.0.4 + - @reown/appkit-common@1.0.4 + - @reown/appkit-core@1.0.4 + - @reown/appkit-siwe@1.0.4 + - @reown/appkit-ui@1.0.4 + - @reown/appkit-wallet@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-wallet@1.0.3 + - @reown/appkit-utils@1.0.3 + - @reown/appkit-common@1.0.3 + - @reown/appkit-core@1.0.3 + - @reown/appkit-siwe@1.0.3 + - @reown/appkit-ui@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-wallet@1.0.2 + - @reown/appkit-core@1.0.2 + - @reown/appkit-utils@1.0.2 + - @reown/appkit-common@1.0.2 + - @reown/appkit-siwe@1.0.2 + - @reown/appkit-ui@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/packages/scaffold-ui/package.json b/packages/scaffold-ui/package.json index 4d4475826a..a18c902024 100644 --- a/packages/scaffold-ui/package.json +++ b/packages/scaffold-ui/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-scaffold-ui", - "version": "1.0.1", + "version": "1.0.4", "type": "module", "main": "./dist/esm/exports/index.js", "types": "./dist/types/exports/index.d.ts", diff --git a/packages/scaffold-ui/src/modal/w3m-modal/index.ts b/packages/scaffold-ui/src/modal/w3m-modal/index.ts index ab7c86403d..61c10a518a 100644 --- a/packages/scaffold-ui/src/modal/w3m-modal/index.ts +++ b/packages/scaffold-ui/src/modal/w3m-modal/index.ts @@ -192,8 +192,9 @@ export class W3mModal extends LitElement { ? CoreHelperUtil.getPlainAddress(this.caipAddress) : undefined const nextConnected = caipAddress ? CoreHelperUtil.getPlainAddress(caipAddress) : undefined + const isSameAddress = prevConnected === nextConnected - if (this.isSiweEnabled) { + if (nextConnected && !isSameAddress && this.isSiweEnabled) { const { SIWEController } = await import('@reown/appkit-siwe') const signed = AccountController.state.siweStatus === 'success' @@ -207,6 +208,10 @@ export class W3mModal extends LitElement { } } + if (!nextConnected) { + ModalController.close() + } + this.caipAddress = caipAddress } diff --git a/packages/scaffold-ui/src/modal/w3m-network-button/index.ts b/packages/scaffold-ui/src/modal/w3m-network-button/index.ts index c915679eb2..bd82658073 100644 --- a/packages/scaffold-ui/src/modal/w3m-network-button/index.ts +++ b/packages/scaffold-ui/src/modal/w3m-network-button/index.ts @@ -36,7 +36,8 @@ export class W3mNetworkButton extends LitElement { @state() private isUnsupportedChain = NetworkController.state.isUnsupportedChain // -- Lifecycle ----------------------------------------- // - public override firstUpdated() { + public constructor() { + super() this.unsubscribe.push( ...[ AssetController.subscribeNetworkImages(() => { @@ -79,6 +80,10 @@ export class W3mNetworkButton extends LitElement { // -- Private ------------------------------------------- // private getLabel() { + if (this.network) { + return this.network.name + } + if (this.label) { return this.label } @@ -87,10 +92,6 @@ export class W3mNetworkButton extends LitElement { return 'Switch Network' } - if (this.network) { - return this.network.name - } - if (this.caipAddress) { return 'Unknown Network' } diff --git a/packages/scaffold-ui/src/utils/WalletUtil.ts b/packages/scaffold-ui/src/utils/WalletUtil.ts index 1466f3a8a7..32142ad753 100644 --- a/packages/scaffold-ui/src/utils/WalletUtil.ts +++ b/packages/scaffold-ui/src/utils/WalletUtil.ts @@ -29,7 +29,9 @@ export const WalletUtil = { }, filterOutDuplicatesByIds(wallets: WcWallet[]) { - const connectors = ConnectorController.state.connectors + const connectors = ConnectorController.state.connectors.filter( + connector => connector.type === 'ANNOUNCED' || connector.type === 'INJECTED' + ) const recent = StorageUtil.getRecentWallets() const connectorIds = connectors.map(connector => connector.explorerId) diff --git a/packages/scaffold-ui/src/views/w3m-connecting-external-view/index.ts b/packages/scaffold-ui/src/views/w3m-connecting-external-view/index.ts index efca0da308..d93de9c20b 100644 --- a/packages/scaffold-ui/src/views/w3m-connecting-external-view/index.ts +++ b/packages/scaffold-ui/src/views/w3m-connecting-external-view/index.ts @@ -11,6 +11,9 @@ import { W3mConnectingWidget } from '../../utils/w3m-connecting-widget/index.js' @customElement('w3m-connecting-external-view') export class W3mConnectingExternalView extends W3mConnectingWidget { + // -- Members ------------------------------------------- // + private externalViewUnsubscribe: (() => void)[] = [] + public constructor() { super() if (!this.connector) { @@ -28,11 +31,17 @@ export class W3mConnectingExternalView extends W3mConnectingWidget { this.onConnect = this.onConnectProxy.bind(this) this.onAutoConnect = this.onConnectProxy.bind(this) this.isWalletConnect = false - ChainController.subscribeKey('activeCaipAddress', val => { - if (val) { - ModalController.close() - } - }) + this.externalViewUnsubscribe.push( + ChainController.subscribeKey('activeCaipAddress', val => { + if (val) { + ModalController.close() + } + }) + ) + } + + public override disconnectedCallback() { + this.externalViewUnsubscribe.forEach(unsubscribe => unsubscribe()) } // -- Private ------------------------------------------- // diff --git a/packages/scaffold-ui/src/views/w3m-connecting-multi-chain-view/index.ts b/packages/scaffold-ui/src/views/w3m-connecting-multi-chain-view/index.ts index 4fcbb86fa0..661d2ab6a0 100644 --- a/packages/scaffold-ui/src/views/w3m-connecting-multi-chain-view/index.ts +++ b/packages/scaffold-ui/src/views/w3m-connecting-multi-chain-view/index.ts @@ -92,7 +92,6 @@ export class W3mConnectingMultiChainView extends LitElement { } private onConnector(provider: Connector) { - ChainController.setActiveChain(provider.chain) const connector = this.activeConnector?.connectors?.find(p => p.chain === provider.chain) if (!connector) { diff --git a/packages/scaffold-ui/src/views/w3m-select-addresses-view/index.ts b/packages/scaffold-ui/src/views/w3m-select-addresses-view/index.ts index e275c053d2..05daf5f4fa 100644 --- a/packages/scaffold-ui/src/views/w3m-select-addresses-view/index.ts +++ b/packages/scaffold-ui/src/views/w3m-select-addresses-view/index.ts @@ -135,8 +135,8 @@ export class W3mSelectAddressesView extends LitElement { } private async onCancel() { - const { isConnected } = AccountController.state - if (isConnected) { + const { activeCaipAddress } = ChainController.state + if (activeCaipAddress) { await ConnectionController.disconnect() ModalController.close() } else { diff --git a/packages/siwe/CHANGELOG.md b/packages/siwe/CHANGELOG.md index 84fd7be05c..0c2bbd07f7 100644 --- a/packages/siwe/CHANGELOG.md +++ b/packages/siwe/CHANGELOG.md @@ -1,5 +1,58 @@ # @reown/appkit-siwe +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-utils@1.0.4 + - @reown/appkit-common@1.0.4 + - @reown/appkit-core@1.0.4 + - @reown/appkit-ui@1.0.4 + - @reown/appkit-wallet@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-wallet@1.0.3 + - @reown/appkit-utils@1.0.3 + - @reown/appkit-common@1.0.3 + - @reown/appkit-core@1.0.3 + - @reown/appkit-ui@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-wallet@1.0.2 + - @reown/appkit-core@1.0.2 + - @reown/appkit-utils@1.0.2 + - @reown/appkit-common@1.0.2 + - @reown/appkit-ui@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/packages/siwe/package.json b/packages/siwe/package.json index 68e493d63d..4ddee96188 100644 --- a/packages/siwe/package.json +++ b/packages/siwe/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-siwe", - "version": "1.0.1", + "version": "1.0.4", "type": "module", "main": "./dist/esm/exports/index.js", "types": "./dist/types/exports/index.d.ts", diff --git a/packages/solana/CHANGELOG.md b/packages/solana/CHANGELOG.md index 88364269f9..0079edc209 100644 --- a/packages/solana/CHANGELOG.md +++ b/packages/solana/CHANGELOG.md @@ -1,5 +1,64 @@ # @reown/appkit-solana +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-adapter-solana@1.0.4 + - @reown/appkit@1.0.4 + - @reown/appkit-utils@1.0.4 + - @reown/appkit-common@1.0.4 + - @reown/appkit-core@1.0.4 + - @reown/appkit-polyfills@1.0.4 + - @reown/appkit-wallet@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-wallet@1.0.3 + - @reown/appkit-adapter-solana@1.0.3 + - @reown/appkit@1.0.3 + - @reown/appkit-utils@1.0.3 + - @reown/appkit-common@1.0.3 + - @reown/appkit-core@1.0.3 + - @reown/appkit-polyfills@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-wallet@1.0.2 + - @reown/appkit-core@1.0.2 + - @reown/appkit-adapter-solana@1.0.2 + - @reown/appkit@1.0.2 + - @reown/appkit-utils@1.0.2 + - @reown/appkit-common@1.0.2 + - @reown/appkit-polyfills@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/packages/solana/package.json b/packages/solana/package.json index 992ba4699a..7ef37b727f 100644 --- a/packages/solana/package.json +++ b/packages/solana/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-solana", - "version": "1.0.1", + "version": "1.0.4", "type": "module", "main": "./dist/esm/exports/index.js", "types": "./dist/types/exports/index.d.ts", diff --git a/packages/ui/CHANGELOG.md b/packages/ui/CHANGELOG.md index d12d45f8cd..b7412d27cd 100644 --- a/packages/ui/CHANGELOG.md +++ b/packages/ui/CHANGELOG.md @@ -1,5 +1,37 @@ # @reown/appkit-ui +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + ## 1.0.1 ### Patch Changes diff --git a/packages/ui/package.json b/packages/ui/package.json index 2e4aeca790..18232f0779 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-ui", - "version": "1.0.1", + "version": "1.0.4", "type": "module", "main": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", diff --git a/packages/wagmi/CHANGELOG.md b/packages/wagmi/CHANGELOG.md index b69ecc8dd5..3fc992f98e 100644 --- a/packages/wagmi/CHANGELOG.md +++ b/packages/wagmi/CHANGELOG.md @@ -1,5 +1,64 @@ # @reown/appkit-wagmi +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-adapter-wagmi@1.0.4 + - @reown/appkit@1.0.4 + - @reown/appkit-utils@1.0.4 + - @reown/appkit-common@1.0.4 + - @reown/appkit-polyfills@1.0.4 + - @reown/appkit-siwe@1.0.4 + - @reown/appkit-wallet@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-wallet@1.0.3 + - @reown/appkit-adapter-wagmi@1.0.3 + - @reown/appkit@1.0.3 + - @reown/appkit-utils@1.0.3 + - @reown/appkit-common@1.0.3 + - @reown/appkit-polyfills@1.0.3 + - @reown/appkit-siwe@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-adapter-wagmi@1.0.2 + - @reown/appkit-wallet@1.0.2 + - @reown/appkit@1.0.2 + - @reown/appkit-utils@1.0.2 + - @reown/appkit-common@1.0.2 + - @reown/appkit-polyfills@1.0.2 + - @reown/appkit-siwe@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/packages/wagmi/package.json b/packages/wagmi/package.json index 2bc6da43f8..7472997038 100644 --- a/packages/wagmi/package.json +++ b/packages/wagmi/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-wagmi", - "version": "1.0.1", + "version": "1.0.4", "type": "module", "main": "./dist/esm/exports/index.js", "types": "./dist/types/exports/index.d.ts", diff --git a/packages/wallet/CHANGELOG.md b/packages/wallet/CHANGELOG.md index 53e7f2ef59..7d05f7cd57 100644 --- a/packages/wallet/CHANGELOG.md +++ b/packages/wallet/CHANGELOG.md @@ -1,5 +1,49 @@ # @reown/appkit-wallet +## 1.0.4 + +### Patch Changes + +- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. + +- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet + +- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: + - @reown/appkit-common@1.0.4 + - @reown/appkit-polyfills@1.0.4 + +## 1.0.3 + +### Patch Changes + +- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional + +- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains + +- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls + +- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: + - @reown/appkit-common@1.0.3 + - @reown/appkit-polyfills@1.0.3 + +## 1.0.2 + +### Patch Changes + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session + +- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection + +- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension + +- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors + +- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys + +- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: + - @reown/appkit-common@1.0.2 + - @reown/appkit-polyfills@1.0.2 + ## 1.0.1 ### Patch Changes diff --git a/packages/wallet/package.json b/packages/wallet/package.json index db4d79ac9d..6f425b8ed5 100644 --- a/packages/wallet/package.json +++ b/packages/wallet/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-wallet", - "version": "1.0.1", + "version": "1.0.4", "type": "module", "main": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", diff --git a/packages/wallet/src/W3mFrameSchema.ts b/packages/wallet/src/W3mFrameSchema.ts index e90aa42c3d..7809f9eaa0 100644 --- a/packages/wallet/src/W3mFrameSchema.ts +++ b/packages/wallet/src/W3mFrameSchema.ts @@ -11,7 +11,7 @@ function zType(key: K) { // -- Custom Types ----------------------------------------------------------- type SdkType = 'w3m' | 'appkit' -type SdkVersion = `${SdkFramework}-${AdapterType}-${string}` | AppKitSdkVersion +type SdkVersion = `${SdkFramework}-${AdapterType}-${string}` | AppKitSdkVersion | undefined // -- Responses -------------------------------------------------------------- export const GetTransactionByHashResponse = z.object({ @@ -62,7 +62,7 @@ export const AppSyncDappDataRequest = z.object({ icons: z.array(z.string()) }) .optional(), - sdkVersion: z.string() as z.ZodType, + sdkVersion: z.string().optional() as z.ZodType, sdkType: (z.string() as z.ZodType).optional(), projectId: z.string() })