wobsoriano / trpc-nuxt

End-to-end typesafe APIs in Nuxt applications.
trpc-nuxt.vercel.app
MIT License
675 stars 38 forks source link

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

Open KATT opened 5 months ago

KATT commented 5 months ago

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 🙇

wobsoriano commented 4 months ago

Thank you @KATT! Appreciate the update.

Will definitely be ready before v11.0.0.

xaoseric commented 2 months ago

@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.

wobsoriano commented 1 month ago

FYI guys you can try tRPC v11 with

npm install trpc-nuxt@0.11.0-beta.1