Skip to content

11.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 21 Feb 18:56
· 84 commits to main since this release
e7a1de5

Changed

  • BREAKING: Update eth-block-tracker to v7 (#196, #188)
    • This changes the expected type of the blockTracker parameter for the following functions:
      • createBlockCacheMiddleware
      • createBlockRefMiddleware
      • createBlockRefRewriteMiddleware
      • createBlockTrackerInspectorMiddleware
      • createRetryOnEmptyMiddleware
    • Only the type change is breaking; there is no functional change here.
  • BREAKING: Add new required parameters for the fetch middleware (#192, #190)
    • The required parameters are fetch and btoa. Previously we would either use the global by that name (if one existed), or a polyfill. Those polyfills have been removed.
  • Replace json-stable-stringify with safe-stable-stringify (#104)
    • This should slightly improve performance of the inlight cache and block cache middleware

Removed

  • BREAKING: Remove providerFromEngine and providerFromMiddleware (#194)
    • These are now provided by the package @metamask/eth-json-rpc-provider instead
  • BREAKING: Remove unnecessary suppressUnauthorized option (#193)

Fixed

  • BREAKING: Fix types for createWalletMiddleware (#111)
    • This middleware had previously included a number of errors, where the type contradicted the Ethereum JSON-RPC specification and how we've been using this middleware in practice. They should all now match the specification.