trpc-nuxt icon indicating copy to clipboard operation
trpc-nuxt copied to clipboard

Latest version of tRPC v11 HTTP resolver has been rewritten with Fetch API

Open KATT opened this issue 9 months ago • 3 comments

Hey there @wobsoriano,

We've just updated our resolveResponse-function to be based on the Fetch API rather than our bastardization.

I'm opening this issue mainly to let you know

We have some helper functions to convert a Node http.IncomingMessage to a Response-object.

I think this is the last breaking change for adapters prior to 11.0.0

To guide you, you can have a look at either the express adapter, the fetch adapter, or the Fastify adapter.

Don't hesitate to pop into our Discord and @ me if it proves itself tricky, we're happy to help out or make some tweaks to it to make it easier to adopt.

Greatly appreciate your work you're doing for the tRPC community 🙇

KATT avatar Apr 30 '24 20:04 KATT

Thank you @KATT! Appreciate the update.

Will definitely be ready before v11.0.0.

wobsoriano avatar May 11 '24 16:05 wobsoriano

@KATT @wobsoriano any chance that nuxt could be added as an official adapter for the v11.0.0 release? It looks like the v11 branch doesn't support 11.0.0-rc.467 yet, would love to see the adapter merged in as an official adapter.

xaoseric avatar Jul 27 '24 14:07 xaoseric

FYI guys you can try tRPC v11 with

npm install [email protected]

wobsoriano avatar Aug 11 '24 06:08 wobsoriano