diff --git a/package.json b/package.json index c47a4064a..f9a75705d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "metamask-sdk-monorepo", - "version": "13.0.0", + "version": "14.0.0", "private": true, "repository": { "type": "git", diff --git a/packages/sdk-communication-layer/CHANGELOG.md b/packages/sdk-communication-layer/CHANGELOG.md index 88f7ff6b1..4e7ab101f 100644 --- a/packages/sdk-communication-layer/CHANGELOG.md +++ b/packages/sdk-communication-layer/CHANGELOG.md @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.5.3] +### Added +- feat: remove webrtc references ([#227](https://github.com/MetaMask/metamask-sdk/pull/227)) +- refactor: simplify connection flow ([#226](https://github.com/MetaMask/metamask-sdk/pull/226)) +- feat: cleanup obsolete walletconnect references ([#223](https://github.com/MetaMask/metamask-sdk/pull/223)) +- fix: initial connection promise potentially dangling with browser extension ([#218](https://github.com/MetaMask/metamask-sdk/pull/218)) + ## [0.5.2] ### Added - feat: optimize paused/resume flow ([#212](https://github.com/MetaMask/metamask-sdk/pull/212)) @@ -43,7 +50,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-communication-layer@0.5.2...HEAD +[Unreleased]: https://github.com/MetaMask/metamask-sdk/compare/@metamask/sdk-communication-layer@0.5.3...HEAD +[0.5.3]: https://github.com/MetaMask/metamask-sdk/compare/@metamask/sdk-communication-layer@0.5.2...@metamask/sdk-communication-layer@0.5.3 [0.5.2]: https://github.com/MetaMask/metamask-sdk/compare/@metamask/sdk-communication-layer@0.5.0...@metamask/sdk-communication-layer@0.5.2 [0.5.0]: https://github.com/MetaMask/metamask-sdk/compare/@metamask/sdk-communication-layer@0.4.2...@metamask/sdk-communication-layer@0.5.0 [0.4.2]: https://github.com/MetaMask/metamask-sdk/compare/@metamask/sdk-communication-layer@0.4.0...@metamask/sdk-communication-layer@0.4.2 diff --git a/packages/sdk-communication-layer/package.json b/packages/sdk-communication-layer/package.json index 20c149566..1170c1175 100644 --- a/packages/sdk-communication-layer/package.json +++ b/packages/sdk-communication-layer/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/sdk-communication-layer", - "version": "0.5.2", + "version": "0.5.3", "description": "", "homepage": "https://github.com/MetaMask/metamask-sdk#readme", "bugs": { diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index c45225b14..db978faf5 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -6,6 +6,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.5.3] +### Added +- feat: persist extension provider preferences +- feat: remove webrtc references ([#227](https://github.com/MetaMask/metamask-sdk/pull/227)) +- refactor: simplify connection flow ([#226](https://github.com/MetaMask/metamask-sdk/pull/226)) +- feat: cleanup obsolete walletconnect references ([#223](https://github.com/MetaMask/metamask-sdk/pull/223)) +- feat: options to use metamask browser extension only (skip modal) ([#220](https://github.com/MetaMask/metamask-sdk/pull/220)) +- fix: initial connection promise potentially dangling with browser extension ([#218](https://github.com/MetaMask/metamask-sdk/pull/218)) + ## [0.5.2] ### Added - fix: invalid modal state ([#213](https://github.com/MetaMask/metamask-sdk/pull/213)) @@ -63,7 +72,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.5.2...HEAD +[Unreleased]: https://github.com/MetaMask/metamask-sdk/compare/@metamask/sdk@0.5.3...HEAD +[0.5.3]: https://github.com/MetaMask/metamask-sdk/compare/@metamask/sdk@0.5.2...@metamask/sdk@0.5.3 [0.5.2]: https://github.com/MetaMask/metamask-sdk/compare/@metamask/sdk@0.5.1...@metamask/sdk@0.5.2 [0.5.1]: https://github.com/MetaMask/metamask-sdk/compare/@metamask/sdk@0.5.0...@metamask/sdk@0.5.1 [0.5.0]: https://github.com/MetaMask/metamask-sdk/compare/@metamask/sdk@0.4.2...@metamask/sdk@0.5.0 diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 2e2d85b80..3efa7c8d6 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/sdk", - "version": "0.5.2", + "version": "0.5.3", "description": "", "homepage": "https://github.com/MetaMask/metamask-sdk#readme", "bugs": { diff --git a/packages/sdk/src/sdk.ts b/packages/sdk/src/sdk.ts index 715ca2460..05c7dd872 100644 --- a/packages/sdk/src/sdk.ts +++ b/packages/sdk/src/sdk.ts @@ -326,8 +326,6 @@ export class MetaMaskSDK extends EventEmitter2 { debug: this.debug, }); - window.ethereum = this.activeProvider; - this.initEventListeners(); if (preferExtension) { @@ -336,7 +334,11 @@ export class MetaMaskSDK extends EventEmitter2 { }); } else if (checkInstallationImmediately) { // This will check if the connection was correctly done or if the user needs to install MetaMask - await this.installer.start({ wait: true }); + try { + await this.installer.start({ wait: true }); + } catch (err: unknown) { + // ignore error on autorocnnect + } } this._initialized = true;