From d2276a6e1b96c2d6c3df169bbc7cb3bf922aa663 Mon Sep 17 00:00:00 2001 From: abretonc7s <107169956+abretonc7s@users.noreply.github.com> Date: Mon, 8 Apr 2024 22:09:39 +0800 Subject: [PATCH] Release 57.0.0 (#795) * feat: release 57.0.0 * docs: comment about changing connect method * feat: cleanup * feat: changelog * feat: cleanup --- package.json | 2 +- packages/devnext/src/pages/_app.tsx | 1 + packages/sdk-ui/CHANGELOG.md | 8 +++++++- packages/sdk-ui/package.json | 2 +- packages/sdk/CHANGELOG.md | 7 ++++++- packages/sdk/package.json | 2 +- .../services/MetaMaskSDK/ConnectionManager/connect.ts | 10 ++++++++++ 7 files changed, 27 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index a716798fc..0bdfde404 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "metamask-sdk-monorepo", - "version": "56.0.0", + "version": "57.0.0", "private": true, "repository": { "type": "git", diff --git a/packages/devnext/src/pages/_app.tsx b/packages/devnext/src/pages/_app.tsx index cae846bbf..c1db1a507 100644 --- a/packages/devnext/src/pages/_app.tsx +++ b/packages/devnext/src/pages/_app.tsx @@ -34,6 +34,7 @@ const WithSDKConfig = ({ children }: { children: React.ReactNode }) => { readonlyRPCMap: { '0x539': process.env.NEXT_PUBLIC_PROVIDER_RPCURL ?? '', }, + preferDesktop: false, logging: { developerMode: true, sdk: true, diff --git a/packages/sdk-ui/CHANGELOG.md b/packages/sdk-ui/CHANGELOG.md index f833fdc7c..5aa509b9d 100644 --- a/packages/sdk-ui/CHANGELOG.md +++ b/packages/sdk-ui/CHANGELOG.md @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.4.0] +### Added +- feat: allow custom actions in MetaMask floating button ([#768](https://github.com/MetaMask/metamask-sdk/pull/768)) +- fix: adapt the "devreactnative" DApp for compatibility with new "metaMask/providers" version ([#757](https://github.com/MetaMask/metamask-sdk/pull/757)) + ## [0.3.0] ### Added - feat: activate sourcemap support in all packages and resolve issues ([#730](https://github.com/MetaMask/metamask-sdk/pull/730)) @@ -60,7 +65,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - feat: optimize rollup builds ([#496](https://github.com/MetaMask/metamask-sdk/pull/496)) - fix: linting changelog issue after updating scripts ([#509](https://github.com/MetaMask/metamask-sdk/pull/509)) -[Unreleased]: https://github.com/MetaMask/metamask-sdk/compare/@metamask/sdk-ui@0.3.0...HEAD +[Unreleased]: https://github.com/MetaMask/metamask-sdk/compare/@metamask/sdk-ui@0.4.0...HEAD +[0.4.0]: https://github.com/MetaMask/metamask-sdk/compare/@metamask/sdk-ui@0.3.0...@metamask/sdk-ui@0.4.0 [0.3.0]: https://github.com/MetaMask/metamask-sdk/compare/@metamask/sdk-ui@0.2.0...@metamask/sdk-ui@0.3.0 [0.2.0]: https://github.com/MetaMask/metamask-sdk/compare/@metamask/sdk-ui@0.1.6...@metamask/sdk-ui@0.2.0 [0.1.6]: https://github.com/MetaMask/metamask-sdk/compare/@metamask/sdk-ui@0.1.5...@metamask/sdk-ui@0.1.6 diff --git a/packages/sdk-ui/package.json b/packages/sdk-ui/package.json index 2c7b67801..c6c29da26 100644 --- a/packages/sdk-ui/package.json +++ b/packages/sdk-ui/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/sdk-ui", - "version": "0.3.0", + "version": "0.4.0", "description": "MetaMask SDK cross-platform ui library", "module": "dist/esm/index.js", "types": "dist/esm/dist/src/index.d.ts", diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index 0c6846b24..fe2c0dc25 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.18.3] +### Added +- fix: issue preventing opting out of analytics ([#794](https://github.com/MetaMask/metamask-sdk/pull/794)) + ## [0.18.2] ### Added - fix: update the EIP_6369 provider info ([#788](https://github.com/MetaMask/metamask-sdk/pull/788)) @@ -279,7 +283,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - [FEAT] improve logging + update examples ([#99](https://github.com/MetaMask/metamask-sdk/pull/99)) -[Unreleased]: https://github.com/MetaMask/metamask-sdk/compare/@metamask/sdk@0.18.2...HEAD +[Unreleased]: https://github.com/MetaMask/metamask-sdk/compare/@metamask/sdk@0.18.3...HEAD +[0.18.3]: https://github.com/MetaMask/metamask-sdk/compare/@metamask/sdk@0.18.2...@metamask/sdk@0.18.3 [0.18.2]: https://github.com/MetaMask/metamask-sdk/compare/@metamask/sdk@0.18.1...@metamask/sdk@0.18.2 [0.18.1]: https://github.com/MetaMask/metamask-sdk/compare/@metamask/sdk@0.18.0...@metamask/sdk@0.18.1 [0.18.0]: https://github.com/MetaMask/metamask-sdk/compare/@metamask/sdk@0.17.2...@metamask/sdk@0.18.0 diff --git a/packages/sdk/package.json b/packages/sdk/package.json index b12258a03..9f090e821 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/sdk", - "version": "0.18.2", + "version": "0.18.3", "description": "", "homepage": "https://github.com/MetaMask/metamask-sdk#readme", "bugs": { diff --git a/packages/sdk/src/services/MetaMaskSDK/ConnectionManager/connect.ts b/packages/sdk/src/services/MetaMaskSDK/ConnectionManager/connect.ts index 4a4330bd3..7ab127165 100644 --- a/packages/sdk/src/services/MetaMaskSDK/ConnectionManager/connect.ts +++ b/packages/sdk/src/services/MetaMaskSDK/ConnectionManager/connect.ts @@ -26,6 +26,16 @@ export async function connect(instance: MetaMaskSDK) { throw new Error(`SDK state invalid -- undefined provider`); } + // TODO: enable once MetaMask Mobile v7.21 is out in store. + // It would still work on older wallet but the connection modal may be trigger twice. + // return instance.activeProvider.request({ + // method: RPC_METHODS.WALLET_REQUESTPERMISSIONS, + // params: [ + // { + // eth_accounts: {}, + // }, + // ], + // }); return instance.activeProvider.request({ method: RPC_METHODS.ETH_REQUESTACCOUNTS, params: [],