Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 2.53 KB

File metadata and controls

47 lines (31 loc) · 2.53 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Added

  • Add connectivityControllerSelectors with selectConnectivityStatus and selectIsOffline selectors (#7701)
    • selectConnectivityStatus returns the current connectivity status from the controller state
    • selectIsOffline is a memoized selector that returns true when the device is offline

Changed

  • Bump @metamask/messenger from ^1.0.0 to ^1.2.0 (#8364, #8373, #8632)
  • Bump @metamask/base-controller from ^9.0.1 to ^9.1.0 (#8457)

Added

  • Add init method to asynchronously fetch and set the initial connectivity status from the adapter (#7679)
    • The controller now initializes with a default state (online) and requires calling init() to fetch the actual status
    • This method can be called through the messenger action ConnectivityController:init
  • Add setConnectivityStatus method to manually set connectivity status (#7676)
    • The method is exposed as a messenger action ConnectivityController:setConnectivityStatus

Changed

  • BREAKING: ConnectivityAdapter.getStatus() must now return a Promise<ConnectivityStatus> (async) (#7679)
    • Adapter implementations must update their getStatus() method to return a Promise
    • This change enables asynchronous initialization of the controller via the init() method
  • Bump @metamask/base-controller from ^9.0.0 to ^9.0.1 (#8317)
  • Bump @metamask/messenger from ^0.3.0 to ^1.0.0 (#8317)

Added

  • Initial release (#7623)