Releases: MetaMask/eth-json-rpc-middleware
Releases · MetaMask/eth-json-rpc-middleware
11.0.2
11.0.1
11.0.0
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.
- This changes the expected type of the
- BREAKING: Add new required parameters for the
fetch
middleware (#192, #190)- The required parameters are
fetch
andbtoa
. Previously we would either use the global by that name (if one existed), or a polyfill. Those polyfills have been removed.
- The required parameters are
- Replace
json-stable-stringify
withsafe-stable-stringify
(#104)- This should slightly improve performance of the inlight cache and block cache middleware
Removed
- BREAKING: Remove
providerFromEngine
andproviderFromMiddleware
(#194)- These are now provided by the package
@metamask/eth-json-rpc-provider
instead
- These are now provided by the package
- 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.
10.0.0
Changed
- BREAKING: Rename the package from
eth-json-rpc-middleware
to@metamask/eth-json-rpc-middleware
(#180) - Change all middleware request and response types to
unknown
(#183)- This more accurately reflects the expectations of the middleware, and the way they had been used. This was required to more easily compose this middleware with others that had non-matching types.
- The block cache and the inflight cache middleware types have been updated to include the
skipCache
request property (#178)- This property was always supported, but it was missing from the type.
9.0.1
9.0.0
8.1.0
8.0.2
8.0.1
8.0.0
Added
- BREAKING: Add
eth_signTransaction
support (#96)- We consider this breaking because a wallet application may not support this method, and would have to explicitly block it until its implications can be adequately represented to the user.
- Add
send
method to provider andethersProviderAsMiddleware
(#97)