From fc2ef089a4b6cf7c5fc029930d8a17c2689415c4 Mon Sep 17 00:00:00 2001 From: Alex / KATT Date: Fri, 20 Dec 2024 15:42:25 +0100 Subject: [PATCH 1/2] fix(server): bump minimal typescript to `>=5.7.2` (#6326) --- .../.experimental/next-app-dir/package.json | 2 +- .../.test/diagnostics-big-router/package.json | 2 +- .../.test/internal-types-export/package.json | 2 +- .../ssg-infinite-serialization/package.json | 2 +- examples/.test/ssg/package.json | 2 +- examples/bun/package.json | 2 +- examples/cloudflare-workers/package.json | 2 +- examples/express-minimal/package.json | 2 +- examples/express-server/package.json | 2 +- examples/fastify-server/package.json | 2 +- examples/lambda-api-gateway/package.json | 2 +- .../minimal-content-types/client/package.json | 2 +- .../minimal-content-types/server/package.json | 2 +- examples/minimal-react/client/package.json | 2 +- examples/minimal-react/server/package.json | 2 +- examples/minimal/package.json | 2 +- examples/next-big-router/package.json | 2 +- examples/next-edge-runtime/package.json | 2 +- examples/next-formdata/package.json | 2 +- examples/next-minimal-starter/package.json | 2 +- examples/next-prisma-starter/package.json | 2 +- examples/next-prisma-todomvc/package.json | 2 +- .../package.json | 2 +- examples/next-sse-chat/package.json | 2 +- examples/soa/package.json | 2 +- examples/standalone-server/package.json | 2 +- examples/tanstack-start/package.json | 2 +- examples/vercel-edge-runtime/package.json | 2 +- package.json | 2 +- packages/client/package.json | 4 +- packages/next/package.json | 4 +- packages/react-query/package.json | 4 +- packages/server/package.json | 4 +- packages/tests/package.json | 2 +- pnpm-lock.yaml | 123 +++++++++--------- scripts/entrypoints.ts | 2 +- www/docs/further/faq.mdx | 2 +- www/docs/main/quickstart.mdx | 2 +- .../migration/migrate-from-v10-to-v11.mdx | 2 +- www/og-image/package.json | 2 +- 40 files changed, 101 insertions(+), 108 deletions(-) diff --git a/examples/.experimental/next-app-dir/package.json b/examples/.experimental/next-app-dir/package.json index 9adb7529043..f2cfa8ca79e 100644 --- a/examples/.experimental/next-app-dir/package.json +++ b/examples/.experimental/next-app-dir/package.json @@ -31,7 +31,7 @@ "server-only": "^0.0.1", "superjson": "^1.12.4", "trpc-api": "link:./src/trpc", - "typescript": "^5.7.0", + "typescript": "^5.7.2", "zod": "^3.0.0" }, "devDependencies": { diff --git a/examples/.test/diagnostics-big-router/package.json b/examples/.test/diagnostics-big-router/package.json index 4e10def7c82..a4f6bb6d488 100644 --- a/examples/.test/diagnostics-big-router/package.json +++ b/examples/.test/diagnostics-big-router/package.json @@ -23,6 +23,6 @@ "@types/react-dom": "^19.0.0", "eslint": "^9.13.0", "tsx": "^4.0.0", - "typescript": "^5.6.2" + "typescript": "^5.7.2" } } diff --git a/examples/.test/internal-types-export/package.json b/examples/.test/internal-types-export/package.json index 53f09364c8a..d27681511a1 100644 --- a/examples/.test/internal-types-export/package.json +++ b/examples/.test/internal-types-export/package.json @@ -10,7 +10,7 @@ "@tsconfig/node-lts": "^18.12.2", "@tsconfig/strictest": "^2.0.1", "@types/node": "^22.9.0", - "typescript": "^5.6.2" + "typescript": "^5.7.2" }, "dependencies": { "@trpc/client": "npm:@trpc/client@next", diff --git a/examples/.test/ssg-infinite-serialization/package.json b/examples/.test/ssg-infinite-serialization/package.json index aa312aae0d1..c18b9800cfd 100644 --- a/examples/.test/ssg-infinite-serialization/package.json +++ b/examples/.test/ssg-infinite-serialization/package.json @@ -29,6 +29,6 @@ "@types/react-dom": "^19.0.0", "eslint": "^9.13.0", "start-server-and-test": "^1.12.0", - "typescript": "^5.6.2" + "typescript": "^5.7.2" } } diff --git a/examples/.test/ssg/package.json b/examples/.test/ssg/package.json index ad7b3d52e60..c4398a58942 100644 --- a/examples/.test/ssg/package.json +++ b/examples/.test/ssg/package.json @@ -29,6 +29,6 @@ "@types/react-dom": "^19.0.0", "eslint": "^9.13.0", "start-server-and-test": "^1.12.0", - "typescript": "^5.6.2" + "typescript": "^5.7.2" } } diff --git a/examples/bun/package.json b/examples/bun/package.json index 1a50aced5ab..23d3d037eff 100644 --- a/examples/bun/package.json +++ b/examples/bun/package.json @@ -20,7 +20,7 @@ "@types/bun": "^1.1.12", "eslint": "^9.13.0", "start-server-and-test": "^1.12.0", - "typescript": "^5.7.0", + "typescript": "^5.7.2", "wait-port": "^1.0.1" } } diff --git a/examples/cloudflare-workers/package.json b/examples/cloudflare-workers/package.json index b9c15d5ff02..2c6cd16603e 100644 --- a/examples/cloudflare-workers/package.json +++ b/examples/cloudflare-workers/package.json @@ -18,7 +18,7 @@ "eslint": "^9.13.0", "start-server-and-test": "^1.12.0", "tsx": "^4.0.0", - "typescript": "^5.7.0", + "typescript": "^5.7.2", "wrangler": "^2.0.17" }, "publishConfig": { diff --git a/examples/express-minimal/package.json b/examples/express-minimal/package.json index 08620e8f234..a71edb96623 100644 --- a/examples/express-minimal/package.json +++ b/examples/express-minimal/package.json @@ -32,7 +32,7 @@ "npm-run-all": "^4.1.5", "start-server-and-test": "^1.12.0", "tsx": "^4.0.0", - "typescript": "^5.7.0", + "typescript": "^5.7.2", "wait-port": "^1.0.1" }, "publishConfig": { diff --git a/examples/express-server/package.json b/examples/express-server/package.json index 1988494579f..04c7b84c415 100644 --- a/examples/express-server/package.json +++ b/examples/express-server/package.json @@ -32,7 +32,7 @@ "npm-run-all": "^4.1.5", "start-server-and-test": "^1.12.0", "tsx": "^4.0.0", - "typescript": "^5.7.0", + "typescript": "^5.7.2", "wait-port": "^1.0.1" }, "publishConfig": { diff --git a/examples/fastify-server/package.json b/examples/fastify-server/package.json index 10393109d49..e4d96df7145 100644 --- a/examples/fastify-server/package.json +++ b/examples/fastify-server/package.json @@ -33,7 +33,7 @@ "npm-run-all": "^4.1.5", "start-server-and-test": "^1.12.0", "tsx": "^4.0.0", - "typescript": "^5.7.0", + "typescript": "^5.7.2", "wait-port": "^1.0.1" }, "publishConfig": { diff --git a/examples/lambda-api-gateway/package.json b/examples/lambda-api-gateway/package.json index fd714013d70..303f0a1468d 100644 --- a/examples/lambda-api-gateway/package.json +++ b/examples/lambda-api-gateway/package.json @@ -24,6 +24,6 @@ "serverless": "^3.18.1", "serverless-esbuild": "^1.39.0", "serverless-offline": "^12.0.4", - "typescript": "^5.6.2" + "typescript": "^5.7.2" } } diff --git a/examples/minimal-content-types/client/package.json b/examples/minimal-content-types/client/package.json index dd77edda89f..2170cd5efb5 100644 --- a/examples/minimal-content-types/client/package.json +++ b/examples/minimal-content-types/client/package.json @@ -21,7 +21,7 @@ "@types/react-dom": "^19.0.0", "@vitejs/plugin-react": "^4.3.4", "eslint": "^9.13.0", - "typescript": "^5.7.0", + "typescript": "^5.7.2", "vite": "^5.3.4" } } diff --git a/examples/minimal-content-types/server/package.json b/examples/minimal-content-types/server/package.json index 5378994fc9f..405cb65718c 100644 --- a/examples/minimal-content-types/server/package.json +++ b/examples/minimal-content-types/server/package.json @@ -17,6 +17,6 @@ "@types/node": "^22.9.0", "eslint": "^9.13.0", "tsx": "^4.0.0", - "typescript": "^5.6.2" + "typescript": "^5.7.2" } } diff --git a/examples/minimal-react/client/package.json b/examples/minimal-react/client/package.json index aca2a355e9e..9399ba1072b 100644 --- a/examples/minimal-react/client/package.json +++ b/examples/minimal-react/client/package.json @@ -21,7 +21,7 @@ "@types/react-dom": "^19.0.0", "@vitejs/plugin-react": "^4.3.4", "eslint": "^9.13.0", - "typescript": "^5.7.0", + "typescript": "^5.7.2", "vite": "^5.3.4" } } diff --git a/examples/minimal-react/server/package.json b/examples/minimal-react/server/package.json index ce534dc227e..0f301d3841c 100644 --- a/examples/minimal-react/server/package.json +++ b/examples/minimal-react/server/package.json @@ -17,6 +17,6 @@ "@types/node": "^22.9.0", "eslint": "^9.13.0", "tsx": "^4.0.0", - "typescript": "^5.6.2" + "typescript": "^5.7.2" } } diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 1807492cf98..81546b3f5ea 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -20,7 +20,7 @@ "npm-run-all": "^4.1.5", "start-server-and-test": "^1.12.0", "tsx": "^4.0.0", - "typescript": "^5.7.0", + "typescript": "^5.7.2", "wait-port": "^1.0.1" } } diff --git a/examples/next-big-router/package.json b/examples/next-big-router/package.json index f0490574419..a3c83735b95 100644 --- a/examples/next-big-router/package.json +++ b/examples/next-big-router/package.json @@ -26,6 +26,6 @@ "@types/react-dom": "^19.0.0", "eslint": "^9.13.0", "tsx": "^4.0.0", - "typescript": "^5.6.2" + "typescript": "^5.7.2" } } diff --git a/examples/next-edge-runtime/package.json b/examples/next-edge-runtime/package.json index 40d8ef180e1..f7440e04b79 100644 --- a/examples/next-edge-runtime/package.json +++ b/examples/next-edge-runtime/package.json @@ -23,6 +23,6 @@ "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", "eslint": "^9.13.0", - "typescript": "^5.6.2" + "typescript": "^5.7.2" } } diff --git a/examples/next-formdata/package.json b/examples/next-formdata/package.json index cf33b7f6024..a3e44ac9f19 100644 --- a/examples/next-formdata/package.json +++ b/examples/next-formdata/package.json @@ -27,6 +27,6 @@ "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", "eslint": "^9.13.0", - "typescript": "^5.6.2" + "typescript": "^5.7.2" } } diff --git a/examples/next-minimal-starter/package.json b/examples/next-minimal-starter/package.json index fc70576b036..27d3de800ba 100644 --- a/examples/next-minimal-starter/package.json +++ b/examples/next-minimal-starter/package.json @@ -23,6 +23,6 @@ "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", "eslint": "^9.13.0", - "typescript": "^5.6.2" + "typescript": "^5.7.2" } } diff --git a/examples/next-prisma-starter/package.json b/examples/next-prisma-starter/package.json index 11e19b4d642..483e736181e 100644 --- a/examples/next-prisma-starter/package.json +++ b/examples/next-prisma-starter/package.json @@ -61,7 +61,7 @@ "start-server-and-test": "^1.12.0", "tailwindcss": "^3.4.6", "tsx": "^4.0.0", - "typescript": "^5.7.0", + "typescript": "^5.7.2", "typescript-eslint": "^8.12.2", "vite": "^5.3.4", "vitest": "^2.0.4" diff --git a/examples/next-prisma-todomvc/package.json b/examples/next-prisma-todomvc/package.json index 5588d24ec50..f6e2ea4d9b9 100644 --- a/examples/next-prisma-todomvc/package.json +++ b/examples/next-prisma-todomvc/package.json @@ -45,7 +45,7 @@ "npm-run-all": "^4.1.5", "prisma": "^5.12.1", "start-server-and-test": "^1.12.0", - "typescript": "^5.6.2" + "typescript": "^5.7.2" }, "publishConfig": { "access": "restricted" diff --git a/examples/next-prisma-websockets-starter/package.json b/examples/next-prisma-websockets-starter/package.json index 9365cc49624..3a41db98e12 100644 --- a/examples/next-prisma-websockets-starter/package.json +++ b/examples/next-prisma-websockets-starter/package.json @@ -74,7 +74,7 @@ "prisma": "^5.12.1", "start-server-and-test": "^1.12.0", "tailwindcss": "^3.4.6", - "typescript": "^5.7.0", + "typescript": "^5.7.2", "typescript-eslint": "^8.12.2" }, "publishConfig": { diff --git a/examples/next-sse-chat/package.json b/examples/next-sse-chat/package.json index abd0641da7b..cb73f9ee297 100644 --- a/examples/next-sse-chat/package.json +++ b/examples/next-sse-chat/package.json @@ -41,6 +41,6 @@ "npm-run-all": "^4.1.5", "postcss": "^8.4.39", "tailwindcss": "^3.4.6", - "typescript": "^5.6.2" + "typescript": "^5.7.2" } } diff --git a/examples/soa/package.json b/examples/soa/package.json index f6e0502f81d..950fac7dd0c 100644 --- a/examples/soa/package.json +++ b/examples/soa/package.json @@ -17,7 +17,7 @@ "npm-run-all": "^4.1.5", "start-server-and-test": "^1.12.0", "tsx": "^4.0.0", - "typescript": "^5.7.0", + "typescript": "^5.7.2", "wait-port": "^1.0.1" } } diff --git a/examples/standalone-server/package.json b/examples/standalone-server/package.json index c9383872dae..84c1c31f0fc 100644 --- a/examples/standalone-server/package.json +++ b/examples/standalone-server/package.json @@ -31,7 +31,7 @@ "npm-run-all": "^4.1.5", "start-server-and-test": "^1.12.0", "tsx": "^4.0.0", - "typescript": "^5.7.0", + "typescript": "^5.7.2", "wait-port": "^1.0.1" }, "publishConfig": { diff --git a/examples/tanstack-start/package.json b/examples/tanstack-start/package.json index fb376502e3b..fa2921f13bc 100644 --- a/examples/tanstack-start/package.json +++ b/examples/tanstack-start/package.json @@ -40,7 +40,7 @@ "eslint-plugin-react-hooks": "^5.1.0", "postcss": "^8.4.39", "tailwindcss": "^3.4.6", - "typescript": "^5.7.0", + "typescript": "^5.7.2", "typescript-eslint": "^8.12.2", "vite": "^5.3.4", "vite-tsconfig-paths": "^4.3.2" diff --git a/examples/vercel-edge-runtime/package.json b/examples/vercel-edge-runtime/package.json index 1dbed1e3f63..a598d41cd8c 100644 --- a/examples/vercel-edge-runtime/package.json +++ b/examples/vercel-edge-runtime/package.json @@ -18,7 +18,7 @@ "esbuild": "^0.17.10", "start-server-and-test": "^1.12.0", "tsx": "^4.0.0", - "typescript": "^5.6.2" + "typescript": "^5.7.2" }, "publishConfig": { "access": "restricted" diff --git a/package.json b/package.json index fe162d0a2b8..9819cc5f574 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,7 @@ "ts-prune": "^0.10.3", "tsx": "^4.0.0", "turbo": "^2.0.9", - "typescript": "^5.7.0", + "typescript": "^5.7.2", "typescript-eslint": "^8.13.0", "vite": "^6.0.0", "vitest": "^2.0.4", diff --git a/packages/client/package.json b/packages/client/package.json index 0f8794ce3f6..c9644d88430 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -79,7 +79,7 @@ "dependencies": {}, "peerDependencies": { "@trpc/server": "^10.45.1", - "typescript": ">=5.6.2" + "typescript": ">=5.7.2" }, "devDependencies": { "@trpc/server": "^10.45.1", @@ -91,7 +91,7 @@ "rollup": "^4.24.4", "tslib": "^2.8.1", "tsx": "^4.0.0", - "typescript": "^5.7.0", + "typescript": "^5.7.2", "undici": "^7.0.0" }, "publishConfig": { diff --git a/packages/next/package.json b/packages/next/package.json index 8e684e8dbc5..8a6aef63b01 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -80,7 +80,7 @@ "next": "*", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "typescript": ">=5.6.2" + "typescript": ">=5.7.2" }, "peerDependenciesMeta": { "@tanstack/react-query": { @@ -106,7 +106,7 @@ "react-dom": "^19.0.0", "rollup": "^4.24.4", "tsx": "^4.0.0", - "typescript": "^5.7.0", + "typescript": "^5.7.2", "zod": "^3.0.0" }, "publishConfig": { diff --git a/packages/react-query/package.json b/packages/react-query/package.json index 6ec27cb70f6..2ffbe1926f5 100644 --- a/packages/react-query/package.json +++ b/packages/react-query/package.json @@ -69,7 +69,7 @@ "@trpc/server": "^10.45.1", "react": ">=18.2.0", "react-dom": ">=18.2.0", - "typescript": ">=5.6.2" + "typescript": ">=5.7.2" }, "devDependencies": { "@tanstack/react-query": "^5.62.8", @@ -86,7 +86,7 @@ "rollup": "^4.24.4", "tslib": "^2.8.1", "tsx": "^4.0.0", - "typescript": "^5.7.0", + "typescript": "^5.7.2", "zod": "^3.0.0" }, "publishConfig": { diff --git a/packages/server/package.json b/packages/server/package.json index e21661c4d7f..6572cf1e45d 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -140,7 +140,7 @@ "superjson": "^1.12.4", "superstruct": "^2.0.0", "tsx": "^4.0.0", - "typescript": "^5.7.0", + "typescript": "^5.7.2", "valibot": "^0.42.0", "ws": "^8.0.0", "yup": "^1.0.0", @@ -150,6 +150,6 @@ "https://trpc.io/sponsor" ], "peerDependencies": { - "typescript": ">=5.6.2" + "typescript": ">=5.7.2" } } diff --git a/packages/tests/package.json b/packages/tests/package.json index 71d1cf2f0ad..6893198ce2c 100644 --- a/packages/tests/package.json +++ b/packages/tests/package.json @@ -47,7 +47,7 @@ "supertest": "^7.0.0", "tsx": "^4.0.0", "tupleson": "0.23.1", - "typescript": "^5.7.0", + "typescript": "^5.7.2", "valibot": "^0.42.0", "ws": "^8.0.0", "yup": "^1.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1e39bab3d5d..2be919f672f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -138,7 +138,7 @@ importers: specifier: ^2.0.9 version: 2.0.9 typescript: - specifier: ^5.7.0 + specifier: ^5.7.2 version: 5.7.2 typescript-eslint: specifier: ^8.13.0 @@ -219,7 +219,7 @@ importers: specifier: link:./src/trpc version: link:src/trpc typescript: - specifier: ^5.7.0 + specifier: ^5.7.2 version: 5.7.2 zod: specifier: ^3.0.0 @@ -281,8 +281,8 @@ importers: specifier: ^4.0.0 version: 4.6.2 typescript: - specifier: ^5.6.2 - version: 5.6.2 + specifier: ^5.7.2 + version: 5.7.2 examples/.test/internal-types-export: dependencies: @@ -315,8 +315,8 @@ importers: specifier: 20.17.10 version: 20.17.10 typescript: - specifier: ^5.6.2 - version: 5.6.2 + specifier: ^5.7.2 + version: 5.7.2 examples/.test/ssg: dependencies: @@ -370,8 +370,8 @@ importers: specifier: ^1.12.0 version: 1.14.0 typescript: - specifier: ^5.6.2 - version: 5.6.2 + specifier: ^5.7.2 + version: 5.7.2 examples/.test/ssg-infinite-serialization: dependencies: @@ -422,8 +422,8 @@ importers: specifier: ^1.12.0 version: 1.14.0 typescript: - specifier: ^5.6.2 - version: 5.6.2 + specifier: ^5.7.2 + version: 5.7.2 examples/bun: dependencies: @@ -444,7 +444,7 @@ importers: specifier: ^1.12.0 version: 1.14.0 typescript: - specifier: ^5.7.0 + specifier: ^5.7.2 version: 5.7.2 wait-port: specifier: ^1.0.1 @@ -478,7 +478,7 @@ importers: specifier: ^4.0.0 version: 4.6.2 typescript: - specifier: ^5.7.0 + specifier: ^5.7.2 version: 5.7.2 wrangler: specifier: ^2.0.17 @@ -527,7 +527,7 @@ importers: specifier: ^4.0.0 version: 4.6.2 typescript: - specifier: ^5.7.0 + specifier: ^5.7.2 version: 5.7.2 wait-port: specifier: ^1.0.1 @@ -576,7 +576,7 @@ importers: specifier: ^4.0.0 version: 4.6.2 typescript: - specifier: ^5.7.0 + specifier: ^5.7.2 version: 5.7.2 wait-port: specifier: ^1.0.1 @@ -631,7 +631,7 @@ importers: specifier: ^4.0.0 version: 4.6.2 typescript: - specifier: ^5.7.0 + specifier: ^5.7.2 version: 5.7.2 wait-port: specifier: ^1.0.1 @@ -671,8 +671,8 @@ importers: specifier: ^12.0.4 version: 12.0.4(encoding@0.1.13)(serverless@3.25.0(encoding@0.1.13)) typescript: - specifier: ^5.6.2 - version: 5.6.2 + specifier: ^5.7.2 + version: 5.7.2 examples/minimal: dependencies: @@ -699,7 +699,7 @@ importers: specifier: ^4.0.0 version: 4.6.2 typescript: - specifier: ^5.7.0 + specifier: ^5.7.2 version: 5.7.2 wait-port: specifier: ^1.0.1 @@ -754,7 +754,7 @@ importers: specifier: ^9.13.0 version: 9.13.0(jiti@2.3.3) typescript: - specifier: ^5.7.0 + specifier: ^5.7.2 version: 5.7.2 vite: specifier: ^5.3.4 @@ -785,8 +785,8 @@ importers: specifier: ^4.0.0 version: 4.6.2 typescript: - specifier: ^5.6.2 - version: 5.6.2 + specifier: ^5.7.2 + version: 5.7.2 examples/minimal-react: devDependencies: @@ -837,7 +837,7 @@ importers: specifier: ^9.13.0 version: 9.13.0(jiti@2.3.3) typescript: - specifier: ^5.7.0 + specifier: ^5.7.2 version: 5.7.2 vite: specifier: ^5.3.4 @@ -868,8 +868,8 @@ importers: specifier: ^4.0.0 version: 4.6.2 typescript: - specifier: ^5.6.2 - version: 5.6.2 + specifier: ^5.7.2 + version: 5.7.2 examples/next-big-router: dependencies: @@ -917,8 +917,8 @@ importers: specifier: ^4.0.0 version: 4.6.2 typescript: - specifier: ^5.6.2 - version: 5.6.2 + specifier: ^5.7.2 + version: 5.7.2 examples/next-edge-runtime: dependencies: @@ -963,8 +963,8 @@ importers: specifier: ^9.13.0 version: 9.13.0(jiti@2.3.3) typescript: - specifier: ^5.6.2 - version: 5.6.2 + specifier: ^5.7.2 + version: 5.7.2 examples/next-formdata: dependencies: @@ -1021,8 +1021,8 @@ importers: specifier: ^9.13.0 version: 9.13.0(jiti@2.3.3) typescript: - specifier: ^5.6.2 - version: 5.6.2 + specifier: ^5.7.2 + version: 5.7.2 examples/next-minimal-starter: dependencies: @@ -1067,8 +1067,8 @@ importers: specifier: ^9.13.0 version: 9.13.0(jiti@2.3.3) typescript: - specifier: ^5.6.2 - version: 5.6.2 + specifier: ^5.7.2 + version: 5.7.2 examples/next-prisma-starter: dependencies: @@ -1158,7 +1158,7 @@ importers: specifier: ^4.0.0 version: 4.6.2 typescript: - specifier: ^5.7.0 + specifier: ^5.7.2 version: 5.7.2 typescript-eslint: specifier: ^8.12.2 @@ -1240,8 +1240,8 @@ importers: specifier: ^1.12.0 version: 1.14.0 typescript: - specifier: ^5.6.2 - version: 5.6.2 + specifier: ^5.7.2 + version: 5.7.2 examples/next-prisma-websockets-starter: dependencies: @@ -1343,7 +1343,7 @@ importers: specifier: ^3.4.6 version: 3.4.6 typescript: - specifier: ^5.7.0 + specifier: ^5.7.2 version: 5.7.2 typescript-eslint: specifier: ^8.12.2 @@ -1431,8 +1431,8 @@ importers: specifier: ^3.4.6 version: 3.4.6 typescript: - specifier: ^5.6.2 - version: 5.6.2 + specifier: ^5.7.2 + version: 5.7.2 examples/soa: devDependencies: @@ -1455,7 +1455,7 @@ importers: specifier: ^4.0.0 version: 4.6.2 typescript: - specifier: ^5.7.0 + specifier: ^5.7.2 version: 5.7.2 wait-port: specifier: ^1.0.1 @@ -1501,7 +1501,7 @@ importers: specifier: ^4.0.0 version: 4.6.2 typescript: - specifier: ^5.7.0 + specifier: ^5.7.2 version: 5.7.2 wait-port: specifier: ^1.0.1 @@ -1589,7 +1589,7 @@ importers: specifier: ^3.4.6 version: 3.4.14 typescript: - specifier: ^5.7.0 + specifier: ^5.7.2 version: 5.7.2 typescript-eslint: specifier: ^8.12.2 @@ -1629,8 +1629,8 @@ importers: specifier: ^4.0.0 version: 4.6.2 typescript: - specifier: ^5.6.2 - version: 5.6.2 + specifier: ^5.7.2 + version: 5.7.2 packages/client: devDependencies: @@ -1662,7 +1662,7 @@ importers: specifier: ^4.0.0 version: 4.6.2 typescript: - specifier: ^5.7.0 + specifier: ^5.7.2 version: 5.7.2 undici: specifier: ^7.0.0 @@ -1716,7 +1716,7 @@ importers: specifier: ^4.0.0 version: 4.6.2 typescript: - specifier: ^5.7.0 + specifier: ^5.7.2 version: 5.7.2 zod: specifier: ^3.0.0 @@ -1767,7 +1767,7 @@ importers: specifier: ^4.0.0 version: 4.6.2 typescript: - specifier: ^5.7.0 + specifier: ^5.7.2 version: 5.7.2 zod: specifier: ^3.0.0 @@ -1845,7 +1845,7 @@ importers: specifier: ^4.0.0 version: 4.6.2 typescript: - specifier: ^5.7.0 + specifier: ^5.7.2 version: 5.7.2 valibot: specifier: ^0.42.0 @@ -1977,7 +1977,7 @@ importers: specifier: 0.23.1 version: 0.23.1 typescript: - specifier: ^5.7.0 + specifier: ^5.7.2 version: 5.7.2 valibot: specifier: ^0.42.0 @@ -2225,8 +2225,8 @@ importers: specifier: ^19.0.0 version: 19.0.0 typescript: - specifier: ^5.6.2 - version: 5.6.2 + specifier: ^5.7.2 + version: 5.7.2 packages: @@ -15332,11 +15332,6 @@ packages: engines: {node: '>=14.17'} hasBin: true - typescript@5.6.2: - resolution: {integrity: sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==} - engines: {node: '>=14.17'} - hasBin: true - typescript@5.7.2: resolution: {integrity: sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==} engines: {node: '>=14.17'} @@ -26299,8 +26294,8 @@ snapshots: '@typescript-eslint/parser': 7.16.1(eslint@9.13.0(jiti@2.3.3))(typescript@5.7.2) eslint: 9.13.0(jiti@2.3.3) eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.5.2(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.16.1(eslint@9.13.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.13.0(jiti@2.3.3)))(eslint@9.13.0(jiti@2.3.3)) - eslint-plugin-import: 2.31.0(@typescript-eslint/parser@7.16.1(eslint@9.13.0(jiti@2.3.3))(typescript@5.7.2))(eslint-import-resolver-typescript@3.5.2(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.16.1(eslint@9.13.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.13.0(jiti@2.3.3)))(eslint@9.13.0(jiti@2.3.3)))(eslint@9.13.0(jiti@2.3.3)) + eslint-import-resolver-typescript: 3.5.2(eslint-plugin-import@2.31.0)(eslint@9.13.0(jiti@2.3.3)) + eslint-plugin-import: 2.31.0(@typescript-eslint/parser@7.16.1(eslint@9.13.0(jiti@2.3.3))(typescript@5.7.2))(eslint-import-resolver-typescript@3.5.2)(eslint@9.13.0(jiti@2.3.3)) eslint-plugin-jsx-a11y: 6.10.2(eslint@9.13.0(jiti@2.3.3)) eslint-plugin-react: 7.37.2(eslint@9.13.0(jiti@2.3.3)) eslint-plugin-react-hooks: 5.1.0(eslint@9.13.0(jiti@2.3.3)) @@ -26322,12 +26317,12 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-import-resolver-typescript@3.5.2(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.16.1(eslint@9.13.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.13.0(jiti@2.3.3)))(eslint@9.13.0(jiti@2.3.3)): + eslint-import-resolver-typescript@3.5.2(eslint-plugin-import@2.31.0)(eslint@9.13.0(jiti@2.3.3)): dependencies: debug: 4.3.7(supports-color@8.1.1) enhanced-resolve: 5.17.1 eslint: 9.13.0(jiti@2.3.3) - eslint-plugin-import: 2.31.0(@typescript-eslint/parser@7.16.1(eslint@9.13.0(jiti@2.3.3))(typescript@5.7.2))(eslint-import-resolver-typescript@3.5.2(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.16.1(eslint@9.13.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.13.0(jiti@2.3.3)))(eslint@9.13.0(jiti@2.3.3)))(eslint@9.13.0(jiti@2.3.3)) + eslint-plugin-import: 2.31.0(@typescript-eslint/parser@7.16.1(eslint@9.13.0(jiti@2.3.3))(typescript@5.7.2))(eslint-import-resolver-typescript@3.5.2)(eslint@9.13.0(jiti@2.3.3)) get-tsconfig: 4.8.1 globby: 13.1.3 is-core-module: 2.13.1 @@ -26336,18 +26331,18 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-module-utils@2.12.0(@typescript-eslint/parser@7.16.1(eslint@9.13.0(jiti@2.3.3))(typescript@5.7.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.5.2(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.16.1(eslint@9.13.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.13.0(jiti@2.3.3)))(eslint@9.13.0(jiti@2.3.3)))(eslint@9.13.0(jiti@2.3.3)): + eslint-module-utils@2.12.0(@typescript-eslint/parser@7.16.1(eslint@9.13.0(jiti@2.3.3))(typescript@5.7.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.5.2)(eslint@9.13.0(jiti@2.3.3)): dependencies: debug: 3.2.7 optionalDependencies: '@typescript-eslint/parser': 7.16.1(eslint@9.13.0(jiti@2.3.3))(typescript@5.7.2) eslint: 9.13.0(jiti@2.3.3) eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.5.2(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.16.1(eslint@9.13.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.13.0(jiti@2.3.3)))(eslint@9.13.0(jiti@2.3.3)) + eslint-import-resolver-typescript: 3.5.2(eslint-plugin-import@2.31.0)(eslint@9.13.0(jiti@2.3.3)) transitivePeerDependencies: - supports-color - eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.16.1(eslint@9.13.0(jiti@2.3.3))(typescript@5.7.2))(eslint-import-resolver-typescript@3.5.2(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.16.1(eslint@9.13.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.13.0(jiti@2.3.3)))(eslint@9.13.0(jiti@2.3.3)))(eslint@9.13.0(jiti@2.3.3)): + eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.16.1(eslint@9.13.0(jiti@2.3.3))(typescript@5.7.2))(eslint-import-resolver-typescript@3.5.2)(eslint@9.13.0(jiti@2.3.3)): dependencies: '@rtsao/scc': 1.1.0 array-includes: 3.1.8 @@ -26358,7 +26353,7 @@ snapshots: doctrine: 2.1.0 eslint: 9.13.0(jiti@2.3.3) eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.12.0(@typescript-eslint/parser@7.16.1(eslint@9.13.0(jiti@2.3.3))(typescript@5.7.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.5.2(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.16.1(eslint@9.13.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.13.0(jiti@2.3.3)))(eslint@9.13.0(jiti@2.3.3)))(eslint@9.13.0(jiti@2.3.3)) + eslint-module-utils: 2.12.0(@typescript-eslint/parser@7.16.1(eslint@9.13.0(jiti@2.3.3))(typescript@5.7.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.5.2)(eslint@9.13.0(jiti@2.3.3)) hasown: 2.0.2 is-core-module: 2.15.1 is-glob: 4.0.3 @@ -33658,8 +33653,6 @@ snapshots: typescript@5.1.6: {} - typescript@5.6.2: {} - typescript@5.7.2: {} uc.micro@2.1.0: {} diff --git a/scripts/entrypoints.ts b/scripts/entrypoints.ts index 767e163747f..3f9c396d076 100644 --- a/scripts/entrypoints.ts +++ b/scripts/entrypoints.ts @@ -123,7 +123,7 @@ export async function generateEntrypoints(rawInputs: string[]) { // Add `peerDependencies` in all packages pkgJson.peerDependencies ??= {}; - pkgJson.peerDependencies['typescript'] = '>=5.6.2'; + pkgJson.peerDependencies['typescript'] = '>=5.7.2'; // write package.json const formattedPkgJson = await prettier.format(JSON.stringify(pkgJson), { diff --git a/www/docs/further/faq.mdx b/www/docs/further/faq.mdx index 2621eddfa56..514d832e46c 100644 --- a/www/docs/further/faq.mdx +++ b/www/docs/further/faq.mdx @@ -18,7 +18,7 @@ Feel free to contribute to this page with improvements or create a new discussio - Make sure you have no type errors in your code - Make sure you have `"strict": true` in your `tsconfig.json` - Make sure your `@trpc/*`-versions match in your `package.json` -- Make sure you are using the TypeScript-version required by tRPC (`>=5.6.2`) +- Make sure you are using the TypeScript-version required by tRPC (`>=5.7.2`) - Make sure your editor is using the same TypeScript version as your `package.json` ## How do I make a middleware change the type of my `Context`? diff --git a/www/docs/main/quickstart.mdx b/www/docs/main/quickstart.mdx index cc3410a697d..13ed5412460 100644 --- a/www/docs/main/quickstart.mdx +++ b/www/docs/main/quickstart.mdx @@ -82,7 +82,7 @@ tRPC combines concepts from [REST](https://www.sitepoint.com/rest-api/) and [Gra tRPC is split between several packages, so you can install only what you need. Make sure to install the packages you want in the proper sections of your codebase. For this quickstart guide we'll keep it simple and use the vanilla client only. For framework guides, checkout [usage with React](/docs/client/react/setup) and [usage with Next.js](/docs/client/nextjs/setup). :::info Requirements -- tRPC requires TypeScript >=5.6.2 +- tRPC requires TypeScript >=5.7.2 - We strongly recommend you using `"strict": true` in your `tsconfig.json` as we don't officially support non-strict mode. ::: diff --git a/www/docs/migration/migrate-from-v10-to-v11.mdx b/www/docs/migration/migrate-from-v10-to-v11.mdx index b15dfe257c1..5234ccd926b 100644 --- a/www/docs/migration/migrate-from-v10-to-v11.mdx +++ b/www/docs/migration/migrate-from-v10-to-v11.mdx @@ -28,7 +28,7 @@ import { InstallSnippet } from '@site/src/components/InstallSnippet'; Updated [HTTP Subscription Link improvements](#http-subscription-link-improvements)-section and related docs. -### TypeScript version >=5.6.2 is now required (non-breaking) +### TypeScript version >=5.7.2 is now required (non-breaking) tRPC now requires TypeScript version 5.6.2 or higher. This change was made in response to [a bug report](https://github.com/trpc/trpc/issues/6243) where we decided to take a forward-looking approach. diff --git a/www/og-image/package.json b/www/og-image/package.json index 387c844d738..305019a497a 100644 --- a/www/og-image/package.json +++ b/www/og-image/package.json @@ -17,6 +17,6 @@ "@types/node": "^22.9.0", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", - "typescript": "^5.6.2" + "typescript": "^5.7.2" } } From 76a9190895309af4b24f71b1fcfacfc83cf35427 Mon Sep 17 00:00:00 2001 From: Alex / KATT Date: Fri, 20 Dec 2024 15:45:49 +0100 Subject: [PATCH 2/2] chore: bump railway deployment (#6327) --- examples/.railway/next-sse-chat/railway.json | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/.railway/next-sse-chat/railway.json b/examples/.railway/next-sse-chat/railway.json index fdc7ae4447e..1bbc886c6c2 100644 --- a/examples/.railway/next-sse-chat/railway.json +++ b/examples/.railway/next-sse-chat/railway.json @@ -8,7 +8,6 @@ "healthcheckPath": "/", "healthcheckTimeout": 100, "restartPolicyType": "ON_FAILURE", - "runtime": "LEGACY", "sleepApplication": true } }