This repository has been archived by the owner on Sep 5, 2023. It is now read-only.
Releases: BitskiCo/provider-engine
Releases · BitskiCo/provider-engine
Fix async dependency
This version fixes an issue with using this package as a dependency with Browserify due to a change in async v3.1.x.
Prevent block polling crashes
Previously we were always emitting 'error' when the block tracker encountered an issue. The default behavior of Node is to throw an exception if nothing is subscribed to the error event, which is not intended behavior for this library.
We now catch errors from the block tracker, and log them to the console if you pass { debug: true } in the options when creating a new engine.
Custom error types
You should now see better error messages when internal errors occur.
Ability to disable block tracking
- For apps that don't want the request overhead of block tracking, you can now disable it:
import ProviderEngine from '@bitski/provider-engine';
const provider = new ProviderEngine({ disableBlockTracking: true });
BlockTracker Refactor
- Refactor BlockTracker to be a separate class in order to better separate concerns of block tracking and handling requests.
Bug fixes
- Fixes an issue where ProviderEngine would try to decode a null object when the block was not yet found.