-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat(client): allow any procedure name #6484
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
Conversation
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (1)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including You can disable this status message by setting the WalkthroughThis pull request refactors the TRPC client types and updates function signatures across multiple packages. Deprecated types such as Changes
Sequence Diagram(s)sequenceDiagram
participant Dev as Developer
participant CC as createTRPCClient
participant Proxy as createTRPCClientProxy
participant Client as TRPCClient Instance
Dev->>CC: Call createTRPCClient(opts)
CC->>Proxy: Wrap untyped client
Proxy->>Client: Instantiate TRPCClient using opts
Client-->>Proxy: Return TRPCClient instance
Proxy-->>CC: Forward TRPCClient instance
CC-->>Dev: Return TRPCClient instance
sequenceDiagram
participant Caller
participant FlatP as createFlatProxy
Caller->>FlatP: Access property (key)
FlatP->>FlatP: Process key (skip 'then')
FlatP-->>Caller: Return property value via callback
Possibly related PRs
Suggested labels
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
🚅 Previously deployed to Railway in the trpc-sse-and-websockets project. Environment has been deleted. |
@trpc/client
@trpc/next
@trpc/server
@trpc/react-query
@trpc/tanstack-react-query
@trpc/upgrade
commit: |
# Conflicts: # pnpm-lock.yaml
|
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. |
clientas the route name causes an error #3710🎯 Changes
Remove intersection checks for the client proxy - we don't expose anything but the procedures themselves when we decorate it
✅ Checklist
Summary by CodeRabbit