github unnoq/orpc v0.31.0

latest releases: v1.8.6, v1.8.5, v1.8.4...
7 months ago

🌟 1. Improved Chaining Flow

The chaining flow has been enhanced to reduce confusion and enable more flexible middleware usage.

  • You can now insert middleware between .input and .output for more granular control.
  • TypeScript will now catch invalid chaining patterns, such as calling .middleware after .use, or chaining .input after another .input. This ensures developers are guided toward the correct sequence at compile time.

🚀 2. Custom Schemas with type

The type utility allows you to create custom schemas:

export const getting = oc.input(type<{ id: string }>());

This simplifies validation and reduces bundle size, especially in scenarios where heavy validation logic is unnecessary.

   🚀 Features

  • contract:
  • server:
    • Strict .callable/.actionable cannot chainable after call  -  by @unnoq in #88 (f22c7)
    • Strict builders & allow use middleware between .input/output  -  by @unnoq in #93 (43c0c)
    View changes on GitHub

Don't miss a new orpc release

NewReleases is sending notifications on new releases.