This repository was archived by the owner on Oct 16, 2025. It is now read-only.
6.0.0
Added
- Add logging (#112)
- You will not be able to see log messages by default, but you can turn them on for this library by setting the
DEBUGenvironment variable tometamask:eth-block-tracker:*ormetamask:*.
- You will not be able to see log messages by default, but you can turn them on for this library by setting the
- Add
destroymethod to block tracker classes (#106) - Update PollingBlockTracker to support new
blockResetDurationoption (#103) - Expose types that represent options to PollingBlockTracker and SubscribeBlockTracker constructors (#103)
Changed
- BREAKING: Require Node >= 14 (#113)
- BREAKING: Make BaseBlockTracker abstract (#103)
- If you are using this class directly, you must only use PollingBlockTracker or SubscribeBlockTracker.
- BREAKING: Make options for BaseBlockTracker required (#103)
- Subclasses must pass a set of options to
superin their constructors.
- Subclasses must pass a set of options to
- Make argument to
removeAllListenersin BaseBlockTracker optional (#103) - BREAKING: Update signatures for
_startand_endin BaseBlockTracker (#103)- Subclasses must provide an implementation for both of these methods; they are no longer no-ops.
- Both methods must return a promise.
- Update SubscribeBlockTracker to not pass empty
newHeadsparameter toeth_subscribecall (#108)- This change was made because OpenEthereum does not support this parameter. While we've done our best to confirm that this will not be a breaking change for other Ethereum implementations, you will want to confirm no breakages for yours.
Security
- Add
@lavamoat/allow-scriptsto ensure that install scripts are opt-in for dependencies (#97)