Skip to content

chore: Update Hey API for new type imports - #7298

Merged
Nick-Lucas merged 3 commits into
mainfrom
chore/switch-to-heyapi-type-exports-2
Mar 28, 2026
Merged

Nick-Lucas merged 3 commits into
mainfrom
chore/switch-to-heyapi-type-exports-2

Conversation

@Nick-Lucas

@Nick-Lucas Nick-Lucas commented Mar 28, 2026 •

Copy link
Copy Markdown
Contributor

Closes #

🎯 Changes

What changes are made in this PR? Is it a feature or a bug fix?

βœ… Checklist

  • I have followed the steps listed in the Contributing guide.
  • If necessary, I have added documentation related to the changes made.
  • I have added or updated the tests related to the changes made.

Summary by CodeRabbit

  • Chores

    • Bumped OpenAPI tooling version requirements in the package manifests to keep build/dev tooling up to date.
  • Refactor

    • Updated internal client/type integrations to align with the refreshed tooling while preserving the public API and behavior.
  • Documentation

    • Minor punctuation and JSDoc wording improvements across generated tests and utilities for clearer docs.

@Nick-Lucas
Nick-Lucas requested a review from a team as a code owner March 28, 2026 15:57
Copilot AI review requested due to automatic review settings March 28, 2026 15:57
@railway-app

railway-app Bot commented Mar 28, 2026 •

Copy link
Copy Markdown

πŸš… Deployed to the trpc-pr-7298 environment in trpc-sse-and-websockets

Service Status Web Updated (UTC)
next-sse-chat βœ… Success (View Logs) Web Mar 28, 2026 at 4:45 pm
next-prisma-websockets-starter βœ… Success (View Logs) Mar 28, 2026 at 4:43 pm

@vercel

vercel Bot commented Mar 28, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
next-prisma-starter Ready Ready Preview Mar 28, 2026 4:33pm
og-image Ready Ready Preview, Comment Mar 28, 2026 4:33pm

Request Review

@coderabbitai

coderabbitai Bot commented Mar 28, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. πŸŽ‰

ℹ️ Recent review info
βš™οΈ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 79422529-2510-4720-bce3-5481063fd9cc

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between feb7e0c and 35cd933.

πŸ“’ Files selected for processing (27)
  • packages/openapi/test/routers/amazonIonRouter-heyapi/client/utils.gen.ts
  • packages/openapi/test/routers/amazonIonRouter-heyapi/core/types.gen.ts
  • packages/openapi/test/routers/amazonIonRouter-heyapi/core/utils.gen.ts
  • packages/openapi/test/routers/appRouter-heyapi/client/utils.gen.ts
  • packages/openapi/test/routers/appRouter-heyapi/core/types.gen.ts
  • packages/openapi/test/routers/appRouter-heyapi/core/utils.gen.ts
  • packages/openapi/test/routers/cyclicTypesRouter-heyapi/client/utils.gen.ts
  • packages/openapi/test/routers/cyclicTypesRouter-heyapi/core/types.gen.ts
  • packages/openapi/test/routers/cyclicTypesRouter-heyapi/core/utils.gen.ts
  • packages/openapi/test/routers/descriptionsRouter-heyapi/client/utils.gen.ts
  • packages/openapi/test/routers/descriptionsRouter-heyapi/core/types.gen.ts
  • packages/openapi/test/routers/descriptionsRouter-heyapi/core/utils.gen.ts
  • packages/openapi/test/routers/edgeCaseRouter-heyapi/client/utils.gen.ts
  • packages/openapi/test/routers/edgeCaseRouter-heyapi/core/types.gen.ts
  • packages/openapi/test/routers/edgeCaseRouter-heyapi/core/utils.gen.ts
  • packages/openapi/test/routers/errorFormatterRouter-heyapi/client/utils.gen.ts
  • packages/openapi/test/routers/errorFormatterRouter-heyapi/core/types.gen.ts
  • packages/openapi/test/routers/errorFormatterRouter-heyapi/core/utils.gen.ts
  • packages/openapi/test/routers/mongoEjsonRouter-heyapi/client/utils.gen.ts
  • packages/openapi/test/routers/mongoEjsonRouter-heyapi/core/types.gen.ts
  • packages/openapi/test/routers/mongoEjsonRouter-heyapi/core/utils.gen.ts
  • packages/openapi/test/routers/nodeModulesJsDocRouter-heyapi/client/utils.gen.ts
  • packages/openapi/test/routers/nodeModulesJsDocRouter-heyapi/core/types.gen.ts
  • packages/openapi/test/routers/nodeModulesJsDocRouter-heyapi/core/utils.gen.ts
  • packages/openapi/test/routers/superjsonRouter-heyapi/client/utils.gen.ts
  • packages/openapi/test/routers/superjsonRouter-heyapi/core/types.gen.ts
  • packages/openapi/test/routers/superjsonRouter-heyapi/core/utils.gen.ts
