github unnoq/orpc v0.38.0

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

🚨 Breaking Changes 🚨

  • The .key utility in @orpc/vue-query and @orpc/vue-colada no longer accepts refs as values, ensuring that it does not return a reactive value.
  • ClientContext in @orpc/client now behaves like the context on the server:
    • It is optional when all fields are optional.
    • It must match the Record<string, any> condition.

🌟 .call Utility 🌟

The .call utility is now available in @orpc/react-query, @orpc/vue-query, and @orpc/vue-colada. It serves as an alias for the client, allowing you to call the client directly.

const client = createORPCClient<typeof router>()
const orpc = createORPCReactQueryUtils(client)

client.ping() === orpc.ping.call()

   🚨 Breaking Changes

   🚀 Features

  • query, colada: Add .call utility for direct client call  -  by @unnoq in #138 (b42ba)
    View changes on GitHub

Don't miss a new orpc release

NewReleases is sending notifications on new releases.