From 7f1c753eff91c141c4c6d782c43fcfb042db8b3d Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 5 May 2026 22:00:42 +0000 Subject: [PATCH 1/6] 2.0.2 --- package.json | 2 +- packages/snap/CHANGELOG.md | 58 ++++---------------------------------- packages/snap/package.json | 2 +- 3 files changed, 8 insertions(+), 54 deletions(-) diff --git a/package.json b/package.json index ad0f32f..f9f2efc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/snap-simple-keyring", - "version": "2.0.1", + "version": "2.0.2", "private": true, "description": "A simple keyring snap that integrates with MetaMask accounts.", "keywords": [ diff --git a/packages/snap/CHANGELOG.md b/packages/snap/CHANGELOG.md index 1f65df2..8f20f96 100644 --- a/packages/snap/CHANGELOG.md +++ b/packages/snap/CHANGELOG.md @@ -1,5 +1,4 @@ # Changelog - All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), @@ -7,16 +6,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Added +## [2.0.2] +### Uncategorized +- feat: add missing methods ([#176](https://github.com/MetaMask/snap-simple-keyring/pull/176)) +### Added - Implement `keyring_setSelectedAccounts` and `keyring_resolveAccountAddress` ([#163](https://github.com/MetaMask/snap-simple-keyring/pull/163)) - Required for compatibility with `@metamask/eth-snap-keyring@^22`, which invokes these methods when MetaMask switches the active account or needs to resolve the signer for a request. - Allow the `metamask` origin to call `keyring_createAccount`, `keyring_resolveAccountAddress`, and `keyring_setSelectedAccounts` ([#163](https://github.com/MetaMask/snap-simple-keyring/pull/163)) ## [2.0.1] - ### Changed - - Bump `@metamask/keyring-api` from `^8.1.3` to `^23.1.0` ([#169](https://github.com/MetaMask/snap-simple-keyring/pull/169), [#173](https://github.com/MetaMask/snap-simple-keyring/pull/173)) - Add `@metamask/keyring-snap-sdk@^7.0.0` ([#169](https://github.com/MetaMask/snap-simple-keyring/pull/169)) - Some code that the snap was relying on was moved from `@metamask/keyring-api` to `@metamask/keyring-snap-sdk`. @@ -26,163 +26,117 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Bump `@metamask/utils` from `^8.1.0` to `^11.11.0` ([#173](https://github.com/MetaMask/snap-simple-keyring/pull/173)) ## [2.0.0] - ### Changed - - Bump `crypto-browserify@^3.12.1` + `snaps-*` ([#159](https://github.com/MetaMask/snap-simple-keyring/pull/159)) ## [1.1.6] - ### Changed - - Bump `@metamask/keyring-api` from `^8.1.0` to `^8.1.3` ([#155](https://github.com/MetaMask/snap-simple-keyring/pull/155)) - This version is now built slightly differently and is part of the [accounts monorepo](https://github.com/MetaMask/accounts). ## [1.1.5] - ### Added - - Add "metamask.github.io" to `allowedOrigins` list in the `endowment:keyring` ([#153](https://github.com/MetaMask/snap-simple-keyring/pull/153)) ## [1.1.4] - ### Added - - Allow the origin `metamask.github.io` to call snap methods ([#151](https://github.com/MetaMask/snap-simple-keyring/pull/151)). ### Fixed - - Moved `build-preinstalled-snap.js` script inside snap package and fixed bundle paths for pre installed snaps ([#150](https://github.com/MetaMask/snap-simple-keyring/pull/150)) ## [1.1.3] - ### Added - - Include `preinstalled-snap.json` in release ([#148](https://github.com/MetaMask/snap-simple-keyring/pull/148)). - Script to generate `preinstalled-snap.json` ([#146](https://github.com/MetaMask/snap-simple-keyring/pull/146)). ## [1.1.2] - ### Added - - Add account name suggestion to `"notify:accountCreated"` event ([#144](https://github.com/MetaMask/snap-simple-keyring/pull/144)) ## [1.1.1] - ### Changed - - Remove unused `snap_dialog` permission ([#127](https://github.com/MetaMask/snap-simple-keyring/pull/127)) ## [1.1.0] - ### Added - - Add logger utility ([#116](https://github.com/MetaMask/snap-simple-keyring/pull/116)). - Add "Update Account" to companion dapp ([#118](https://github.com/MetaMask/snap-simple-keyring/pull/118)). ### Fixed - - Remove `localhost` from `allowedOrigin` ([#125](https://github.com/MetaMask/snap-simple-keyring/pull/125)). - Sanitize error message when importing invalid private key ([#119](https://github.com/MetaMask/snap-simple-keyring/pull/119)). ## [1.0.1] - ### Changed - - Remove logs from Snap ([#108](https://github.com/MetaMask/snap-simple-keyring/pull/108)). ## [1.0.0] - ### Changed - - Remove from allowed origins ([#106](https://github.com/MetaMask/snap-simple-keyring/pull/106)). ## [0.4.0] - ### Added - - Add URL and message to async approval redirect ([#98](https://github.com/MetaMask/snap-simple-keyring/pull/98)). ## [0.3.1] ## [0.3.0] - ### Changed - - **BREAKING:** Use `onKeyringRequest` to handle keyring methods ([#97](https://github.com/MetaMask/snap-simple-keyring/pull/97)). ## [0.2.4] - ### Fixed - - Fix Snap and Extension are out of sync when creating/removing account ([#95](https://github.com/MetaMask/snap-simple-keyring/pull/95)). - Remove private key from options after generating key pair ([#90](https://github.com/MetaMask/snap-simple-keyring/pull/90)). ## [0.2.3] - ### Changed - - Update linting targets ([#85](https://github.com/MetaMask/snap-simple-keyring/pull/85)). - Update Gatsby to version 5 ([#83](https://github.com/MetaMask/snap-simple-keyring/pull/83)). - Enable linters and fix errors ([#81](https://github.com/MetaMask/snap-simple-keyring/pull/81)). ## [0.2.2] - ### Fixed - - Persist snap state after switching between sync <-> async ([#76](https://github.com/MetaMask/snap-simple-keyring/pull/76)). ## [0.2.1] - ### Changed - - Migrate to new `keyring-api` version (0.2.x) ([#64](https://github.com/MetaMask/snap-simple-keyring/pull/64)). - Polyfill crypto dependency introduced in `metamask-utils` 6.2.0 ([#62](https://github.com/MetaMask/snap-simple-keyring/pull/62)). ## [0.2.0] - ### Added - - Support the async approval flow ([#50](https://github.com/MetaMask/snap-simple-keyring/pull/50)). - Import account ([#58](https://github.com/MetaMask/snap-simple-keyring/pull/58)). ## [0.1.4] - ### Changed - - Bump `@metamask/snaps-cli` to `v0.38.2-flask.1` ([#55](https://github.com/MetaMask/snap-simple-keyring/pull/55)). ## [0.1.3] - ### Fixed - - Fix address checksum and account update order. ([#44](https://github.com/MetaMask/snap-simple-keyring/pull/44)). - Fix unique name during account creation. ([#43](https://github.com/MetaMask/snap-simple-keyring/pull/43)). ## [0.1.2] - ### Changed - - Update snaps and API dependencies. ([#41](https://github.com/MetaMask/snap-simple-keyring/pull/41)). - Add IDs for e2e tests. ([#40](https://github.com/MetaMask/snap-simple-keyring/pull/40)). ## [0.1.1] - 2023-06-23 - ### Changed - - Update snap's `README.md` ([#37](https://github.com/MetaMask/snap-simple-keyring/pull/37)). ### Fixed - - Allow calls from `https://metamask.github.io` to the snap. ([#36](https://github.com/MetaMask/snap-simple-keyring/pull/36)). ## [0.1.0] - 2023-06-22 - ### Added - - Initial release. -[Unreleased]: https://github.com/MetaMask/snap-simple-keyring/compare/v2.0.1...HEAD +[Unreleased]: https://github.com/MetaMask/snap-simple-keyring/compare/v2.0.2...HEAD +[2.0.2]: https://github.com/MetaMask/snap-simple-keyring/compare/v2.0.1...v2.0.2 [2.0.1]: https://github.com/MetaMask/snap-simple-keyring/compare/v2.0.0...v2.0.1 [2.0.0]: https://github.com/MetaMask/snap-simple-keyring/compare/v1.1.6...v2.0.0 [1.1.6]: https://github.com/MetaMask/snap-simple-keyring/compare/v1.1.5...v1.1.6 diff --git a/packages/snap/package.json b/packages/snap/package.json index 1671e72..680e0f3 100644 --- a/packages/snap/package.json +++ b/packages/snap/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/snap-simple-keyring-snap", - "version": "2.0.1", + "version": "2.0.2", "description": "A simple keyring snap that integrates with MetaMask accounts.", "keywords": [ "metamask", From 8a949c3d7ce46235c82741afbf60291ad1b7aece Mon Sep 17 00:00:00 2001 From: Hassan Malik Date: Tue, 5 May 2026 18:08:33 -0400 Subject: [PATCH 2/6] fix: update changelog --- packages/snap/CHANGELOG.md | 57 +++++++++++++++++++++++++++++++++++--- 1 file changed, 53 insertions(+), 4 deletions(-) diff --git a/packages/snap/CHANGELOG.md b/packages/snap/CHANGELOG.md index 8f20f96..afc2bbb 100644 --- a/packages/snap/CHANGELOG.md +++ b/packages/snap/CHANGELOG.md @@ -1,4 +1,5 @@ # Changelog + All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), @@ -7,16 +8,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ## [2.0.2] -### Uncategorized -- feat: add missing methods ([#176](https://github.com/MetaMask/snap-simple-keyring/pull/176)) ### Added -- Implement `keyring_setSelectedAccounts` and `keyring_resolveAccountAddress` ([#163](https://github.com/MetaMask/snap-simple-keyring/pull/163)) + +- Implement `keyring_setSelectedAccounts` and `keyring_resolveAccountAddress` ([#176](https://github.com/MetaMask/snap-simple-keyring/pull/176)) - Required for compatibility with `@metamask/eth-snap-keyring@^22`, which invokes these methods when MetaMask switches the active account or needs to resolve the signer for a request. -- Allow the `metamask` origin to call `keyring_createAccount`, `keyring_resolveAccountAddress`, and `keyring_setSelectedAccounts` ([#163](https://github.com/MetaMask/snap-simple-keyring/pull/163)) +- Allow the `metamask` origin to call `keyring_createAccount`, `keyring_resolveAccountAddress`, and `keyring_setSelectedAccounts` ([#176](https://github.com/MetaMask/snap-simple-keyring/pull/176)) ## [2.0.1] + ### Changed + - Bump `@metamask/keyring-api` from `^8.1.3` to `^23.1.0` ([#169](https://github.com/MetaMask/snap-simple-keyring/pull/169), [#173](https://github.com/MetaMask/snap-simple-keyring/pull/173)) - Add `@metamask/keyring-snap-sdk@^7.0.0` ([#169](https://github.com/MetaMask/snap-simple-keyring/pull/169)) - Some code that the snap was relying on was moved from `@metamask/keyring-api` to `@metamask/keyring-snap-sdk`. @@ -26,113 +28,160 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Bump `@metamask/utils` from `^8.1.0` to `^11.11.0` ([#173](https://github.com/MetaMask/snap-simple-keyring/pull/173)) ## [2.0.0] + ### Changed + - Bump `crypto-browserify@^3.12.1` + `snaps-*` ([#159](https://github.com/MetaMask/snap-simple-keyring/pull/159)) ## [1.1.6] + ### Changed + - Bump `@metamask/keyring-api` from `^8.1.0` to `^8.1.3` ([#155](https://github.com/MetaMask/snap-simple-keyring/pull/155)) - This version is now built slightly differently and is part of the [accounts monorepo](https://github.com/MetaMask/accounts). ## [1.1.5] + ### Added + - Add "metamask.github.io" to `allowedOrigins` list in the `endowment:keyring` ([#153](https://github.com/MetaMask/snap-simple-keyring/pull/153)) ## [1.1.4] + ### Added + - Allow the origin `metamask.github.io` to call snap methods ([#151](https://github.com/MetaMask/snap-simple-keyring/pull/151)). ### Fixed + - Moved `build-preinstalled-snap.js` script inside snap package and fixed bundle paths for pre installed snaps ([#150](https://github.com/MetaMask/snap-simple-keyring/pull/150)) ## [1.1.3] + ### Added + - Include `preinstalled-snap.json` in release ([#148](https://github.com/MetaMask/snap-simple-keyring/pull/148)). - Script to generate `preinstalled-snap.json` ([#146](https://github.com/MetaMask/snap-simple-keyring/pull/146)). ## [1.1.2] + ### Added + - Add account name suggestion to `"notify:accountCreated"` event ([#144](https://github.com/MetaMask/snap-simple-keyring/pull/144)) ## [1.1.1] + ### Changed + - Remove unused `snap_dialog` permission ([#127](https://github.com/MetaMask/snap-simple-keyring/pull/127)) ## [1.1.0] + ### Added + - Add logger utility ([#116](https://github.com/MetaMask/snap-simple-keyring/pull/116)). - Add "Update Account" to companion dapp ([#118](https://github.com/MetaMask/snap-simple-keyring/pull/118)). ### Fixed + - Remove `localhost` from `allowedOrigin` ([#125](https://github.com/MetaMask/snap-simple-keyring/pull/125)). - Sanitize error message when importing invalid private key ([#119](https://github.com/MetaMask/snap-simple-keyring/pull/119)). ## [1.0.1] + ### Changed + - Remove logs from Snap ([#108](https://github.com/MetaMask/snap-simple-keyring/pull/108)). ## [1.0.0] + ### Changed + - Remove from allowed origins ([#106](https://github.com/MetaMask/snap-simple-keyring/pull/106)). ## [0.4.0] + ### Added + - Add URL and message to async approval redirect ([#98](https://github.com/MetaMask/snap-simple-keyring/pull/98)). ## [0.3.1] ## [0.3.0] + ### Changed + - **BREAKING:** Use `onKeyringRequest` to handle keyring methods ([#97](https://github.com/MetaMask/snap-simple-keyring/pull/97)). ## [0.2.4] + ### Fixed + - Fix Snap and Extension are out of sync when creating/removing account ([#95](https://github.com/MetaMask/snap-simple-keyring/pull/95)). - Remove private key from options after generating key pair ([#90](https://github.com/MetaMask/snap-simple-keyring/pull/90)). ## [0.2.3] + ### Changed + - Update linting targets ([#85](https://github.com/MetaMask/snap-simple-keyring/pull/85)). - Update Gatsby to version 5 ([#83](https://github.com/MetaMask/snap-simple-keyring/pull/83)). - Enable linters and fix errors ([#81](https://github.com/MetaMask/snap-simple-keyring/pull/81)). ## [0.2.2] + ### Fixed + - Persist snap state after switching between sync <-> async ([#76](https://github.com/MetaMask/snap-simple-keyring/pull/76)). ## [0.2.1] + ### Changed + - Migrate to new `keyring-api` version (0.2.x) ([#64](https://github.com/MetaMask/snap-simple-keyring/pull/64)). - Polyfill crypto dependency introduced in `metamask-utils` 6.2.0 ([#62](https://github.com/MetaMask/snap-simple-keyring/pull/62)). ## [0.2.0] + ### Added + - Support the async approval flow ([#50](https://github.com/MetaMask/snap-simple-keyring/pull/50)). - Import account ([#58](https://github.com/MetaMask/snap-simple-keyring/pull/58)). ## [0.1.4] + ### Changed + - Bump `@metamask/snaps-cli` to `v0.38.2-flask.1` ([#55](https://github.com/MetaMask/snap-simple-keyring/pull/55)). ## [0.1.3] + ### Fixed + - Fix address checksum and account update order. ([#44](https://github.com/MetaMask/snap-simple-keyring/pull/44)). - Fix unique name during account creation. ([#43](https://github.com/MetaMask/snap-simple-keyring/pull/43)). ## [0.1.2] + ### Changed + - Update snaps and API dependencies. ([#41](https://github.com/MetaMask/snap-simple-keyring/pull/41)). - Add IDs for e2e tests. ([#40](https://github.com/MetaMask/snap-simple-keyring/pull/40)). ## [0.1.1] - 2023-06-23 + ### Changed + - Update snap's `README.md` ([#37](https://github.com/MetaMask/snap-simple-keyring/pull/37)). ### Fixed + - Allow calls from `https://metamask.github.io` to the snap. ([#36](https://github.com/MetaMask/snap-simple-keyring/pull/36)). ## [0.1.0] - 2023-06-22 + ### Added + - Initial release. [Unreleased]: https://github.com/MetaMask/snap-simple-keyring/compare/v2.0.2...HEAD From 171981f92d328df98c47cb26d4edb1d406d0129c Mon Sep 17 00:00:00 2001 From: Hassan Malik Date: Tue, 5 May 2026 18:08:58 -0400 Subject: [PATCH 3/6] fix: update manifest version --- packages/snap/snap.manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/snap/snap.manifest.json b/packages/snap/snap.manifest.json index 5935e63..a56de49 100644 --- a/packages/snap/snap.manifest.json +++ b/packages/snap/snap.manifest.json @@ -1,5 +1,5 @@ { - "version": "2.0.1", + "version": "2.0.2", "description": "An example of a key management snap for a simple keyring.", "proposedName": "MetaMask Simple Snap Keyring", "repository": { From 117a2a76703cc67f94fbbd3bfc5360e2bdf639fa Mon Sep 17 00:00:00 2001 From: Hassan Malik Date: Tue, 5 May 2026 18:12:02 -0400 Subject: [PATCH 4/6] fix: update shasum --- packages/snap/snap.manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/snap/snap.manifest.json b/packages/snap/snap.manifest.json index a56de49..f45204c 100644 --- a/packages/snap/snap.manifest.json +++ b/packages/snap/snap.manifest.json @@ -7,7 +7,7 @@ "url": "git+https://github.com/MetaMask/snap-simple-keyring.git" }, "source": { - "shasum": "GOVQr60E+i51GtXbwdaFzHmBrDKxwBVoDKUICf6V8HI=", + "shasum": "6hhSOmHIIdtagGDtRQd1YcUAbPYMa9OzSjAWEoKj5lE=", "location": { "npm": { "filePath": "dist/bundle.js", From a4399284a96aedf75a1111c3babb508e10c7b30e Mon Sep 17 00:00:00 2001 From: Hassan Malik Date: Wed, 6 May 2026 09:27:00 -0400 Subject: [PATCH 5/6] fix: change to minor release --- package.json | 2 +- packages/snap/CHANGELOG.md | 6 +++--- packages/snap/package.json | 2 +- packages/snap/snap.manifest.json | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index f9f2efc..090d889 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/snap-simple-keyring", - "version": "2.0.2", + "version": "2.1.0", "private": true, "description": "A simple keyring snap that integrates with MetaMask accounts.", "keywords": [ diff --git a/packages/snap/CHANGELOG.md b/packages/snap/CHANGELOG.md index afc2bbb..59ec08b 100644 --- a/packages/snap/CHANGELOG.md +++ b/packages/snap/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## [2.0.2] +## [2.1.0] ### Added @@ -184,8 +184,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Initial release. -[Unreleased]: https://github.com/MetaMask/snap-simple-keyring/compare/v2.0.2...HEAD -[2.0.2]: https://github.com/MetaMask/snap-simple-keyring/compare/v2.0.1...v2.0.2 +[Unreleased]: https://github.com/MetaMask/snap-simple-keyring/compare/v2.1.0...HEAD +[2.1.0]: https://github.com/MetaMask/snap-simple-keyring/compare/v2.0.1...v2.1.0 [2.0.1]: https://github.com/MetaMask/snap-simple-keyring/compare/v2.0.0...v2.0.1 [2.0.0]: https://github.com/MetaMask/snap-simple-keyring/compare/v1.1.6...v2.0.0 [1.1.6]: https://github.com/MetaMask/snap-simple-keyring/compare/v1.1.5...v1.1.6 diff --git a/packages/snap/package.json b/packages/snap/package.json index 680e0f3..f77e7e2 100644 --- a/packages/snap/package.json +++ b/packages/snap/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/snap-simple-keyring-snap", - "version": "2.0.2", + "version": "2.1.0", "description": "A simple keyring snap that integrates with MetaMask accounts.", "keywords": [ "metamask", diff --git a/packages/snap/snap.manifest.json b/packages/snap/snap.manifest.json index f45204c..390ab83 100644 --- a/packages/snap/snap.manifest.json +++ b/packages/snap/snap.manifest.json @@ -1,5 +1,5 @@ { - "version": "2.0.2", + "version": "2.1.0", "description": "An example of a key management snap for a simple keyring.", "proposedName": "MetaMask Simple Snap Keyring", "repository": { From 8da6e8bcb1072072b5f7ef65305bd5b0cfa2d602 Mon Sep 17 00:00:00 2001 From: Hassan Malik Date: Wed, 6 May 2026 09:30:01 -0400 Subject: [PATCH 6/6] fix: update shasum --- packages/snap/snap.manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/snap/snap.manifest.json b/packages/snap/snap.manifest.json index 390ab83..184bba8 100644 --- a/packages/snap/snap.manifest.json +++ b/packages/snap/snap.manifest.json @@ -7,7 +7,7 @@ "url": "git+https://github.com/MetaMask/snap-simple-keyring.git" }, "source": { - "shasum": "6hhSOmHIIdtagGDtRQd1YcUAbPYMa9OzSjAWEoKj5lE=", + "shasum": "V1nc4Dr3tA6lrG2DKSmEzecmlFXsny+wcxz2SmVfJyY=", "location": { "npm": { "filePath": "dist/bundle.js",