βœ… Files skipped from review due to trivial changes (27)
  • packages/openapi/test/routers/errorFormatterRouter-heyapi/client/utils.gen.ts
  • packages/openapi/test/routers/edgeCaseRouter-heyapi/core/utils.gen.ts
  • packages/openapi/test/routers/descriptionsRouter-heyapi/client/utils.gen.ts
  • packages/openapi/test/routers/cyclicTypesRouter-heyapi/core/types.gen.ts
  • packages/openapi/test/routers/amazonIonRouter-heyapi/client/utils.gen.ts
  • packages/openapi/test/routers/superjsonRouter-heyapi/client/utils.gen.ts
  • packages/openapi/test/routers/mongoEjsonRouter-heyapi/client/utils.gen.ts
  • packages/openapi/test/routers/descriptionsRouter-heyapi/core/utils.gen.ts
  • packages/openapi/test/routers/edgeCaseRouter-heyapi/client/utils.gen.ts
  • packages/openapi/test/routers/mongoEjsonRouter-heyapi/core/types.gen.ts
  • packages/openapi/test/routers/cyclicTypesRouter-heyapi/client/utils.gen.ts
  • packages/openapi/test/routers/amazonIonRouter-heyapi/core/types.gen.ts
  • packages/openapi/test/routers/appRouter-heyapi/client/utils.gen.ts
  • packages/openapi/test/routers/amazonIonRouter-heyapi/core/utils.gen.ts
  • packages/openapi/test/routers/mongoEjsonRouter-heyapi/core/utils.gen.ts
  • packages/openapi/test/routers/descriptionsRouter-heyapi/core/types.gen.ts
  • packages/openapi/test/routers/appRouter-heyapi/core/utils.gen.ts
  • packages/openapi/test/routers/nodeModulesJsDocRouter-heyapi/core/utils.gen.ts
  • packages/openapi/test/routers/superjsonRouter-heyapi/core/types.gen.ts
  • packages/openapi/test/routers/nodeModulesJsDocRouter-heyapi/client/utils.gen.ts
  • packages/openapi/test/routers/nodeModulesJsDocRouter-heyapi/core/types.gen.ts
  • packages/openapi/test/routers/cyclicTypesRouter-heyapi/core/utils.gen.ts
  • packages/openapi/test/routers/superjsonRouter-heyapi/core/utils.gen.ts
  • packages/openapi/test/routers/errorFormatterRouter-heyapi/core/types.gen.ts
  • packages/openapi/test/routers/edgeCaseRouter-heyapi/core/types.gen.ts
  • packages/openapi/test/routers/errorFormatterRouter-heyapi/core/utils.gen.ts
  • packages/openapi/test/routers/appRouter-heyapi/core/types.gen.ts

πŸ“ Walkthrough

Walkthrough

Bumped @hey-api/openapi-ts version constraints in package.json files, refactored type imports in packages/openapi/src/heyapi/index.ts to use a Plugins namespace (updating several type and function signatures), and corrected punctuation in many generated test file comments and JSDoc entries.

Changes

