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
DEBUG
environment 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
destroy
method to block tracker classes (#106) - Update PollingBlockTracker to support new
blockResetDuration
option (#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
super
in their constructors.
- Subclasses must pass a set of options to
- Make argument to
removeAllListeners
in BaseBlockTracker optional (#103) - BREAKING: Update signatures for
_start
and_end
in 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
newHeads
parameter toeth_subscribe
call (#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-scripts
to ensure that install scripts are opt-in for dependencies (#97)