Skip to content

Commit 0f39c68

Browse files
committed
Merge remote-tracking branch 'origin/mikesposito/messenger/approval-controller' into mikesposito/messenger/polling-controllers
* origin/mikesposito/messenger/approval-controller: Update changelogs following branch update Update messagingSystem references to messenger
2 parents 1eedb0b + 998ffb9 commit 0f39c68

File tree

6 files changed

+41
-30
lines changed

6 files changed

+41
-30
lines changed

packages/approval-controller/CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- **BREAKING:** Use new `Messenger` from `@metamask/messenger` ([#6386](https://github.com/MetaMask/core/pull/6386))
13+
- Previously, `ApprovalController` accepted a `RestrictedMessenger` instance from `@metamask/base-controller`.
14+
1015
## [7.2.1]
1116

1217
### Changed
@@ -21,8 +26,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2126

2227
### Changed
2328

24-
- **BREAKING:** Use new `Messenger` from `@metamask/messenger` ([#6386](https://github.com/MetaMask/core/pull/6386))
25-
- Previously, `ApprovalController` accepted a `RestrictedMessenger` instance from `@metamask/base-controller`.
2629
- Bump `@metamask/utils` from `^11.2.0` to `^11.8.1` ([#6054](https://github.com/MetaMask/core/pull/6054), [#6588](https://github.com/MetaMask/core/pull/6588), [#6708](https://github.com/MetaMask/core/pull/6708))
2730
- Bump `@metamask/base-controller` from `^8.0.0` to `^8.4.1` ([#5722](https://github.com/MetaMask/core/pull/5722), [#6284](https://github.com/MetaMask/core/pull/6284), [#6355](https://github.com/MetaMask/core/pull/6355), [#6465](https://github.com/MetaMask/core/pull/6465), [#6632](https://github.com/MetaMask/core/pull/6632), [#6807](https://github.com/MetaMask/core/pull/6807))
2831

packages/assets-controllers/CHANGELOG.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Changed
1111

12+
- **BREAKING:** Migrate the following controllers to the new `Messenger` from `@metamask/messenger` ([#6444](https://github.com/MetaMask/core/pull/6444))
13+
- `AccountTrackerController`
14+
- `CurrencyRateController`
15+
- `DeFiPositionController`
16+
- `MultichainAssetsRatesController`
17+
- `TokenBalancesController`
18+
- `TokenDetectionController`
19+
- `TokenListController`
20+
- `TokenRatesController`
21+
- **BREAKING:** Migrate `AssetsContractController`, `NftController`, and `TokensController` to new `Messenger` from `@metamask/messenger` ([#6386](https://github.com/MetaMask/core/pull/6386))
22+
- Previously, the controllers accepted a `RestrictedMessenger` instance from `@metamask/base-controller`.
1223
- Bump `@metamask/polling-controller` from `^14.0.1` to `^14.0.2` ([#6940](https://github.com/MetaMask/core/pull/6940))
1324

1425
## [83.1.0]
@@ -44,17 +55,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4455

4556
### Changed
4657

47-
- **BREAKING:** Migrate the following controllers to the new `Messenger` from `@metamask/messenger` ([#6444](https://github.com/MetaMask/core/pull/6444))
48-
- `AccountTrackerController`
49-
- `CurrencyRateController`
50-
- `DeFiPositionController`
51-
- `MultichainAssetsRatesController`
52-
- `TokenBalancesController`
53-
- `TokenDetectionController`
54-
- `TokenListController`
55-
- `TokenRatesController`
56-
- **BREAKING:** Migrate `AssetsContractController`, `NftController`, and `TokensController` to new `Messenger` from `@metamask/messenger` ([#6386](https://github.com/MetaMask/core/pull/6386))
57-
- Previously, the controllers accepted a `RestrictedMessenger` instance from `@metamask/base-controller`.
5858
- Batch `OnAssetConversion` and `OnAssetsMarketData` requests to non-EVM account Snaps ([#6886](https://github.com/MetaMask/core/pull/6886))
5959

6060
## [81.0.1]

packages/gas-fee-controller/CHANGELOG.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Export `GasFeeMessenger` type ([#6386](https://github.com/MetaMask/core/pull/6386))
13+
14+
### Changed
15+
16+
- **BREAKING:** Use new `Messenger` from `@metamask/messenger` ([#6386](https://github.com/MetaMask/core/pull/6386))
17+
- Previously, `GasFeeController` accepted a `RestrictedMessenger` instance from `@metamask/base-controller`.
18+
1019
## [24.1.1]
1120

1221
### Changed
@@ -20,12 +29,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2029
### Added
2130

2231
- Add two new controller state metadata properties: `includeInStateLogs` and `usedInUi` ([#6473](https://github.com/MetaMask/core/pull/6473))
23-
- Export `GasFeeMessenger` type ([#6386](https://github.com/MetaMask/core/pull/6386), [#6444](https://github.com/MetaMask/core/pull/6444))
2432

2533
### Changed
2634

27-
- **BREAKING:** Use new `Messenger` from `@metamask/messenger` ([#6386](https://github.com/MetaMask/core/pull/6386))
28-
- Previously, `GasFeeController` accepted a `RestrictedMessenger` instance from `@metamask/base-controller`.
2935
- Bump `@metamask/base-controller` from `^8.0.1` to `^8.4.1` ([#6284](https://github.com/MetaMask/core/pull/6284), [#6355](https://github.com/MetaMask/core/pull/6355), [#6465](https://github.com/MetaMask/core/pull/6465), [#6632](https://github.com/MetaMask/core/pull/6632), [#6807](https://github.com/MetaMask/core/pull/6807))
3036
- Bump `@metamask/controller-utils` from `^11.10.0` to `^11.14.1` ([#6069](https://github.com/MetaMask/core/pull/6069), [#6303](https://github.com/MetaMask/core/pull/6303), [#6620](https://github.com/MetaMask/core/pull/6620), [#6629](https://github.com/MetaMask/core/pull/6629), [#6807](https://github.com/MetaMask/core/pull/6807))
3137
- Bump `@metamask/utils` from `^11.2.0` to `^11.8.1` ([#6054](https://github.com/MetaMask/core/pull/6054), [#6588](https://github.com/MetaMask/core/pull/6588), [#6708](https://github.com/MetaMask/core/pull/6708))

packages/network-controller/CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
## [24.3.1]
11-
1210
### Changed
1311

1412
- **BREAKING:** Use new `Messenger` from `@metamask/messenger` ([#6386](https://github.com/MetaMask/core/pull/6386))
1513
- Previously, `NetworkController` accepted a `RestrictedMessenger` instance from `@metamask/base-controller`.
14+
15+
## [24.3.1]
16+
17+
### Changed
18+
1619
- Bump `@metamask/base-controller` from `^8.4.1` to `^8.4.2` ([#6917](https://github.com/MetaMask/core/pull/6917))
1720

1821
## [24.3.0]

packages/transaction-controller/CHANGELOG.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- **BREAKING:** Use new `Messenger` from `@metamask/messenger` ([#6386](https://github.com/MetaMask/core/pull/6386))
13+
- Previously, `TransactionController` accepted a `RestrictedMessenger` instance from `@metamask/base-controller`.
14+
1015
## [60.10.0]
1116

1217
### Added
@@ -48,11 +53,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4853

4954
- Add `txMeta` property to `GetSimulationConfig` callback ([#6833](https://github.com/MetaMask/core/pull/6833))
5055

51-
### Changed
52-
53-
- **BREAKING:** Use new `Messenger` from `@metamask/messenger` ([#6386](https://github.com/MetaMask/core/pull/6386))
54-
- Previously, `TransactionController` accepted a `RestrictedMessenger` instance from `@metamask/base-controller`.
55-
5656
## [60.6.1]
5757

5858
### Changed

packages/transaction-controller/src/TransactionController.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2816,11 +2816,11 @@ export class TransactionController extends BaseController<
28162816
}
28172817

28182818
if (transactionMeta.type === TransactionType.swap) {
2819-
this.messagingSystem.publish('TransactionController:transactionNewSwap', {
2819+
this.messenger.publish('TransactionController:transactionNewSwap', {
28202820
transactionMeta,
28212821
});
28222822
} else if (transactionMeta.type === TransactionType.swapApproval) {
2823-
this.messagingSystem.publish(
2823+
this.messenger.publish(
28242824
'TransactionController:transactionNewSwapApproval',
28252825
{ transactionMeta },
28262826
);
@@ -2837,7 +2837,7 @@ export class TransactionController extends BaseController<
28372837
...transactionMeta,
28382838
txParams: {
28392839
...transactionMeta.txParams,
2840-
from: this.messagingSystem.call('AccountsController:getSelectedAccount')
2840+
from: this.messenger.call('AccountsController:getSelectedAccount')
28412841
.address,
28422842
},
28432843
};
@@ -2857,10 +2857,9 @@ export class TransactionController extends BaseController<
28572857
'Generated from user operation',
28582858
);
28592859

2860-
this.messagingSystem.publish(
2861-
'TransactionController:transactionStatusUpdated',
2862-
{ transactionMeta: updatedTransactionMeta },
2863-
);
2860+
this.messenger.publish('TransactionController:transactionStatusUpdated', {
2861+
transactionMeta: updatedTransactionMeta,
2862+
});
28642863
}
28652864

28662865
#addMetadata(transactionMeta: TransactionMeta) {

0 commit comments

Comments
 (0)