@metamask-previews/signature-controller 10.0.0-preview.d357889 → 12.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.
- package/CHANGELOG.md +68 -2
- package/package.json +10 -10
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,12 +7,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
6
7
|
|
|
7
8
|
## [Unreleased]
|
|
8
9
|
|
|
10
|
+
## [12.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
|
+
- **BREAKING:** Bump `@metamask/keyring-controller` peer dependency to `^12.2.0` ([#3821](https://github.com/MetaMask/core/pull/3821))
|
|
16
|
+
- **BREAKING:** Bump `@metamask/logging-controller` peer dependency to `^2.0.2` ([#3821](https://github.com/MetaMask/core/pull/3821))
|
|
17
|
+
- Bump `@metamask/base-controller` to `^4.1.1` ([#3821](https://github.com/MetaMask/core/pull/3821))
|
|
18
|
+
- Bump `@metamask/controller-utils` to `^8.0.2` ([#3821](https://github.com/MetaMask/core/pull/3821))
|
|
19
|
+
- Bump `@metamask/message-manager` to `^7.3.8` ([#3821](https://github.com/MetaMask/core/pull/3821))
|
|
20
|
+
|
|
21
|
+
## [11.0.0]
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- **BREAKING:** Bump `@metamask/keyring-controller` to ^12.1.0
|
|
26
|
+
- Bump `@metamask/utils` to `^8.3.0` ([#3769](https://github.com/MetaMask/core/pull/3769))
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
|
|
30
|
+
- Fix `stateChange` subscriptions with selectors ([#3702](https://github.com/MetaMask/core/pull/3702))
|
|
31
|
+
|
|
9
32
|
## [10.0.0]
|
|
33
|
+
|
|
10
34
|
### Changed
|
|
35
|
+
|
|
11
36
|
- **BREAKING:** Bump `@metamask/keyring-controller` to ^12.0.0
|
|
12
37
|
|
|
13
38
|
## [9.0.0]
|
|
39
|
+
|
|
14
40
|
### Changed
|
|
41
|
+
|
|
15
42
|
- **BREAKING:** Bump `@metamask/approval-controller` dependency and peer dependency from `^5.0.0` to `^5.1.1` ([#3695](https://github.com/MetaMask/core/pull/3695), [#3680](https://github.com/MetaMask/core/pull/3680))
|
|
16
43
|
- **BREAKING:** Bump `@metamask/keyring-controller` dependency and peer dependency from `^10.0.0` to `^11.0.0` ([#3695](https://github.com/MetaMask/core/pull/3695))
|
|
17
44
|
- **BREAKING:** Bump `@metamask/logging-controller` dependency and peer dependency from `^2.0.0` to `^2.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695))
|
|
@@ -20,7 +47,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
20
47
|
- Bump `@metamask/message-manager` to `^7.3.7` ([#3695](https://github.com/MetaMask/core/pull/3695))
|
|
21
48
|
|
|
22
49
|
## [8.0.0]
|
|
50
|
+
|
|
23
51
|
### Changed
|
|
52
|
+
|
|
24
53
|
- **BREAKING:** Bump `@metamask/base-controller` to ^4.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
|
|
25
54
|
- This is breaking because the type of the `messenger` has backward-incompatible changes. See the changelog for this package for more.
|
|
26
55
|
- Bump `@metamask/approval-controller` to ^5.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
|
|
@@ -30,19 +59,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
30
59
|
- Bump `@metamask/message-manager` to ^7.3.6 ([#2063](https://github.com/MetaMask/core/pull/2063))
|
|
31
60
|
|
|
32
61
|
## [7.0.0]
|
|
62
|
+
|
|
33
63
|
### Changed
|
|
64
|
+
|
|
34
65
|
- **BREAKING**: Add `@metamask/keyring-controller` as a dependency and peer dependency
|
|
35
66
|
- This was relied upon by past versions, but this was not reflected in the package manifest until now
|
|
36
67
|
- Bump @metamask/utils from 8.1.0 to 8.2.0 ([#1957](https://github.com/MetaMask/core/pull/1957))
|
|
37
68
|
|
|
38
69
|
## [6.1.3]
|
|
70
|
+
|
|
39
71
|
### Changed
|
|
72
|
+
|
|
40
73
|
- Move from `eth-rpc-errors` ^4.0.2 to `@metamask/rpc-errors` ^6.1.0 ([#1653](https://github.com/MetaMask/core/pull/1653))
|
|
41
74
|
- Bump dependency and peer dependency on `@metamask/approval-controller` to ^4.0.1
|
|
42
75
|
- Bump dependency and peer dependency on `@metamask/logging-controller` to ^1.0.4
|
|
43
76
|
|
|
44
77
|
## [6.1.2]
|
|
78
|
+
|
|
45
79
|
### Changed
|
|
80
|
+
|
|
46
81
|
- Bump dependency on `@metamask/utils` to ^8.1.0 ([#1639](https://github.com/MetaMask/core/pull/1639))
|
|
47
82
|
- Bump dependency and peer dependency on `@metamask/approval-controller` to ^4.0.0
|
|
48
83
|
- Bump dependency on `@metamask/base-controller` to ^3.2.3
|
|
@@ -50,11 +85,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
50
85
|
- Bump dependency on `@metamask/message-manager` to ^7.3.5
|
|
51
86
|
|
|
52
87
|
## [6.1.1]
|
|
88
|
+
|
|
53
89
|
### Changed
|
|
90
|
+
|
|
54
91
|
- Update TypeScript to v4.8.x ([#1718](https://github.com/MetaMask/core/pull/1718))
|
|
55
92
|
|
|
56
93
|
## [6.1.0]
|
|
94
|
+
|
|
57
95
|
### Changed
|
|
96
|
+
|
|
58
97
|
- Add `LoggingController` logs on signature operation stages ([#1692](https://github.com/MetaMask/core/pull/1692))
|
|
59
98
|
- Bump dependency on `@metamask/controller-utils` to ^5.0.0
|
|
60
99
|
- Bump dependency on `@metamask/keyring-controller` to ^8.0.0
|
|
@@ -62,70 +101,97 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
62
101
|
- Bump dependency on `@metamask/message-manager` to ^7.3.3
|
|
63
102
|
|
|
64
103
|
## [6.0.0]
|
|
104
|
+
|
|
65
105
|
### Changed
|
|
106
|
+
|
|
66
107
|
- **BREAKING**: Removed `keyringController` property from constructor option ([#1593](https://github.com/MetaMask/core/pull/1593))
|
|
67
108
|
|
|
68
109
|
## [5.3.1]
|
|
110
|
+
|
|
69
111
|
### Changed
|
|
112
|
+
|
|
70
113
|
- Bump dependency and peer dependency on `@metamask/approval-controller` to ^3.5.1
|
|
71
114
|
- Bump dependency on `@metamask/base-controller` to ^3.2.1
|
|
72
115
|
- Bump dependency on `@metamask/controller-utils` to ^4.3.2
|
|
73
116
|
- Bump dependency on `@metamask/message-manager` to ^7.3.1
|
|
74
117
|
|
|
75
118
|
## [5.3.0]
|
|
119
|
+
|
|
76
120
|
### Added
|
|
121
|
+
|
|
77
122
|
- Add new methods `setDeferredSignSuccess` and `setDeferredSignError` ([#1506](https://github.com/MetaMask/core/pull/1506))
|
|
78
123
|
|
|
79
124
|
### Changed
|
|
125
|
+
|
|
80
126
|
- Update `@metamask/utils` to `^6.2.0` ([#1514](https://github.com/MetaMask/core/pull/1514))
|
|
81
127
|
|
|
82
128
|
## [5.2.0]
|
|
129
|
+
|
|
83
130
|
### Added
|
|
131
|
+
|
|
84
132
|
- Add `messages` getter that returns all messages ([#1469](https://github.com/MetaMask/core/pull/1469))
|
|
85
133
|
- Add `setMessageMetadata` method for customizing the metadata for an individual message ([#1469](https://github.com/MetaMask/core/pull/1469))
|
|
86
134
|
|
|
87
135
|
## [5.1.0]
|
|
136
|
+
|
|
88
137
|
### Changed
|
|
138
|
+
|
|
89
139
|
- Report approval success using result callbacks ([#1458](https://github.com/MetaMask/core/pull/1458))
|
|
90
140
|
|
|
91
141
|
## [5.0.0]
|
|
142
|
+
|
|
92
143
|
### Added
|
|
144
|
+
|
|
93
145
|
- **BREAKING** Add sign version to approval message in Signature Controller ([#1440](https://github.com/MetaMask/core/pull/1440))
|
|
94
146
|
- Method `newUnsignedTypedMessage` on the SignatureController now requires a fourth argument: `signingOpts`
|
|
95
147
|
- Method `signMessage` on the SignatureController no longer expects a `version` as a second argument. The second argument is now `signingOpts` which was previously the third argument.
|
|
96
148
|
|
|
97
149
|
## [4.0.1]
|
|
150
|
+
|
|
98
151
|
### Fixed
|
|
152
|
+
|
|
99
153
|
- Remove optional parameter from newUnsignedTypedMessage function ([#1436](https://github.com/MetaMask/core/pull/1436))
|
|
100
154
|
|
|
101
155
|
## [4.0.0]
|
|
156
|
+
|
|
102
157
|
### Changed
|
|
158
|
+
|
|
103
159
|
- **BREAKING:** `newUnsignedXMessage` middlewares now creates and awaits approvals itself. ([#1377](https://github.com/MetaMask/core/pull/1377))
|
|
104
160
|
|
|
105
161
|
### Removed
|
|
162
|
+
|
|
106
163
|
- **BREAKING:** Removed `cancelXMessage` and `signXMessage` from public API. ([#1377](https://github.com/MetaMask/core/pull/1377))
|
|
107
164
|
|
|
108
165
|
## [3.0.0]
|
|
166
|
+
|
|
109
167
|
### Added
|
|
168
|
+
|
|
110
169
|
- Add support for deferred signing ([#1364](https://github.com/MetaMask/core/pull/1364))
|
|
111
170
|
- If the parameter `deferSetAsSigned` is set, the message won't be set as signed when the keyring is asked to sign it
|
|
112
171
|
- Emit the event `${methodName}:signed` when the keying is asked to sign a message ([#1364](https://github.com/MetaMask/core/pull/1364))
|
|
113
|
-
- Add methods
|
|
172
|
+
- Add methods `setTypedMessageInProgress` and `setPersonalMessageInProgress` to set a message status to `inProgress` ([#1339](https://github.com/MetaMask/core/pull/1339))
|
|
114
173
|
|
|
115
174
|
### Changed
|
|
175
|
+
|
|
116
176
|
- **BREAKING:** The constructor option `getCurrentChainId` now expects a `Hex` return value rather than `string` ([#1367](https://github.com/MetaMask/core/pull/1367))
|
|
117
177
|
- **BREAKING:** Update `@metamask/approval-controller` dependency and add it as a peer dependency ([#1393](https://github.com/MetaMask/core/pull/1393))
|
|
118
178
|
- Add `@metamask/utils` dependency ([#1367](https://github.com/MetaMask/core/pull/1367))
|
|
119
179
|
|
|
120
180
|
## [2.0.0]
|
|
181
|
+
|
|
121
182
|
### Added
|
|
183
|
+
|
|
122
184
|
- **BREAKING:** Add `getCurrentChainId` argument to constructor ([#1350](https://github.com/MetaMask/core/pull/1350))
|
|
123
185
|
|
|
124
186
|
## [1.0.0]
|
|
187
|
+
|
|
125
188
|
### Added
|
|
189
|
+
|
|
126
190
|
- Initial release ([#1214](https://github.com/MetaMask/core/pull/1214))
|
|
127
191
|
|
|
128
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/signature-controller@
|
|
192
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/signature-controller@12.0.0...HEAD
|
|
193
|
+
[12.0.0]: https://github.com/MetaMask/core/compare/@metamask/signature-controller@11.0.0...@metamask/signature-controller@12.0.0
|
|
194
|
+
[11.0.0]: https://github.com/MetaMask/core/compare/@metamask/signature-controller@10.0.0...@metamask/signature-controller@11.0.0
|
|
129
195
|
[10.0.0]: https://github.com/MetaMask/core/compare/@metamask/signature-controller@9.0.0...@metamask/signature-controller@10.0.0
|
|
130
196
|
[9.0.0]: https://github.com/MetaMask/core/compare/@metamask/signature-controller@8.0.0...@metamask/signature-controller@9.0.0
|
|
131
197
|
[8.0.0]: https://github.com/MetaMask/core/compare/@metamask/signature-controller@7.0.0...@metamask/signature-controller@8.0.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/signature-controller",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0-preview.08978bf",
|
|
4
4
|
"description": "Processes signing requests in order to sign arbitrary and typed data",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"test:watch": "jest --watch"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@metamask/approval-controller": "^5.1.
|
|
35
|
-
"@metamask/base-controller": "^4.1.
|
|
36
|
-
"@metamask/controller-utils": "^8.0.
|
|
37
|
-
"@metamask/keyring-controller": "^12.
|
|
38
|
-
"@metamask/logging-controller": "^2.0.
|
|
39
|
-
"@metamask/message-manager": "^7.3.
|
|
34
|
+
"@metamask/approval-controller": "^5.1.2",
|
|
35
|
+
"@metamask/base-controller": "^4.1.1",
|
|
36
|
+
"@metamask/controller-utils": "^8.0.2",
|
|
37
|
+
"@metamask/keyring-controller": "^12.2.0",
|
|
38
|
+
"@metamask/logging-controller": "^2.0.2",
|
|
39
|
+
"@metamask/message-manager": "^7.3.8",
|
|
40
40
|
"@metamask/rpc-errors": "^6.1.0",
|
|
41
41
|
"@metamask/utils": "^8.3.0",
|
|
42
42
|
"ethereumjs-util": "^7.0.10",
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"typescript": "~4.8.4"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@metamask/approval-controller": "^5.1.
|
|
57
|
-
"@metamask/keyring-controller": "^12.
|
|
58
|
-
"@metamask/logging-controller": "^2.0.
|
|
56
|
+
"@metamask/approval-controller": "^5.1.2",
|
|
57
|
+
"@metamask/keyring-controller": "^12.2.0",
|
|
58
|
+
"@metamask/logging-controller": "^2.0.2"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
61
61
|
"node": ">=16.0.0"
|