Repository navigation
v2.0.0-beta.54
Pre-release
Pre-release
Tip
oRPC v2 is close to stable. If you’ve tried the beta, tell us what was hard to migrate, which changes surprised you, and what you still need before upgrading. Join the v2 discussion.
Highlights
- Breaking: Rename
COMMON_ERROR_STATUS_MAPtoCOMMON_ERROR_STATUSESand theerrorStatusMapoption toerrorStatuses. #2550 - Breaking: MSW mocks leave unmocked procedures unhandled instead of sending them to the network, and
contextreceives{ request, cookies }. #2564 - Validation issues in
error.data.issueskeep onlymessageandpath, so they no longer echo input. Raw issues stay onerror.cause. #2568 · #2570 - OpenAPI paths can have literal text around a param in a segment, like
/files/{name}.jsonor/apps/{id}:publish. #2561 UpstashPublishersubscriptions no longer receive other channels’ events. #2546
🚨 Breaking Changes
- client, server, openapi: Rename COMMON_ERROR_STATUS_MAP and errorStatusMap to plural names - by @dinwwwh in #2550 (a7300)
🚀 Features
- openapi, openapi-inference, nest: Support path params with literal text around them in a segment - by @dinwwwh in #2561 (38646)
🐞 Bug Fixes
- contract, server: Drop non-property-key segments from public schema issues - by @dinwwwh in #2570 (6514e)
- msw: Leave requests for unmocked procedures unhandled - by @dinwwwh in #2564 (16950)
- publisher: Stop UpstashPublisher subscriptions from reaching other channels - by @dinwwwh in #2546 (1eddb)
- rpc: Reject shared containers when deserializing JSON - by @dinwwwh in #2556 (00f43)
- server: Let error encoding failures throw instead of falling back - by @dinwwwh in #2576 (65be9)
- server, contract: Stop echoing input in validation issues - by @dinwwwh in #2568 (2ffa7)
- server, node: Stop inner resolvers reading bodies tmp file upload never limited - by @dinwwwh in #2555 (e6b28)