github unnoq/orpc v1.5.0

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

Hibernation Plugin docs

The Hibernation Plugin helps you fully leverage Hibernation APIs, making it especially useful for adapters like Cloudflare Websocket Hibernation.

import { experimental_HibernationPlugin as HibernationPlugin } from '@orpc/server/hibernation'

const handler = new RPCHandler(router, {
  plugins: [
    new HibernationPlugin(),
  ],
})

By utilize Hibernation APIs you can build a scalable web socket app with very low pricing.

.queryKey, .streamedKey, .infiniteKey, .mutationKey docs

Everything is typesafe now

queryClient.setQueryData(orpc.planet.find.queryKey({ input: { id: 123 } }), (old) => {
  return { ...old, id: 123, name: 'Earth' }
})

   🚀 Features

   🐞 Bug Fixes

  • EventPublisher should throw immediately if signal is aborted  -  by @unnoq in #629 (2147e)
    View changes on GitHub

Don't miss a new orpc release

NewReleases is sending notifications on new releases.