Skip to content

Releases: MetaMask/eth-json-rpc-middleware

16.0.0

13 Mar 13:32
3cc38eb
Compare
Choose a tag to compare

Added

  • Support updated EIP-5792 specification (#363)
    • Add optional id to SendCallsParams.
    • Add optional capabilities to each call in SendCallsParams.
    • Add optional property to both top-level and call-level capabilities.
    • Add SendCallsResult type.
    • Add id, version, and optional capabilities to GetCallsStatusResult.
    • Add GetCallsStatusCode enum.
    • Add GetCallsStatusHook type.
    • Add optional chainIds argument to GetCapabilitiesParams.

Changed

  • BREAKING: Support updated EIP-5792 specification (#363)
    • Return SendCallsResult from wallet_sendCalls instead of string.
    • Change GetCallsStatusParams to contain Hex instead of string.
    • Change status in GetCallsStatusResult to number instead of string.
    • Replace GetTransactionReceiptsByBatchIdHook with GetCallsStatusHook.

Removed

  • BREAKING: Support updated EIP-5792 specification (#363)
    • Remove GetCallsStatusReceipt type.
    • Remove GetTransactionReceiptsByBatchIdHook type.

15.3.0

24 Feb 20:58
813a025
Compare
Choose a tag to compare

Added

  • Support EIP-5792 (#359)
    • Add support for RPC methods:
      • wallet_sendCalls
      • wallet_getCallsStatus
      • wallet_getCapabilities
    • Add optional hooks to WalletMiddlewareOptions:
      • getCapabilities
      • getTransactionReceiptsByBatchId
      • processSendCalls
    • Add types:
      • GetCallsStatusParams
      • GetCallsStatusReceipt
      • GetCallsStatusResult
      • GetCapabilitiesHook
      • GetCapabilitiesParams
      • GetCapabilitiesResult
      • GetTransactionReceiptsByBatchIdHook
      • ProcessSendCallsHook
      • SendCalls
      • SendCallsParams

15.2.0

12 Feb 19:07
fb247ec
Compare
Choose a tag to compare

Added

  • Add a way to pass an RPC service to createFetchMiddleware (#357)
    • The new, recommended function signature is now createFetchMiddleware({ rpcService: AbstractRpcService; options?: { originHttpHeaderKey?: string; } }), where AbstractRpcService matches the same interface from @metamask/network-controller
    • This allows us to support automatic failover to a secondary node when the network goes down

Changed

  • Bump @metamask/utils to ^11.1.0 (#358)

Deprecated

  • Deprecate passing an RPC endpoint to createFetchMiddleware (#357)
    • See recommended function signature above
    • The existing signature createFetchMiddleware({ btoa: typeof btoa; fetch: typeof fetch; rpcUrl: string; originHttpHeaderKey?: string; }) will be removed in a future major version
  • Deprecate PayloadWithOrigin type (#357)
    • There is no replacement for this type; it will be removed in a future major version.

15.1.2

19 Dec 17:44
1105076
Compare
Choose a tag to compare

Changed

  • Fix validation of primary type for signTypedDataV3 and signTypedDataV4 (#353)
    • It was updated to handle undefined input

15.1.1

19 Dec 13:25
2f7d139
Compare
Choose a tag to compare

Changed

  • Bump @metamask/eth-block-tracker from ^11.0.3 to ^11.0.4 (#351)
  • Bump @metamask/eth-json-rpc-provider from ^4.1.5 to ^4.1.7 (#351)
  • Bump @metamask/eth-sig-util from ^7.0.3 to ^8.1.2 (#351)
  • Bump @metamask/json-rpc-engine from ^10.0.0 to ^10.0.2 (#351)
  • Bump @metamask/rpc-errors from ^7.0.0 to ^7.0.2 (#351)
  • Bump @metamask/utils from ^9.1.0 to ^11.0.1 (#351)

15.1.0

18 Dec 22:41
9db63df
Compare
Choose a tag to compare

Changed

  • Improved validation of primary type for signTypedDataV3 and signTypedDataV4 (#350)

15.0.1

05 Dec 14:56
4de470d
Compare
Choose a tag to compare

Changed

  • Bump @metamask/eth-block-tracker from ^11.0.1 to ^11.0.3 (#347)

15.0.0

17 Oct 08:38
5a67386
Compare
Choose a tag to compare

Changed

  • BREAKING: Update @metamask/rpc-errors from ^6.3.1 to ^7.0.0 (#342)
  • BREAKING: Update @metamask/json-rpc-engine from ^9.0.2 to ^10.0.0 (#342)
  • Bump @metamask/eth-json-rpc-provider from ^4.1.1 to ^4.1.5 (#342)

Removed

  • BREAKING: Remove eth_sign support (#320)
    • The functions ethSign and processEthSignMessage have been removed

v14.0.2

02 Oct 13:22
48218dc
Compare
Choose a tag to compare

Fixed

  • Allow the string "cosmos" in the "verifyingContract" field of EIP-712 signatures (#333)
    • This change was made to support Ethermint's EIP-712 implementation, which was broken by validation added in v14.0.0

14.0.1

04 Sep 17:56
7bce6e8
Compare
Choose a tag to compare

Fixed

  • Request validation should not throw if verifyingContract is not defined in typed signature (#328)