@metamask/notification-controller
Advanced tools
Comparing version 3.1.3 to 4.0.0
@@ -9,2 +9,8 @@ # Changelog | ||
## [4.0.0] | ||
### Changed | ||
- **BREAKING:** Bump `@metamask/base-controller` to ^4.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063)) | ||
- 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)) | ||
## [3.1.3] | ||
@@ -54,3 +60,4 @@ ### Changed | ||
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/notification-controller@3.1.3...HEAD | ||
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/notification-controller@4.0.0...HEAD | ||
[4.0.0]: https://github.com/MetaMask/core/compare/@metamask/notification-controller@3.1.3...@metamask/notification-controller@4.0.0 | ||
[3.1.3]: https://github.com/MetaMask/core/compare/@metamask/notification-controller@3.1.2...@metamask/notification-controller@3.1.3 | ||
@@ -57,0 +64,0 @@ [3.1.2]: https://github.com/MetaMask/core/compare/@metamask/notification-controller@3.1.1...@metamask/notification-controller@3.1.2 |
@@ -1,4 +0,3 @@ | ||
import type { RestrictedControllerMessenger } from '@metamask/base-controller'; | ||
import { BaseControllerV2 } from '@metamask/base-controller'; | ||
import type { Patch } from 'immer'; | ||
import type { ControllerGetStateAction, ControllerStateChangeEvent, RestrictedControllerMessenger } from '@metamask/base-controller'; | ||
import { BaseController } from '@metamask/base-controller'; | ||
/** | ||
@@ -27,10 +26,4 @@ * @typedef NotificationControllerState | ||
declare const name = "NotificationController"; | ||
export declare type NotificationControllerStateChange = { | ||
type: `${typeof name}:stateChange`; | ||
payload: [NotificationControllerState, Patch[]]; | ||
}; | ||
export declare type GetNotificationControllerState = { | ||
type: `${typeof name}:getState`; | ||
handler: () => NotificationControllerState; | ||
}; | ||
export declare type NotificationControllerStateChange = ControllerStateChangeEvent<typeof name, NotificationControllerState>; | ||
export declare type GetNotificationControllerState = ControllerGetStateAction<typeof name, NotificationControllerState>; | ||
export declare type ShowNotification = { | ||
@@ -57,3 +50,3 @@ type: `${typeof name}:show`; | ||
*/ | ||
export declare class NotificationController extends BaseControllerV2<typeof name, NotificationControllerState, NotificationControllerMessenger> { | ||
export declare class NotificationController extends BaseController<typeof name, NotificationControllerState, NotificationControllerMessenger> { | ||
/** | ||
@@ -60,0 +53,0 @@ * Creates a NotificationController instance. |
@@ -17,3 +17,3 @@ "use strict"; | ||
*/ | ||
class NotificationController extends base_controller_1.BaseControllerV2 { | ||
class NotificationController extends base_controller_1.BaseController { | ||
/** | ||
@@ -20,0 +20,0 @@ * Creates a NotificationController instance. |
{ | ||
"name": "@metamask/notification-controller", | ||
"version": "3.1.3", | ||
"version": "4.0.0", | ||
"description": "Manages display of notifications within MetaMask", | ||
@@ -27,14 +27,14 @@ "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/utils": "^8.1.0", | ||
"immer": "^9.0.6", | ||
"@metamask/base-controller": "^4.0.0", | ||
"@metamask/utils": "^8.2.0", | ||
"nanoid": "^3.1.31" | ||
}, | ||
"devDependencies": { | ||
"@metamask/auto-changelog": "^3.1.0", | ||
"@metamask/auto-changelog": "^3.4.3", | ||
"@types/jest": "^27.4.1", | ||
@@ -41,0 +41,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
23598
3
198
+ 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