github unnoq/orpc v0.32.0

latest releases: v1.8.7, v1.8.6, v1.8.5...
7 months ago

🚨 configGlobal function replaced with .config method in builders

The configGlobal function has been deprecated and replaced with the .config method for configuring default settings in builders. You can now customize the configuration more easily.

const pub = os
    .context<{user?: {id: string}}>()
    .config({ // Optional configuration to override defaults
        initialRoute: {
            method: 'DELETE', // Set the default HTTP method to DELETE
            inputStructure: 'detailed', // Set the default input structure to 'detailed'
            outputStructure: 'detailed' // Set the default output structure to 'detailed'
        }
    })

   🚀 Features

  • contract, server: Replace configGlobal fn with .config in builders  -  by @unnoq in #95 (4e274)
    View changes on GitHub

Don't miss a new orpc release

NewReleases is sending notifications on new releases.