Repository navigation
feat: support trpc11 - #1
Merged
Merged
Conversation
juliusmarminge
commented
Jan 19, 2024
Comment on lines
+49
to
+52
| "peerDependenciesMeta": { | ||
| "@trpc/server": { | ||
| "optional": true | ||
| } |
Contributor
Author
There was a problem hiding this comment.
i assume you want this as not everyone will be using trpc and some package manager auto-installs peer dependencies unless they're marked optional
Contributor
Author
3 of 5 tasks
Ankcorn
approved these changes
Feb 12, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


adds support for trpc 11 in the middleware
experimental_standaloneMiddlewareis deprecated in favor ofexperimental_trpcMiddleware(we smurfed a lot of exports for v11) but will still be around, so I kept this change to be backwards compatible and work with both v10 and v11.The only change relevant here is that we have turned the
rawInputinto an async gettergetRawInputto be able to support more content types than json in the future. Ref: https://trpc.io/docs/migrate-from-v10-to-v11#rawinput-in-middleware-is-now-a-getrawinput