Skip to content
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

fix(core): Adapt trpc middleware input attachment #13831

Merged
merged 9 commits into from
Oct 1, 2024

Conversation

chargome
Copy link
Member

The interface for getting raw trpc inputs has changed in v11.

This PR enusres that the input gets attached either way.

Note: I have added a t3 test app since it is a popular stack for nextjs that we should cover.

fixes #13795

@chargome chargome requested a review from lforst September 30, 2024 09:57
@chargome chargome self-assigned this Sep 30, 2024
Copy link

codecov bot commented Sep 30, 2024

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
626 1 625 27
View the top 1 failed tests by shortest run time
trpc.test.ts Should record transaction for trpc mutation
Stack Traces | 0.431s run time
trpc.test.ts:43:5 Should record transaction for trpc mutation

To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard

packages/core/src/trpc.ts Outdated Show resolved Hide resolved
@chargome chargome requested a review from lforst September 30, 2024 12:28
packages/core/src/trpc.ts Outdated Show resolved Hide resolved
@chargome chargome merged commit b4b08cd into develop Oct 1, 2024
145 checks passed
@chargome chargome deleted the cg/fix-trpc-v11-middleware branch October 1, 2024 07:32
@JoeKarow JoeKarow mentioned this pull request Oct 2, 2024
3 tasks
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.

attachRpcInput not working for trpc v11
2 participants