Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@DenisCarriere
Copy link
Contributor

What's new?

  • Replace authentication using header X-Api-Key
  • 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)

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";

@changeset-bot
Copy link

changeset-bot bot commented Feb 8, 2024

⚠️ No Changeset found

Latest commit: f1f4496

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@DenisCarriere DenisCarriere merged commit 7a42fa6 into main Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants