Skip to content

v0.13.0

Compare
Choose a tag to compare
@github-actions github-actions released this 06 Dec 12:54
· 23 commits to main since this release

🚀 New Feature Alert: Lazy Router 🌟

Level up your serverless architecture with Lazy Routers now available in oRPC!

Defer loading router modules until needed, improving startup times and optimizing resource usage—perfect for large applications.

import { os } from '@orpc/server'

const router = os.router({
    lazy: os.lazy(() => import('examples/server'))
})

// Use the lazy-loaded router as if it were a regular one
const output = await router.lazy.getting.name({ name: 'unnoq' })

Learn how it works and get started 👉 Read more here

   🚀 Features

    View changes on GitHub