Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ With tRPC we get the same benefits as with GraphQL and more (minus the code gene
* Developer ergonomics: Through the tRCP interface, IDEs will provide code completion for available Forge functions and even support jump-to-source (server) from Custom UI code.

## tRPC v11
Starting version 1.0.0 this packages supports tRPC v11 [which is considered stable](https://trpc.io/docs/migrate-from-v10-to-v11). This package is currently tested with 11.0.0-rc.593. Be aware that you'll need to use React 18.x to use tRPC 11.x with react-query 5.x. If you spot any issues with tRPC 11.x please open an issue.
Starting version 1.0.0 this packages supports tRPC v11 [which is considered stable](https://trpc.io/docs/migrate-from-v10-to-v11). This package is currently tested with 11.0.0-rc.795. Be aware that you'll need to use React 18.x to use tRPC 11.x with react-query 5.x. If you spot any issues with tRPC 11.x please open an issue.
76 changes: 51 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"dependencies": {
"@forge/bridge": "^3.3.0",
"@forge/resolver": "^1.5.29",
"@trpc/client": "^11.0.0-rc.593",
"@trpc/server": "^11.0.0-rc.593",
"@trpc/client": "^11.0.0-rc.795",
"@trpc/server": "^11.0.0-rc.795",
"fp-ts": "^2.13.1",
"io-ts": "^2.2.20",
"tslib": "^2.3.0"
Expand Down Expand Up @@ -42,7 +42,7 @@
"prettier": "^2.6.2",
"ts-jest": "29.1.2",
"ts-node": "10.9.1",
"typescript": "5.3.3",
"typescript": "5.7.3",
"verdaccio": "^5.0.4"
},
"nx": {
Expand Down
2 changes: 1 addition & 1 deletion packages/forge-trpc-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"@forge/resolver": "^1.4.8",
"@toolsplus/forge-trpc-protocol": "0.0.0-development",
"@trpc/server": "^11.0.0-rc.593",
"@trpc/server": "^11.0.0-rc.795",
"fp-ts": "^2.13.1",
"io-ts": "^2.2.20",
"tslib": "^2.3.0"
Expand Down
6 changes: 3 additions & 3 deletions packages/forge-trpc-adapter/src/lib/resolve-procedure-call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { pipe } from 'fp-ts/function';
import * as PathReporter from 'io-ts/PathReporter';
import {
AnyRouter,
callProcedure,
callTRPCProcedure,
getErrorShape,
inferRouterContext,
inferRouterError,
Expand Down Expand Up @@ -175,8 +175,8 @@ const callProcedures = <TRouter extends AnyRouter>({
pipe(
TE.tryCatch(
() =>
callProcedure({
procedures: router._def.procedures,
callTRPCProcedure({
router,
path,
getRawInput: async () => input,
ctx,
Expand Down
4 changes: 2 additions & 2 deletions packages/forge-trpc-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"dependencies": {
"@forge/bridge": "^3.3.0",
"@toolsplus/forge-trpc-protocol": "0.0.0-development",
"@trpc/client": "^11.0.0-rc.593",
"@trpc/server": "^11.0.0-rc.593",
"@trpc/client": "^11.0.0-rc.795",
"@trpc/server": "^11.0.0-rc.795",
"tslib": "^2.3.0"
}
}