github middleapi/orpc untagged-4218cf651ca90fa56acf
v1.17.0

59 minutes ago

   🐞 Bug Fixes

   ⚠️ Default behavior change

On input validation errors (BAD_REQUEST), each issue in error.data.issues now keeps only message and path, and object path segments become { key }. Before, the raw Standard Schema issues were sent as is, including fields like Zod's code and the input itself in Valibot and ArkType issues. RequestValidationPlugin on the client sends the same shape.

No public API or types change, but code that reads other issue fields from error.data.issues (for example on the client) will no longer find them.

The full issues are still on error.cause.issues on the server. To send another shape, rethrow the error in a client interceptor or middleware, see Validation Errors.

    View changes on GitHub

Don't miss a new orpc release

NewReleases is sending notifications on new releases.