Skip to content

Open-source status page, incident response and uptime monitoring

fix zod migration (#1685)

Thibault Le Ouay9c2ed19e8bea
diff --git a/apps/screenshot-service/package.json b/apps/screenshot-service/package.json
index 5c3beffff..123174745 100644
--- a/apps/screenshot-service/package.json
+++ b/apps/screenshot-service/package.json
@@ -10,7 +10,7 @@
"@hono/zod-validator": "0.2.2",
"@openstatus/db": "workspace:*",
"@openstatus/utils": "workspace:^",
- "@t3-oss/env-core": "0.7.1",
+ "@t3-oss/env-core": "0.13.10",
"@upstash/qstash": "2.6.2",
"hono": "4.5.3",
"playwright": "1.46.0",
diff --git a/apps/server/package.json b/apps/server/package.json
index d0199cc67..9cd4c47c7 100644
--- a/apps/server/package.json
+++ b/apps/server/package.json
@@ -28,7 +28,7 @@
"@openstatus/upstash": "workspace:*",
"@openstatus/utils": "workspace:*",
"@scalar/hono-api-reference": "0.8.5",
- "@t3-oss/env-core": "0.7.1",
+ "@t3-oss/env-core": "0.13.10",
"@unkey/api": "2.2.0",
"@upstash/qstash": "2.6.2",
"hono": "4.5.3",
diff --git a/packages/analytics/env.ts b/packages/analytics/env.ts
index dbc560e68..9d030817e 100644
--- a/packages/analytics/env.ts
+++ b/packages/analytics/env.ts
@@ -1,5 +1,5 @@
import { createEnv } from "@t3-oss/env-core";
-import { z } from "zod";
+import { z } from "zod/v4";
export const env = createEnv({
server: {
@@ -9,9 +9,10 @@ export const env = createEnv({
NEXT_PUBLIC_OPENPANEL_CLIENT_ID: z.string(),
},
clientPrefix: "NEXT_PUBLIC_",
- runtimeEnv: {
- OPENPANEL_CLIENT_SECRET: process.env.OPENPANEL_CLIENT_SECRET,
- NEXT_PUBLIC_OPENPANEL_CLIENT_ID:
- process.env.NEXT_PUBLIC_OPENPANEL_CLIENT_ID,
- },
+
+ runtimeEnv: process.env,
+
+ skipValidation: true,
+
+ // runtimeEnv: process.env,
});
diff --git a/packages/analytics/package.json b/packages/analytics/package.json
index e08f53692..16bf5fcae 100644
--- a/packages/analytics/package.json
+++ b/packages/analytics/package.json
@@ -4,9 +4,9 @@
"description": "",
"main": "src/index.ts",
"dependencies": {
- "@openpanel/sdk": "1.0.0",
- "@t3-oss/env-core": "0.7.1",
- "zod": "3.25.76"
+ "@openpanel/sdk": "1.0.3",
+ "@t3-oss/env-core": "0.13.10",
+ "zod": "4.1.13"
},
"devDependencies": {
"@openstatus/tsconfig": "workspace:*",
diff --git a/packages/analytics/tsconfig.json b/packages/analytics/tsconfig.json
index 7f4d9b728..6db9cd3c3 100644
--- a/packages/analytics/tsconfig.json
+++ b/packages/analytics/tsconfig.json
@@ -3,20 +3,8 @@
"extends": "@openstatus/tsconfig/base.json",
"exclude": ["dist", "node_modules"],
"compilerOptions": {
- "outDir": "dist",
- "target": "es2021",
- "lib": ["dom", "dom.iterable", "esnext"],
- "allowJs": true,
- "checkJs": true,
- "skipLibCheck": true,
- "strict": true,
- "forceConsistentCasingInFileNames": true,
- "noEmit": true,
- "esModuleInterop": true,
- "module": "esnext",
- "moduleResolution": "node",
- "resolveJsonModule": true,
- "noUncheckedIndexedAccess": true
+ "module": "nodenext",
+ "moduleResolution": "nodenext"
},
"include": ["**/*.ts", "env.ts"]
}
diff --git a/packages/api/package.json b/packages/api/package.json
index 00428f369..cc364a49e 100644
--- a/packages/api/package.json
+++ b/packages/api/package.json
@@ -20,7 +20,7 @@
"@openstatus/tinybird": "workspace:*",
"@openstatus/upstash": "workspace:*",
"@openstatus/utils": "workspace:*",
- "@t3-oss/env-core": "0.7.1",
+ "@t3-oss/env-core": "0.13.10",
"@trpc/client": "11.4.4",
"@trpc/server": "11.4.4",
"@unkey/api": "2.2.0",
diff --git a/packages/db/env.mjs b/packages/db/env.mjs
index 2c6f37283..9d41071aa 100644
--- a/packages/db/env.mjs
+++ b/packages/db/env.mjs
@@ -1,5 +1,5 @@
import { createEnv } from "@t3-oss/env-core";
-import { z } from "zod";
+import { z } from "zod/v3";
export const env = createEnv({
server: {
diff --git a/packages/db/package.json b/packages/db/package.json
index 30664fc77..5f5b9dbf5 100644
--- a/packages/db/package.json
+++ b/packages/db/package.json
@@ -17,7 +17,7 @@
"@openstatus/assertions": "workspace:*",
"@openstatus/regions": "workspace:*",
"@openstatus/theme-store": "workspace:*",
- "@t3-oss/env-core": "0.7.1",
+ "@t3-oss/env-core": "0.13.10",
"drizzle-orm": "0.44.4",
"drizzle-zod": "0.5.1",
"zod": "3.25.76"
diff --git a/packages/emails/package.json b/packages/emails/package.json
index 55383fff0..f1ae1489f 100644
--- a/packages/emails/package.json
+++ b/packages/emails/package.json
@@ -16,7 +16,7 @@
"@react-email/html": "0.0.11",
"@react-email/render": "2.0.0",
"@react-email/tailwind": "2.0.1",
- "@t3-oss/env-core": "0.7.1",
+ "@t3-oss/env-core": "0.13.10",
"react-email": "5.0.8",
"resend": "6.6.0",
"zod": "3.25.76"
diff --git a/packages/notifications/email/package.json b/packages/notifications/email/package.json
index 4c63facf0..c86038a6a 100644
--- a/packages/notifications/email/package.json
+++ b/packages/notifications/email/package.json
@@ -14,7 +14,7 @@
"@openstatus/utils": "workspace:*",
"@react-email/components": "1.0.1",
"@react-email/render": "2.0.0",
- "@t3-oss/env-core": "0.7.1",
+ "@t3-oss/env-core": "0.13.10",
"react-dom": "19.2.2",
"resend": "6.6.0",
"zod": "3.25.76"
diff --git a/packages/notifications/opsgenie/package.json b/packages/notifications/opsgenie/package.json
index 508c756fc..00150b9db 100644
--- a/packages/notifications/opsgenie/package.json
+++ b/packages/notifications/opsgenie/package.json
@@ -7,7 +7,7 @@
},
"dependencies": {
"@openstatus/db": "workspace:*",
- "@t3-oss/env-core": "0.7.1",
+ "@t3-oss/env-core": "0.13.10",
"@types/validator": "13.12.0",
"validator": "13.12.0",
"zod": "3.25.76"
diff --git a/packages/notifications/pagerduty/package.json b/packages/notifications/pagerduty/package.json
index e00dacb23..f1376b44a 100644
--- a/packages/notifications/pagerduty/package.json
+++ b/packages/notifications/pagerduty/package.json
@@ -7,7 +7,7 @@
},
"dependencies": {
"@openstatus/db": "workspace:*",
- "@t3-oss/env-core": "0.7.1",
+ "@t3-oss/env-core": "0.13.10",
"@types/validator": "13.12.0",
"validator": "13.12.0",
"zod": "3.25.76"
diff --git a/packages/notifications/twillio-sms/package.json b/packages/notifications/twillio-sms/package.json
index 2c92c5c49..cd99fc33f 100644
--- a/packages/notifications/twillio-sms/package.json
+++ b/packages/notifications/twillio-sms/package.json
@@ -7,7 +7,7 @@
},
"dependencies": {
"@openstatus/db": "workspace:*",
- "@t3-oss/env-core": "0.7.1",
+ "@t3-oss/env-core": "0.13.10",
"validator": "13.12.0",
"zod": "3.25.76"
},
diff --git a/packages/notifications/twillio-whatsapp/package.json b/packages/notifications/twillio-whatsapp/package.json
index e0b16a123..e7f2dd6f1 100644
--- a/packages/notifications/twillio-whatsapp/package.json
+++ b/packages/notifications/twillio-whatsapp/package.json
@@ -7,7 +7,7 @@
},
"dependencies": {
"@openstatus/db": "workspace:*",
- "@t3-oss/env-core": "0.7.1",
+ "@t3-oss/env-core": "0.13.10",
"validator": "13.12.0",
"zod": "3.25.76"
},
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index b529da302..8fb08d542 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -76,7 +76,7 @@ importers:
version: 0.15.15
'@openpanel/nextjs':
specifier: 1.0.8
'@openstatus/analytics':
specifier: workspace:*
version: link:../../packages/analytics
@@ -211,7 +211,7 @@ importers:
'@sentry/nextjs':
specifier: 10.31.0
'@stripe/stripe-js':
specifier: 2.1.6
version: 2.1.6
@@ -226,7 +226,7 @@ importers:
'@trpc/next':
specifier: 11.4.4
'@trpc/react-query':
specifier: 11.4.4
@@ -265,7 +265,7 @@ importers:
nuqs:
specifier: 2.8.5
random-word-slugs:
specifier: 0.1.7
version: 0.1.7
@@ -422,8 +422,8 @@ importers:
specifier: workspace:^
version: link:../../packages/utils
'@t3-oss/env-core':
- specifier: 0.7.1
+ specifier: 0.13.10
'@upstash/qstash':
specifier: 2.6.2
version: 2.6.2
@@ -495,8 +495,8 @@ importers:
specifier: 0.8.5
version: 0.8.5([email protected])
'@t3-oss/env-core':
- specifier: 0.7.1
+ specifier: 0.13.10
'@unkey/api':
specifier: 2.2.0
version: 2.2.0
@@ -563,7 +563,7 @@ importers:
version: 0.15.15
'@openpanel/nextjs':
specifier: 1.0.8
'@openstatus/analytics':
specifier: workspace:*
version: link:../../packages/analytics
@@ -653,7 +653,7 @@ importers:
'@sentry/nextjs':
specifier: 10.31.0
'@stripe/stripe-js':
specifier: 2.1.6
version: 2.1.6
@@ -668,7 +668,7 @@ importers:
'@trpc/next':
specifier: 11.4.4
'@trpc/react-query':
specifier: 11.4.4
@@ -704,13 +704,13 @@ importers:
next-plausible:
specifier: 3.12.5
next-themes:
specifier: 0.4.6
nuqs:
specifier: 2.8.5
react:
specifier: 19.2.2
version: 19.2.2
@@ -807,7 +807,7 @@ importers:
version: 0.15.15
'@openpanel/nextjs':
specifier: 1.0.8
'@openstatus/analytics':
specifier: workspace:*
version: link:../../packages/analytics
@@ -882,7 +882,7 @@ importers:
'@sentry/nextjs':
specifier: 10.31.0
'@stripe/stripe-js':
specifier: 2.1.6
version: 2.1.6
@@ -909,7 +909,7 @@ importers:
'@trpc/next':
specifier: 11.4.4
'@trpc/react-query':
specifier: 11.4.4
@@ -963,13 +963,13 @@ importers:
version: 5.0.0(@types/[email protected])([email protected])
next-plausible:
specifier: 3.12.5
next-themes:
specifier: 0.4.6
nuqs:
specifier: 2.8.5
random-word-slugs:
specifier: 0.1.7
version: 0.1.7
@@ -1171,14 +1171,14 @@ importers:
packages/analytics:
dependencies:
'@openpanel/sdk':
- specifier: 1.0.0
- version: 1.0.0
+ specifier: 1.0.3
+ version: 1.0.3
'@t3-oss/env-core':
- specifier: 0.7.1
+ specifier: 0.13.10
zod:
- specifier: 3.25.76
- version: 3.25.76
+ specifier: 4.1.13
+ version: 4.1.13
devDependencies:
'@openstatus/tsconfig':
specifier: workspace:*
@@ -1229,8 +1229,8 @@ importers:
specifier: workspace:*
version: link:../utils
'@t3-oss/env-core':
- specifier: 0.7.1
+ specifier: 0.13.10
'@trpc/client':
specifier: 11.4.4
@@ -1315,8 +1315,8 @@ importers:
specifier: workspace:*
version: link:../theme-store
'@t3-oss/env-core':
- specifier: 0.7.1
+ specifier: 0.13.10
drizzle-orm:
specifier: 0.44.4
version: 0.44.4(@libsql/[email protected])(@opentelemetry/[email protected])(@types/[email protected])([email protected])
@@ -1364,8 +1364,8 @@ importers:
specifier: 2.0.1
'@t3-oss/env-core':
- specifier: 0.7.1
+ specifier: 0.13.10
react-email:
specifier: 5.0.8
version: 5.0.8
@@ -1485,8 +1485,8 @@ importers:
specifier: 2.0.0
'@t3-oss/env-core':
- specifier: 0.7.1
+ specifier: 0.13.10
react-dom:
specifier: 19.2.2
version: 19.2.2([email protected])
@@ -1563,8 +1563,8 @@ importers:
specifier: workspace:*
version: link:../../db
'@t3-oss/env-core':
- specifier: 0.7.1
+ specifier: 0.13.10
'@types/validator':
specifier: 13.12.0
version: 13.12.0
@@ -1600,8 +1600,8 @@ importers:
specifier: workspace:*
version: link:../../db
'@t3-oss/env-core':
- specifier: 0.7.1
+ specifier: 0.13.10
'@types/validator':
specifier: 13.12.0
version: 13.12.0
@@ -1681,8 +1681,8 @@ importers:
specifier: workspace:*
version: link:../../db
'@t3-oss/env-core':
- specifier: 0.7.1
+ specifier: 0.13.10
validator:
specifier: 13.12.0
version: 13.12.0
@@ -1712,8 +1712,8 @@ importers:
specifier: workspace:*
version: link:../../db
'@t3-oss/env-core':
- specifier: 0.7.1
+ specifier: 0.13.10
validator:
specifier: 13.12.0
version: 13.12.0
@@ -1796,6 +1796,8 @@ importers:
specifier: 5.9.3
version: 5.9.3
+ packages/react/dist: {}
+
packages/regions:
dependencies:
zod:
@@ -3687,6 +3689,9 @@ packages:
'@openpanel/[email protected]':
resolution: {integrity: sha512-FNmmfjdXoC/VHEjA+WkrQ4lyM5lxEmV7xDd57uj4E+lIS0sU3DLG2mV/dpS8AscnZbUvuMn3kPhiLCqYzuv/gg==}
+ '@openpanel/[email protected]':
+ resolution: {integrity: sha512-VzxHN4wfMd6iP7Amq572plQKvj6bnsp+KgVK/7sbqEvzJ2N505a3Sn/wCwectBYiJ0QPRi2djeqU5tdacm6hhg==}
+
'@openpanel/[email protected]':
resolution: {integrity: sha512-cVZ7Kr9SicczJ/RDIfEtZs8+1iGDzwkabVA/j3NqSl8VSucsC8m1+LVbjmCDzCJNnK4yVn6tEcc9PJRi2rtllw==}
@@ -6009,17 +6014,25 @@ packages:
resolution: {integrity: sha512-5IKx/Y13RsYd+sauPb2x+U/xZikHjolzfuDgTAl/Tdf3Q8rslRvC19NKDLgAJQ6wsqADk10ntlv08nPFw/gO/A==}
- '@t3-oss/[email protected]':
- resolution: {integrity: sha512-cgunN82CqgQOOyuMOK/bGtujX5/ooXQTwGMJVWI6mCowq6WE5EgRLOqF/DRcrElI0gSFGA9i9GrxzCnk73HZLQ==}
+ '@t3-oss/[email protected]':
+ resolution: {integrity: sha512-NNFfdlJ+HmPHkLi2HKy7nwuat9SIYOxei9K10lO2YlcSObDILY7mHZNSHsieIM3A0/5OOzw/P/b+yLvPdaG52g==}
peerDependencies:
- typescript: '>=4.7.2'
- zod: ^3.0.0
+ arktype: ^2.1.0
+ typescript: '>=5.0.0'
+ valibot: ^1.0.0-beta.7 || ^1.0.0
+ zod: ^3.24.0 || ^4.0.0
peerDependenciesMeta:
+ arktype:
+ optional: true
typescript:
optional: true
+ valibot:
+ optional: true
+ zod:
+ optional: true
- '@t3-oss/[email protected]':
- resolution: {integrity: sha512-3+SQt39OlmSaRLqYVFv8uRm1BpFepM5TIiMytRqO9cjH+wB77o6BIJdeyM5h5U4qLBMEzOJWCY4MBaU/rLwbYw==}
+ '@t3-oss/[email protected]':
+ resolution: {integrity: sha512-cgunN82CqgQOOyuMOK/bGtujX5/ooXQTwGMJVWI6mCowq6WE5EgRLOqF/DRcrElI0gSFGA9i9GrxzCnk73HZLQ==}
peerDependencies:
typescript: '>=4.7.2'
zod: ^3.0.0
@@ -10198,7 +10211,6 @@ packages:
resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==}
engines: {node: '>= 8'}
- deprecated: The work that was done in this beta branch won't be included in future versions
resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==}
@@ -11305,8 +11317,8 @@ packages:
resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==}
- resolution: {integrity: sha512-0wZ1IRqGGhMP76gLqz8EyfBXKk0J2qo2+H3fi4mcUP/KtTocoX08nmIAHl1Z2kJIZbZee8KOpBCSNPRgauucjw==}
+ resolution: {integrity: sha512-AvvthqfqrAhNH9dnfmrfKzX5upOdjUVJYFqNSlkmGf64gRaTzlPwz99IHYnVs28qYAybvAlBV+H7pn0saFY4Ig==}
resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}
@@ -13273,7 +13285,7 @@ snapshots:
'@openpanel/web': 1.0.1
dependencies:
'@openpanel/web': 1.0.1
@@ -13282,6 +13294,8 @@ snapshots:
'@openpanel/[email protected]': {}
+ '@openpanel/[email protected]': {}
+
'@openpanel/[email protected]':
dependencies:
'@openpanel/sdk': 1.0.0
@@ -15219,7 +15233,7 @@ snapshots:
'@sentry/[email protected]': {}
dependencies:
'@opentelemetry/api': 1.9.0
'@opentelemetry/semantic-conventions': 1.38.0
@@ -15706,13 +15720,17 @@ snapshots:
dependencies:
tslib: 2.8.1
- dependencies:
+ optionalDependencies:
+ typescript: 5.9.3
zod: 3.25.76
+
optionalDependencies:
typescript: 5.9.3
+ zod: 4.1.13
dependencies:
zod: 3.25.76
optionalDependencies:
@@ -15922,7 +15940,7 @@ snapshots:
'@trpc/server': 11.4.4([email protected])
typescript: 5.9.3
dependencies:
'@trpc/server': 11.4.4([email protected])
@@ -18587,7 +18605,7 @@ snapshots:
smol-toml: 1.5.2
strip-json-comments: 5.0.3
typescript: 5.9.3
- zod: 4.2.1
+ zod: 4.1.13
@@ -19388,7 +19406,7 @@ snapshots:
- '@types/react'
- supports-color
dependencies:
react: 19.2.2
@@ -19485,7 +19503,7 @@ snapshots:
dependencies:
boolbase: 1.0.0
dependencies:
'@standard-schema/spec': 1.0.0
react: 19.2.2
@@ -21947,6 +21965,6 @@ snapshots: