github unnoq/orpc v0.25.0

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

🚀 New Features 🚀

  1. configGlobal used to change some default oRPC behavior
import { configGlobal } from '@orpc/contract'; // or '@orpc/server'

configGlobal({
  defaultMethod: 'GET', // Default HTTP method for requests
  defaultSuccessStatus: 200, // Default HTTP status for successful responses
  defaultInputStructure: 'compact', // Input payload structure: 'compact' or 'expanded'
  defaultOutputStructure: 'compact', // Output payload structure: 'compact' or 'expanded'
});
  1. successDescripton option, allow use customize the success description when generate OpenAPI specs
const ping = oc.route({ successDescripton: 'Indicate the system is OK' })

   🚨 Breaking Changes

  • contract: Spread merge route when redefine  -  by @unnoq (67ca7)

   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub

Don't miss a new orpc release

NewReleases is sending notifications on new releases.