Skip to content

feat(server): strict builders & allow use middleware between .input/output#93

Merged
dinwwwh merged 10 commits into
mainfrom
feat/server/strict-builders
Jan 16, 2025
Merged

feat(server): strict builders & allow use middleware between .input/output#93
dinwwwh merged 10 commits into
mainfrom
feat/server/strict-builders

Conversation

@dinwwwh
Copy link
Copy Markdown
Member

@dinwwwh dinwwwh commented Jan 15, 2025

This PR improves the chaining flow to make it clearer, reducing confusing cases and allowing middleware to be added between .input and .output.

  • Previously, it was possible to call .middleware after .use, or .input after another .input, which could confuse developers about the expected behavior.
  • Now, TypeScript will prevent these misleading chain patterns by catching them at compile time.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
orpc ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 16, 2025 9:42am

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jan 15, 2025

Open in Stackblitz

More templates

@orpc/client

npm i https://pkg.pr.new/@orpc/client@93

@orpc/contract

npm i https://pkg.pr.new/@orpc/contract@93

@orpc/react-query

npm i https://pkg.pr.new/@orpc/react-query@93

@orpc/server

npm i https://pkg.pr.new/@orpc/server@93

@orpc/openapi

npm i https://pkg.pr.new/@orpc/openapi@93

@orpc/shared

npm i https://pkg.pr.new/@orpc/shared@93

@orpc/vue-colada

npm i https://pkg.pr.new/@orpc/vue-colada@93

@orpc/vue-query

npm i https://pkg.pr.new/@orpc/vue-query@93

@orpc/zod

npm i https://pkg.pr.new/@orpc/zod@93

commit: 65090f4

@dinwwwh dinwwwh merged commit 43c0c87 into main Jan 16, 2025
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.

1 participant