Skip to content

Releases: pinax-network/substreams-sink

v0.16.0

03 Mar 16:50
da31d07
Compare
Choose a tag to compare

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 and plaintext is true
  • 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

Full Changelog: v0.15.2...v0.16.0

v0.15.2

03 Mar 02:03
6d2f9b5
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.15.1...v0.15.2

v0.15.1

27 Feb 16:19
ffa82d7
Compare
Choose a tag to compare

What's Changed

// 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

19 Feb 19:56
085b9ca
Compare
Choose a tag to compare

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 from setup
    • cursor is already provided as setup input
  • update logging output

What's Changed

Full Changelog: v0.14.0...v0.15.0

v0.14.0

12 Feb 18:47
067a058
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.13.8...v0.14.0

v0.13.8

25 Jan 17:21
Compare
Choose a tag to compare

Full Changelog: v0.13.7...v0.13.8

v0.13.7

22 Jan 18:23
Compare
Choose a tag to compare
  • Fixed issue when using Pinax API key that would not generate a token
  • --inactivity-seconds now listens for anyMessage events instead of clock only

Full Changelog: v0.13.4...v0.13.7

v0.13.4

01 Dec 04:25
Compare
Choose a tag to compare
  • improve http readCursor handling
    • read plain/text format

Consul KV

https://developer.hashicorp.com/consul/api-docs/kv

[{"Value":"n-5SB30M-16YouthlRFszqWwLpcyB1JpXQPsLRNL1..."}]

Simple HTTP text response

n-5SB30M-16YouthlRFszqWwLpcyB1JpXQPsLRNL1...

v0.13.3

25 Nov 16:48
Compare
Choose a tag to compare

Bun 1.0.13 now includes HTTP 2.0 support https://bun.sh/blog/bun-v1.0.13

v0.13.2

21 Nov 17:50
Compare
Choose a tag to compare