@metamask-previews/eth-snap-keyring 19.0.0-fd40efd → 20.0.0-5c366be

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/CHANGELOG.md +32 -1
  2. package/dist/SnapKeyring.cjs +169 -826
  3. package/dist/SnapKeyring.cjs.map +1 -1
  4. package/dist/SnapKeyring.d.cts +21 -11
  5. package/dist/SnapKeyring.d.cts.map +1 -1
  6. package/dist/SnapKeyring.d.mts +21 -11
  7. package/dist/SnapKeyring.d.mts.map +1 -1
  8. package/dist/SnapKeyring.mjs +169 -826
  9. package/dist/SnapKeyring.mjs.map +1 -1
  10. package/dist/SnapKeyringMessenger.cjs.map +1 -1
  11. package/dist/SnapKeyringMessenger.d.cts +2 -2
  12. package/dist/SnapKeyringMessenger.d.cts.map +1 -1
  13. package/dist/SnapKeyringMessenger.d.mts +2 -2
  14. package/dist/SnapKeyringMessenger.d.mts.map +1 -1
  15. package/dist/SnapKeyringMessenger.mjs.map +1 -1
  16. package/dist/SnapKeyringV1.cjs +736 -0
  17. package/dist/SnapKeyringV1.cjs.map +1 -0
  18. package/dist/SnapKeyringV1.d.cts +222 -0
  19. package/dist/SnapKeyringV1.d.cts.map +1 -0
  20. package/dist/SnapKeyringV1.d.mts +222 -0
  21. package/dist/SnapKeyringV1.d.mts.map +1 -0
  22. package/dist/SnapKeyringV1.mjs +732 -0
  23. package/dist/SnapKeyringV1.mjs.map +1 -0
  24. package/dist/SnapKeyringV2.cjs +375 -0
  25. package/dist/SnapKeyringV2.cjs.map +1 -0
  26. package/dist/SnapKeyringV2.d.cts +275 -0
  27. package/dist/SnapKeyringV2.d.cts.map +1 -0
  28. package/dist/SnapKeyringV2.d.mts +275 -0
  29. package/dist/SnapKeyringV2.d.mts.map +1 -0
  30. package/dist/SnapKeyringV2.mjs +371 -0
  31. package/dist/SnapKeyringV2.mjs.map +1 -0
  32. package/dist/events.d.cts +4 -4
  33. package/dist/events.d.mts +4 -4
  34. package/dist/index.cjs +2 -0
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.cts +2 -0
  37. package/dist/index.d.cts.map +1 -1
  38. package/dist/index.d.mts +2 -0
  39. package/dist/index.d.mts.map +1 -1
  40. package/dist/index.mjs +2 -0
  41. package/dist/index.mjs.map +1 -1
  42. package/dist/util.cjs +16 -0
  43. package/dist/util.cjs.map +1 -1
  44. package/dist/util.d.cts +11 -0
  45. package/dist/util.d.cts.map +1 -1
  46. package/dist/util.d.mts +11 -0
  47. package/dist/util.d.mts.map +1 -1
  48. package/dist/util.mjs +15 -0
  49. package/dist/util.mjs.map +1 -1
  50. package/package.json +11 -10
  51. package/dist/DeferredPromise.cjs +0 -30
  52. package/dist/DeferredPromise.cjs.map +0 -1
  53. package/dist/DeferredPromise.d.cts +0 -16
  54. package/dist/DeferredPromise.d.cts.map +0 -1
  55. package/dist/DeferredPromise.d.mts +0 -16
  56. package/dist/DeferredPromise.d.mts.map +0 -1
  57. package/dist/DeferredPromise.mjs +0 -26
  58. package/dist/DeferredPromise.mjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,36 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ### Added
