@metamask/snaps-controllers 0.37.1-flask.1 → 0.37.2-flask.1

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 +6 -625
  2. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -6,630 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
- ## [0.37.1-flask.1]
9
+ ## [0.37.2-flask.1]
10
10
  ### Changed
11
- - No changes this release.
11
+ - Release package independently ([#1600](https://github.com/MetaMask/snaps/pull/1600))
12
+ - The version of the package no longer needs to match the version of all other
13
+ MetaMask Snaps packages.
12
14
 
13
- ## [0.37.0-flask.1]
14
- ### Changed
15
- - No changes this release.
16
-
17
- ## [0.36.1-flask.1]
18
- ### Changed
19
- - No changes this release.
20
-
21
- ## [0.36.0-flask.1]
22
- ### Changed
23
- - Allow omitting `jsonrpc` and `id` in `handleRequest` ([#1556](https://github.com/MetaMask/snaps/pull/1556))
24
- - Unblock `wallet_requestSnaps` and add dynamic permission support ([#1421](https://github.com/MetaMask/snaps/pull/1421))
25
-
26
- ## [0.35.2-flask.1]
27
- ### Fixed
28
- - Fix type issue introduced by [#1532](https://github.com/MetaMask/snaps/pull/1532) ([#1541](https://github.com/MetaMask/snaps/pull/1541))
29
-
30
- ## [0.35.1-flask.1]
31
- ### Changed
32
- - No changes this release.
33
-
34
- ## [0.35.0-flask.1]
35
- ### Added
36
- - Add export for `getRpcCaveatOrigins` ([#1533](https://github.com/MetaMask/snaps/pull/1533))
37
-
38
- ### Changed
39
- - **BREAKING:** Build packages as both CJS and ESM ([#1519](https://github.com/MetaMask/snaps/pull/1519), ([#1532](https://github.com/MetaMask/snaps/pull/1532)))
40
- - This is breaking in the sense that imports to `dist/` will now require you to import either `dist/cjs` or `dist/esm`.
41
- - Add `sideEffects: false` ([#1486](https://github.com/MetaMask/snaps/pull/1486))
42
-
43
- ### Removed
44
- - Remove `MultiChainController` ([#1527](https://github.com/MetaMask/snaps/pull/1527))
45
-
46
- ### Fixed
47
- - Improve JSON parsing safety ([#1499](https://github.com/MetaMask/snaps/pull/1499))
48
-
49
- ## [0.34.1-flask.1]
50
- ### Changed
51
- - No changes this release.
52
-
53
- ## [0.34.0-flask.1]
54
- ### Changed
55
- - **BREAKING:** Rename `targetKey` to `targetName` as part of updating `PermissionController` ([#1450](https://github.com/MetaMask/snaps/pull/1450))
56
- - Add SVG validation ([#1401](https://github.com/MetaMask/snaps/pull/1401))
57
- - Export permissions specification builders ([#1432](https://github.com/MetaMask/snaps/pull/1432))
58
- - Export `processSnapPermissions` ([#1402](https://github.com/MetaMask/snaps/pull/1402))
59
-
60
- ## [0.33.1-flask.1]
61
- ### Fixed
62
- - Skip subjects without the `wallet_snap` permission in `removeSnapFromSubject` ([#1388](https://github.com/MetaMask/snaps-monorepo/pull/1388))
63
-
64
- ## [0.33.0-flask.1]
65
- ### Changed
66
- - Add subject type restrictions to snap-specific permissions ([#1366](https://github.com/MetaMask/snaps-monorepo/pull/1366))
67
- - Add console endowment that prepends snap IDs to log output ([#1355](https://github.com/MetaMask/snaps-monorepo/pull/1355))
68
- - Add `DisconnectOrigin` action ([#1329](https://github.com/MetaMask/snaps-monorepo/pull/1329))
69
- - Add Web Worker support for snap execution ([#1320](https://github.com/MetaMask/snaps-monorepo/pull/1320))
70
-
71
- ## [0.32.2]
72
- ### Fixed
73
- - Properly handle Promise in `JsonSnapsRegistry` signature verification ([#1317](https://github.com/MetaMask/snaps-monorepo/pull/1317))
74
-
75
- ## [0.32.1]
76
- ### Changed
77
- - No changes this release.
78
-
79
- ## [0.32.0]
80
- ### Added
81
- - Add verification of registry signature ([#1291](https://github.com/MetaMask/snaps-monorepo/pull/1291))
82
- - Add types to result approvals ([#1288](https://github.com/MetaMask/snaps-monorepo/pull/1288))
83
-
84
- ### Changed
85
- - **BREAKING:** Convert registry to a caching controller ([#1305](https://github.com/MetaMask/snaps-monorepo/pull/1305))
86
- - **BREAKING:** Require snaps to request at least one handler permission ([#1294](https://github.com/MetaMask/snaps-monorepo/pull/1294))
87
- - Use side effects to install snaps via `wallet_snap` permission ([#1301](https://github.com/MetaMask/snaps-monorepo/pull/1301))
88
-
89
- ### Fixed
90
- - Fix a few issues with installation and updating ([#1308](https://github.com/MetaMask/snaps-monorepo/pull/1308))
91
-
92
- ## [0.31.0]
93
- ### Changed
94
- - **BREAKING:** Target `ES2020` ([#1247](https://github.com/MetaMask/snaps-monorepo/pull/1247))
95
- - **BREAKING:** Combine snap installation popups ([#1261](https://github.com/MetaMask/snaps-monorepo/pull/1261))
96
- - Throw errors on failed `fetch` ([#1227](https://github.com/MetaMask/snaps-monorepo/pull/1227))
97
- - Improve validation and sanitizing of snap IDs ([#1237](https://github.com/MetaMask/snaps-monorepo/pull/1237))
98
-
99
- ### Fixed
100
- - Fix smaller installation issues affecting local snaps ([#1248](https://github.com/MetaMask/snaps-monorepo/pull/1248))
101
-
102
- ## [0.30.0]
103
- ### Added
104
- - Add WebAssembly permission ([#1185](https://github.com/MetaMask/snaps-monorepo/pull/1185))
105
-
106
- ### Fixed
107
- - Fix an issue with removing snaps ([#1194](https://github.com/MetaMask/snaps-monorepo/pull/1194))
108
- - Previously, the `SnapController` was not requesting revocation of the `wallet_snap` permission from the `PermissionController` if an origin no longer had any permitted snaps, logic has been updated to account for this
109
-
110
- ## [0.29.0]
111
- ### Added
112
- - Add method to get metadata from the Snaps registry ([#1173](https://github.com/MetaMask/snaps-monorepo/pull/1173))
113
- - Set pre-fetch NPM tarball size limit ([#1169](https://github.com/MetaMask/snaps-monorepo/pull/1169))
114
- - NPM packages now have a size limit of 250 MB
115
-
116
- ### Changed
117
- - **BREAKING:** Updated controllers to accomodate new `wallet_snap` permission ([#1182](https://github.com/MetaMask/snaps-monorepo/pull/1182))
118
- - **BREAKING:** Change checksum calculation ([#1128](https://github.com/MetaMask/snaps-monorepo/pull/1128))
119
- - The checksum has changed for all snaps, and needs to be updated
120
-
121
- ## [0.28.0]
122
- ### Added
123
- - Add `endowment:long-running` deprecation warning ([#1126](https://github.com/MetaMask/snaps-monorepo/pull/1126))
124
- - Add experimental offscreen execution environment ([#1082](https://github.com/MetaMask/snaps-monorepo/pull/1082))
125
-
126
- ### Changed
127
- - **BREAKING:** Add support for snap registries ([#1090](https://github.com/MetaMask/snaps-monorepo/pull/1090))
128
- - This removes the `checkBlockList` constructor argument in favor of `registry`
129
- - A registry implementation can be passed here, defaulting to a hosted JSON file
130
- - Requiring a snap to be on the allowlist can be toggled with the feature flag `requireAllowlist`
131
- - **BREAKING:** Disallow local snaps by default ([#1123](https://github.com/MetaMask/snaps-monorepo/pull/1123))
132
- - They can be re-enabled by using the feature flag `allowLocalSnaps`
133
- - Allow updating crashed snaps ([#1113](https://github.com/MetaMask/snaps-monorepo/pull/1113))
134
- - Add safety measures for malicious tarballs ([#1116](https://github.com/MetaMask/snaps-monorepo/pull/1116))
135
- - Make `installSnaps` throw on excluded permissions ([#1125](https://github.com/MetaMask/snaps-monorepo/pull/1125))
136
-
137
- ### Removed
138
- - **BREAKING:** Remove `WebSocket` endowment ([#1122](https://github.com/MetaMask/snaps-monorepo/pull/1122))
139
-
140
- ## [0.27.1]
141
- ### Changed
142
- - No changes this release.
143
-
144
- ## [0.27.0]
145
- ### Changed
146
- - **BREAKING:** Use SIP-6 algorithm for state encryption ([#1055](https://github.com/MetaMask/snaps-monorepo/pull/1055))
147
- - This breaks all existing snaps that use `snap_manageState`
148
-
149
- ## [0.26.2]
150
- ### Changed
151
- - No changes this release.
152
-
153
- ## [0.26.1]
154
- ### Fixed
155
- - Fix some paths being wrongly normalized ([#1053](https://github.com/MetaMask/snaps-monorepo/pull/1053))
156
- - Fix some issues with fetching snaps ([#1050](https://github.com/MetaMask/snaps-monorepo/pull/1050))
157
-
158
- ## [0.26.0]
159
- ### Changed
160
- - **BREAKING:** Snap installation refactor ([#1023](https://github.com/MetaMask/snaps-monorepo/pull/1023))
161
- - `wallet_requestSnaps` will now throw an error and roll back any changes made if installation of any snap fails
162
-
163
- ### Fixed
164
- - Fix an issue processing non-snap permissions ([#1044](https://github.com/MetaMask/snaps-monorepo/pull/1044))
165
-
166
- ## [0.25.0]
167
- ### Added
168
- - **BREAKING:** Add JSON-RPC handler permission ([#905](https://github.com/MetaMask/snaps-monorepo/pull/905))
169
- - Snaps are now required to request `endowment:rpc` to receive RPC requests.
170
- - Add transaction origin caveat export ([#1010](https://github.com/MetaMask/snaps-monorepo/pull/1010))
171
-
172
- ## [0.24.1]
173
- ### Changed
174
- - No changes this release.
175
-
176
- ## [0.24.0]
177
- ### Added
178
- - Add transaction insight caveat for accessing transaction origin ([#902](https://github.com/MetaMask/snaps-monorepo/pull/902))
179
-
180
- ### Changed
181
- - **BREAKING:** Rename package to start with `snaps-` ([#937](https://github.com/MetaMask/snaps-monorepo/pull/937))
182
- - **BREAKING:** Remove `wallet` global in favor of `snap` and `ethereum` ([#939](https://github.com/MetaMask/snaps-monorepo/pull/939))
183
- - Add permission validation to `snap.manifest.json` ([#910](https://github.com/MetaMask/snaps-monorepo/pull/910))
184
-
185
- ## [0.23.0]
186
- ### Added
187
- - Add snap cronjobs ([#651](https://github.com/MetaMask/snaps-monorepo/pull/651), [#890](https://github.com/MetaMask/snaps-monorepo/pull/890))
188
-
189
- ### Changed
190
- - **BREAKING:** Make `SnapController.add()` private ([#883](https://github.com/MetaMask/snaps-monorepo/pull/883))
191
- - **BREAKING:** Stop including snap state in SnapController state ([#876](https://github.com/MetaMask/snaps-monorepo/pull/876))
192
- - **BREAKING:** Stop including source code in SnapController state ([#861](https://github.com/MetaMask/snaps-monorepo/pull/861))
193
- - Improve keyring endowment error messaging ([#884](https://github.com/MetaMask/snaps-monorepo/pull/884))
194
- - Replace JSON schema validation with structs ([#862](https://github.com/MetaMask/snaps-monorepo/pull/862))
195
-
196
- ## [0.22.3]
197
- ### Changed
198
- - No changes this release.
199
-
200
- ## [0.22.2]
201
- ### Fixed
202
- - Fix an issue with installing snaps that request the `eth_accounts` permission ([#839](https://github.com/MetaMask/snaps-monorepo/pull/839))
203
-
204
- ## [0.22.1]
205
- ### Fixed
206
- - Assert that multichain RPC methods are supported before usage ([#814](https://github.com/MetaMask/snaps-monorepo/pull/814))
207
-
208
- ## [0.22.0]
209
- ### Added
210
- - Add Snap Keyring support ([#700](https://github.com/MetaMask/snaps-monorepo/pull/700), [#775](https://github.com/MetaMask/snaps-monorepo/pull/775), [#777](https://github.com/MetaMask/snaps-monorepo/pull/777), [#740](https://github.com/MetaMask/snaps-monorepo/pull/740))
211
- - Add `endowment:keyring` permission
212
- - Add `MultiChainController`
213
-
214
- ### Changed
215
- - **BREAKING:** Renamed `SnapController:getSnaps` to `SnapController:getPermittedSnaps` [#775](https://github.com/MetaMask/snaps-monorepo/pull/775)
216
-
217
- ## [0.21.0]
218
- ### Changed
219
- - **BREAKING:** Add changes to support blocking snaps by shasum ([#767](https://github.com/MetaMask/snaps-monorepo/pull/767))
220
- - **BREAKING:** Rework snap install logic ([#754](https://github.com/MetaMask/snaps-monorepo/pull/754))
221
- - Stop including `installing` snaps in `wallet_getSnaps` ([#765](https://github.com/MetaMask/snaps-monorepo/pull/765))
222
-
223
- ### Fixed
224
- - Process snap permissions before snap update ([#753](https://github.com/MetaMask/snaps-monorepo/pull/753))
225
- - Only pause running timers ([#725](https://github.com/MetaMask/snaps-monorepo/pull/725))
226
-
227
- ## [0.20.0]
228
- ### Added
229
- - **BREAKING:** Add Transaction Insight API ([#642](https://github.com/MetaMask/snaps-monorepo/pull/642))
230
- - This feature required changes to the RPC request handling functionality, hence the breaking change
231
- - Register missing actions ([#659](https://github.com/MetaMask/snaps-monorepo/pull/659))
232
- - All APIs accessed outside the SnapController are now registered as actions in the messaging system
233
-
234
- ### Changed
235
- - **BREAKING:** Simplify manifest format for permission caveats ([#705](https://github.com/MetaMask/snaps-monorepo/pull/705))
236
- - Reduce TypeScript compilation target for `snap-controllers` ([#708](https://github.com/MetaMask/snaps-monorepo/pull/708))
237
- - Move all internal types from `@metamask/snaps-types` to `@metamask/snaps-utils` ([#695](https://github.com/MetaMask/snaps-monorepo/pull/695))
238
-
239
- ### Removed
240
- - **BREAKING:** Removed ExternalResourceController ([#701](https://github.com/MetaMask/snaps-monorepo/pull/701))
241
-
242
- ## [0.19.1]
243
- ### Changed
244
- - No changes this release.
245
-
246
- ## [0.19.0]
247
- ### Fixed
248
- - Fixed update snap approval missing metadata ([#673](https://github.com/MetaMask/snaps-monorepo/pull/673))
249
- - Fixed executors sending malformed JSON-RPC notifications ([#639](https://github.com/MetaMask/snaps-monorepo/pull/639))
250
-
251
- ## [0.18.1]
252
- ### Changed
253
- - No changes this release.
254
-
255
- ## [0.18.0]
256
- ### Changed
257
- - Reduce TypeScript compilation target to ES2017 ([#628](https://github.com/MetaMask/snaps-monorepo/pull/628))
258
- - **BREAKING:** Add browser entrypoint for execution services ([#629](https://github.com/MetaMask/snaps-monorepo/pull/629))
259
- - Node.js execution services are now omitted in browser environments
260
-
261
- ## [0.17.0]
262
- ### Added
263
- - Add snap blocklist functionality ([#597](https://github.com/MetaMask/snaps-monorepo/pull/597))
264
- - Add Node.js `worker_threads` execution environment ([#587](https://github.com/MetaMask/snaps-monorepo/pull/587))
265
- - Add Node.js `child_process` execution environment ([#523](https://github.com/MetaMask/snaps-monorepo/pull/523))
266
- - Added network endowment teardown ([#514](https://github.com/MetaMask/snaps-monorepo/pull/514))
267
-
268
- ### Changed
269
- - **BREAKING:** Bump minimum Node version to 16 ([#601](https://github.com/MetaMask/snaps-monorepo/pull/601))
270
- - **BREAKING:** Remove ExecutionService actions from constructor arguments ([#486](https://github.com/MetaMask/snaps-monorepo/pull/486))
271
- - **BREAKING:** Emit appropriate snap objects for SnapController events ([#608](https://github.com/MetaMask/snaps-monorepo/pull/608))
272
- - **BREAKING:** Replace `getRpcMessageHandler` action with `handleRpcRequest` ([#497](https://github.com/MetaMask/snaps-monorepo/pull/497), [#557](https://github.com/MetaMask/snaps-monorepo/pull/557))
273
- - Monitor outbound snap requests to pause request timeout ([#593](https://github.com/MetaMask/snaps-monorepo/pull/593))
274
- - Change Update Snap `requestData` ([#614](https://github.com/MetaMask/snaps-monorepo/pull/614))
275
-
276
- ### Removed
277
- - Remove WebWorker implementation ([#591](https://github.com/MetaMask/snaps-monorepo/pull/591))
278
-
279
- ## [0.16.0]
280
- ### Added
281
- - **BREAKING:** Encrypt Snap state by default ([#369](https://github.com/MetaMask/snaps-monorepo/pull/369))
282
- - Breaks existing installed snaps that use `snap_manageState`. All such Snaps must be reinstalled.
283
-
284
- ### Changed
285
- - **BREAKING:** Snaps are now required to export `onRpcRequest` to receive RPC requests ([#481](https://github.com/MetaMask/snaps-monorepo/pull/481), [#533](https://github.com/MetaMask/snaps-monorepo/pull/533), [#538](https://github.com/MetaMask/snaps-monorepo/pull/538))
286
- - The type of the function is available in `@metamask/snaps-types` as `OnRpcRequestHandler`.
287
- - Snaps can no longer run timers outside of pending RPC requests ([#490](https://github.com/MetaMask/snaps-monorepo/pull/490))
288
-
289
- ### Fixed
290
- - Allow version matching with prerelease versions ([#508](https://github.com/MetaMask/snaps-monorepo/pull/508))
291
- - Fix issue with iframe error reporting ([#501](https://github.com/MetaMask/snaps-monorepo/pull/501))
292
- - Fix an issue with file paths with leading `./` in npm snap manifests ([#537](https://github.com/MetaMask/snaps-monorepo/pull/537))
293
-
294
- ## [0.15.0]
295
- ### Fixed
296
- - Fix an issue with detecting iframe execution environment load ([#464](https://github.com/MetaMask/snaps-monorepo/pull/464))
297
-
298
- ## [0.14.0]
299
- ### Changed
300
- - **BREAKING:** Increase TypeScript compilation target to ES2020 ([#449](https://github.com/MetaMask/snaps-monorepo/pull/449))
301
- - This should not be breaking for consumers on any non-deprecated browser or Node.js version.
302
-
303
- ## [0.13.0]
304
- ### Added
305
- - Add long-running endowment permission ([#386](https://github.com/MetaMask/snaps-monorepo/pull/386))
306
- - Add `network-access` endowment from `controllers` ([#439](https://github.com/MetaMask/snaps-monorepo/pull/439))
307
-
308
- ### Changed
309
- - **BREAKING:** Rename SnapController constructor argument ([#435](https://github.com/MetaMask/snaps-monorepo/pull/435))
310
-
311
- ## [0.12.0]
312
- ### Added
313
- - Add support for endowment teardown ([#407](https://github.com/MetaMask/snaps-monorepo/pull/407))
314
- - Emit `snapTerminated` event ([#406](https://github.com/MetaMask/snaps-monorepo/pull/406))
315
- - Add `IframeExecutionService` previously published via `@metamask/iframe-execution-environment-service` ([#415](https://github.com/MetaMask/snaps-monorepo/pull/415))
316
-
317
- ### Removed
318
- - Remove `_createWindowTimeout` ([#404](https://github.com/MetaMask/snaps-monorepo/pull/404))
319
- - Remove unresponsive timeout ([#395](https://github.com/MetaMask/snaps-monorepo/pull/395))
320
-
321
- ### Fixed
322
- - Correctly categorize ungracefully terminated snaps as crashed ([#427](https://github.com/MetaMask/snaps-monorepo/pull/427))
323
-
324
- ## [0.11.1]
325
- ### Changed
326
- - Always bind `fetch` by default ([#402](https://github.com/MetaMask/snaps-monorepo/pull/402))
327
-
328
- ## [0.11.0]
329
- ### Added
330
- - Add clearSnapState ([#346](https://github.com/MetaMask/snaps-monorepo/pull/346))
331
-
332
- ### Changed
333
- - Robustify snap startup procedure and iframe error handling ([#379](https://github.com/MetaMask/snaps-monorepo/pull/379))
334
- - Added ability to update snaps when installing them ([#322](https://github.com/MetaMask/snaps-monorepo/pull/322))
335
- - **BREAKING:** Use PermissionController:revokePermissionForAllSubjects ([#351](https://github.com/MetaMask/snaps-monorepo/pull/351))
336
- - Changed console.logs to console.info ([#361](https://github.com/MetaMask/snaps-monorepo/pull/361))
337
- - Upgraded TypeScript version to minimum 4.4 ([#360](https://github.com/MetaMask/snaps-monorepo/pull/360))
338
- - Remove cross-fetch ([#349](https://github.com/MetaMask/snaps-monorepo/pull/349))
339
-
340
- ### Fixed
341
- - Fix idle timeout implementation ([#385](https://github.com/MetaMask/snaps-monorepo/pull/385))
342
-
343
- ## [0.10.7]
344
- ### Added
345
- - Add version history information ([#317](https://github.com/MetaMask/snaps-monorepo/pull/317))
346
- - Add setInterval and clearInterval as default endowments ([#326](https://github.com/MetaMask/snaps-monorepo/pull/326))
347
- - Add queue for RPC requests to starting snaps ([#288](https://github.com/MetaMask/snaps-monorepo/pull/288))
348
- - This improves the experience of invoking a starting snap, waiting for the snap to be ready instead of throwing an error.
349
-
350
- ### Changed
351
- - **BREAKING:** Bump minimum Node version from 12 to 14 ([#331](https://github.com/MetaMask/snaps-monorepo/pull/331))
352
-
353
- ## [0.10.6]
354
- ### Fixed
355
- - Fix ID validation during Snap installation ([#308](https://github.com/MetaMask/snaps-monorepo/pull/308))
356
-
357
- ## [0.10.5]
358
- ### Added
359
- - Add updateSnap function to SnapController ([#259](https://github.com/MetaMask/snaps-monorepo/pull/259))
360
-
361
- ### Fixed
362
- - Fix issue where installation errors were repeatedly thrown ([#301](https://github.com/MetaMask/snaps-monorepo/pull/301))
363
- - Fix snap crash handling ([#298](https://github.com/MetaMask/snaps-monorepo/pull/298))
364
-
365
- ## [0.10.3]
366
- ### Changed
367
- - Always reinstall local snaps ([#289](https://github.com/MetaMask/snaps-monorepo/pull/289))
368
-
369
- ## [0.10.2]
370
- ### Fixed
371
- - Installation failure ([#279](https://github.com/MetaMask/snaps-monorepo/pull/279))
372
- - A faulty installation script in a dependency caused the installation of this package to fail.
373
-
374
- ## [0.10.1]
375
- ### Changed
376
- - Populate `jsonrpc` field in Snap RPC requests ([#273](https://github.com/MetaMask/snaps-monorepo/pull/273))
377
-
378
- ### Fixed
379
- - Various bugs ([#275](https://github.com/MetaMask/snaps-monorepo/pull/275))
380
- - Snap fetching during installation.
381
- - Snap removal when cancelling a Snap installation request.
382
-
383
- ## [0.10.0]
384
- ### Added
385
- - Allow specifying a version range when installing snap ([#250](https://github.com/MetaMask/snaps-monorepo/pull/250))
386
- - Add more safe default endowments to snaps ([#252](https://github.com/MetaMask/snaps-monorepo/pull/252))
387
-
388
- ### Changed
389
- - **BREAKING:** Specify all endowments in the `SnapController` ([#252](https://github.com/MetaMask/snaps-monorepo/pull/252)), ([#266](https://github.com/MetaMask/snaps-monorepo/pull/266))
390
- - Previously, default endowments were specified in the execution environment. Now, default endowments are specified in the `SnapController`, and the execution environment will only add endowments specified by the execution command, except for the `wallet` API object.
391
- - Disable caching when fetching local snaps ([#227](https://github.com/MetaMask/snaps-monorepo/pull/227))
392
- - This ensures that the `SnapController` will always fetch the latest snap manifest and source code during local development.
393
-
394
- ### Removed
395
- - **BREAKING:** Remove the `PermissionController` and `SubjectMetadataController` ([#261](https://github.com/MetaMask/snaps-monorepo/pull/261))
396
- - They are part of the [`@metamask/controllers`](https://npmjs.com/package/@metamask/controllers) as of version [26.0.0](https://github.com/MetaMask/controllers/releases/tag/v26.0.0) of that package.
397
-
398
- ### Fixed
399
- - Prevent useless errors from being thrown when a snap is removed ([#215](https://github.com/MetaMask/snaps-monorepo/pull/215))
400
-
401
- ## [0.9.0]
402
- ### Added
403
- - Make `SnapController` npm registry configurable ([#200](https://github.com/MetaMask/snaps-monorepo/pull/200))
404
-
405
- ### Changed
406
- - **BREAKING:** Return `null` from `SnapController.getSnapState` if the snap has no state ([#203](https://github.com/MetaMask/snaps-monorepo/pull/203))
407
- - Previously it would return `undefined` in this case.
408
- - `@metamask/controllers@^25.1.0` ([#207](https://github.com/MetaMask/snaps-monorepo/pull/207))
409
-
410
- ## [0.8.1]
411
- ### Added
412
- - A variety of `SnapController` actions ([#199](https://github.com/MetaMask/snaps-monorepo/pull/199))
413
-
414
- ## [0.8.0]
415
- ### Added
416
- - Expose more `PermissionController` functionality via actions ([#194](https://github.com/MetaMask/snaps-monorepo/pull/194))
417
-
418
- ### Changed
419
- - **BREAKING:** Replace `PermissionController` functions with actions in `SnapController` ([#194](https://github.com/MetaMask/snaps-monorepo/pull/194))
420
-
421
- ## [0.7.0]
422
- ### Changed
423
- - **BREAKING:** Rename execution environment service class and events ([#188](https://github.com/MetaMask/snaps-monorepo/pull/188))
424
- - `ServiceMessenger` events are now named `ExecutionService`.
425
- - `WebWorkerExecutionEnvironmentService` is now named `WebWorkerExecutionService`.
426
-
427
- ## [0.6.3]
428
- ### Fixed
429
- - Prevent `disableSnap` from throwing if the specified Snap is stopped ([#175](https://github.com/MetaMask/snaps-monorepo/pull/175))
430
-
431
- ## [0.6.2]
432
- ### Changed
433
- - **BREAKING:** Rename endowment permission builder exports ([#171](https://github.com/MetaMask/snaps-monorepo/pull/171))
434
-
435
- ### Removed
436
- - **BREAKING:** Remove the `svgIcon` property from Snap state ([#172](https://github.com/MetaMask/snaps-monorepo/pull/172))
437
- - The SVG icon content string is instead emitted with the `SnapController:snapAdded` event.
438
-
439
- ## [0.6.1]
440
- ### Changed
441
- - No changes this release.
442
-
443
- ## [0.6.0]
444
- ### Added
445
- - "Endowment" permissions ([#152](https://github.com/MetaMask/snaps-monorepo/pull/152))
446
- - `SnapController` endowment permissions support ([#155](https://github.com/MetaMask/snaps-monorepo/pull/155))
447
- - Network access endowment permission ([#154](https://github.com/MetaMask/snaps-monorepo/pull/154))
448
- - Snap installation events ([#162](https://github.com/MetaMask/snaps-monorepo/pull/162))
449
-
450
- ### Changed
451
- - **BREAKING:** Refactor `SnapController` to support the new Snaps publishing specification ([#140](https://github.com/MetaMask/snaps-monorepo/pull/140), [#157](https://github.com/MetaMask/snaps-monorepo/pull/157), [#163](https://github.com/MetaMask/snaps-monorepo/pull/163))
452
- - This introduces several breaking changes to how Snaps are developed, hosted, and represented at runtime. See [the specification](https://github.com/MetaMask/specifications/blob/d4a5bf5d6990bb5b02a98bd3f95a24ffb28c701c/snaps/publishing.md) and the referenced pull requests for details.
453
- - **BREAKING:** Rename Snap `name` property to `id` ([#147](https://github.com/MetaMask/snaps-monorepo/pull/147))
454
- - **BREAKING:** Introduce the required `permissionType` field to `PermissionController` permission specifications ([#152](https://github.com/MetaMask/snaps-monorepo/pull/152))
455
- - Make `SubjectMetadataController` subject metadata `name` optional ([#151](https://github.com/MetaMask/snaps-monorepo/pull/151))
456
-
457
- ### Removed
458
- - **BREAKING:** Inline snap functionality ([#148](https://github.com/MetaMask/snaps-monorepo/pull/148))
459
-
460
- ## [0.5.0]
461
- ### Changed
462
- - **BREAKING:** Update restricted RPC methods per new `PermissionController` ([#143](https://github.com/MetaMask/snaps-monorepo/pull/143))
463
- - **BREAKING:** Convert all TypeScript `interface` declarations to `type` equivalents ([#143](https://github.com/MetaMask/snaps-monorepo/pull/143))
464
- - Bump `@metamask/obs-store` to `7.0.0` ([#144](https://github.com/MetaMask/snaps-monorepo/pull/144))
465
-
466
- ## [0.4.0]
467
- ### Added
468
- - `SubjectMetadataController` ([#61](https://github.com/MetaMask/snaps-monorepo/pull/61))
469
- - `PermissionController` ([#132](https://github.com/MetaMask/snaps-monorepo/pull/132), [#141](https://github.com/MetaMask/snaps-monorepo/pull/141))
470
- - **BREAKING:** `SnapController`: Add max request processing time ([#128](https://github.com/MetaMask/snaps-monorepo/pull/128))
471
-
472
- ### Fixed
473
- - `SnapController`: Clean up timeouts after stopping a Snap ([#139](https://github.com/MetaMask/snaps-monorepo/pull/139))
474
- - `WebWorkerExecutionEnvironmentService`: Clean up post-termination timeouts ([#128](https://github.com/MetaMask/snaps-monorepo/pull/128))
475
-
476
- ## [0.3.1]
477
- ### Changed
478
- - **BREAKING:** Update Snap initial states ([#126](https://github.com/MetaMask/snaps-monorepo/pull/126))
479
- - The `idle` status is now named `installing`, and rehydrated snaps will have the status `stopped`.
480
-
481
- ### Fixed
482
- - Fix Snap execution and installation bugs ([#125](https://github.com/MetaMask/snaps-monorepo/pull/125))
483
- - Prevent Snaps from being started before installation is finished ([#124](https://github.com/MetaMask/snaps-monorepo/pull/124))
484
- - Correctly identify breaking changes in [0.3.0] release ([#123](https://github.com/MetaMask/snaps-monorepo/pull/123))
485
-
486
- ## [0.3.0]
487
- ### Added
488
- - Allow disabling and enabling Snaps ([#116](https://github.com/MetaMask/snaps-monorepo/pull/116))
489
- - Only enabled Snaps can be started.
490
- - Start stopped Snaps that receive an RPC message ([#114](https://github.com/MetaMask/snaps-monorepo/pull/114))
491
- - Add Snap max idle time ([#105](https://github.com/MetaMask/snaps-monorepo/pull/105))
492
- - A Snap that is idle for more than the max idle time will be stopped.
493
- - Poll Snaps for their status ([#104](https://github.com/MetaMask/snaps-monorepo/pull/104))
494
- - If a Snap stops responding, it will be forced to stop.
495
-
496
- ### Changed
497
- - **BREAKING:** Enforce consistent naming for Snaps-related functionality ([#119](https://github.com/MetaMask/snaps-monorepo/pull/119))
498
- - **BREAKING:** Use the `ControllerMessenger` to communicate between the `SnapController` and its execution environment service ([#100](https://github.com/MetaMask/snaps-monorepo/pull/100))
499
-
500
- ## [0.2.2]
501
- ### Added
502
- - Add Snap error state ([#96](https://github.com/MetaMask/snaps-monorepo/pull/96))
503
-
504
- ### Fixed
505
- - Package script issues ([#97](https://github.com/MetaMask/snaps-monorepo/pull/97), [#98](https://github.com/MetaMask/snaps-monorepo/pull/98))
506
-
507
- ## [0.2.0]
508
- ### Changed
509
- - Update publish scripts ([#92](https://github.com/MetaMask/snaps-monorepo/pull/92))
510
-
511
- ## [0.1.2]
512
- ### Changed
513
- - Restore name of `handshake` method to `ping` ([#90](https://github.com/MetaMask/snaps-monorepo/pull/90))
514
-
515
- ## [0.1.1]
516
- ### Added
517
- - Out of band error support ([#88](https://github.com/MetaMask/snaps-monorepo/pull/88))
518
-
519
- ### Changed
520
- - @metamask/controllers@17.0.0 ([#87](https://github.com/MetaMask/snaps-monorepo/pull/87))
521
-
522
- ## [0.1.0]
523
- ### Added
524
- - Readme file ([#71](https://github.com/MetaMask/snaps-monorepo/pull/71))
525
-
526
- ### Changed
527
- - **BREAKING:** Rename package to `@metamask/snaps-controllers` ([#73](https://github.com/MetaMask/snaps-monorepo/pull/73))
528
-
529
- ## [0.0.9]
530
- ### Added
531
- - `PluginController`: Always persist plugin `isRunning` state as `false` ([#64](https://github.com/MetaMask/snaps-monorepo/pull/64))
532
- - Plugins are not automatically running on boot, and we should never persist this state as `true`.
533
-
534
- ### Changed
535
- - **BREAKING:** `@metamask/controllers@15.0.0` ([#66](https://github.com/MetaMask/snaps-monorepo/pull/66))
536
- - This may cause incompatibilities with other versions of the `@metamask/controllers` package.
537
-
538
- ## [0.0.7]
539
- ### Fixed
540
- - Store plugin states in the correct place ([#48](https://github.com/MetaMask/snaps-monorepo/pull/48))
541
- - Previously, plugin states would be set as top-level keys of the `PluginController`'s state. This broke retrieving plugin states. They are now correctly stored under `state.pluginStates`.
542
-
543
- ## [0.0.6]
544
- ### Added
545
- - iframe execution environment ([#33](https://github.com/MetaMask/snaps-monorepo/pull/33))
546
- - Execution environment OpenRPC spec ([#23](https://github.com/MetaMask/snaps-monorepo/pull/23))
547
-
548
- ### Changed
549
- - **BREAKING:** Migrate `CommandEngine` message format to JSON-RPC ([#11](https://github.com/MetaMask/snaps-monorepo/pull/11))
550
- - **BREAKING:** Refactor `PluginController` to use `BaseControllerV2` ([#13](https://github.com/MetaMask/snaps-monorepo/pull/13))
551
- - **BREAKING:** Use generic execution environment interface ([#19](https://github.com/MetaMask/snaps-monorepo/pull/19))
552
- - **BREAKING:** Restore origin parameter to `setupWorkerConnection`, rename to `setupPluginProvider` ([#20](https://github.com/MetaMask/snaps-monorepo/pull/20))
553
- - **BREAKING:** Rename some execution environment methods ([#23](https://github.com/MetaMask/snaps-monorepo/pull/23))
554
-
555
- ### Fixed
556
- - Ensure that the plugin `isRunning` check always runs when a plugin is started ([#21](https://github.com/MetaMask/snaps-monorepo/pull/21))
557
-
558
- ## [0.0.5]
559
- ### Added
560
- - First semi-stable release.
561
-
562
- [Unreleased]: https://github.com/MetaMask/snaps/compare/v0.37.1-flask.1...HEAD
563
- [0.37.1-flask.1]: https://github.com/MetaMask/snaps/compare/v0.37.0-flask.1...v0.37.1-flask.1
564
- [0.37.0-flask.1]: https://github.com/MetaMask/snaps/compare/v0.36.1-flask.1...v0.37.0-flask.1
565
- [0.36.1-flask.1]: https://github.com/MetaMask/snaps/compare/v0.36.0-flask.1...v0.36.1-flask.1
566
- [0.36.0-flask.1]: https://github.com/MetaMask/snaps/compare/v0.35.2-flask.1...v0.36.0-flask.1
567
- [0.35.2-flask.1]: https://github.com/MetaMask/snaps/compare/v0.35.1-flask.1...v0.35.2-flask.1
568
- [0.35.1-flask.1]: https://github.com/MetaMask/snaps/compare/v0.35.0-flask.1...v0.35.1-flask.1
569
- [0.35.0-flask.1]: https://github.com/MetaMask/snaps/compare/v0.34.1-flask.1...v0.35.0-flask.1
570
- [0.34.1-flask.1]: https://github.com/MetaMask/snaps/compare/v0.34.0-flask.1...v0.34.1-flask.1
571
- [0.34.0-flask.1]: https://github.com/MetaMask/snaps/compare/v0.33.1-flask.1...v0.34.0-flask.1
572
- [0.33.1-flask.1]: https://github.com/MetaMask/snaps/compare/v0.33.0-flask.1...v0.33.1-flask.1
573
- [0.33.0-flask.1]: https://github.com/MetaMask/snaps/compare/v0.32.2...v0.33.0-flask.1
574
- [0.32.2]: https://github.com/MetaMask/snaps/compare/v0.32.1...v0.32.2
575
- [0.32.1]: https://github.com/MetaMask/snaps/compare/v0.32.0...v0.32.1
576
- [0.32.0]: https://github.com/MetaMask/snaps/compare/v0.31.0...v0.32.0
577
- [0.31.0]: https://github.com/MetaMask/snaps/compare/v0.30.0...v0.31.0
578
- [0.30.0]: https://github.com/MetaMask/snaps/compare/v0.29.0...v0.30.0
579
- [0.29.0]: https://github.com/MetaMask/snaps/compare/v0.28.0...v0.29.0
580
- [0.28.0]: https://github.com/MetaMask/snaps/compare/v0.27.1...v0.28.0
581
- [0.27.1]: https://github.com/MetaMask/snaps/compare/v0.27.0...v0.27.1
582
- [0.27.0]: https://github.com/MetaMask/snaps/compare/v0.26.2...v0.27.0
583
- [0.26.2]: https://github.com/MetaMask/snaps/compare/v0.26.1...v0.26.2
584
- [0.26.1]: https://github.com/MetaMask/snaps/compare/v0.26.0...v0.26.1
585
- [0.26.0]: https://github.com/MetaMask/snaps/compare/v0.25.0...v0.26.0
586
- [0.25.0]: https://github.com/MetaMask/snaps/compare/v0.24.1...v0.25.0
587
- [0.24.1]: https://github.com/MetaMask/snaps/compare/v0.24.0...v0.24.1
588
- [0.24.0]: https://github.com/MetaMask/snaps/compare/v0.23.0...v0.24.0
589
- [0.23.0]: https://github.com/MetaMask/snaps/compare/v0.22.3...v0.23.0
590
- [0.22.3]: https://github.com/MetaMask/snaps/compare/v0.22.2...v0.22.3
591
- [0.22.2]: https://github.com/MetaMask/snaps/compare/v0.22.1...v0.22.2
592
- [0.22.1]: https://github.com/MetaMask/snaps/compare/v0.22.0...v0.22.1
593
- [0.22.0]: https://github.com/MetaMask/snaps/compare/v0.21.0...v0.22.0
594
- [0.21.0]: https://github.com/MetaMask/snaps/compare/v0.20.0...v0.21.0
595
- [0.20.0]: https://github.com/MetaMask/snaps/compare/v0.19.1...v0.20.0
596
- [0.19.1]: https://github.com/MetaMask/snaps/compare/v0.19.0...v0.19.1
597
- [0.19.0]: https://github.com/MetaMask/snaps/compare/v0.18.1...v0.19.0
598
- [0.18.1]: https://github.com/MetaMask/snaps/compare/v0.18.0...v0.18.1
599
- [0.18.0]: https://github.com/MetaMask/snaps/compare/v0.17.0...v0.18.0
600
- [0.17.0]: https://github.com/MetaMask/snaps/compare/v0.16.0...v0.17.0
601
- [0.16.0]: https://github.com/MetaMask/snaps/compare/v0.15.0...v0.16.0
602
- [0.15.0]: https://github.com/MetaMask/snaps/compare/v0.14.0...v0.15.0
603
- [0.14.0]: https://github.com/MetaMask/snaps/compare/v0.13.0...v0.14.0
604
- [0.13.0]: https://github.com/MetaMask/snaps/compare/v0.12.0...v0.13.0
605
- [0.12.0]: https://github.com/MetaMask/snaps/compare/v0.11.1...v0.12.0
606
- [0.11.1]: https://github.com/MetaMask/snaps/compare/v0.11.0...v0.11.1
607
- [0.11.0]: https://github.com/MetaMask/snaps/compare/v0.10.7...v0.11.0
608
- [0.10.7]: https://github.com/MetaMask/snaps/compare/v0.10.6...v0.10.7
609
- [0.10.6]: https://github.com/MetaMask/snaps/compare/v0.10.5...v0.10.6
610
- [0.10.5]: https://github.com/MetaMask/snaps/compare/v0.10.3...v0.10.5
611
- [0.10.3]: https://github.com/MetaMask/snaps/compare/v0.10.2...v0.10.3
612
- [0.10.2]: https://github.com/MetaMask/snaps/compare/v0.10.1...v0.10.2
613
- [0.10.1]: https://github.com/MetaMask/snaps/compare/v0.10.0...v0.10.1
614
- [0.10.0]: https://github.com/MetaMask/snaps/compare/v0.9.0...v0.10.0
615
- [0.9.0]: https://github.com/MetaMask/snaps/compare/v0.8.1...v0.9.0
616
- [0.8.1]: https://github.com/MetaMask/snaps/compare/v0.8.0...v0.8.1
617
- [0.8.0]: https://github.com/MetaMask/snaps/compare/v0.7.0...v0.8.0
618
- [0.7.0]: https://github.com/MetaMask/snaps/compare/v0.6.3...v0.7.0
619
- [0.6.3]: https://github.com/MetaMask/snaps/compare/v0.6.2...v0.6.3
620
- [0.6.2]: https://github.com/MetaMask/snaps/compare/v0.6.1...v0.6.2
621
- [0.6.1]: https://github.com/MetaMask/snaps/compare/v0.6.0...v0.6.1
622
- [0.6.0]: https://github.com/MetaMask/snaps/compare/v0.5.0...v0.6.0
623
- [0.5.0]: https://github.com/MetaMask/snaps/compare/v0.4.0...v0.5.0
624
- [0.4.0]: https://github.com/MetaMask/snaps/compare/v0.3.1...v0.4.0
625
- [0.3.1]: https://github.com/MetaMask/snaps/compare/v0.3.0...v0.3.1
626
- [0.3.0]: https://github.com/MetaMask/snaps/compare/v0.2.2...v0.3.0
627
- [0.2.2]: https://github.com/MetaMask/snaps/compare/v0.2.0...v0.2.2
628
- [0.2.0]: https://github.com/MetaMask/snaps/compare/v0.1.2...v0.2.0
629
- [0.1.2]: https://github.com/MetaMask/snaps/compare/v0.1.1...v0.1.2
630
- [0.1.1]: https://github.com/MetaMask/snaps/compare/v0.1.0...v0.1.1
631
- [0.1.0]: https://github.com/MetaMask/snaps/compare/v0.0.9...v0.1.0
632
- [0.0.9]: https://github.com/MetaMask/snaps/compare/v0.0.7...v0.0.9
633
- [0.0.7]: https://github.com/MetaMask/snaps/compare/v0.0.6...v0.0.7
634
- [0.0.6]: https://github.com/MetaMask/snaps/compare/v0.0.5...v0.0.6
635
- [0.0.5]: https://github.com/MetaMask/snaps/releases/tag/v0.0.5
15
+ [Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@0.37.2-flask.1...HEAD
16
+ [0.37.2-flask.1]: https://github.com/MetaMask/snaps/releases/tag/@metamask/snaps-controllers@0.37.2-flask.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask/snaps-controllers",
3
- "version": "0.37.1-flask.1",
3
+ "version": "0.37.2-flask.1",
4
4
  "description": "Controllers for MetaMask Snaps.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,7 +36,7 @@
36
36
  "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" --ignore-path ../../.gitignore",
37
37
  "lint": "yarn lint:eslint && yarn lint:misc --check && yarn lint:changelog",
38
38
  "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
39
- "lint:changelog": "yarn auto-changelog validate",
39
+ "lint:changelog": "../../scripts/validate-changelog.sh @metamask/snaps-controllers",
40
40
  "prepare-manifest:preview": "../../scripts/prepare-preview-manifest.sh",
41
41
  "publish:preview": "yarn npm publish --tag preview",
42
42
  "lint:ci": "yarn lint"
@@ -47,10 +47,10 @@
47
47
  "@metamask/object-multiplex": "^1.2.0",
48
48
  "@metamask/permission-controller": "^4.0.0",
49
49
  "@metamask/post-message-stream": "^6.1.2",
50
- "@metamask/rpc-methods": "^0.37.1-flask.1",
51
- "@metamask/snaps-execution-environments": "^0.37.1-flask.1",
50
+ "@metamask/rpc-methods": "^0.37.2-flask.1",
51
+ "@metamask/snaps-execution-environments": "^0.37.2-flask.1",
52
52
  "@metamask/snaps-registry": "^1.2.1",
53
- "@metamask/snaps-utils": "^0.37.1-flask.1",
53
+ "@metamask/snaps-utils": "^0.37.2-flask.1",
54
54
  "@metamask/utils": "^6.0.1",
55
55
  "@xstate/fsm": "^2.0.0",
56
56
  "concat-stream": "^2.0.0",