@metamask-previews/permission-controller 7.1.0-preview.fa529884 → 8.0.0-preview.08978bf

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 (2) hide show
  1. package/CHANGELOG.md +54 -1
  2. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # Changelog
2
+
2
3
  All notable changes to this project will be documented in this file.
3
4
 
4
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
@@ -6,25 +7,43 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
7
 
7
8
  ## [Unreleased]
8
9
 
10
+ ## [8.0.0]
11
+
12
+ ### Changed
13
+
14
+ - **BREAKING:** Bump `@metamask/approval-controller` peer dependency to `^5.1.2` ([#3821](https://github.com/MetaMask/core/pull/3821))
15
+ - Bump `@metamask/utils` to `^8.3.0` ([#3769](https://github.com/MetaMask/core/pull/3769))
16
+ - Bump `@metamask/base-controller` to `^4.1.1` ([#3760](https://github.com/MetaMask/core/pull/3760), [#3821](https://github.com/MetaMask/core/pull/3821))
17
+ - Bump `@metamask/controller-utils` to `^8.0.2` ([#3821](https://github.com/MetaMask/core/pull/3821))
18
+ - Bump `@metamask/json-rpc-engine` to `^7.3.2` ([#3821](https://github.com/MetaMask/core/pull/3821))
19
+
9
20
  ## [7.1.0]
21
+
10
22
  ### Added
23
+
11
24
  - Add `SubjectMetadataController:addSubjectMetadata` action ([#3733](https://github.com/MetaMask/core/pull/3733))
12
25
 
13
26
  ## [7.0.0]
27
+
14
28
  ### Changed
29
+
15
30
  - **BREAKING:** Bump `@metamask/approval-controller` peer dependency from `^5.0.0` to `^5.1.1` ([#3680](https://github.com/MetaMask/core/pull/3680), [#3695](https://github.com/MetaMask/core/pull/3695))
16
31
  - Bump `@metamask/base-controller` to `^4.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695))
17
32
  - Bump `@metamask/controller-utils` to `^8.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695), [#3678](https://github.com/MetaMask/core/pull/3678), [#3667](https://github.com/MetaMask/core/pull/3667), [#3580](https://github.com/MetaMask/core/pull/3580))
18
33
  - Bump `@metamask/json-rpc-engine` to `^7.3.1` ([#3695](https://github.com/MetaMask/core/pull/3695))
19
34
 
20
35
  ### Fixed
36
+
21
37
  - Remove `@metamask/approval-controller` dependency ([#3607](https://github.com/MetaMask/core/pull/3607))
22
38
 
23
39
  ## [6.0.0]
40
+
24
41
  ### Added
42
+
25
43
  - Add new handler to `permissionRpcMethods.handlers` for `wallet_revokePermissions` RPC method ([#1889](https://github.com/MetaMask/core/pull/1889))
26
44
 
27
45
  ### Changed
46
+
28
47
  - **BREAKING:** Bump `@metamask/base-controller` to ^4.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
29
48
  - This is breaking because the type of the `messenger` has backward-incompatible changes. See the changelog for this package for more.
30
49
  - **BREAKING:** Update `PermittedRpcMethodHooks` type so it must support signature for `wallet_revokePermission` hook ([#1889](https://github.com/MetaMask/core/pull/1889))
@@ -32,7 +51,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
32
51
  - Bump `@metamask/controller-utils` to ^6.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
33
52
 
34
53
  ## [5.0.1]
54
+
35
55
  ### Changed
56
+
36
57
  - Bump `@metamask/json-rpc-engine` from `^7.1.0` to `^7.2.0` ([#1895](https://github.com/MetaMask/core/pull/1895))
37
58
  - Bump dependency on `@metamask/rpc-errors` to ^6.1.0 ([#1653](https://github.com/MetaMask/core/pull/1653))
38
59
  - Bump dependency and peer dependency on `@metamask/approval-controller` to ^4.0.1
@@ -40,7 +61,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
40
61
  - Bump `@metamask/auto-changelog` from `^3.2.0` to `^3.4.3` ([#1870](https://github.com/MetaMask/core/pull/1870), [#1905](https://github.com/MetaMask/core/pull/1905), [#1997](https://github.com/MetaMask/core/pull/1997))
41
62
 
42
63
  ## [5.0.0]
64
+
43
65
  ### Changed
66
+
44
67
  - **BREAKING:** Remove `undefined` from RestrictedMethodParameters type union and from type parameter for RestrictedMethodOptions ([#1749])(https://github.com/MetaMask/core/pull/1749))
45
68
  - **BREAKING:** Update from `json-rpc-engine@^6.1.0` to `@metamask/json-rpc-engine@^7.1.1` ([#1749])(https://github.com/MetaMask/core/pull/1749))
46
69
  - Update from `eth-rpc-errors@^4.0.2` to `@metamask/rpc-errors@^6.0.0` ([#1749])(https://github.com/MetaMask/core/pull/1749))
@@ -50,27 +73,37 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
50
73
  - Bump dependency on `@metamask/controller-utils` to ^5.0.2
51
74
 
52
75
  ## [4.1.2]
76
+
53
77
  ### Changed
78
+
54
79
  - Update TypeScript to v4.8.x ([#1718](https://github.com/MetaMask/core/pull/1718))
55
80
  - Bump dependency on `@metamask/controller-utils` to ^5.0.0
56
81
 
57
82
  ## [4.1.1]
83
+
58
84
  ### Changed
85
+
59
86
  - Bump dependency and peer dependency on `@metamask/approval-controller` to ^3.5.1
60
87
  - Bump dependency on `@metamask/base-controller` to ^3.2.1
61
88
  - Bump dependency on `@metamask/controller-utils` to ^4.3.2
62
89
 
63
90
  ## [4.1.0]
91
+
64
92
  ### Changed
93
+
65
94
  - Update `@metamask/utils` to `^6.2.0` ([#1514](https://github.com/MetaMask/core/pull/1514))
66
95
 
67
96
  ## [4.0.1]
97
+
68
98
  ### Fixed
99
+
69
100
  - Fix permissions RPC method types ([#1464](https://github.com/MetaMask/core/pull/1464))
70
101
  - The RPC method handlers were mistakenly typed as an array rather than a tuple
71
102
 
72
103
  ## [4.0.0]
104
+
73
105
  ### Changed
106
+
74
107
  - **BREAKING:** Bump to Node 16 ([#1262](https://github.com/MetaMask/core/pull/1262))
75
108
  - **BREAKING:** Update `@metamask/approval-controller` dependency and peer dependency
76
109
  - The export `permissionRpcMethods` has a slightly different type; the second generic type variable of the `getPermissions` handler is now `undefined` rather than `void` ([#1372](https://github.com/MetaMask/core/pull/1372))
@@ -79,6 +112,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
79
112
  - Change type of constructor parameter `unrestrictedMethods` to be readonly ([#1395](https://github.com/MetaMask/core/pull/1395))
80
113
 
81
114
  ### Removed
115
+
82
116
  - **BREAKING**: Remove namespaced permissions ([#1337](https://github.com/MetaMask/core/pull/1337))
83
117
  - Namespaced permissions are no longer supported. Consumers should replace namespaced permissions with equivalent caveat-based implementations.
84
118
  - **BREAKING**: Remove `targetKey` concept ([#1337](https://github.com/MetaMask/core/pull/1337))
@@ -86,48 +120,67 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
86
120
  - The `targetKey` property of permission specifications has been renamed to `targetName`.
87
121
 
88
122
  ## [3.2.0]
123
+
89
124
  ### Added
125
+
90
126
  - Allow restricting permissions by subject type ([#1233](https://github.com/MetaMask/core/pull/1233))
91
127
 
92
128
  ### Changed
129
+
93
130
  - Move `SubjectMetadataController` to permission-controller package ([#1234](https://github.com/MetaMask/core/pull/1234))
94
131
  - Update minimum `eth-rpc-errors` version from `4.0.0` to `4.0.2` ([#1215](https://github.com/MetaMask/core/pull/1215))
95
132
 
96
133
  ## [3.1.0]
134
+
97
135
  ### Added
136
+
98
137
  - Add side-effects to permissions ([#1069](https://github.com/MetaMask/core/pull/1069))
99
138
 
100
139
  ## [3.0.0]
140
+
101
141
  ### Removed
142
+
102
143
  - **BREAKING:** Remove `isomorphic-fetch` ([#1106](https://github.com/MetaMask/controllers/pull/1106))
103
144
  - Consumers must now import `isomorphic-fetch` or another polyfill themselves if they are running in an environment without `fetch`
104
145
 
105
146
  ## [2.0.0]
147
+
106
148
  ### Added
149
+
107
150
  - Add `updateCaveat` action ([#1071](https://github.com/MetaMask/core/pull/1071))
108
151
 
109
152
  ### Changed
153
+
110
154
  - **BREAKING:** Update `@metamask/network-controller` peer dependency to v3 ([#1041](https://github.com/MetaMask/controllers/pull/1041))
111
155
  - Rename this repository to `core` ([#1031](https://github.com/MetaMask/controllers/pull/1031))
112
156
  - Update `@metamask/controller-utils` package ([#1041](https://github.com/MetaMask/controllers/pull/1041))
113
157
 
114
158
  ## [1.0.2]
159
+
115
160
  ### Fixed
161
+
116
162
  - This package will now warn if a required package is not present ([#1003](https://github.com/MetaMask/core/pull/1003))
117
163
 
118
164
  ## [1.0.1]
165
+
119
166
  ### Changed
167
+
120
168
  - Relax dependencies on `@metamask/approval-controller`, `@metamask/base-controller` and `@metamask/controller-utils` (use `^` instead of `~`) ([#998](https://github.com/MetaMask/core/pull/998))
121
169
 
122
170
  ## [1.0.0]
171
+
123
172
  ### Added
173
+
124
174
  - Initial release
175
+
125
176
  - As a result of converting our shared controllers repo into a monorepo ([#831](https://github.com/MetaMask/core/pull/831)), we've created this package from select parts of [`@metamask/controllers` v33.0.0](https://github.com/MetaMask/core/tree/v33.0.0), namely:
177
+
126
178
  - Everything in `src/permissions`
127
179
 
128
180
  All changes listed after this point were applied to this package following the monorepo conversion.
129
181
 
130
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/permission-controller@7.1.0...HEAD
182
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/permission-controller@8.0.0...HEAD
183
+ [8.0.0]: https://github.com/MetaMask/core/compare/@metamask/permission-controller@7.1.0...@metamask/permission-controller@8.0.0
131
184
  [7.1.0]: https://github.com/MetaMask/core/compare/@metamask/permission-controller@7.0.0...@metamask/permission-controller@7.1.0
132
185
  [7.0.0]: https://github.com/MetaMask/core/compare/@metamask/permission-controller@6.0.0...@metamask/permission-controller@7.0.0
133
186
  [6.0.0]: https://github.com/MetaMask/core/compare/@metamask/permission-controller@5.0.1...@metamask/permission-controller@6.0.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/permission-controller",
3
- "version": "7.1.0-preview.fa529884",
3
+ "version": "8.0.0-preview.08978bf",
4
4
  "description": "Mediates access to JSON-RPC methods, used to interact with pieces of the MetaMask stack, via middleware for json-rpc-engine",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -31,18 +31,18 @@
31
31
  "test:watch": "jest --watch"
32
32
  },
33
33
  "dependencies": {
34
- "@metamask/base-controller": "^4.0.1",
35
- "@metamask/controller-utils": "^8.0.1",
36
- "@metamask/json-rpc-engine": "^7.3.1",
34
+ "@metamask/base-controller": "^4.1.1",
35
+ "@metamask/controller-utils": "^8.0.2",
36
+ "@metamask/json-rpc-engine": "^7.3.2",
37
37
  "@metamask/rpc-errors": "^6.1.0",
38
- "@metamask/utils": "^8.2.0",
38
+ "@metamask/utils": "^8.3.0",
39
39
  "@types/deep-freeze-strict": "^1.1.0",
40
40
  "deep-freeze-strict": "^1.1.1",
41
41
  "immer": "^9.0.6",
42
42
  "nanoid": "^3.1.31"
43
43
  },
44
44
  "devDependencies": {
45
- "@metamask/approval-controller": "^5.1.1",
45
+ "@metamask/approval-controller": "^5.1.2",
46
46
  "@metamask/auto-changelog": "^3.4.4",
47
47
  "@types/jest": "^27.4.1",
48
48
  "deepmerge": "^4.2.2",
@@ -53,7 +53,7 @@
53
53
  "typescript": "~4.8.4"
54
54
  },
55
55
  "peerDependencies": {
56
- "@metamask/approval-controller": "^5.1.1"
56
+ "@metamask/approval-controller": "^5.1.2"
57
57
  },
58
58
  "engines": {
59
59
  "node": ">=16.0.0"