Feat: tRPC V10 Support
Hi James, Is the tRPC alpha version 10 already supported? If not, when would it be possible? Also since this package is so closely tied and useful to tRPC, has it been considered to be merged into the tRPC monorepo?
as it was previously
export const createRouter = () => {
return trpc.router<Context, OpenApiMeta>();
};
I've tried to use it now like this:
export const t = initTRPC<{ ctx: Context; meta: OpenApiMeta }>()();
However I get an error when using
t.procedure.meta({ openapi: { enabled: true, .... } }).
Hi @mshd - v10 is not supported yet. It might take me a couple of weeks to get to this, but feel free to open a PR yourself if this is a requirement! 🙌
EDIT: Going to delay the development of this until the public v10 alpha is released. Looks like there is likely going to be more API changes before then.
@jlalmes Any updates on this? :)
@albertilagan still waiting for the public tRPC v10@alpha to be released!
looking forward on this
Just shipped tRPC v10 support.
To get started, please see 👉 https://github.com/jlalmes/trpc-openapi/blob/next/README.md Full list of breaking changes 👉 https://github.com/jlalmes/trpc-openapi/pull/143