@metamask/approval-controller
Advanced tools
Comparing version 4.1.0 to 5.0.0
@@ -9,2 +9,8 @@ # Changelog | ||
## [5.0.0] | ||
### Changed | ||
- **BREAKING:** Bump `@metamask/base-controller` to ^4.0.0 (TODO: THIS PR) | ||
- This is breaking because the type of the `messenger` has backward-incompatible changes. See the changelog for this package for more. | ||
- Bump `@metamask/utils` to ^8.2.0 ([#1957](https://github.com/MetaMask/core/pull/1957)) | ||
## [4.1.0] | ||
@@ -95,3 +101,4 @@ ### Added | ||
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/approval-controller@4.1.0...HEAD | ||
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/approval-controller@5.0.0...HEAD | ||
[5.0.0]: https://github.com/MetaMask/core/compare/@metamask/approval-controller@4.1.0...@metamask/approval-controller@5.0.0 | ||
[4.1.0]: https://github.com/MetaMask/core/compare/@metamask/approval-controller@4.0.1...@metamask/approval-controller@4.1.0 | ||
@@ -98,0 +105,0 @@ [4.0.1]: https://github.com/MetaMask/core/compare/@metamask/approval-controller@4.0.0...@metamask/approval-controller@4.0.1 |
@@ -1,6 +0,5 @@ | ||
import type { RestrictedControllerMessenger } from '@metamask/base-controller'; | ||
import { BaseControllerV2 } from '@metamask/base-controller'; | ||
import type { ControllerGetStateAction } from '@metamask/base-controller'; | ||
import { BaseController, type ControllerStateChangeEvent, type RestrictedControllerMessenger } from '@metamask/base-controller'; | ||
import type { JsonRpcError, DataWithOptionalCause } from '@metamask/rpc-errors'; | ||
import type { Json, OptionalField } from '@metamask/utils'; | ||
import type { Patch } from 'immer'; | ||
export declare const ORIGIN_METAMASK = "metamask"; | ||
@@ -148,11 +147,5 @@ export declare const APPROVAL_TYPE_RESULT_ERROR = "result_error"; | ||
export declare type ErrorResult = Record<string, never>; | ||
export declare type ApprovalStateChange = { | ||
type: `${typeof controllerName}:stateChange`; | ||
payload: [ApprovalControllerState, Patch[]]; | ||
}; | ||
export declare type ApprovalStateChange = ControllerStateChangeEvent<typeof controllerName, ApprovalControllerState>; | ||
export declare type ApprovalControllerEvents = ApprovalStateChange; | ||
export declare type GetApprovalsState = { | ||
type: `${typeof controllerName}:getState`; | ||
handler: () => ApprovalControllerState; | ||
}; | ||
export declare type GetApprovalsState = ControllerGetStateAction<typeof controllerName, ApprovalControllerState>; | ||
export declare type ClearApprovalRequests = { | ||
@@ -212,3 +205,3 @@ type: `${typeof controllerName}:clearRequests`; | ||
*/ | ||
export declare class ApprovalController extends BaseControllerV2<typeof controllerName, ApprovalControllerState, ApprovalControllerMessenger> { | ||
export declare class ApprovalController extends BaseController<typeof controllerName, ApprovalControllerState, ApprovalControllerMessenger> { | ||
#private; | ||
@@ -215,0 +208,0 @@ /** |
@@ -57,3 +57,3 @@ "use strict"; | ||
*/ | ||
class ApprovalController extends base_controller_1.BaseControllerV2 { | ||
class ApprovalController extends base_controller_1.BaseController { | ||
/** | ||
@@ -60,0 +60,0 @@ * Construct an Approval controller. |
{ | ||
"name": "@metamask/approval-controller", | ||
"version": "4.1.0", | ||
"version": "5.0.0", | ||
"description": "Manages requests that require user approval", | ||
@@ -27,15 +27,15 @@ "keywords": [ | ||
"publish:preview": "yarn npm publish --tag preview", | ||
"test": "jest", | ||
"test": "jest --reporters=jest-silent-reporter", | ||
"test:clean": "jest --clearCache", | ||
"test:verbose": "jest --verbose", | ||
"test:watch": "jest --watch" | ||
}, | ||
"dependencies": { | ||
"@metamask/base-controller": "^3.2.3", | ||
"@metamask/base-controller": "^4.0.0", | ||
"@metamask/rpc-errors": "^6.1.0", | ||
"@metamask/utils": "^8.1.0", | ||
"immer": "^9.0.6", | ||
"@metamask/utils": "^8.2.0", | ||
"nanoid": "^3.1.31" | ||
}, | ||
"devDependencies": { | ||
"@metamask/auto-changelog": "^3.4.0", | ||
"@metamask/auto-changelog": "^3.4.3", | ||
"@types/jest": "^27.4.1", | ||
@@ -42,0 +42,0 @@ "deepmerge": "^4.2.2", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
110397
4
998
+ Added@metamask/base-controller@4.1.1(transitive)
- Removedimmer@^9.0.6
- Removed@metamask/base-controller@3.2.3(transitive)
Updated@metamask/utils@^8.2.0