Releases: EOSIO/demux-js-eos
v4.0.1
v4.0.0
This release upgrades to Demux v4.
New Features
- New
StateHistoryPostgresActionReader
that obtains block information from a Postgres database populated by EOSIO/fill-postgresql. - The
MongoActionReader
now utilizes the newsetup
method in Demux v4 to connect to the Mongo database, also also includes new validation that checks if the required collections exist. - New error classes have been created to replace generic inline
Error
instances, for better debugging and error handling capabilities.
Breaking Changes
- All Action Readers now follow the Demux v4 convention of using an options object. You will need to update all instantiations of your
NodeosActionReader
s andMongoActionReader
s to match the new signatures. - The
MongoActionReader#initialize
public method was removed, and its funcitonality was moved tosetup
(as described above). Additionally, it is no longer required that you call this method before callinggetBlock()
, asgetBlock()
will automatically call it if it hasn't been called before.
Block.one makes its contribution on a voluntary basis as a member of the EOSIO community and is not responsible for ensuring the overall performance of the software or any applications related thereto. We make no representation, warranty, guarantee or undertaking in respect of the releases described herein and the related GitHub release or the EOSIO software, whether expressed or implied, and disclaim all liability that may arise from any use of the software for any purpose.
v3.1.0
New Features
- New optional property added to
EosPayload
,notifiedAccounts
, which theMongoActionReader
utilizes to keep track of the which accounts are notified for each action
Bug Fixes
- Since there is an entry in the
action_traces
MongoDB collection per notified account, theMongoActionReader
was producing duplicateAction
s for every action's notification. This release fixes the issue to produce only oneAction
per blockchain action.
v3.0.1
v3.0.0
This release upgrades to demux v3. The most notable improvement of this release is how the MongoActionReader
retrieves block information. Previously, the large blocks
collection was used to retrieve actions. Now, the action_traces
collection is used instead, greatly reducing required disk space. Another advantage to switching to action_traces
is that inline actions are now included.
Breaking changes
- The library is now dependent on demux v3.x.x.
New Features
-
Inline actions are now included when using the
MongoActionReader
. -
The
MongoActionReader
now retries when queries fail.
Bug fixes
- The
NodeosActionReader
's retry logic had an off-by-one error resulting in there to be one less retry than expected; this is now fixed.