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