Releases: MetaMask/eth-block-tracker
Releases · MetaMask/eth-block-tracker
8.0.0
7.2.0
7.1.0
7.0.1
7.0.0
Changed
- BREAKING: The type of the
provider
option forPollingBlockTracker
andSubscribeBlockTracker
has changed (#130)- The
provider
option must be compatible with theSafeEventEmitterProvider
type from@metamask/eth-json-rpc-middleware
. - The new provider type should be mostly equivalent, except that it's now expected to have a
send
method. We don't use thatsend
method in this package though.
- The
Removed
- BREAKING: Remove the
Provider
exported type (#130)- We now use
@metamask/eth-json-rpc-provider
for this instead, so there was no need to re-export it.
- We now use
6.1.0
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)