github unnoq/orpc v1.0.0-beta.6

latest releases: v1.8.7, v1.8.6, v1.8.5...
pre-release5 months ago

Batch Reqeusts/Responses

The Batch Request/Response Plugin allows you to combine multiple requests and responses into a single batch, reducing the overhead of sending each one separately. Read more

🚨 Breaking Changes 🚨

  • Renamed success to isSuccess in the safe utility for clarity.
  • Updated the onFinish callback state to align with the safe utility's output.
  • Revised configuration options for RPCLink, OpenAPILink, interceptors, and plugins.
  • Included the full response data in MalformedResponseError to simplify debugging.

✨ Features ✨

  • Added dynamic retry logic support to the ClientRetry plugin.
  • Introduced StrictGetMethodPlugin (enabled by default for RPCHandler) to enforce GET usage.
  • Added a simple CSRF protection plugin.
  • Added a request/response batching plugin.
  • Links (RPCLink, OpenAPILink) now support search queries directly in the base URL.
  • Made plugin execution order configurable.

🐞 Bug Fixes 🐞

  • Fixed OpenAPI spec generation for optional response bodies.
  • Fixed file deserialization errors involving empty filenames.
  • Resolved issues using onSuccess/onError hooks as middleware.
  • Improved type inference in certain scenarios.
  • Fixed issues resulting from repeated .next calls.
  • Corrected server-side URL prefix handling.

🏎 Performance 🏎

  • Optimized the payload size for void returns in event-iterator.

No significant changes

    View changes on GitHub

Don't miss a new orpc release

NewReleases is sending notifications on new releases.