Skip to content

15.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 30 Aug 21:03
· 1844 commits to main since this release
220249b

Changed

  • BREAKING: Update TokensController allTokens state structure to make network/chainID parent of account (#572)
    • The shape of allTokens state field on TokensController has been reorganized. Consumers of the TokensController will have to migrate existing token state to new shape.
  • BREAKING: ignoredTokens changed to allIgnoredTokens (#570)
    • a new state field on the TokensController - allIgnoredTokens - now manages ignoredTokens by network and accountAddress, ignoredTokens is now the array of token address strings (previously an array of full token objects) that have been hidden by the user for the currently active network and accountAddress pair. Consumers of the TokensController will have to migrate existing ignoredTokens array to allIgnoredTokens object.
  • BREAKING: Improve BaseControllerV2 messenger type (#556)
    • This is a breaking change, because anyone extending BaseControllerV2 will now be required to supply an additional generic parameter.
  • BREAKING: Remove redundant default export from util.ts (#574)
    • This is breaking for consumers who use the default import of the utils module, and will require using named imports instead.
  • BREAKING: Removing aggregator from TokenListToken (#564)
    • This is breaking because the the DynamicToken and TokenListToken types no longer contain an aggregators field. Consumers will have to remove aggregators for objects using this type.
  • BREAKING: Migrate ApprovalController to BaseControllerV2 (#555)
    • This is a breaking change because the BaseControllerV2 migration is breaking, and the 'resolve' method has been renamed to 'accept'.
  • Speed up token detection for most popular 1000 tokens (#568)
  • Cancel inflight request during chainId change and useStaticTokenList flag change (#571)
  • Update the token list API host (#563)
  • Bump @metamask/contract-metadata from 1.28.0 to 1.29.0 (#569)
  • Reduce frequency of token list updates (#561)
    • Previously it would update the token list upon any preference or network configuration change. Now it only restarts polling when the network switches or when the useStaticTokenList flag changes.