v1.6.0
Durable Event Iterator docs
Durable Event Iterator allows you to use Event Iterator by separating the streaming to a different service that provides durable event streams, automatic reconnections, recovery of missing events, and more.
[!NOTE] Only support Cloudflare Websocket Hibernation for now
const onMessageProcedure = base.handler(({ context }) => {
return new DurableEventIterator<ChatRoom>('some-room', {
signingKey: 'secret-key', // Replace with your actual signing key
})
})
oRPC features now support tRPC docs
By converting a tRPC router to an oRPC router, you can utilize most oRPC features, including OpenAPI specification generation and request handling.
import {
experimental_ORPCMeta as ORPCMeta,
experimental_toORPCRouter as toORPCRouter
} from '@orpc/trpc'
export const t = initTRPC.context<Context>().meta<ORPCMeta>().create()
const orpcRouter = toORPCRouter(trpcRouter)
🚨 Breaking Changes
[!NOTE] Only effect experimental features
- server: Improve hibernation naming conventions - by @dinwwwh in https://github.com/middleapi/orpc/issues/686 (add5a)
- standard-server-peer: Use string instead of number for unique ID - by @dinwwwh in https://github.com/middleapi/orpc/issues/682 (b683b)
🚀 Features
- durable-event-iterator: Implement event iterator with Cloudflare hibernation and more - by @dinwwwh in https://github.com/middleapi/orpc/issues/668 (ce855)
- server: Enhance call util to support signal and lastEventId options - by @dinwwwh in https://github.com/middleapi/orpc/issues/687 (57b0b)
- trpc: Trpc router to orpc router - by @dinwwwh in https://github.com/middleapi/orpc/issues/699 (cf357)
- zod: Place null at the end when converting ZodNullable - by @soonoo in https://github.com/middleapi/orpc/issues/672 (8be95)
🐞 Bug Fixes
- server: Prevent reference issues in ResponseHeadersPlugin - by @dinwwwh in https://github.com/middleapi/orpc/issues/693 (a1531)