This repository was archived by the owner on Oct 16, 2025. It is now read-only.
Releases: MetaMask/eth-block-tracker
Releases · MetaMask/eth-block-tracker
Release list
13.0.0
12.2.1
Fixed
PollingBlockTracker.checkForLatestBlock()andgetLatestBlock()now clear the cached block afterblockResetduration when called and thePollingBlockTrackeris not polling. (#348)
12.2.0
Changed
PollingBlockTracker.getLatestBlock()now accepts an optional parameteruseCache(#340)- This option defaults to
true, but whenfalse, it ignores the cached block number and instead updates and returns a new block number, ensuring that the frequency of requests is limited to thepollingIntervalperiod
- This option defaults to
12.1.0
Changed
- Bump
@metamask/eth-json-rpc-providerfrom^4.1.5to^5.0.0(#334)
12.0.1
Fixed
- Fixed hanging
getLatestBlock()promises when block tracker is stopped before request completion (#320)- Pending
getLatestBlock()requests are now properly rejected with "Block tracker destroyed" error when the tracker is stopped
- Pending
12.0.0
Changed
- Errors that occur while polling are no longer wrapped (#310)
Removed
- BREAKING: Remove
SubscribeBlockTracker(#309)- Although we continue to maintain this, we have not used it internally for quite some time. In general we have found a polling-based approval to be reliable than a subscription-based approach. We recommend using
PollingBlockTrackerinstead.
- Although we continue to maintain this, we have not used it internally for quite some time. In general we have found a polling-based approval to be reliable than a subscription-based approach. We recommend using
Fixed
- Fix
PollingBlockTracker.getLatestBlockso that it throws an error encountered while making the request instead of hanging, regardless of whether the request occurs inside or outside of a polling loop (#313) - Fix
PollingBlockTracker.getLatestBlockso that if invoked while a previous invocation is pending, it will throw if that invocation also throws (#313)
11.0.4
Changed
- Bump
@metamask/utilsfrom^9.1.0to^11.0.1(#297)
11.0.3
Fixed
- Avoid risk of infinite retry loops when fetching new blocks (#284)
- When the provider returns an error and
PollingBlockTrackerorSubscribeBlockTrackeris destroyed, the promise returned by thegetLatestBlockmethod will be rejected.
- When the provider returns an error and
11.0.2
Fixed
- Bump
@metamask/eth-json-rpc-providerfrom^4.1.1to^4.1.5(#273)