Releases: mmkal/trpc-cli
Releases · mmkal/trpc-cli
v0.12.1
What's Changed
- [experimental] proxify helper to create a cli for a remote server by @mmkal in #153
- note: this is experimental so don't use this unless you want to help iron out the details/are aware it might be removed completely some day
Docs:
- Update README.md for orpc os.input instead of os.procedure.input by @hunterwilhelm in #155
Internal:
New Contributors
- @hunterwilhelm made their first contribution in #155
Full Changelog: v0.12.0...v0.12.1
v0.12.0
v0.11.0
v0.10.2
v0.10.1
v0.10.0
- rewrite readme; more organized, less repetitive, clearer (#133) 1650b41
- define positional arguments via
.meta(#132) 62965c7 - alias options via zod meta (#129) 7df0c8b
- opt-in negatable booleans (#128) 41fbb3e
- fix tsdown output warnings (#122) fc29cd6
- fix json input (#121) 9b3e1e0
- rm limitations that aren't true anymore 623fe14
v0.9.2
fix: missed another bundler confusion spot
Full Changelog: v0.9.1...v0.9.2
v0.9.1
v0.9.0
You can now also pass an oRPC router (thanks @unnoq)! Much like tRPC, just pass a router:
import {os} from '@orpc/server'
import {z, createCli} from 'trpc-cli'
export const router = os.router({
add: os.procedure
.input(z.object({left: z.number(), right: z.number()}))
.handler(({input}) => input.left + input.right),
})
const cli = createCli({router})
cli.run()Commits in this release:
- add post-release job 73fd9f3
- support @clack/prompts (#109) 35a6b91
- support orpc routers (#105) 11350cb
- refactor: clean up parseRouter implementation (#104) 71f5f9f