Cohort / File(s) Summary
Dependency Version Updates
packages/openapi/package.json, examples/openapi-codegen/package.json
DevDependency @hey-api/openapi-ts bumped from ^0.94.1 to ^0.94.5. Peer dependency in packages/openapi/package.json minimum raised from >=0.13.0 to >=0.94.5.
Type Import & Signature Refactor
packages/openapi/src/heyapi/index.ts
Replaced direct imports (FetchClient, UserConfig, etc.) with types under a Plugins namespace. Updated configureTRPCHeyApiClient parameter type to Plugins.HeyApiClientFetch.Client and re-sourced HeyAPIResolvers, HeyApiConfig, and derived config types from Plugins while preserving exported shapes/options.
Generated tests β€” comment/JSDoc punctuation
packages/openapi/test/routers/*/client/utils.gen.ts, packages/openapi/test/routers/*/core/utils.gen.ts, packages/openapi/test/routers/*/core/types.gen.ts
Minor punctuation fixes in inline comments and JSDoc (e.g., changing β€œi.e. their” β†’ β€œi.e., their”, β€œe.g. converting” β†’ β€œe.g., converting”). No runtime, type, or API signature changes.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Suggested labels

♻️ autoupdate

Suggested reviewers

  • KATT
  • juliusmarminge

Poem

🐰 I hopped through package bumps with glee,
Swapped imports for Plugins β€” tidy as can be,
Punctuated comments, a polite little tweak,
Types aligned neatly, no runtime squeak,
A happy hop for code, swift and sleek ✨

πŸš₯ Pre-merge checks | βœ… 1 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is incompleteβ€”it uses the template as-is without filling in the 'Closes' issue number or providing details about the actual changes made. Fill in the issue number in 'Closes #', provide specific details of changes in the 'Changes' section, and mark completed checklist items if applicable.
Docstring Coverage ⚠️ Warning Docstring coverage is 10.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
βœ… Passed checks (1 passed)
Check name Status Explanation
Title check βœ… Passed The title accurately describes the main change: updating dependency versions and migrating type imports from HeyApiFetchClient to Plugins types in the codebase.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
πŸ“ Generate docstrings
  • Create stacked PR
  • Commit on current branch
πŸ§ͺ Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/switch-to-heyapi-type-exports-2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❀️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates @trpc/openapi’s Hey API integration to match upstream @hey-api/openapi-ts type export changes, and bumps the referenced Hey API version accordingly.

Changes:

  • Switch Hey API-related type imports in @trpc/openapi/heyapi to use Plugins.* types from @hey-api/openapi-ts.
  • Bump @hey-api/openapi-ts devDependency and raise the optional peer dependency minimum to a compatible version.
  • Regenerate lockfile entries to reflect the dependency updates.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
pnpm-lock.yaml Updates lockfile to reflect @hey-api/[email protected] and related dependency resolutions.
packages/openapi/src/heyapi/index.ts Refactors Hey API type references to Plugins.HeyApiTypeScript / Plugins.HeyApiClientFetch types.
packages/openapi/package.json Bumps @hey-api/openapi-ts devDependency and updates optional peer dependency minimum version.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

πŸ€– Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@packages/openapi/package.json`:
- Line 96: The peerDependency for "@hey-api/openapi-ts" was bumped from
">=0.13.0" to ">=0.94.5", which is a breaking change for users on older
versions; either revert the minimum to the previous range (e.g., ">=0.13.0") in
the package.json entry for "@hey-api/openapi-ts" or add an explicit changelog/PR
note documenting the breaking change and migration guidance for users upgrading
to require >=0.94.5 so consumers know why the peerDependency increased.
πŸͺ„ Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
βš™οΈ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 01fd311c-c14a-44b1-b8d8-676fb626f73d

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between 492bacf and 1e5b0fe.

β›” Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
πŸ“’ Files selected for processing (2)
  • packages/openapi/package.json
  • packages/openapi/src/heyapi/index.ts

Comment thread packages/openapi/package.json Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 4 changed files in this pull request and generated no new comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pkg-pr-new

pkg-pr-new Bot commented Mar 28, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@trpc/client

npm i https://pkg.pr.new/@trpc/client@7298

@trpc/next

npm i https://pkg.pr.new/@trpc/next@7298

@trpc/openapi

npm i https://pkg.pr.new/@trpc/openapi@7298

@trpc/react-query

npm i https://pkg.pr.new/@trpc/react-query@7298

@trpc/server

npm i https://pkg.pr.new/@trpc/server@7298

@trpc/tanstack-react-query

npm i https://pkg.pr.new/@trpc/tanstack-react-query@7298

@trpc/upgrade

npm i https://pkg.pr.new/@trpc/upgrade@7298

commit: 35cd933

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been locked because we are very unlikely to see comments on closed issues. If you think, this PR is still necessary, create a new one with the same branch. Thank you.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 29, 2026
@KATT
KATT deleted the chore/switch-to-heyapi-type-exports-2 branch October 31, 2026 21:11

This branch was successfully deployed

5 active deployments
Preview – www β€” 35cd9333 Deployed Mar 28, 2026 by vercel[bot]
Preview – examples-todomvc β€” 35cd9333 Deployed Mar 28, 2026 by vercel[bot]
Preview – next-prisma-starter β€” 35cd9333 Deployed Mar 28, 2026 by vercel[bot]
Preview – og-image β€” 35cd9333 Deployed Mar 28, 2026 by vercel[bot]
Preview – trpc-next-app-dir β€” 35cd9333 Deployed Mar 28, 2026 by vercel[bot]
trpc-sse-and-websockets / trpc-pr-7298 β€” 35cd9333 Deployed Mar 28, 2026 by railway-app[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants