Repository navigation
chore(server): ban imports of @trpc/core in adapters - #5310
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
KATT
commented
Jan 11, 2024
Member
Author
There was a problem hiding this comment.
This is just a rename of the index.ts file
Contributor
Diagnostics ComparisonDetailsNumbers
Timings and averages
unstable timingsUnstable
|
juliusmarminge
approved these changes
Jan 11, 2024
| * ``` | ||
| */ | ||
| // @trpc/server | ||
| import type { AnyRouter, inferRouterContext } from '../../@trpc-server'; |
Member
There was a problem hiding this comment.
if this should serve as examples for other adapters maybe import the smurfed, non-deprecated, AnyTRPCRouter ?
Member
Author
There was a problem hiding this comment.
Yeah, I just wanted to keep it unchanged for now to ensure nothing broke
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. |
This branch had an error being deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Closes #5308
π― Changes
imports of@trpc/corein adapters so that we can know that adapters can be made without relying on@trpc/coredirectlyimportof a file@trpc/server.tsso that if someone builds an adapter they get a hint that they need toimport@trpc/serverin it's place of e.g.../../@trpc-server`Next steps
See if some/all of the adapters listed in #5308 builds using this approach