Skip to content

Conversation

@ted-palmer
Copy link
Collaborator

Changes

  • Created new /chain-utils subpath export containing:
    • configureViemChain
    • configureDynamicChains
    • fetchChainConfigs
  • Removed these exports from main SDK entry to enable tree-shaking
  • Reduced default backup chains from 8 to just mainnet/sepolia

Breaking Change

Consumers using configureViemChain, configureDynamicChains, or fetchChainConfigs need to update their imports:

// Before
import { configureViemChain } from '@relayprotocol/relay-sdk'

// After
import { configureViemChain } from '@relayprotocol/relay-sdk/chain-utils'

@ted-palmer ted-palmer requested a review from pedromcunha January 7, 2026 17:08
@vercel
Copy link
Contributor

vercel bot commented Jan 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
relay-sdk-demo Ready Ready Preview, Comment Jan 7, 2026 5:43pm

@ted-palmer ted-palmer merged commit 7d8cfef into main Jan 8, 2026
3 checks passed
@ted-palmer ted-palmer deleted the ted/fe-8240-optimize-relay-kit-sdk-for-viem-imports-to-reduce-bundle branch January 8, 2026 19:16
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.

3 participants