Releases: MetaMask/eth-json-rpc-middleware
Releases · MetaMask/eth-json-rpc-middleware
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
v14.0.2
14.0.1
14.0.0
Changed
- BREAKING: Adapt to EIP-1193 provider changes by replacing the deprecated
sendAsync
method with therequest
method (#317)- BREAKING: Refactor
providerAsMiddleware
and middleware functionsretryOnEmpty
,block-ref
to use therequest
method.
- BREAKING: Refactor
- Bump
@metamask/eth-block-tracker
from^10.0.0
to^11.0.1
(#323) - Bump
@metamask/eth-json-rpc-provider
from^4.0.0
to^4.1.1
(#323, #317) - Bump
@metamask/eth-sig-util
from^7.0.0
to^7.0.3
(#323) - Bump
@metamask/json-rpc-engine
from^9.0.0
to^9.0.2
(#323) - Bump
@metamask/rpc-errors
from^6.0.0
to^6.3.1
(#323) - Bump
@metamask/utils
from^8.1.0
to^9.1.0
(#323)