Releases: MetaMask/eth-json-rpc-middleware
Releases · MetaMask/eth-json-rpc-middleware
16.0.0
Added
- Support updated EIP-5792 specification (#363)
- Add optional
id
toSendCallsParams
. - Add optional
capabilities
to each call inSendCallsParams
. - Add
optional
property to both top-level and call-level capabilities. - Add
SendCallsResult
type. - Add
id
,version
, and optionalcapabilities
toGetCallsStatusResult
. - Add
GetCallsStatusCode
enum. - Add
GetCallsStatusHook
type. - Add optional
chainIds
argument toGetCapabilitiesParams
.
- Add optional
Changed
- BREAKING: Support updated EIP-5792 specification (#363)
- Return
SendCallsResult
fromwallet_sendCalls
instead ofstring
. - Change
GetCallsStatusParams
to containHex
instead ofstring
. - Change
status
inGetCallsStatusResult
tonumber
instead ofstring
. - Replace
GetTransactionReceiptsByBatchIdHook
withGetCallsStatusHook
.
- Return
Removed
- BREAKING: Support updated EIP-5792 specification (#363)
- Remove
GetCallsStatusReceipt
type. - Remove
GetTransactionReceiptsByBatchIdHook
type.
- Remove
15.3.0
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
- Add support for RPC methods:
15.2.0
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; } })
, whereAbstractRpcService
matches the same interface from@metamask/network-controller
- This allows us to support automatic failover to a secondary node when the network goes down
- The new, recommended function signature is now
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
15.1.1
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
15.0.1
15.0.0
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
andprocessEthSignMessage
have been removed
- The functions