@metamask-previews/keyring-internal-api 2.0.1-7ba2de1 → 3.0.0-0aca2ee

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 CHANGED
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [3.0.0]
11
+
12
+ ### Changed
13
+
14
+ - **BREAKING:** Bump `@metamask/keyring-api` from `^14.0.0` to `^15.0.0` ([#160](https://github.com/MetaMask/accounts/pull/160))
15
+ - The `scopes` from each `*AccountStruct` types is now more strict which impact all `Internal*AccountStruct` types.
16
+
10
17
  ## [2.0.1]
11
18
 
12
19
  ### Changed
@@ -35,7 +42,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
35
42
  - This new version fixes a bug with CJS re-exports.
36
43
  - Initial release ([#24](https://github.com/MetaMask/accounts/pull/24))
37
44
 
38
- [Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@2.0.1...HEAD
45
+ [Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@3.0.0...HEAD
46
+ [3.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@2.0.1...@metamask/keyring-internal-api@3.0.0
39
47
  [2.0.1]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@2.0.0...@metamask/keyring-internal-api@2.0.1
40
48
  [2.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@1.1.0...@metamask/keyring-internal-api@2.0.0
41
49
  [1.1.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@1.0.0...@metamask/keyring-internal-api@1.1.0
package/dist/types.d.cts CHANGED
@@ -70,7 +70,7 @@ export declare const InternalEthEoaAccountStruct: Struct<{
70
70
  lastSelected?: number;
71
71
  };
72
72
  address: string;
73
- scopes: import("@metamask/keyring-api").EthScopes.Namespace[];
73
+ scopes: import("@metamask/keyring-api").EthScope.Namespace[];
74
74
  methods: ("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[];
75
75
  }, {
76
76
  metadata: Struct<{
@@ -108,7 +108,7 @@ export declare const InternalEthEoaAccountStruct: Struct<{
108
108
  }>;
109
109
  address: import("@metamask/superstruct").Struct<string, null>;
110
110
  type: import("@metamask/superstruct").Struct<"eip155:eoa", "eip155:eoa">;
111
- scopes: import("@metamask/superstruct").Struct<import("@metamask/keyring-api").EthScopes.Namespace[], import("@metamask/superstruct").Struct<import("@metamask/keyring-api").EthScopes.Namespace, import("@metamask/keyring-api").EthScopes.Namespace>>;
111
+ scopes: import("@metamask/superstruct").Struct<import("@metamask/keyring-api").EthScope.Namespace[], import("@metamask/superstruct").Struct<import("@metamask/keyring-api").EthScope.Namespace, import("@metamask/keyring-api").EthScope.Namespace>>;
112
112
  methods: import("@metamask/superstruct").Struct<("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[], import("@metamask/superstruct").Struct<"personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4", {
113
113
  personal_sign: "personal_sign";
114
114
  eth_sign: "eth_sign";
package/dist/types.d.mts CHANGED
@@ -70,7 +70,7 @@ export declare const InternalEthEoaAccountStruct: Struct<{
70
70
  lastSelected?: number;
71
71
  };
72
72
  address: string;
73
- scopes: import("@metamask/keyring-api").EthScopes.Namespace[];
73
+ scopes: import("@metamask/keyring-api").EthScope.Namespace[];
74
74
  methods: ("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[];
75
75
  }, {
76
76
  metadata: Struct<{
@@ -108,7 +108,7 @@ export declare const InternalEthEoaAccountStruct: Struct<{
108
108
  }>;
109
109
  address: import("@metamask/superstruct").Struct<string, null>;
110
110
  type: import("@metamask/superstruct").Struct<"eip155:eoa", "eip155:eoa">;
111
- scopes: import("@metamask/superstruct").Struct<import("@metamask/keyring-api").EthScopes.Namespace[], import("@metamask/superstruct").Struct<import("@metamask/keyring-api").EthScopes.Namespace, import("@metamask/keyring-api").EthScopes.Namespace>>;
111
+ scopes: import("@metamask/superstruct").Struct<import("@metamask/keyring-api").EthScope.Namespace[], import("@metamask/superstruct").Struct<import("@metamask/keyring-api").EthScope.Namespace, import("@metamask/keyring-api").EthScope.Namespace>>;
112
112
  methods: import("@metamask/superstruct").Struct<("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[], import("@metamask/superstruct").Struct<"personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4", {
113
113
  personal_sign: "personal_sign";
114
114
  eth_sign: "eth_sign";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/keyring-internal-api",
3
- "version": "2.0.1-7ba2de1",
3
+ "version": "3.0.0-0aca2ee",
4
4
  "description": "MetaMask Keyring Internal API",
5
5
  "keywords": [
6
6
  "metamask",
@@ -45,8 +45,8 @@
45
45
  "test:watch": "jest --watch"
46
46
  },
47
47
  "dependencies": {
48
- "@metamask/keyring-api": "14.0.0",
49
- "@metamask/keyring-utils": "1.2.0",
48
+ "@metamask/keyring-api": "15.0.0",
49
+ "@metamask/keyring-utils": "1.3.0",
50
50
  "@metamask/superstruct": "^3.1.0",
51
51
  "@metamask/utils": "^11.0.1"
52
52
  },