Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ linkStyle default opacity:0.5
app_metadata_controller --> messenger;
approval_controller --> base_controller;
approval_controller --> messenger;
assets_controller --> base_controller;
assets_controller --> messenger;
assets_controllers --> account_tree_controller;
assets_controllers --> accounts_controller;
assets_controllers --> approval_controller;
Expand Down Expand Up @@ -352,6 +354,7 @@ linkStyle default opacity:0.5
profile_metrics_controller --> messenger;
profile_metrics_controller --> polling_controller;
profile_metrics_controller --> profile_sync_controller;
profile_metrics_controller --> transaction_controller;
profile_sync_controller --> address_book_controller;
profile_sync_controller --> base_controller;
profile_sync_controller --> keyring_controller;
Expand Down
9 changes: 9 additions & 0 deletions packages/profile-metrics-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- `ProfileMetricsController` contructor now accepts an optional `initialDelayDuration` parameter ([#7624](https://github.com/MetaMask/core/pull/7624))
- The parameter can be used to override the default time-based delay for the first data collection after opt-in
- Add `skipInitialDelay()` method to `ProfileMetricsController` ([#7624](https://github.com/MetaMask/core/pull/7624))
- The method can be also called through the `ProfileMetricsController:skipInitialDelay` action via messenger

### Changed

- **BREAKING:** `ProileMetricsControllerMessenger` now requires the `TransactionController:transactionSubmitted` action to be allowed ([#7624](https://github.com/MetaMask/core/pull/7624))
- Set time-based delay for first `ProfileMetricsController` data collection after opt-in ([#7624](https://github.com/MetaMask/core/pull/7624))
- Upgrade `@metamask/utils` from `^11.8.1` to `^11.9.0` ([#7511](https://github.com/MetaMask/core/pull/7511))
- Bump `@metamask/controller-utils` from `^11.16.0` to `^11.18.0` ([#7534](https://github.com/MetaMask/core/pull/7534), [#7583](https://github.com/MetaMask/core/pull/7583))
- Bump `@metamask/accounts-controller` from `^35.0.0` to `^35.0.1` ([#7604](https://github.com/MetaMask/core/pull/7604))
Expand Down
1 change: 1 addition & 0 deletions packages/profile-metrics-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"@metamask/messenger": "^0.3.0",
"@metamask/polling-controller": "^16.0.1",
"@metamask/profile-sync-controller": "^27.0.0",
"@metamask/transaction-controller": "^62.9.1",
"@metamask/utils": "^11.9.0",
"async-mutex": "^0.5.0"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* This file is auto generated by `scripts/generate-method-action-types.ts`.
* Do not edit manually.
*/

import type { ProfileMetricsController } from './ProfileMetricsController';

/**
* Skip the initial delay period by setting the end timestamp to the current time.
*/
export type ProfileMetricsControllerSkipInitialDelayAction = {
type: `ProfileMetricsController:skipInitialDelay`;
handler: ProfileMetricsController['skipInitialDelay'];
};

/**
* Union of all ProfileMetricsController action types.
*/
export type ProfileMetricsControllerMethodActions =
ProfileMetricsControllerSkipInitialDelayAction;
Loading
Loading