Skip to content
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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

support trpc v11 #61

wants to merge 1 commit into from

Conversation

ImSingee
Copy link

@ImSingee ImSingee commented Oct 24, 2024

Close #55

Thanks for @andrewgeorgemitchell and @ax-at

Draft reason:

  1. v11 not released yet
  2. docs just be commented out

@ImSingee ImSingee mentioned this pull request Oct 24, 2024
@johnjensenish
Copy link

@ImSingee Hey now that tRPC 11 has been released (11.0.1 at this time), do you need any help to get this merged?

Comment on lines +30 to +46
// 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))
// }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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",

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"

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.

Suggested change
"@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",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"@trpc/server": "11.0.0-rc.593",
"@trpc/server": "^11",

@ImSingee
Copy link
Author

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.

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

Successfully merging this pull request may close these issues.

V11 support
2 participants