Skip to content

1204.0.0

Choose a tag to compare

@github-actions github-actions released this 24 Aug 13:39
ab8d4a0

@metamask/wallet 12.0.0

Added

  • Add optional instanceOptions.remoteFeatureFlagController.getCanonicalProfileId constructor option to RemoteFeatureFlagController for threshold flag segmentation (#9325)
  • Add optional instanceOptions.remoteFeatureFlagController.metaMetricsFlags constructor option to RemoteFeatureFlagController to segment flags by MetaMetrics ID (#9325)
  • BREAKING: Wire ConfigRegistryApiService and ConfigRegistryController into the default wallet initialization (#9928)
    • Adds a required configRegistryApiService slot to instanceOptions with a required env (ConfigRegistryApiEnv) and optional fetch and policyOptions. fetch defaults to globalThis.fetch via ConfigRegistryApiService.
    • Adds an optional configRegistryController slot to instanceOptions for optional pollingInterval and fallbackConfig.
    • ConfigRegistryController delegates KeyringController:getState, RemoteFeatureFlagController:getState, and ConfigRegistryApiService:fetchConfig, and subscribes to KeyringController:unlock, KeyringController:lock, and RemoteFeatureFlagController:stateChange.
    • Consumers that pass their own root messenger and already wire ConfigRegistryApiService / ConfigRegistryController must remove their own before upgrading, or the duplicate registration will collide.