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.
- Add
connectivityControllerSelectorswithselectConnectivityStatusandselectIsOfflineselectors (#7701)selectConnectivityStatusreturns the current connectivity status from the controller stateselectIsOfflineis a memoized selector that returnstruewhen the device is offline
- Bump
@metamask/messengerfrom^1.0.0to^1.2.0(#8364, #8373, #8632) - Bump
@metamask/base-controllerfrom^9.0.1to^9.1.0(#8457)
- Add
initmethod 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
- The controller now initializes with a default state (online) and requires calling
- Add
setConnectivityStatusmethod to manually set connectivity status (#7676)- The method is exposed as a messenger action
ConnectivityController:setConnectivityStatus
- The method is exposed as a messenger action
- BREAKING:
ConnectivityAdapter.getStatus()must now return aPromise<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
- Adapter implementations must update their
- Bump
@metamask/base-controllerfrom^9.0.0to^9.0.1(#8317) - Bump
@metamask/messengerfrom^0.3.0to^1.0.0(#8317)
- Initial release (#7623)