Skip to content

Commit

Permalink
Rename AnnouncementMessenger to AnnouncementControllerMessenger
Browse files Browse the repository at this point in the history
This reverts the sole functional change.
  • Loading branch information
Gudahtt committed Jan 10, 2025
1 parent aa62655 commit b3e8ec5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions packages/announcement-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Bump `@metamask/base-controller` from `^7.0.0` to `^7.1.0` ([#5079](https://github.com/MetaMask/core/pull/5079))
- Rename `AnnouncementControllerMessenger` to `AnnouncementMessenger` ([#5092](https://github.com/MetaMask/core/pull/5092))
- The old name is preserved as an alias, so this is not a breaking change.

## [7.0.2]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const metadata = {
},
};

export type AnnouncementMessenger = RestrictedMessenger<
export type AnnouncementControllerMessenger = RestrictedMessenger<
typeof controllerName,
AnnouncementControllerActions,
AnnouncementControllerEvents,
Expand All @@ -80,7 +80,7 @@ export type AnnouncementMessenger = RestrictedMessenger<
export class AnnouncementController extends BaseController<
typeof controllerName,
AnnouncementControllerState,
AnnouncementMessenger
AnnouncementControllerMessenger
> {
/**
* Creates a AnnouncementController instance.
Expand All @@ -95,7 +95,7 @@ export class AnnouncementController extends BaseController<
state,
allAnnouncements,
}: {
messenger: AnnouncementMessenger;
messenger: AnnouncementControllerMessenger;
state?: AnnouncementControllerState;
allAnnouncements: AnnouncementMap;
}) {
Expand Down
3 changes: 1 addition & 2 deletions packages/announcement-controller/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export type {
AnnouncementControllerEvents,
AnnouncementControllerGetStateAction,
AnnouncementControllerStateChangeEvent,
AnnouncementMessenger,
AnnouncementMessenger as AnnouncementControllerMessenger,
AnnouncementControllerMessenger,
} from './AnnouncementController';
export { AnnouncementController } from './AnnouncementController';

0 comments on commit b3e8ec5

Please sign in to comment.