1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts/controllers/permissions
Erik Marks 8a8ce3a0c0
@metamask/controllers@15.0.0 (#11975)
Adds the latest version of `@metamask/controllers`, and updates our usage of the `ApprovalController`, which has been migrated to `BaseControllerV2`. Of [the new `controllers` release](https://github.com/MetaMask/controllers/releases/tag/v15.0.0), only the `ApprovalController` migration should be breaking.

This is the first time we use events on the `ControllerMessenger` to update the badge, so I turned the messenger into a property on the main `MetaMaskController` in order to subscribe to events on it in `background.js`. I confirmed that the badge does indeed update during local QA.

As it turns out, [MetaMask/controllers#571](https://github.com/MetaMask/controllers/pull/571) was breaking for a single unit test case, which is now handled during setup and teardown for the related test suite (`metamask-controller.test.js`).
2021-08-31 12:27:13 -07:00
..
enums.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
index.js @metamask/controllers@15.0.0 (#11975) 2021-08-31 12:27:13 -07:00
permissions-controller.test.js colocate tests in flat structure (#10655) 2021-03-16 16:00:08 -05:00
permissions-log-controller.test.js colocate tests in flat structure (#10655) 2021-03-16 16:00:08 -05:00
permissions-middleware.test.js colocate tests in flat structure (#10655) 2021-03-16 16:00:08 -05:00
permissionsLog.js Ensure permission log will only store JSON-able data (#10524) 2021-03-10 11:50:06 -08:00
permissionsMethodMiddleware.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
restricted-methods.test.js colocate tests in flat structure (#10655) 2021-03-16 16:00:08 -05:00
restrictedMethods.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00