Skip to content

Commit ae4860c

Browse files
authored
fix(trpc): add missing batchIndex for trpc^11.10 procedure calls (#1420)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## 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. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 8b973a6 commit ae4860c

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

packages/trpc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"@orpc/shared": "workspace:*"
4343
},
4444
"devDependencies": {
45-
"@trpc/server": "^11.9.0",
45+
"@trpc/server": "^11.10.0",
4646
"zod": "^4.3.6"
4747
}
4848
}

packages/trpc/src/to-orpc-router.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ function toORPCProcedure(procedure: AnyProcedure) {
108108
type: procedure._def.type,
109109
input: trpcInput,
110110
getRawInput: () => trpcInput,
111+
// TODO: this should infer from context when using oRPC Batch Plugin
112+
batchIndex: 0,
111113
})
112114

113115
if (isAsyncIterable(output)) {

pnpm-lock.yaml

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)