Skip to content

Commit

Permalink
Prepare v0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDaub committed Apr 13, 2023
1 parent 5cc4b53 commit 00982a8
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
29 changes: 29 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# Changelog

##

- (breaking) `config.path[]` for transformer, extractor and loader, the
properties `output.path` and `input.path` were renamed to `output.name` and
doesn't have to be a path anymore. Instead, they are file names that are
automatically resolved from within `env.DATA_DIR`.
- (breaking) `process.env` variables defined in the `.env` file can now also be
defined (and overwritten) in the `config.mjs` file's `environment` property.
- (breaking) All lifecycle methods now have an updated interface as outlined
below:
- extractor `function init({ state, args, execute })`
- extractor `function update({ message })`
- tranformer `function onLine({ state })` where `state.line` is the line
function. `args` can be matched too.
- loader `function* order({ state })` where `state.line` is the line
- loader `function* direct({ state })` where `state.line` is the line
- There is a new component to a strategy called the "coordinator" that keeps
track of state. The config.mjs file (the `path` property) features a new
field called `coordinator` where a `module` and an `interval` can be defined.
They're used to re-run the first path once all jobs have been completed, to
e.g. keep in synchronization with a network like Ethereum.
- We forked the extraction-worker from the neume-network organization and added
a feature to immediately execute a worker message. More details:
https://github.com/attestate/extraction-worker/.
- Reference docs for the extraction worker have been added.
- Reference docs for the crawler CLI have been added.
- Note: The `@attestate/crawler-call-block-logs` module at version 0.3.0 is
compatible.

## 0.4.0

- (breaking) Create two separate LMDB tables for "order" and "load" data
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@attestate/crawler",
"version": "0.4.0",
"version": "0.5.0",
"description": "@attestate/crawler is a tool chain to retrieve on-chain data from Ethereum.",
"main": "./src/boot.mjs",
"bin": {
Expand Down

0 comments on commit 00982a8

Please sign in to comment.