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

Alpha v3 syntax #150

Closed
9 of 17 tasks
oscartbeaumont opened this issue Mar 20, 2023 · 0 comments
Closed
9 of 17 tasks

Alpha v3 syntax #150

oscartbeaumont opened this issue Mar 20, 2023 · 0 comments
Labels
v1.x A change for version 1.x.x
Milestone

Comments

@oscartbeaumont
Copy link
Member

oscartbeaumont commented Mar 20, 2023

The tracking issue for the version 3 syntax for rspc.

This syntax will come with a major change in the mental model. Instead of thinking about middleware and routers, you will think about procedures that are single operations. This aligns more with the tRPC v10 style of doing things and I think adopting the same patterns for rspc will make for a way better DX.

  • Queries
  • Mutations
  • Subscriptions
  • Middleware
  • Middleware context switching
  • Middleware args
  • Router merging
  • Replace TPrevMapper to TPrevMiddleware in public API
  • Error for duplicate procedure names -> using #[track_caller] to help
  • Store key as an array and not string ready for proxy syntax
  • Fix data_type key when routing merging
  • Unit test duplicate procedure name error, and bindings exporting with complicated router
  • Validate procedure names and router prefix patterns
  • Middleware should return RspcError + fix their docs cause they are wrong #49
  • Gats #65

Once Full Send on v1 is active:

@oscartbeaumont oscartbeaumont pinned this issue Mar 20, 2023
@oscartbeaumont oscartbeaumont added v1.x A change for version 1.x.x and removed new-syntax labels May 10, 2023
@oscartbeaumont oscartbeaumont unpinned this issue May 10, 2023
@Brendonovich Brendonovich added this to the 1.0.0 milestone May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1.x A change for version 1.x.x
Development

No branches or pull requests

2 participants