-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support trpc v11 #61
base: main
Are you sure you want to change the base?
support trpc v11 #61
Conversation
@ImSingee Hey now that tRPC 11 has been released (11.0.1 at this time), do you need any help to get this merged? |
// const inputParser = getInputFromInputParsers(procedure._def.inputs) | ||
// if (typeof inputParser === 'function') { | ||
// return z.any() | ||
// } | ||
// | ||
// const defaultInputValue = inputParser ? getDefaultForDef(inputParser._def) : '' | ||
const defaultInputValue = '' | ||
|
||
const procedureType = '' | ||
const docsType = '' | ||
|
||
// if (inputParser) { | ||
// const { node } = zodToTs(inputParser) | ||
// procedureType = `input: ${printNode(node)}` | ||
// | ||
// docsType = printNode(createTypeAlias(node, 'input', inputParser.description)) | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you look into this please?
Found from comment:
#55 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like all of the changes in that gist should be in this PR. Thoughts?
@@ -7,7 +7,7 @@ | |||
"type-check": "tsc" | |||
}, | |||
"dependencies": { | |||
"@trpc/server": "10.5.0", | |||
"@trpc/server": "11.0.0-rc.593", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be changed to 11.0.1 across the board.
@@ -36,12 +36,12 @@ | |||
"type-check": "tsc" | |||
}, | |||
"peerDependencies": { | |||
"@trpc/server": "^10" | |||
"@trpc/server": "11.0.0-rc.593" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to be strict about peer dependencies.
"@trpc/server": "11.0.0-rc.593" | |
"@trpc/server": "^11" |
@@ -50,7 +50,7 @@ | |||
"type-check": "tsc" | |||
}, | |||
"peerDependencies": { | |||
"@trpc/server": "^10", | |||
"@trpc/server": "11.0.0-rc.593", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"@trpc/server": "11.0.0-rc.593", | |
"@trpc/server": "^11", |
Hi @johnjensenish Thanks for your follow up. I won't have time to work on this recently. You can just take my PR and work on it. |
Close #55
Thanks for @andrewgeorgemitchell and @ax-at
Draft reason: