@metamask-previews/permission-controller 8.0.0-preview.8cdddaf → 8.0.0-preview.cbe2fbb7
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 +44 -0
- package/package.json +1 -1
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/),
|
|
@@ -7,7 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
8
|
## [Unreleased]
|
|
8
9
|
|
|
9
10
|
## [8.0.0]
|
|
11
|
+
|
|
10
12
|
### Changed
|
|
13
|
+
|
|
11
14
|
- **BREAKING:** Bump `@metamask/approval-controller` peer dependency to `^5.1.2` ([#3821](https://github.com/MetaMask/core/pull/3821))
|
|
12
15
|
- Bump `@metamask/utils` to `^8.3.0` ([#3769](https://github.com/MetaMask/core/pull/3769))
|
|
13
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))
|
|
@@ -15,24 +18,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
15
18
|
- Bump `@metamask/json-rpc-engine` to `^7.3.2` ([#3821](https://github.com/MetaMask/core/pull/3821))
|
|
16
19
|
|
|
17
20
|
## [7.1.0]
|
|
21
|
+
|
|
18
22
|
### Added
|
|
23
|
+
|
|
19
24
|
- Add `SubjectMetadataController:addSubjectMetadata` action ([#3733](https://github.com/MetaMask/core/pull/3733))
|
|
20
25
|
|
|
21
26
|
## [7.0.0]
|
|
27
|
+
|
|
22
28
|
### Changed
|
|
29
|
+
|
|
23
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))
|
|
24
31
|
- Bump `@metamask/base-controller` to `^4.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695))
|
|
25
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))
|
|
26
33
|
- Bump `@metamask/json-rpc-engine` to `^7.3.1` ([#3695](https://github.com/MetaMask/core/pull/3695))
|
|
27
34
|
|
|
28
35
|
### Fixed
|
|
36
|
+
|
|
29
37
|
- Remove `@metamask/approval-controller` dependency ([#3607](https://github.com/MetaMask/core/pull/3607))
|
|
30
38
|
|
|
31
39
|
## [6.0.0]
|
|
40
|
+
|
|
32
41
|
### Added
|
|
42
|
+
|
|
33
43
|
- Add new handler to `permissionRpcMethods.handlers` for `wallet_revokePermissions` RPC method ([#1889](https://github.com/MetaMask/core/pull/1889))
|
|
34
44
|
|
|
35
45
|
### Changed
|
|
46
|
+
|
|
36
47
|
- **BREAKING:** Bump `@metamask/base-controller` to ^4.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
|
|
37
48
|
- This is breaking because the type of the `messenger` has backward-incompatible changes. See the changelog for this package for more.
|
|
38
49
|
- **BREAKING:** Update `PermittedRpcMethodHooks` type so it must support signature for `wallet_revokePermission` hook ([#1889](https://github.com/MetaMask/core/pull/1889))
|
|
@@ -40,7 +51,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
40
51
|
- Bump `@metamask/controller-utils` to ^6.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
|
|
41
52
|
|
|
42
53
|
## [5.0.1]
|
|
54
|
+
|
|
43
55
|
### Changed
|
|
56
|
+
|
|
44
57
|
- Bump `@metamask/json-rpc-engine` from `^7.1.0` to `^7.2.0` ([#1895](https://github.com/MetaMask/core/pull/1895))
|
|
45
58
|
- Bump dependency on `@metamask/rpc-errors` to ^6.1.0 ([#1653](https://github.com/MetaMask/core/pull/1653))
|
|
46
59
|
- Bump dependency and peer dependency on `@metamask/approval-controller` to ^4.0.1
|
|
@@ -48,7 +61,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
48
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))
|
|
49
62
|
|
|
50
63
|
## [5.0.0]
|
|
64
|
+
|
|
51
65
|
### Changed
|
|
66
|
+
|
|
52
67
|
- **BREAKING:** Remove `undefined` from RestrictedMethodParameters type union and from type parameter for RestrictedMethodOptions ([#1749])(https://github.com/MetaMask/core/pull/1749))
|
|
53
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))
|
|
54
69
|
- Update from `eth-rpc-errors@^4.0.2` to `@metamask/rpc-errors@^6.0.0` ([#1749])(https://github.com/MetaMask/core/pull/1749))
|
|
@@ -58,27 +73,37 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
58
73
|
- Bump dependency on `@metamask/controller-utils` to ^5.0.2
|
|
59
74
|
|
|
60
75
|
## [4.1.2]
|
|
76
|
+
|
|
61
77
|
### Changed
|
|
78
|
+
|
|
62
79
|
- Update TypeScript to v4.8.x ([#1718](https://github.com/MetaMask/core/pull/1718))
|
|
63
80
|
- Bump dependency on `@metamask/controller-utils` to ^5.0.0
|
|
64
81
|
|
|
65
82
|
## [4.1.1]
|
|
83
|
+
|
|
66
84
|
### Changed
|
|
85
|
+
|
|
67
86
|
- Bump dependency and peer dependency on `@metamask/approval-controller` to ^3.5.1
|
|
68
87
|
- Bump dependency on `@metamask/base-controller` to ^3.2.1
|
|
69
88
|
- Bump dependency on `@metamask/controller-utils` to ^4.3.2
|
|
70
89
|
|
|
71
90
|
## [4.1.0]
|
|
91
|
+
|
|
72
92
|
### Changed
|
|
93
|
+
|
|
73
94
|
- Update `@metamask/utils` to `^6.2.0` ([#1514](https://github.com/MetaMask/core/pull/1514))
|
|
74
95
|
|
|
75
96
|
## [4.0.1]
|
|
97
|
+
|
|
76
98
|
### Fixed
|
|
99
|
+
|
|
77
100
|
- Fix permissions RPC method types ([#1464](https://github.com/MetaMask/core/pull/1464))
|
|
78
101
|
- The RPC method handlers were mistakenly typed as an array rather than a tuple
|
|
79
102
|
|
|
80
103
|
## [4.0.0]
|
|
104
|
+
|
|
81
105
|
### Changed
|
|
106
|
+
|
|
82
107
|
- **BREAKING:** Bump to Node 16 ([#1262](https://github.com/MetaMask/core/pull/1262))
|
|
83
108
|
- **BREAKING:** Update `@metamask/approval-controller` dependency and peer dependency
|
|
84
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))
|
|
@@ -87,6 +112,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
87
112
|
- Change type of constructor parameter `unrestrictedMethods` to be readonly ([#1395](https://github.com/MetaMask/core/pull/1395))
|
|
88
113
|
|
|
89
114
|
### Removed
|
|
115
|
+
|
|
90
116
|
- **BREAKING**: Remove namespaced permissions ([#1337](https://github.com/MetaMask/core/pull/1337))
|
|
91
117
|
- Namespaced permissions are no longer supported. Consumers should replace namespaced permissions with equivalent caveat-based implementations.
|
|
92
118
|
- **BREAKING**: Remove `targetKey` concept ([#1337](https://github.com/MetaMask/core/pull/1337))
|
|
@@ -94,43 +120,61 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
94
120
|
- The `targetKey` property of permission specifications has been renamed to `targetName`.
|
|
95
121
|
|
|
96
122
|
## [3.2.0]
|
|
123
|
+
|
|
97
124
|
### Added
|
|
125
|
+
|
|
98
126
|
- Allow restricting permissions by subject type ([#1233](https://github.com/MetaMask/core/pull/1233))
|
|
99
127
|
|
|
100
128
|
### Changed
|
|
129
|
+
|
|
101
130
|
- Move `SubjectMetadataController` to permission-controller package ([#1234](https://github.com/MetaMask/core/pull/1234))
|
|
102
131
|
- Update minimum `eth-rpc-errors` version from `4.0.0` to `4.0.2` ([#1215](https://github.com/MetaMask/core/pull/1215))
|
|
103
132
|
|
|
104
133
|
## [3.1.0]
|
|
134
|
+
|
|
105
135
|
### Added
|
|
136
|
+
|
|
106
137
|
- Add side-effects to permissions ([#1069](https://github.com/MetaMask/core/pull/1069))
|
|
107
138
|
|
|
108
139
|
## [3.0.0]
|
|
140
|
+
|
|
109
141
|
### Removed
|
|
142
|
+
|
|
110
143
|
- **BREAKING:** Remove `isomorphic-fetch` ([#1106](https://github.com/MetaMask/controllers/pull/1106))
|
|
111
144
|
- Consumers must now import `isomorphic-fetch` or another polyfill themselves if they are running in an environment without `fetch`
|
|
112
145
|
|
|
113
146
|
## [2.0.0]
|
|
147
|
+
|
|
114
148
|
### Added
|
|
149
|
+
|
|
115
150
|
- Add `updateCaveat` action ([#1071](https://github.com/MetaMask/core/pull/1071))
|
|
116
151
|
|
|
117
152
|
### Changed
|
|
153
|
+
|
|
118
154
|
- **BREAKING:** Update `@metamask/network-controller` peer dependency to v3 ([#1041](https://github.com/MetaMask/controllers/pull/1041))
|
|
119
155
|
- Rename this repository to `core` ([#1031](https://github.com/MetaMask/controllers/pull/1031))
|
|
120
156
|
- Update `@metamask/controller-utils` package ([#1041](https://github.com/MetaMask/controllers/pull/1041))
|
|
121
157
|
|
|
122
158
|
## [1.0.2]
|
|
159
|
+
|
|
123
160
|
### Fixed
|
|
161
|
+
|
|
124
162
|
- This package will now warn if a required package is not present ([#1003](https://github.com/MetaMask/core/pull/1003))
|
|
125
163
|
|
|
126
164
|
## [1.0.1]
|
|
165
|
+
|
|
127
166
|
### Changed
|
|
167
|
+
|
|
128
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))
|
|
129
169
|
|
|
130
170
|
## [1.0.0]
|
|
171
|
+
|
|
131
172
|
### Added
|
|
173
|
+
|
|
132
174
|
- Initial release
|
|
175
|
+
|
|
133
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
|
+
|
|
134
178
|
- Everything in `src/permissions`
|
|
135
179
|
|
|
136
180
|
All changes listed after this point were applied to this package following the monorepo conversion.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/permission-controller",
|
|
3
|
-
"version": "8.0.0-preview.
|
|
3
|
+
"version": "8.0.0-preview.cbe2fbb7",
|
|
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",
|