Skip to content

263.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 05 Dec 12:36
711ae34

@metamask/composable-controller 10.0.0

Changed

  • BREAKING: ComposableController constructor option controllers and generic type argument ChildControllers are re-defined from an array of controller instances to an object that maps controller names to controller instances (#4968)
  • BREAKING: ComposableController class field objects state and metadata exclude child controllers that do not extend from BaseController or BaseControllerV1. Any non-controller entries that are passed into the constructor will be removed automatically (#4968)
  • Bump devDependency @metamask/json-rpc-engine from ^9.0.3 to ^10.0.1 (#4798, #4862)

Fixed

  • BREAKING: ComposableController class field object metadata now assigns the StateMetadataProperty-type object { persist: true, anonymous: true } to each child controller name (#4968)
    • Previously, V2 child controllers were erroneously assigned their own metadata object. This issue was introduced in @metamask/base-controller@6.0.0.