Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Any plans to seek a new maintainer? #451

Open
musjj opened this issue Jul 1, 2024 · 12 comments
Open

Any plans to seek a new maintainer? #451

musjj opened this issue Jul 1, 2024 · 12 comments

Comments

@musjj
Copy link

musjj commented Jul 1, 2024

It looks like a year has passed since the last commit and @jlalmes is now focusing on other things according to the bio in his profile.

Are there any plans to pass down the project to a new maintainer? I'm really thankful for this project, but it's really a shame to see it slowly becoming incompatible with the ecosystem:

For now I'm making do by using:

I haven't tested them extensively, but they do work decently on my small projects.

@KiranMantha
Copy link

KiranMantha commented Jul 4, 2024

@musjj , add this one as well. Unable to generate openapi contract json due to updations on how a procedure definition is generated by latest @trpc/server (right now i'm using 11-rc version)

@kdy1
Copy link

kdy1 commented Jul 29, 2024

@jlalmes Do you have time to review/merge PRs? If not, can I do it instead?

As a side note, I'm the creator of the SWC project and maintainer of next.js/turbopack, although I'll not use working hours for this.

@kdy1
Copy link

kdy1 commented Jul 30, 2024

I forked it for now.

https://github.com/kdy1/trpc-openapi

npm package: better-trpc-openapi

@bompi88
Copy link

bompi88 commented Aug 22, 2024

Also a popup package here: https://github.com/vercjames/package-trpc-swagger

@bompi88
Copy link

bompi88 commented Aug 22, 2024

@kdy1 I'm getting the following error when errors are thrown or malformed JSON is posted to one of the endpoints:

TypeError: router._def.getErrorShape is not a function
    at ~/whatever/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/better-trpc-openapi/src/adapters/node-http/core.ts:168:38
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async ~/whatever/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/better-trpc-openapi/src/adapters/express.ts:18:5

Have you encountered this TypeError before and if so, what am I doing wrong here?

@Westernwells
Copy link

@kdy1 I'm getting the following error when errors are thrown or malformed JSON is posted to one of the endpoints:

TypeError: router._def.getErrorShape is not a function
    at ~/whatever/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/better-trpc-openapi/src/adapters/node-http/core.ts:168:38
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async ~/whatever/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/better-trpc-openapi/src/adapters/express.ts:18:5

Have you encountered this TypeError before and if so, what am I doing wrong here?

Encountering this same issue right now

@tristanz
Copy link

tristanz commented Sep 4, 2024

@kdy1 are you still interested in this? @jlalmes do you have any thoughts? I've love if we could organize a group of folks to maintain this actively. Maybe we could do a brief huddle with 1-3 folks who are using this project in production and try to get a fork properly maintained.

@kdy1
Copy link

kdy1 commented Sep 9, 2024

@tristanz Yes, I don't actively use my fork at the moment, but I'll need to expose my APIs in my private project in a near future.

@mcampa
Copy link

mcampa commented Sep 11, 2024

I have a fork that works with tRPC 11 https://www.npmjs.com/package/trpc-to-openapi

it's been running fine with t3-app/NextJS. However, I don't use other adapters, I fixed all tests cases for everything so in theory they should work. The only thing I couldn't port was the serverless adapter, the trpc implementation changed too much.

This is a fork of another fork (https://github.com/LilyRose2798/trpc-openapi) which uses zod-openapi instead of zod-to-json-schema and some other fixes.

PR are welcomed

@tayhalla
Copy link

@kdy1 are you actively maintaining your fork? If not, would you be open to us taking it over? We're going to be using it and committing to it.

@kdy1
Copy link

kdy1 commented Oct 28, 2024

@tayhalla Of course. Are you going to maintain it as a team?

@rokitgg
Copy link

rokitgg commented Oct 29, 2024

Is there any fork that works fine with NextJS app router? I've only found examples with the old pages router, and although the tRPC > OpenAPI conversion works fine, I've been struggling to set up a request handler using app router.

Thanks in advance!

Update: trpc-to-openapi (https://www.npmjs.com/package/trpc-to-openapi) finally worked for me with both tRPC v11 and NextJS 15 👍 . Huge thanks to @mcampa

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants