@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.
- package/CHANGELOG.md +32 -1
- package/dist/SnapKeyring.cjs +169 -826
- package/dist/SnapKeyring.cjs.map +1 -1
- package/dist/SnapKeyring.d.cts +21 -11
- package/dist/SnapKeyring.d.cts.map +1 -1
- package/dist/SnapKeyring.d.mts +21 -11
- package/dist/SnapKeyring.d.mts.map +1 -1
- package/dist/SnapKeyring.mjs +169 -826
- package/dist/SnapKeyring.mjs.map +1 -1
- package/dist/SnapKeyringMessenger.cjs.map +1 -1
- package/dist/SnapKeyringMessenger.d.cts +2 -2
- package/dist/SnapKeyringMessenger.d.cts.map +1 -1
- package/dist/SnapKeyringMessenger.d.mts +2 -2
- package/dist/SnapKeyringMessenger.d.mts.map +1 -1
- package/dist/SnapKeyringMessenger.mjs.map +1 -1
- package/dist/SnapKeyringV1.cjs +736 -0
- package/dist/SnapKeyringV1.cjs.map +1 -0
- package/dist/SnapKeyringV1.d.cts +222 -0
- package/dist/SnapKeyringV1.d.cts.map +1 -0
- package/dist/SnapKeyringV1.d.mts +222 -0
- package/dist/SnapKeyringV1.d.mts.map +1 -0
- package/dist/SnapKeyringV1.mjs +732 -0
- package/dist/SnapKeyringV1.mjs.map +1 -0
- package/dist/SnapKeyringV2.cjs +375 -0
- package/dist/SnapKeyringV2.cjs.map +1 -0
- package/dist/SnapKeyringV2.d.cts +275 -0
- package/dist/SnapKeyringV2.d.cts.map +1 -0
- package/dist/SnapKeyringV2.d.mts +275 -0
- package/dist/SnapKeyringV2.d.mts.map +1 -0
- package/dist/SnapKeyringV2.mjs +371 -0
- package/dist/SnapKeyringV2.mjs.map +1 -0
- package/dist/events.d.cts +4 -4
- package/dist/events.d.mts +4 -4
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/dist/util.cjs +16 -0
- package/dist/util.cjs.map +1 -1
- package/dist/util.d.cts +11 -0
- package/dist/util.d.cts.map +1 -1
- package/dist/util.d.mts +11 -0
- package/dist/util.d.mts.map +1 -1
- package/dist/util.mjs +15 -0
- package/dist/util.mjs.map +1 -1
- package/package.json +11 -10
- package/dist/DeferredPromise.cjs +0 -30
- package/dist/DeferredPromise.cjs.map +0 -1
- package/dist/DeferredPromise.d.cts +0 -16
- package/dist/DeferredPromise.d.cts.map +0 -1
- package/dist/DeferredPromise.d.mts +0 -16
- package/dist/DeferredPromise.d.mts.map +0 -1
- package/dist/DeferredPromise.mjs +0 -26
- 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@
|
|
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
|