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 too #38

Merged
merged 13 commits into from
Sep 17, 2024
Merged

Support trpc v11 too #38

merged 13 commits into from
Sep 17, 2024

Conversation

mmkal
Copy link
Owner

@mmkal mmkal commented Sep 14, 2024

Fixes #37

@david-arteaga this adds support for @trpc/server v11. Feel free to try it on the pkg.pr.new link (should be added as a comment to this PR)

Note: you will need to pass in createCallerFactory manually when using trpc v11, for now:

import {initTRPC} from '@trpc/server'

const {createCallerFactory} = initTRPC.create()
const cli = createCli({router, createCallerFactory})

Copy link

pkg-pr-new bot commented Sep 14, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/mmkal/trpc-cli@38

commit: a99815d

@mmkal mmkal changed the title Support trpc v11 Support trpc v11 top Sep 14, 2024
@mmkal mmkal changed the title Support trpc v11 top Support trpc v11 too Sep 14, 2024
@mmkal mmkal marked this pull request as ready for review September 17, 2024 16:05
@mmkal mmkal merged commit b3af1e8 into main Sep 17, 2024
5 checks passed
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.

Feature request: Support for @trpc/server@11
1 participant