@metamask/snaps-execution-environments 6.7.2 → 6.9.0
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 +112 -1
- package/dist/browserify/iframe/bundle.js +1 -1
- package/dist/browserify/node-process/bundle.js +1 -1
- package/dist/browserify/node-thread/bundle.js +1 -1
- package/dist/browserify/webview/index.html +4 -4
- package/dist/browserify/worker-executor/bundle.js +3 -3
- package/dist/browserify/worker-pool/bundle.js +3 -3
- package/dist/proxy/ProxySnapExecutor.cjs +1 -1
- package/dist/proxy/ProxySnapExecutor.cjs.map +1 -1
- package/dist/proxy/ProxySnapExecutor.mjs +1 -1
- package/dist/proxy/ProxySnapExecutor.mjs.map +1 -1
- package/package.json +37 -26
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,19 +7,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
6
7
|
|
|
7
8
|
## [Unreleased]
|
|
8
9
|
|
|
10
|
+
## [6.9.0]
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Convert `createWindow` parameters to options bag ([#2765](https://github.com/MetaMask/snaps/pull/2765))
|
|
15
|
+
|
|
16
|
+
## [6.8.0]
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- Add support for `metamask:` schemed URLs ([#2719](https://github.com/MetaMask/snaps/pull/2719))
|
|
21
|
+
|
|
9
22
|
## [6.7.2]
|
|
23
|
+
|
|
10
24
|
### Fixed
|
|
25
|
+
|
|
11
26
|
- Fix missing execution environment bundles ([#2734](https://github.com/MetaMask/snaps/pull/2734))
|
|
12
27
|
|
|
13
28
|
## [6.7.1]
|
|
29
|
+
|
|
14
30
|
### Fixed
|
|
31
|
+
|
|
15
32
|
- Fix invalid types in type declaration in some cases ([#2714](https://github.com/MetaMask/snaps/pull/2714))
|
|
16
33
|
|
|
17
34
|
## [6.7.0]
|
|
35
|
+
|
|
18
36
|
### Changed
|
|
37
|
+
|
|
19
38
|
- Unblock `wallet_requestSnaps` ([#2661](https://github.com/MetaMask/snaps/pull/2661))
|
|
20
39
|
|
|
21
40
|
### Fixed
|
|
41
|
+
|
|
22
42
|
- Fix ESM version of the package ([#2682](https://github.com/MetaMask/snaps/pull/2682))
|
|
23
43
|
- This fixes the ESM version of the package to be fully compliant with the ESM
|
|
24
44
|
standard.
|
|
@@ -26,110 +46,152 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
26
46
|
- Bump other MetaMask dependencies ([#2703](https://github.com/MetaMask/snaps/pull/2703))
|
|
27
47
|
|
|
28
48
|
## [6.6.2]
|
|
49
|
+
|
|
29
50
|
### Changed
|
|
51
|
+
|
|
30
52
|
- Bump `@metamask/json-rpc-engine` from `^9.0.0` to `^9.0.2` ([#2593](https://github.com/metamask/snaps/pull/2593))
|
|
31
53
|
- Bump `@metamask/snaps-utils` from `^7.8.0` to `^7.8.1` ([#2595](https://github.com/MetaMask/snaps/pull/2595))
|
|
32
54
|
|
|
33
55
|
## [6.6.1]
|
|
56
|
+
|
|
34
57
|
### Changed
|
|
58
|
+
|
|
35
59
|
- Bump `@metamask/rpc-errors` from `^6.2.1` to `^6.3.1` ([#2445](https://github.com/MetaMask/snaps/pull/2445))
|
|
36
60
|
- Bump `@metamask/utils` from `^8.3.0` to `^9.1.0` ([#2445](https://github.com/MetaMask/snaps/pull/2445))
|
|
37
61
|
|
|
38
62
|
### Fixed
|
|
63
|
+
|
|
39
64
|
- Replace `superstruct` with ESM-compatible `@metamask/superstruct` `^3.1.0` ([#2445](https://github.com/MetaMask/snaps/pull/2445))
|
|
40
65
|
- This fixes the issue of this package being unusable by any TypeScript project that uses `Node16` or `NodeNext` as its `moduleResolution` option.
|
|
41
66
|
- Set `@metamask/providers` from `^17.0.0` to `17.0.0` ([#2445](https://github.com/MetaMask/snaps/pull/2445))
|
|
42
67
|
- `17.1.0` and `17.1.1` introduce regressions.
|
|
43
68
|
|
|
44
69
|
## [6.6.0]
|
|
70
|
+
|
|
45
71
|
### Changed
|
|
72
|
+
|
|
46
73
|
- Inline LavaMoat in WebView bundle ([#2528](https://github.com/MetaMask/snaps/pull/2528), [#2564](https://github.com/MetaMask/snaps/pull/2564))
|
|
47
74
|
|
|
48
75
|
## [6.5.0]
|
|
76
|
+
|
|
49
77
|
### Added
|
|
78
|
+
|
|
50
79
|
- Add `Checkbox` component ([#2501](https://github.com/MetaMask/snaps/pull/2501))
|
|
51
80
|
- Add `FileInput` component ([#2469](https://github.com/MetaMask/snaps/pull/2469), [#2504](https://github.com/MetaMask/snaps/pull/2504))
|
|
52
81
|
|
|
53
82
|
### Fixed
|
|
83
|
+
|
|
54
84
|
- Support parameters in `setTimeout` and `setInterval` ([#2513](https://github.com/MetaMask/snaps/pull/2513))
|
|
55
85
|
|
|
56
86
|
## [6.4.0]
|
|
87
|
+
|
|
57
88
|
### Changed
|
|
89
|
+
|
|
58
90
|
- Update `onNameLookup` response to include `domainName` ([#2484](https://github.com/MetaMask/snaps/pull/2484))
|
|
59
91
|
- Bump MetaMask dependencies ([#2460](https://github.com/MetaMask/snaps/pull/2460))
|
|
60
92
|
|
|
61
93
|
## [6.3.0]
|
|
94
|
+
|
|
62
95
|
### Added
|
|
96
|
+
|
|
63
97
|
- Add origin to lifecycle hooks ([#2441](https://github.com/MetaMask/snaps/pull/2441))
|
|
64
98
|
- Lifecycle hooks can now use the `origin` parameter to determine the origin
|
|
65
99
|
of the installation or update.
|
|
66
100
|
|
|
67
101
|
### Changed
|
|
102
|
+
|
|
68
103
|
- Bump `@metamask/providers` from `16.1.0` to `17.0.0` ([#2442](https://github.com/MetaMask/snaps/pull/2442))
|
|
69
104
|
|
|
70
105
|
## [6.2.0]
|
|
106
|
+
|
|
71
107
|
### Added
|
|
108
|
+
|
|
72
109
|
- Add `context` field to `snap_createInterface` ([#2413](https://github.com/MetaMask/snaps/pull/2413))
|
|
73
110
|
|
|
74
111
|
## [6.1.0]
|
|
112
|
+
|
|
75
113
|
### Changed
|
|
114
|
+
|
|
76
115
|
- Unblock `eth_sendRawTransaction` ([#2362](https://github.com/MetaMask/snaps/pull/2362))
|
|
77
116
|
- Bump `@metamask/providers` from `16.0.0` to `16.1.0` ([#2386](https://github.com/MetaMask/snaps/pull/2386))
|
|
78
117
|
|
|
79
118
|
### Fixed
|
|
119
|
+
|
|
80
120
|
- Make `onUserInput` export optional ([#2373](https://github.com/MetaMask/snaps/pull/2373))
|
|
81
121
|
- Snaps will no longer crash when interacting with a user interface when the
|
|
82
122
|
Snap does not export `onUserInput`.
|
|
83
123
|
|
|
84
124
|
## [6.0.2]
|
|
125
|
+
|
|
85
126
|
### Fixed
|
|
127
|
+
|
|
86
128
|
- Throw an error if starting Snap has no exports ([#2357](https://github.com/MetaMask/snaps/pull/2357))
|
|
87
129
|
|
|
88
130
|
## [6.0.1]
|
|
131
|
+
|
|
89
132
|
### Fixed
|
|
133
|
+
|
|
90
134
|
- Allow `null` in `FormSubmitEventStruct` form state ([#2333](https://github.com/MetaMask/snaps/pull/2333))
|
|
91
135
|
|
|
92
136
|
## [6.0.0]
|
|
137
|
+
|
|
93
138
|
### Removed
|
|
139
|
+
|
|
94
140
|
- **BREAKING:** Remove broken `ethereum` properties ([#2296](https://github.com/MetaMask/snaps/pull/2296))
|
|
95
141
|
- Snaps can no longer access `on` and `removeListener` on `ethereum`.
|
|
96
142
|
- This feature was already non-functional.
|
|
97
143
|
|
|
98
144
|
## [5.0.4]
|
|
145
|
+
|
|
99
146
|
### Changed
|
|
147
|
+
|
|
100
148
|
- Bump MetaMask dependencies ([#2270](https://github.com/MetaMask/snaps/pull/2270))
|
|
101
149
|
|
|
102
150
|
## [5.0.3]
|
|
151
|
+
|
|
103
152
|
### Changed
|
|
153
|
+
|
|
104
154
|
- Bump `@metamask/providers` to `^15.0.0` ([#2231](https://github.com/MetaMask/snaps/pull/2231))
|
|
105
155
|
- Bump `@metamask/json-rpc-engine` to `^7.3.3` ([#2247](https://github.com/MetaMask/snaps/pull/2247))
|
|
106
156
|
|
|
107
157
|
## [5.0.2]
|
|
158
|
+
|
|
108
159
|
### Changed
|
|
160
|
+
|
|
109
161
|
- Bump LavaMoat packages ([#2234](https://github.com/MetaMask/snaps/pull/2234))
|
|
110
162
|
|
|
111
163
|
## [5.0.1]
|
|
164
|
+
|
|
112
165
|
### Fixed
|
|
166
|
+
|
|
113
167
|
- Fix minor build configuration problems ([#2220](https://github.com/MetaMask/snaps/pull/2220))
|
|
114
168
|
|
|
115
169
|
## [5.0.0]
|
|
170
|
+
|
|
116
171
|
### Changed
|
|
172
|
+
|
|
117
173
|
- **BREAKING:** Update ESM build to be fully compliant with the ESM standard ([#2210](https://github.com/MetaMask/snaps/pull/2210))
|
|
118
174
|
- Bump `@metamask/rpc-errors` to `^6.2.1` ([#2209](https://github.com/MetaMask/snaps/pull/2209))
|
|
119
175
|
|
|
120
176
|
### Fixed
|
|
177
|
+
|
|
121
178
|
- Enforce JSON-RPC response size limits ([#2201](https://github.com/MetaMask/snaps/pull/2201))
|
|
122
179
|
|
|
123
180
|
## [4.0.1]
|
|
181
|
+
|
|
124
182
|
### Changed
|
|
183
|
+
|
|
125
184
|
- Update several LavaMoat packages ([#2173](https://github.com/MetaMask/snaps/pull/2173))
|
|
126
185
|
|
|
127
186
|
## [4.0.0]
|
|
187
|
+
|
|
128
188
|
### Added
|
|
189
|
+
|
|
129
190
|
- Add WebView execution environment ([#2005](https://github.com/MetaMask/snaps/pull/2005))
|
|
130
191
|
- Add support for dynamic user interfaces ([#1465](https://github.com/MetaMask/snaps/pull/1465))
|
|
131
192
|
|
|
132
193
|
### Changed
|
|
194
|
+
|
|
133
195
|
- **BREAKING:** Stop bundling offscreen execution environment ([#2154](https://github.com/MetaMask/snaps/pull/2154))
|
|
134
196
|
- **BREAKING:** Deploy multiple bundles to AWS ([#2150](https://github.com/MetaMask/snaps/pull/2150))
|
|
135
197
|
- From now on the bundles will be served at `https://execution.metamask.io/%BUILD_TYPE%/%VERSION%/index.html`.
|
|
@@ -138,36 +200,50 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
138
200
|
- Bump MetaMask dependencies ([#2129](https://github.com/MetaMask/snaps/pull/2129), [#2132](https://github.com/MetaMask/snaps/pull/2132))
|
|
139
201
|
|
|
140
202
|
## [3.5.0]
|
|
203
|
+
|
|
141
204
|
### Added
|
|
205
|
+
|
|
142
206
|
- Add support for signature insights ([#2074](https://github.com/MetaMask/snaps/pull/2074))
|
|
143
207
|
|
|
144
208
|
### Changed
|
|
209
|
+
|
|
145
210
|
- Bump SES and LavaMoat ([#2105](https://github.com/MetaMask/snaps/pull/2105))
|
|
146
211
|
- Bump several MetaMask dependencies ([#2054](https://github.com/MetaMask/snaps/pull/2054), [#2100](https://github.com/MetaMask/snaps/pull/2100))
|
|
147
212
|
|
|
148
213
|
## [3.4.3]
|
|
214
|
+
|
|
149
215
|
### Changed
|
|
216
|
+
|
|
150
217
|
- Move iframe bundle to HTML body ([#2045](https://github.com/MetaMask/snaps/pull/2045))
|
|
151
218
|
- Bump `@metamask/json-rpc-engine` from `7.3.0` to `7.3.1` ([#2065](https://github.com/MetaMask/snaps/pull/2065))
|
|
152
219
|
|
|
153
220
|
## [3.4.2]
|
|
221
|
+
|
|
154
222
|
### Changed
|
|
223
|
+
|
|
155
224
|
- Bump `@metamask/providers` from `14.0.1` to `14.0.2` ([#1992](https://github.com/MetaMask/snaps/pull/1992))
|
|
156
225
|
|
|
157
226
|
## [3.4.1]
|
|
227
|
+
|
|
158
228
|
### Changed
|
|
229
|
+
|
|
159
230
|
- Block `wallet_revokePermissions` ([#1978](https://github.com/MetaMask/snaps/pull/1978))
|
|
160
231
|
- Bump several MetaMask dependencies ([#1964](https://github.com/MetaMask/snaps/pull/1964))
|
|
161
232
|
|
|
162
233
|
### Fixed
|
|
234
|
+
|
|
163
235
|
- Fix a few issues with passing non-JSON-serializable values ([#1974](https://github.com/MetaMask/snaps/pull/1974))
|
|
164
236
|
|
|
165
237
|
## [3.4.0]
|
|
238
|
+
|
|
166
239
|
### Changed
|
|
240
|
+
|
|
167
241
|
- Pause request timer when `fetch` is called ([#1756](https://github.com/MetaMask/snaps/pull/1756))
|
|
168
242
|
|
|
169
243
|
## [3.3.0]
|
|
244
|
+
|
|
170
245
|
### Changed
|
|
246
|
+
|
|
171
247
|
- Use `@metamask/snaps-sdk` package ([#1930](https://github.com/MetaMask/snaps/pull/1930),
|
|
172
248
|
[#1946](https://github.com/MetaMask/snaps/pull/1946), [#1949](https://github.com/MetaMask/snaps/pull/1949),
|
|
173
249
|
[#1954](https://github.com/MetaMask/snaps/pull/1954))
|
|
@@ -175,91 +251,126 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
175
251
|
- `@metamask/snaps-ui` packages.
|
|
176
252
|
|
|
177
253
|
## [3.2.0]
|
|
254
|
+
|
|
178
255
|
### Added
|
|
256
|
+
|
|
179
257
|
- Add `OnHomePage` export ([#1896](https://github.com/MetaMask/snaps/pull/1896))
|
|
180
258
|
|
|
181
259
|
### Fixed
|
|
260
|
+
|
|
182
261
|
- Await stream message delivery ([#1928](https://github.com/MetaMask/snaps/pull/1928))
|
|
183
262
|
|
|
184
263
|
## [3.1.0]
|
|
264
|
+
|
|
185
265
|
### Changed
|
|
266
|
+
|
|
186
267
|
- Improve error handling ([#1841](https://github.com/MetaMask/snaps/pull/1841))
|
|
187
268
|
- Snaps can now throw a `SnapError`, without causing the Snap to crash.
|
|
188
269
|
- Standardise all errors thrown in execution environments ([#1830](https://github.com/MetaMask/snaps/pull/1830))
|
|
189
270
|
|
|
190
271
|
## [3.0.0]
|
|
272
|
+
|
|
191
273
|
### Added
|
|
274
|
+
|
|
192
275
|
- Add keyring export and endowment ([#1787](https://github.com/MetaMask/snaps/pull/1787))
|
|
193
276
|
|
|
194
277
|
### Changed
|
|
278
|
+
|
|
195
279
|
- **BREAKING:** Bump minimum Node.js version to `^18.16.0` ([#1741](https://github.com/MetaMask/snaps/pull/1741))
|
|
196
280
|
|
|
197
281
|
## [2.0.1]
|
|
282
|
+
|
|
198
283
|
### Changed
|
|
284
|
+
|
|
199
285
|
- Remove unmaintained OpenRPC doc for execution environment ([#1782](https://github.com/MetaMask/snaps/pull/1782))
|
|
200
286
|
- Update LavaMoat ([#1754](https://github.com/MetaMask/snaps/pull/1754))
|
|
201
287
|
|
|
202
288
|
### Fixed
|
|
289
|
+
|
|
203
290
|
- Allow passing `undefined` parameters to `request()` ([#1776](https://github.com/MetaMask/snaps/pull/1776))
|
|
204
291
|
- Fix an issue where errors would not correctly be returned ([#1772](https://github.com/MetaMask/snaps/pull/1772))
|
|
205
292
|
|
|
206
293
|
## [2.0.0]
|
|
294
|
+
|
|
207
295
|
### Changed
|
|
296
|
+
|
|
208
297
|
- Initial stable release from main branch ([#1757](https://github.com/MetaMask/snaps/pull/1757))
|
|
209
298
|
|
|
210
299
|
## [0.39.0-flask.1]
|
|
300
|
+
|
|
211
301
|
### Added
|
|
302
|
+
|
|
212
303
|
- Add `onNameLookup` export ([#1394](https://github.com/MetaMask/snaps/pull/1394))
|
|
213
304
|
|
|
214
305
|
### Changed
|
|
306
|
+
|
|
215
307
|
- Remove `pump` ([#1730](https://github.com/MetaMask/snaps/pull/1730))
|
|
216
308
|
- Bump `metamask/utils` and `metamask/snaps-registry` ([#1738](https://github.com/MetaMask/snaps/pull/1738))
|
|
217
309
|
|
|
218
310
|
### Fixed
|
|
311
|
+
|
|
219
312
|
- Sanitize JSON before checking for blocked methods ([#1762](https://github.com/MetaMask/snaps/pull/1762))
|
|
220
313
|
|
|
221
314
|
## [0.38.3-flask.1]
|
|
315
|
+
|
|
222
316
|
### Changed
|
|
317
|
+
|
|
223
318
|
- Bump `@metamask/post-message-stream` from 6.1.2 to 7.0.0 ([#1707](https://github.com/MetaMask/snaps/pull/1707), [#1724](https://github.com/MetaMask/snaps/pull/1724))
|
|
224
319
|
- Bump `@metamask/utils` and `@metamask/snaps-registry` ([#1694](https://github.com/MetaMask/snaps/pull/1694))
|
|
225
320
|
|
|
226
321
|
### Fixed
|
|
322
|
+
|
|
227
323
|
- Add hardening for `Request`, `Headers`, and `Response` endowments ([#1695](https://github.com/MetaMask/snaps/pull/1695))
|
|
228
324
|
|
|
229
325
|
## [0.38.2-flask.1]
|
|
326
|
+
|
|
230
327
|
### Changed
|
|
328
|
+
|
|
231
329
|
- Bump `ses` to `0.18.7` ([#1666](https://github.com/MetaMask/snaps/pull/1666))
|
|
232
330
|
|
|
233
331
|
### Fixed
|
|
332
|
+
|
|
234
333
|
- Remove unused dependencies ([#1680](https://github.com/MetaMask/snaps/pull/1680))
|
|
235
334
|
|
|
236
335
|
## [0.38.1-flask.1]
|
|
336
|
+
|
|
237
337
|
### Changed
|
|
338
|
+
|
|
238
339
|
- Update LavaMoat packages to latest versions ([#1657](https://github.com/MetaMask/snaps/pull/1657))
|
|
239
340
|
|
|
240
341
|
### Removed
|
|
342
|
+
|
|
241
343
|
- Remove direct dependency on SES ([#1660](https://github.com/MetaMask/snaps/pull/1660))
|
|
242
344
|
- It's now a dev dependency, as it's only used in development.
|
|
243
345
|
|
|
244
346
|
### Fixed
|
|
347
|
+
|
|
245
348
|
- Pass correct scuttle args ([#1654](https://github.com/MetaMask/snaps/pull/1654))
|
|
246
349
|
|
|
247
350
|
## [0.38.0-flask.1]
|
|
351
|
+
|
|
248
352
|
### Added
|
|
353
|
+
|
|
249
354
|
- Add `onInstall` and `onUpdate` lifecycle hooks ([#1643](https://github.com/MetaMask/snaps/pull/1643))
|
|
250
355
|
- Unblock `personal_sign` JSON-RPC method ([#1601](https://github.com/MetaMask/snaps/pull/1601))
|
|
251
356
|
|
|
252
357
|
## [0.37.3-flask.1]
|
|
358
|
+
|
|
253
359
|
### Fixed
|
|
360
|
+
|
|
254
361
|
- Fix deployment of the iframe execution environment ([#1627](https://github.com/MetaMask/snaps/pull/1627))
|
|
255
362
|
|
|
256
363
|
## [0.37.2-flask.1]
|
|
364
|
+
|
|
257
365
|
### Changed
|
|
366
|
+
|
|
258
367
|
- Release package independently ([#1600](https://github.com/MetaMask/snaps/pull/1600))
|
|
259
368
|
- The version of the package no longer needs to match the version of all other
|
|
260
369
|
MetaMask Snaps packages.
|
|
261
370
|
|
|
262
|
-
[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-execution-environments@6.
|
|
371
|
+
[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-execution-environments@6.9.0...HEAD
|
|
372
|
+
[6.9.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-execution-environments@6.8.0...@metamask/snaps-execution-environments@6.9.0
|
|
373
|
+
[6.8.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-execution-environments@6.7.2...@metamask/snaps-execution-environments@6.8.0
|
|
263
374
|
[6.7.2]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-execution-environments@6.7.1...@metamask/snaps-execution-environments@6.7.2
|
|
264
375
|
[6.7.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-execution-environments@6.7.0...@metamask/snaps-execution-environments@6.7.1
|
|
265
376
|
[6.7.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-execution-environments@6.6.2...@metamask/snaps-execution-environments@6.7.0
|