Skip to content

Commit 5548902

Browse files
authored
Fixes sentry and orpc issues (#269)
Update oRPC packages and zod, remove experimental import, update sentry dev script
1 parent 6110e61 commit 5548902

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

frameworks/react-cra/add-ons/oRPC/assets/src/routes/api.$.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import '@/polyfill'
22

33
import { OpenAPIHandler } from '@orpc/openapi/fetch'
44
import { ZodToJsonSchemaConverter } from '@orpc/zod/zod4'
5-
import { experimental_SmartCoercionPlugin as SmartCoercionPlugin } from '@orpc/json-schema'
5+
import { SmartCoercionPlugin } from '@orpc/json-schema'
66
import { createFileRoute } from '@tanstack/react-router'
77
import { onError } from '@orpc/server'
88
import { OpenAPIReferencePlugin } from '@orpc/openapi/plugins'
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"dependencies": {
3-
"@orpc/client": "^1.7.5",
4-
"@orpc/json-schema": "^1.7.5",
5-
"@orpc/openapi": "^1.7.5",
6-
"@orpc/server": "^1.7.5",
7-
"@orpc/tanstack-query": "^1.7.5",
8-
"@orpc/zod": "^1.7.5",
9-
"zod": "^4.0.10"
3+
"@orpc/client": "^1.13.0",
4+
"@orpc/json-schema": "^1.13.0",
5+
"@orpc/openapi": "^1.13.0",
6+
"@orpc/server": "^1.13.0",
7+
"@orpc/tanstack-query": "^1.13.0",
8+
"@orpc/zod": "^1.13.0",
9+
"zod": "^4.2.1"
1010
}
1111
}

frameworks/react-cra/add-ons/sentry/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"scripts": {
33
"build": "vite build && cp instrument.server.mjs .output/server",
4-
"dev": "NODE_OPTIONS='--import ./instrument.server.mjs' vite dev --port 3000",
4+
"dev": "dotenv -e .env.local -- sh -c \"NODE_OPTIONS='--import ./instrument.server.mjs' vite dev --port 3000\"",
55
"start": "node --import ./.output/server/instrument.server.mjs .output/server/index.mjs"
66
},
77
"dependencies": {

0 commit comments

Comments
 (0)