Skip to content

feat(hermes-client): allow passing fetch options #2334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

cprussin
Copy link
Collaborator

@cprussin cprussin commented Feb 6, 2025

This PR enables passing the RequestInit options for fetch to individual HermesClient methods.

This PR also fixes merging AbortControllers, which was previously not done correctly (but also no way to pass an AbortController was actually exposed via the public API, so this is not a breaking change), and upgrades typescript to the catalog version, which is required to support AbortSignal.any.

@cprussin cprussin requested a review from cctdaniel February 6, 2025 00:35
Copy link

vercel bot commented Feb 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2025 0:58am
entropy-debugger ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2025 0:58am
insights ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2025 0:58am
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2025 0:58am
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2025 0:58am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
component-library ⬜️ Ignored (Inspect) Visit Preview Feb 6, 2025 0:58am

This PR enables passing the `RequestInit` options for `fetch` to individual
`HermesClient` methods.

This PR also fixes merging `AbortControllers`, which was previously not done
correctly (but also no way to pass an `AbortController` was actually exposed via
the public API, so this is not a breaking change), and upgrades typescript to
the catalog version, which is required to support `AbortSignal.any`.
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