You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@metamask/approval-controller

Package Overview
Dependencies
Maintainers
3
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/approval-controller - npm Package Compare versions

Comparing version
7.1.3
to
7.2.0
+13
-1
CHANGELOG.md

@@ -10,2 +10,13 @@ # Changelog

## [7.2.0]
### Added
- Add two new controller state metadata properties: `includeInStateLogs` and `usedInUi` ([#6473](https://github.com/MetaMask/core/pull/6473))
### Changed
- Bump `@metamask/utils` from `^11.2.0` to `^11.8.1` ([#6054](https://github.com/MetaMask/core/pull/6054), [#6588](https://github.com/MetaMask/core/pull/6588), [#6708](https://github.com/MetaMask/core/pull/6708))
- Bump `@metamask/base-controller` from `^8.0.0` to `^8.4.1` ([#5722](https://github.com/MetaMask/core/pull/5722), [#6284](https://github.com/MetaMask/core/pull/6284), [#6355](https://github.com/MetaMask/core/pull/6355), [#6465](https://github.com/MetaMask/core/pull/6465), [#6632](https://github.com/MetaMask/core/pull/6632), [#6807](https://github.com/MetaMask/core/pull/6807))
## [7.1.3]

@@ -273,3 +284,4 @@

[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/approval-controller@7.1.3...HEAD
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/approval-controller@7.2.0...HEAD
[7.2.0]: https://github.com/MetaMask/core/compare/@metamask/approval-controller@7.1.3...@metamask/approval-controller@7.2.0
[7.1.3]: https://github.com/MetaMask/core/compare/@metamask/approval-controller@7.1.2...@metamask/approval-controller@7.1.3

@@ -276,0 +288,0 @@ [7.1.2]: https://github.com/MetaMask/core/compare/@metamask/approval-controller@7.1.1...@metamask/approval-controller@7.1.2

@@ -27,5 +27,20 @@ "use strict";

const stateMetadata = {
pendingApprovals: { persist: false, anonymous: true },
pendingApprovalCount: { persist: false, anonymous: false },
approvalFlows: { persist: false, anonymous: false },
pendingApprovals: {
includeInStateLogs: true,
persist: false,
anonymous: true,
usedInUi: true,
},
pendingApprovalCount: {
includeInStateLogs: true,
persist: false,
anonymous: false,
usedInUi: true,
},
approvalFlows: {
includeInStateLogs: true,
persist: false,
anonymous: false,
usedInUi: true,
},
};

@@ -32,0 +47,0 @@ const getAlreadyPendingMessage = (origin, type) => `Request of type '${type}' already pending for origin ${origin}. Please wait.`;

@@ -24,5 +24,20 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {

const stateMetadata = {
pendingApprovals: { persist: false, anonymous: true },
pendingApprovalCount: { persist: false, anonymous: false },
approvalFlows: { persist: false, anonymous: false },
pendingApprovals: {
includeInStateLogs: true,
persist: false,
anonymous: true,
usedInUi: true,
},
pendingApprovalCount: {
includeInStateLogs: true,
persist: false,
anonymous: false,
usedInUi: true,
},
approvalFlows: {
includeInStateLogs: true,
persist: false,
anonymous: false,
usedInUi: true,
},
};

@@ -29,0 +44,0 @@ const getAlreadyPendingMessage = (origin, type) => `Request of type '${type}' already pending for origin ${origin}. Please wait.`;

+3
-3
{
"name": "@metamask/approval-controller",
"version": "7.1.3",
"version": "7.2.0",
"description": "Manages requests that require user approval",

@@ -50,5 +50,5 @@ "keywords": [

"dependencies": {
"@metamask/base-controller": "^8.0.0",
"@metamask/base-controller": "^8.4.1",
"@metamask/rpc-errors": "^7.0.2",
"@metamask/utils": "^11.1.0",
"@metamask/utils": "^11.8.1",
"nanoid": "^3.3.8"

@@ -55,0 +55,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet