Socket
Socket
Sign inDemoInstall

@metamask/notification-controller

Package Overview
Dependencies
Maintainers
12
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/notification-controller - npm Package Compare versions

Comparing version 3.1.3 to 4.0.0

9

CHANGELOG.md

@@ -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

17

dist/NotificationController.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc