Skip to content

fix: expose custom fetch on typed Tinybird client#143

Merged
rmorehig merged 3 commits intomainfrom
support-custom-fetch
Mar 30, 2026
Merged

fix: expose custom fetch on typed Tinybird client#143
rmorehig merged 3 commits intomainfrom
support-custom-fetch

Conversation

@rmorehig
Copy link
Copy Markdown
Collaborator

Summary

  • expose fetch on the typed Tinybird constructor and pass it into client bootstrap
  • use the custom fetch for preview token resolution and branch-management requests so typed clients behave consistently end to end
  • add regression coverage for typed queries, preview/dev-mode resolution, and document the Next.js cache: "no-store" pattern

Testing

  • corepack pnpm typecheck
  • corepack pnpm vitest run src/schema/project.test.ts src/client/preview.test.ts src/api/branches.test.ts src/client/base.test.ts src/client/tokens.test.ts
  • corepack pnpm test:run

Closes #128

@rmorehig rmorehig merged commit eff1cbe into main Mar 30, 2026
2 checks passed
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.

Expose custom fetch on typed Tinybird client

1 participant