Skip to content

Commit e123f8c

Browse files
committed
use oRPC 1.11.2
1 parent 5f3b7f5 commit e123f8c

File tree

11 files changed

+175
-170
lines changed

11 files changed

+175
-170
lines changed

apps/api/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"type:check": "tsc --noEmit"
1111
},
1212
"devDependencies": {
13-
"@orpc/experimental-pino": "^1.11.1",
14-
"@orpc/experimental-publisher": "^1.11.1",
15-
"@orpc/openapi": "^1.11.1",
16-
"@orpc/server": "^1.11.1",
13+
"@orpc/experimental-pino": "^1.11.2",
14+
"@orpc/experimental-publisher": "^1.11.2",
15+
"@orpc/openapi": "^1.11.2",
16+
"@orpc/server": "^1.11.2",
1717
"@repo/auth-service": "workspace:*",
1818
"@repo/chat-service": "workspace:*",
1919
"@repo/planet-service": "workspace:*",

apps/api/src/main.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ const roomPublisher = new MemoryPublisher<any>()
1515
const BEARER_REGEX = /^Bearer ?/
1616

1717
const server = createServer(async (req, res) => {
18+
if (process.env.NODE_ENV !== 'production') {
19+
// Simulate network latency in development mode
20+
await new Promise(resolve => setTimeout(resolve, 150))
21+
}
22+
1823
const authToken = req.headers.authorization?.replace(BEARER_REGEX, '') || null
1924

2025
const authServiceRPCHandleResult = await authServiceRPCHandler.handle(req, res, {

apps/web/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
"react-dom": "^19.2.0"
1717
},
1818
"devDependencies": {
19-
"@orpc/client": "^1.11.1",
20-
"@orpc/contract": "^1.11.1",
21-
"@orpc/tanstack-query": "^1.11.1",
19+
"@orpc/client": "^1.11.2",
20+
"@orpc/contract": "^1.11.2",
21+
"@orpc/tanstack-query": "^1.11.2",
2222
"@repo/auth-contract": "workspace:*",
2323
"@repo/chat-contract": "workspace:*",
2424
"@repo/planet-contract": "workspace:*",

apps/web/src/components/ChatRoom.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export function ChatRoom() {
7676
value={inputValue}
7777
onChange={setInputValue}
7878
onSubmit={handleSubmit}
79-
disabled={sendMessageMutation.isPending}
79+
disabled={sendMessageMutation.isPending || messagesQuery.status === 'pending'}
8080
isSubmitting={sendMessageMutation.isPending}
8181
/>
8282
</div>

packages/auth-contract/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"type:check": "tsc -b"
1010
},
1111
"dependencies": {
12-
"@orpc/contract": "^1.11.1",
13-
"@orpc/zod": "^1.11.1",
12+
"@orpc/contract": "^1.11.2",
13+
"@orpc/zod": "^1.11.2",
1414
"zod": "^4.1.12"
1515
}
1616
}

packages/auth-service/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"type:check": "tsc -b"
1010
},
1111
"dependencies": {
12-
"@orpc/contract": "^1.11.1",
12+
"@orpc/contract": "^1.11.2",
1313
"@repo/auth-contract": "workspace:*"
1414
}
1515
}

packages/chat-contract/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"type:check": "tsc -b"
1010
},
1111
"dependencies": {
12-
"@orpc/contract": "^1.11.1",
13-
"@orpc/zod": "^1.11.1",
12+
"@orpc/contract": "^1.11.2",
13+
"@orpc/zod": "^1.11.2",
1414
"@repo/auth-contract": "workspace:*",
1515
"zod": "^4.1.12"
1616
}

packages/chat-service/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"type:check": "tsc -b"
1010
},
1111
"dependencies": {
12-
"@orpc/contract": "^1.11.1",
13-
"@orpc/experimental-publisher": "^1.11.1",
12+
"@orpc/contract": "^1.11.2",
13+
"@orpc/experimental-publisher": "^1.11.2",
1414
"@repo/auth-contract": "workspace:*",
1515
"@repo/chat-contract": "workspace:*"
1616
}

packages/planet-contract/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"type:check": "tsc -b"
1010
},
1111
"dependencies": {
12-
"@orpc/contract": "^1.11.1",
13-
"@orpc/zod": "^1.11.1",
12+
"@orpc/contract": "^1.11.2",
13+
"@orpc/zod": "^1.11.2",
1414
"zod": "^4.1.12"
1515
}
1616
}

packages/planet-service/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"type:check": "tsc -b"
1010
},
1111
"dependencies": {
12-
"@orpc/contract": "^1.11.1",
12+
"@orpc/contract": "^1.11.2",
1313
"@repo/auth-contract": "workspace:*",
1414
"@repo/planet-contract": "workspace:*"
1515
}

0 commit comments

Comments
 (0)