Releases: pinax-network/substreams-sink
Releases · pinax-network/substreams-sink
v0.16.0
What's new?
- add
--plaintext
as CLI argument (Establish GRPC connection in plaintext) - improve logic for
boolean
CLI arguments- throw error if
https://
is used andplaintext
istrue
- throw error if
- make
pkg
optional arguments if not provided
const pkg = {
name: "substreams-sink",
version: "0.0.1",
description: "Substreams Sink long description",
}
// Setup CLI using Commander
const program = commander.program(pkg);
const command = commander.addRunOptions(program);
OR
// Setup CLI using Commander
const program = commander.program();
const command = commander.addRunOptions(program);
What's Changed
- improve CLI arguments & add plaintext by @DenisCarriere in #31
Full Changelog: v0.15.2...v0.16.0
v0.15.2
v0.15.1
What's Changed
- make http & metrics optional commands by @DenisCarriere in #26
// Setup CLI using Commander
const program = commander.program(pkg);
const command = commander.run(program, pkg, {http: false, metrics: true});
- include
addRunOptions
to customize place as root command
const program = commander.program(pkg);
const command = commander.addRunOptions(program, pkg, {metrics: false, http: false});
- make
list
command opt-in
const program = commander.program(pkg);
const command = commander.list(program);
Full Changelog: v0.15.0...v0.15.1
v0.15.0
What's new (❌ includes breaking changes)
- remove reading & writing cursor directly in sink
- Some sinks will need to validate the incoming data before saving the cursor, saving the cursor prior to validation can cause data loss
- export
fileCursor
&httpCursor
import { setup, fileCursor } from "substreams-sink"
...
// Get cursor from file
const cursor = fileCursor.readCursor("cursor.lock");
// Setup sink for Block Emitter
const { emitter } = await setup({...options, cursor});
...
// Save new cursor on each new block emitted
fileCursor.onCursor(emitter, "cursor.lock");
- remove
--http-cursor-auth
&--cursor-path
params - add
--cursor
param - remove
startCursor
fromsetup
- cursor is already provided as setup input
- update logging output
What's Changed
- Remove cursor logic from sink by @DenisCarriere in #25
Full Changelog: v0.14.0...v0.15.0
v0.14.0
What's Changed
- Check progress events for inactivity by @sdevkc in #22
- Update auth header with Substreams API key by @DenisCarriere in #23
- Fixes #21
New Contributors
- @sdevkc made their first contribution in #22
- @DenisCarriere made their first contribution in #23
Full Changelog: v0.13.8...v0.14.0
v0.13.8
Full Changelog: v0.13.7...v0.13.8
v0.13.7
- Fixed issue when using Pinax API key that would not generate a token
--inactivity-seconds
now listens foranyMessage
events instead ofclock
only
Full Changelog: v0.13.4...v0.13.7
v0.13.4
- improve http readCursor handling
- read
plain/text
format
- read
Consul KV
https://developer.hashicorp.com/consul/api-docs/kv
[{"Value":"n-5SB30M-16YouthlRFszqWwLpcyB1JpXQPsLRNL1..."}]
Simple HTTP text response
n-5SB30M-16YouthlRFszqWwLpcyB1JpXQPsLRNL1...
v0.13.3
- update to latest https://github.com/substreams-js/substreams-node/releases/tag/v0.4.3
- Switch back to using
connect-node
HTTP 2.0connect-web
isn't stable either
Bun 1.0.13 now includes HTTP 2.0 support https://bun.sh/blog/bun-v1.0.13
v0.13.2
- update latest
@substreams/node
to fix no token provided
https://github.com/substreams-js/substreams-node/releases/tag/v0.4.2