You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR adds a native oRPC adapter for Fastify. Previously, oRPC in
Fastify used the Node adapter, which didn't integrate well with
Fastify's ecosystem (e.g., cookies, helpers, middleware). This native
adapter supports Fastify's request/reply APIs directly, enabling full
access to Fastify features within oRPC.
Closes: #998, #992
- [x] standard server adapter
- [x] rpc adapter
- [x] openapi adapter
- [x] utilize native fastify adapter for nest.js integration (#992)
- [x] docs
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* First-class Fastify support across server, OpenAPI, and
standard-server packages (Fastify adapters, RPC and OpenAPI handlers)
* API configuration now prefers interceptor-based error handling instead
of plugin arrays
* **Documentation**
* Added Fastify adapter docs, examples, and a README; updated Nest
guidance to note Fastify considerations
* **Tests**
* New Fastify-focused unit and integration tests (including cookie
handling and OpenAPI scenarios)
* **Chores**
* Package exports and manifests updated to publish Fastify adapters and
wiring
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Copy file name to clipboardExpand all lines: apps/content/docs/adapters/fastify.md
+22-28Lines changed: 22 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,50 +8,44 @@ description: Use oRPC inside an Fastify project
8
8
[Fastify](https://fastify.dev/) is a web framework highly focused on providing the best developer experience with the least overhead and a powerful plugin architecture. For additional context, refer to the [HTTP Adapter](/docs/adapters/http) guide.
9
9
10
10
::: warning
11
-
Fastify automatically parses the request payload which interferes with oRPC, that apply its own parser. To avoid errors, it's necessary to create a node http server and pass the requests to oRPC first, and if there's no match, pass it to Fastify.
11
+
Fastify parses common request content types by default. oRPC will use the parsed body when available.
Copy file name to clipboardExpand all lines: apps/content/docs/openapi/integrations/implement-contract-in-nest.md
-5Lines changed: 0 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,6 @@ description: Seamlessly implement oRPC contracts in your NestJS projects.
7
7
8
8
This guide explains how to easily implement [oRPC contract](/docs/contract-first/define-contract) within your [NestJS](https://nestjs.com/) application using `@orpc/nest`.
9
9
10
-
::: warning
11
-
This feature is experimental and may undergo breaking changes.
12
-
We highly recommend using it with the NestJS Express Platform, as oRPC currently does not work well with Fastify (see [issue #992](https://github.com/unnoq/orpc/issues/992)).
0 commit comments