Skip to content

38.0.0

Choose a tag to compare

@github-actions github-actions released this 20 Dec 18:39
· 5545 commits to main since this release
0939ae6

@metamask/announcement-controller

Changed

  • BREAKING: Migrate to BaseControllerV2 (#959)
    • The announcement controller now extends BaseControllerV2 rather than BaseController, which includes the following changes:
      • The constructor now accepts a single "args" object rather than positional parameters.
      • A restricted controller messenger instance must be passed into the constructor.
      • The controller configuration has been replaced by an allAnnouncements constructor parameter.
      • The following properties previously inherited from BaseController are no longer present:
        • defaultConfig
        • defaultState
        • disabled
        • config
        • state
      • The following methods previously inherited from BaseController are no longer present:
        • configure
        • notify
        • subscribe
        • unsubscribe
        • update
      • The name property is now readonly.

@metamask/assets-controllers

Changed

  • Export isTokenDetectionSupportedForNetwork function (#1034)
  • Update @metamask/contract-metadata from 1.35.0 to 2.1.0 (#1013)

Fixed

  • Fix token controller state updates (#1015)
    • Attempts to empty the list of "added", "ignored", or "detected" tokens were not saved in state correctly, resulting in that operation being undone after switching account or network.