Skip to content

Commit

Permalink
Rename AddressBookMessenger to AddressBookControllerMessenger
Browse files Browse the repository at this point in the history
This reverts the sole functional change in this PR.
  • Loading branch information
Gudahtt committed Jan 10, 2025
1 parent 1f0b0fb commit 859b348
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions packages/address-book-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 `AddressBookControllerMessenger` to `AddressBookMessenger` ([#5091](https://github.com/MetaMask/core/pull/5091))
- The old name is preserved as an alias, so this is not a breaking change.

## [6.0.2]

Expand Down
6 changes: 3 additions & 3 deletions packages/address-book-controller/src/AddressBookController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const getDefaultAddressBookControllerState =
/**
* The messenger of the {@link AddressBookController} for communication.
*/
export type AddressBookMessenger = RestrictedMessenger<
export type AddressBookControllerMessenger = RestrictedMessenger<
typeof controllerName,
AddressBookControllerActions,
AddressBookControllerEvents,
Expand All @@ -136,7 +136,7 @@ export type AddressBookMessenger = RestrictedMessenger<
export class AddressBookController extends BaseController<
typeof controllerName,
AddressBookControllerState,
AddressBookMessenger
AddressBookControllerMessenger
> {
/**
* Creates an AddressBookController instance.
Expand All @@ -149,7 +149,7 @@ export class AddressBookController extends BaseController<
messenger,
state,
}: {
messenger: AddressBookMessenger;
messenger: AddressBookControllerMessenger;
state?: Partial<AddressBookControllerState>;
}) {
const mergedState = { ...getDefaultAddressBookControllerState(), ...state };
Expand Down
3 changes: 1 addition & 2 deletions packages/address-book-controller/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ export type {
AddressBookControllerActions,
AddressBookControllerStateChangeEvent,
AddressBookControllerEvents,
AddressBookMessenger,
AddressBookMessenger as AddressBookControllerMessenger,
AddressBookControllerMessenger,
ContactEntry,
} from './AddressBookController';
export {
Expand Down

0 comments on commit 859b348

Please sign in to comment.