Skip to content

293.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 04 Feb 20:05
67c7844

@metamask/controller-utils 11.5.0

Added

  • Add utility function createServicePolicy for reducing boilerplate for service classes (#5141, #5154, #5143, #5149, #5188, #5192, #5225)
    • Export constants DEFAULT_CIRCUIT_BREAK_DURATION, DEFAULT_DEGRADED_THRESHOLD, DEFAULT_MAX_CONSECUTIVE_FAILURES, and DEFAULT_MAX_RETRIES
    • Export types ServicePolicy and CreateServicePolicyOptions
    • Re-export BrokenCircuitError, CircuitState, handleAll, and handleWhen from cockatiel
    • Export CockatielEvent type, an alias of the Event type from cockatiel

Changed

  • Bump @metamask/utils from ^11.0.1 to ^11.1.0 (#5223)

@metamask/eth-json-rpc-provider 4.1.8

Changed

  • Bump @metamask/utils from ^11.0.1 to ^11.1.0 (#5223)

@metamask/json-rpc-engine 10.0.3

Changed

  • Bump @metamask/utils from ^11.0.1 to ^11.1.0 (#5223)

@metamask/network-controller 22.2.0

Added

  • Export AbstractRpcService type (#5263)

Changed

  • Bump @metamask/base-controller from ^7.0.0 to ^7.1.1 (#5079, #5135)
  • Bump @metamask/controller-utils from ^11.4.4 to ^11.5.0 (#5135, #5272)
  • Bump @metamask/eth-json-rpc-provider from ^4.1.6 to ^4.1.8 (#5082, #5272)
  • Bump @metamask/json-rpc-engine from ^10.0.1 to ^10.0.3 (#5082, #5272)
  • Bump @metamask/rpc-errors from ^7.0.1 to ^7.0.2 (#5080)
  • Bump @metamask/utils from ^10.0.0 to ^11.1.0 (#5080, #5223)

Fixed

  • Fix lookupNetwork so that it will no longer throw an error if networkDidChange subscriptions have been removed before it returns (#5116)
    • This error could occur if the NetworkController's messenger is cleared of subscriptions, as in a "destroy" step.
  • Fix race condition so that after adding a new RPC endpoint to a network, it is possible to access the new endpoint inside of a stateChange event listener via getNetworkConfigurationByNetworkClientId (#5122)
  • Fix selectAvailableNetworkClientIds so that it is properly memoized (#5193)