Skip to content

v0.6.0

Latest
Compare
Choose a tag to compare
@DenisCarriere DenisCarriere released this 08 Feb 00:28
· 9 commits to main since this release
7a42fa6

Substreams now supports authenticating by passing X-Api-Key in the Header of the gRPC request, no need for creating JWT anymore (saves one less step in the auth process).

Additionally, Substreams endpoint support native ConnectWeb directly in the browser using the @substreams/node library by using createWebTransport.

What's New?

  • Replace Basic Auth => header X-Api-Key (not JWT token)
  • Rename header for User-Agent => X-User-Agent
    • add defaultHeadersInterceptor which uses {"X-User-Agent": "@substreams/node"}
  • fix createHeadersInterceptor to include headers as interceptor (previously wasn't adding any headers)
  • Update examples to use SUBSTREAMS_API_KEY instead of SUBSTREAMS_API_TOKEN

What's Breaking?

  • Add custom exports to node & web Transports
    • Allows to import @substreams/node directly in browser application without importing NodeJS specific dependencies
import { BlockEmitter } from "@substreams/node";
import { createNodeTransport } from "@substreams/node/createNodeTransport";
// or
import { createWebTransport } from "@substreams/node/createWebTransport";

What's Changed

Full Changelog: v0.5.3...v0.6.0