11
+
12
+ - Add `SnapKeyringV1` class, a per-snap keyring wrapper that implements the old keyring interface and flows ([#507](https://github.com/MetaMask/accounts/pull/507))
13
+ - This will allow us to re-use the existing logic (that we still use today) as part of the new V2 implementation until we completely them.
14
+ - Add `SnapKeyringV2` class, a per-snap keyring wrapper that implements `KeyringV2` with `createAccount`, `createAccounts`, `deleteAccount`, `submitRequest`, `getAccount`, and `getAccounts` ([#501](https://github.com/MetaMask/accounts/pull/501)), ([#507](https://github.com/MetaMask/accounts/pull/507))
15
+ - `SnapKeyringV2` inherits from `SnapKeyringV1` so it can replace the current `SnapKeyring` class entirely, but for a single Snap.
16
+ - Add `@metamask/keyring-sdk` `^1.1.0` as a new dependency ([#501](https://github.com/MetaMask/accounts/pull/501))
17
+
18
+ ### Changed
19
+
20
+ - Use `DeferredPromise` from `@metamask/utils` ([#508](https://github.com/MetaMask/accounts/pull/508))
21
+ - Refactor `SnapKeyring` to store accounts in per-snap `SnapKeyringV2` wrappers instead of a single flat map ([#501](https://github.com/MetaMask/accounts/pull/501))
22
+ - Bump `@metamask/messenger` from `^0.3.0` to `^1.1.1` ([#489](https://github.com/MetaMask/accounts/pull/489), [#500](https://github.com/MetaMask/accounts/pull/500))
23
+ - Bump `@metamask/snaps-controllers` from `^19.0.0` to `^19.0.1` ([#500](https://github.com/MetaMask/accounts/pull/500))
24
+ - Bump `@metamask/snaps-utils` from `^12.1.2` to `^12.1.3` ([#500](https://github.com/MetaMask/accounts/pull/500))
25
+ - Bump `@metamask/utils` from `^11.1.0` to `^11.10.0` ([#489](https://github.com/MetaMask/accounts/pull/489))
26
+
27
+ ## [20.0.0]
28
+
29
+ ### Changed
30
+
31
+ - **BREAKING:** Bump `@metamask/keyring-api` from `^21.6.0` to `^22.0.0` ([#482](https://github.com/MetaMask/accounts/pull/482))
32
+ - **BREAKING:** Bump `@metamask/snaps-controllers` from `^18.0.0` to `^19.0.0` ([#486](https://github.com/MetaMask/accounts/pull/486))
33
+ - `SnapKeyring` now requires `SnapController:getSnap` instead of `SnapController:get`.
34
+ - Bump `@metamask/keyring-internal-api` from `^10.0.0` to `^10.0.1` ([#482](https://github.com/MetaMask/accounts/pull/482))
35
+ - Bump `@metamask/keyring-internal-snap-client` from `^9.0.0` to `^9.0.1` ([#482](https://github.com/MetaMask/accounts/pull/482))
36
+ - Bump `@metamask/keyring-snap-sdk` from `^7.2.1` to `^8.0.0` ([#482](https://github.com/MetaMask/accounts/pull/482))
37
+ - Bump `@metamask/snaps-sdk` from `^10.4.0` to `^11.0.0` ([#486](https://github.com/MetaMask/accounts/pull/486))
38
+ - Bump `@metamask/snaps-utils` from `^12.1.0` to `^12.1.2` ([#486](https://github.com/MetaMask/accounts/pull/486))
39
+
10
40
  ## [19.0.0]
11
41
 
12
42
  ### Added
@@ -632,7 +662,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
632
662
 
633
663
  - Initial release.
634
664
 
635
- [Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/eth-snap-keyring@19.0.0...HEAD
665
+ [Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/eth-snap-keyring@20.0.0...HEAD
666
+ [20.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/eth-snap-keyring@19.0.0...@metamask/eth-snap-keyring@20.0.0
636
667
  [19.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/eth-snap-keyring@18.0.2...@metamask/eth-snap-keyring@19.0.0
637
668
  [18.0.2]: https://github.com/MetaMask/accounts/compare/@metamask/eth-snap-keyring@18.0.1...@metamask/eth-snap-keyring@18.0.2
638
669
  [18.0.1]: https://github.com/MetaMask/accounts/compare/@metamask/eth-snap-keyring@18.0.0...@metamask/eth-snap-keyring@18.0.1