Skip to content

Latest commit

 

History

History
87 lines (60 loc) · 5.2 KB

File metadata and controls

87 lines (60 loc) · 5.2 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Changed

  • Bump @metamask/json-rpc-engine from ^10.2.1 to ^10.2.3 (#7856, #8078)

Added

  • Add prototype pollution validation for signTypedData methods (V1, V3, V4) to block dangerous properties (__proto__, constructor, prototype, etc.) in message data. (#7732)

Changed

  • Bump @metamask/eth-block-tracker from ^15.0.0 to ^15.0.1 (#7642)
  • Bump @metamask/json-rpc-engine from ^10.2.0 to ^10.2.1 (#7642)

Added

  • Support for wallet_getSupportedExecutionPermissions and wallet_getGrantedExecutionPermissions RPC methods (#7603)

Changed

  • Upgrade @metamask/utils from ^11.8.1 to ^11.9.0 (#7511)
  • BREAKING: Changed wallet_requestExecutionPermissions to comply with 7715 spec revisions.

Fixed

  • Include WalletContext in EIP-7715 requests (#7331)

Added

  • Add new function providerAsMiddlewareV2 for converting an InternalProvider into a JsonRpcEngine v2-compatible middleware (#7138)

Changed

  • BREAKING: Migrate all middleware from JsonRpcEngine to JsonRpcEngineV2 (#7065)
    • To continue using this package with the legacy JsonRpcEngine, use the asLegacyMiddleware backwards compatibility function.
  • BREAKING: Change the signatures of hooks for createWalletMiddleware (#7065)
    • To wit:
      • getAccounts takes an origin argument (string) instead of a JsonRpcRequest
      • processDecryptMessage and processEncryptionPublicKey take a MessageRequest from @metamask/message-manager instead of JsonRpcRequest
      • processPersonalMessage, processTransaction, processSignTransaction, processTypedMessage, processTypedMessageV3 and processTypedMessageV4 take a context as the third argument, before any other arguments
    • Be advised that request objects are now deeply frozen, and cannot be mutated.
  • BREAKING: Use InternalProvider instead of SafeEventEmitterProvider (#6796)
    • Wherever a SafeEventEmitterProvider was expected, an InternalProvider is now expected instead.
  • BREAKING: Stop retrying undefined results for methods that include a block tag parameter (#7001)
    • The retryOnEmpty middleware will now throw an error if it encounters an undefined result when dispatching a request with a later block number than the originally requested block number.
    • In practice, this should happen rarely if ever.
  • BREAKING: Migrate all uses of interface to type (#6885)
  • Bump @metamask/message-manager from ^14.0.0 to ^14.1.0 (#7202)
  • Bump @metamask/json-rpc-engine from ^10.1.1 to ^10.2.0 (#7202)
  • Bump @metamask/eth-json-rpc-provider from ^5.0.1 to ^6.0.0 (#7202)
  • Bump @metamask/eth-block-tracker from ^14.0.0 to ^15.0.0 (#7202)

Changed

  • BREAKING: Increase minimum Node.js version from ^18.16 to ^18.18 (#6866)
  • Bump @metamask/eth-block-tracker from ^12.2.1 to ^14.0.0 (#6866, #6883)
  • Bump @metamask/network-controller from ^24.2.2 to ^24.3.0 (#6883)
  • This package was migrated from MetaMask/eth-json-rpc-middleware to the MetaMask/core monorepo.