npm @orpc/json-schema 2.0.0-beta.54
v2.0.0-beta.54

31 minutes ago

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_MAP to COMMON_ERROR_STATUSES and the errorStatusMap option to errorStatuses. #2550
  • Breaking: MSW mocks leave unmocked procedures unhandled instead of sending them to the network, and context receives { request, cookies }. #2564
  • Validation issues in error.data.issues keep only message and path, so they no longer echo input. Raw issues stay on error.cause. #2568 · #2570
  • OpenAPI paths can have literal text around a param in a segment, like /files/{name}.json or /apps/{id}:publish. #2561
  • UpstashPublisher subscriptions 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)
    View changes on GitHub

Don't miss a new json-schema release

NewReleases is sending notifications on new releases.