Skip to content

Conversation

@unnoq
Copy link
Member

@unnoq unnoq commented Feb 11, 2026

Summary by CodeRabbit

  • Chores

    • Updated a development dependency to the latest patch release.
    • Adjusted internal procedure invocation to include a static batch-index configuration.
  • Notes

    • No public APIs were changed and runtime behavior for end-users remains unaffected.

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Feb 11, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @unnoq, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses a compatibility issue with trpc^11.10 by updating the @trpc/server dependency and introducing a necessary batchIndex property to procedure calls. These changes ensure that the orpc package functions correctly with the newer tRPC version, preventing potential errors related to missing context properties during procedure execution.

Highlights

  • Dependency Update: Updated the @trpc/server dependency from ^11.9.0 to ^11.10.0 in packages/trpc/package.json.
  • tRPC Procedure Context Fix: Added the batchIndex: 0 property to the context object passed to toORPCProcedure in packages/trpc/src/to-orpc-router.ts to ensure compatibility with trpc^11.10 procedure calls.
Changelog
  • packages/trpc/package.json
    • Updated @trpc/server dependency to ^11.10.0.
  • packages/trpc/src/to-orpc-router.ts
    • Added batchIndex: 0 to the ORPCProcedure context object.
Activity
  • No human activity has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@coderabbitai
Copy link

coderabbitai bot commented Feb 11, 2026

📝 Walkthrough

Walkthrough

Updates a devDependency version for @trpc/server and adds a static batchIndex: 0 field to the argument passed into the TRPC-to-ORPC procedure invocation in toORPCProcedure.

Changes

Cohort / File(s) Summary
Dependency Update
packages/trpc/package.json
Bumped devDependency @trpc/server from ^11.9.0 to ^11.10.0.
TRPC Router Integration
packages/trpc/src/to-orpc-router.ts
Added a static batchIndex: 0 property to the argument object passed to procedure(...) in toORPCProcedure.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested labels

size:S

Poem

🐰 A tiny zero hopping through the code,
batchIndex set where inputs flowed,
a version bumped, a quiet tune,
small change by the light of the moon,
carrots celebrated — hop, behold! 🥕✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'fix(trpc): add missing batchIndex for trpc^11.10 procedure calls' accurately describes the main changes: adding a batchIndex property to TRPC procedure calls and updating the @trpc/server dependency to ^11.10.0.

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

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

No actionable comments were generated in the recent review. 🎉


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.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the @trpc/server dependency to ^11.10.0 and adds the newly required batchIndex property to tRPC procedure calls. While this fixes the immediate issue caused by the dependency update, the implementation of hardcoding batchIndex: 0 is not robust and can lead to incorrect behavior in batched requests. My review includes a suggestion for a more resilient approach that prepares for a proper fix by propagating the batch index through the request context.

@dosubot dosubot bot added the bug Something isn't working label Feb 11, 2026
@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 11, 2026

More templates

@orpc/ai-sdk

npm i https://pkg.pr.new/@orpc/ai-sdk@1420

@orpc/arktype

npm i https://pkg.pr.new/@orpc/arktype@1420

@orpc/client

npm i https://pkg.pr.new/@orpc/client@1420

@orpc/contract

npm i https://pkg.pr.new/@orpc/contract@1420

@orpc/experimental-durable-iterator

npm i https://pkg.pr.new/@orpc/experimental-durable-iterator@1420

@orpc/hey-api

npm i https://pkg.pr.new/@orpc/hey-api@1420

@orpc/interop

npm i https://pkg.pr.new/@orpc/interop@1420

@orpc/json-schema

npm i https://pkg.pr.new/@orpc/json-schema@1420

@orpc/nest

npm i https://pkg.pr.new/@orpc/nest@1420

@orpc/openapi

npm i https://pkg.pr.new/@orpc/openapi@1420

@orpc/openapi-client

npm i https://pkg.pr.new/@orpc/openapi-client@1420

@orpc/otel

npm i https://pkg.pr.new/@orpc/otel@1420

@orpc/experimental-pino

npm i https://pkg.pr.new/@orpc/experimental-pino@1420

@orpc/experimental-publisher

npm i https://pkg.pr.new/@orpc/experimental-publisher@1420

@orpc/experimental-publisher-durable-object

npm i https://pkg.pr.new/@orpc/experimental-publisher-durable-object@1420

@orpc/experimental-ratelimit

npm i https://pkg.pr.new/@orpc/experimental-ratelimit@1420

@orpc/react

npm i https://pkg.pr.new/@orpc/react@1420

@orpc/react-query

npm i https://pkg.pr.new/@orpc/react-query@1420

@orpc/experimental-react-swr

npm i https://pkg.pr.new/@orpc/experimental-react-swr@1420

@orpc/server

npm i https://pkg.pr.new/@orpc/server@1420

@orpc/shared

npm i https://pkg.pr.new/@orpc/shared@1420

@orpc/solid-query

npm i https://pkg.pr.new/@orpc/solid-query@1420

@orpc/standard-server

npm i https://pkg.pr.new/@orpc/standard-server@1420

@orpc/standard-server-aws-lambda

npm i https://pkg.pr.new/@orpc/standard-server-aws-lambda@1420

@orpc/standard-server-fastify

npm i https://pkg.pr.new/@orpc/standard-server-fastify@1420

@orpc/standard-server-fetch

npm i https://pkg.pr.new/@orpc/standard-server-fetch@1420

@orpc/standard-server-node

npm i https://pkg.pr.new/@orpc/standard-server-node@1420

@orpc/standard-server-peer

npm i https://pkg.pr.new/@orpc/standard-server-peer@1420

@orpc/svelte-query

npm i https://pkg.pr.new/@orpc/svelte-query@1420

@orpc/tanstack-query

npm i https://pkg.pr.new/@orpc/tanstack-query@1420

@orpc/trpc

npm i https://pkg.pr.new/@orpc/trpc@1420

@orpc/valibot

npm i https://pkg.pr.new/@orpc/valibot@1420

@orpc/vue-colada

npm i https://pkg.pr.new/@orpc/vue-colada@1420

@orpc/vue-query

npm i https://pkg.pr.new/@orpc/vue-query@1420

@orpc/zod

npm i https://pkg.pr.new/@orpc/zod@1420

commit: ed70716

@codecov
Copy link

codecov bot commented Feb 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant