Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: typescript 5.5 beta #5672

Draft
wants to merge 5 commits into
base: next
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Expand Up @@ -110,7 +110,7 @@ jobs:
fi

- run: pnpm turbo --filter ./examples/${{ matrix.dir }} test-dev
- run: pnpm turbo --filter ./examples/${{ matrix.dir }} build type-check --force
- run: pnpm turbo --filter ./examples/${{ matrix.dir }} build type-check
- run: pnpm turbo --filter ./examples/${{ matrix.dir }} test-start

e2e-deno:
Expand Down
2 changes: 1 addition & 1 deletion examples/.experimental/next-app-dir/package.json
Expand Up @@ -28,7 +28,7 @@
"react-hot-toast": "^2.4.1",
"superjson": "^1.12.4",
"trpc-api": "link:./src/trpc",
"typescript": "^5.4.0",
"typescript": "^5.5.0-beta",
"zod": "^3.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/.experimental/next-formdata/package.json
Expand Up @@ -27,6 +27,6 @@
"@types/react": "^18.3.0",
"@types/react-dom": "^18.3.0",
"eslint": "^8.56.0",
"typescript": "^5.4.0"
"typescript": "^5.5.0-beta"
}
}
2 changes: 1 addition & 1 deletion examples/.test/diagnostics-big-router/package.json
Expand Up @@ -23,6 +23,6 @@
"@types/react-dom": "^18.3.0",
"eslint": "^8.56.0",
"tsx": "^4.0.0",
"typescript": "^5.4.0"
"typescript": "^5.5.0-beta"
}
}
2 changes: 1 addition & 1 deletion examples/.test/internal-types-export/package.json
Expand Up @@ -10,7 +10,7 @@
"@tsconfig/node-lts": "^18.12.2",
"@tsconfig/strictest": "^2.0.1",
"@types/node": "^20.10.0",
"typescript": "^5.4.0"
"typescript": "^5.5.0-beta"
},
"dependencies": {
"@trpc/client": "npm:@trpc/client@next",
Expand Down
2 changes: 1 addition & 1 deletion examples/.test/ssg-infinite-serialization/package.json
Expand Up @@ -29,6 +29,6 @@
"@types/react-dom": "^18.3.0",
"eslint": "^8.56.0",
"start-server-and-test": "^1.12.0",
"typescript": "^5.4.0"
"typescript": "^5.5.0-beta"
}
}
2 changes: 1 addition & 1 deletion examples/.test/ssg/package.json
Expand Up @@ -29,6 +29,6 @@
"@types/react-dom": "^18.3.0",
"eslint": "^8.56.0",
"start-server-and-test": "^1.12.0",
"typescript": "^5.4.0"
"typescript": "^5.5.0-beta"
}
}
2 changes: 1 addition & 1 deletion examples/bun/package.json
Expand Up @@ -20,7 +20,7 @@
"bun-types": "^0.7.3",
"eslint": "^8.56.0",
"start-server-and-test": "^1.12.0",
"typescript": "^5.4.0",
"typescript": "^5.5.0-beta",
"wait-port": "^1.0.1"
}
}
2 changes: 1 addition & 1 deletion examples/cloudflare-workers/package.json
Expand Up @@ -18,7 +18,7 @@
"eslint": "^8.56.0",
"start-server-and-test": "^1.12.0",
"tsx": "^4.0.0",
"typescript": "^5.4.0",
"typescript": "^5.5.0-beta",
"wrangler": "^2.0.17"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion examples/express-minimal/package.json
Expand Up @@ -32,7 +32,7 @@
"npm-run-all": "^4.1.5",
"start-server-and-test": "^1.12.0",
"tsx": "^4.0.0",
"typescript": "^5.4.0",
"typescript": "^5.5.0-beta",
"wait-port": "^1.0.1"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion examples/express-server/package.json
Expand Up @@ -32,7 +32,7 @@
"npm-run-all": "^4.1.5",
"start-server-and-test": "^1.12.0",
"tsx": "^4.0.0",
"typescript": "^5.4.0",
"typescript": "^5.5.0-beta",
"wait-port": "^1.0.1"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion examples/fastify-server/package.json
Expand Up @@ -33,7 +33,7 @@
"npm-run-all": "^4.1.5",
"start-server-and-test": "^1.12.0",
"tsx": "^4.0.0",
"typescript": "^5.4.0",
"typescript": "^5.5.0-beta",
"wait-port": "^1.0.1"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion examples/lambda-api-gateway/package.json
Expand Up @@ -24,6 +24,6 @@
"serverless": "^3.18.1",
"serverless-esbuild": "^1.39.0",
"serverless-offline": "^12.0.4",
"typescript": "^5.4.0"
"typescript": "^5.5.0-beta"
}
}
2 changes: 1 addition & 1 deletion examples/minimal-react/client/package.json
Expand Up @@ -21,7 +21,7 @@
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^3.1.0",
"eslint": "^8.56.0",
"typescript": "^5.4.0",
"typescript": "^5.5.0-beta",
"vite": "^5.1.0"
}
}
2 changes: 1 addition & 1 deletion examples/minimal-react/server/package.json
Expand Up @@ -17,6 +17,6 @@
"@types/node": "^20.10.0",
"eslint": "^8.56.0",
"tsx": "^4.0.0",
"typescript": "^5.4.0"
"typescript": "^5.5.0-beta"
}
}
2 changes: 1 addition & 1 deletion examples/minimal/package.json
Expand Up @@ -20,7 +20,7 @@
"npm-run-all": "^4.1.5",
"start-server-and-test": "^1.12.0",
"tsx": "^4.0.0",
"typescript": "^5.4.0",
"typescript": "^5.5.0-beta",
"wait-port": "^1.0.1"
}
}
2 changes: 1 addition & 1 deletion examples/next-big-router/package.json
Expand Up @@ -26,6 +26,6 @@
"@types/react-dom": "^18.3.0",
"eslint": "^8.56.0",
"tsx": "^4.0.0",
"typescript": "^5.4.0"
"typescript": "^5.5.0-beta"
}
}
2 changes: 1 addition & 1 deletion examples/next-edge-runtime/package.json
Expand Up @@ -23,6 +23,6 @@
"@types/react": "^18.3.0",
"@types/react-dom": "^18.3.0",
"eslint": "^8.56.0",
"typescript": "^5.4.0"
"typescript": "^5.5.0-beta"
}
}
2 changes: 1 addition & 1 deletion examples/next-minimal-starter/package.json
Expand Up @@ -23,6 +23,6 @@
"@types/react": "^18.3.0",
"@types/react-dom": "^18.3.0",
"eslint": "^8.56.0",
"typescript": "^5.4.0"
"typescript": "^5.5.0-beta"
}
}
2 changes: 1 addition & 1 deletion examples/next-prisma-starter/package.json
Expand Up @@ -63,7 +63,7 @@
"start-server-and-test": "^1.12.0",
"tailwindcss": "^3.3.0",
"tsx": "^4.0.0",
"typescript": "^5.4.0",
"typescript": "^5.5.0-beta",
"vite": "^5.1.0",
"vitest": "^1.2.2"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/next-prisma-todomvc/package.json
Expand Up @@ -48,7 +48,7 @@
"npm-run-all": "^4.1.5",
"prisma": "^5.12.1",
"start-server-and-test": "^1.12.0",
"typescript": "^5.4.0"
"typescript": "^5.5.0-beta"
},
"publishConfig": {
"access": "restricted"
Expand Down
2 changes: 1 addition & 1 deletion examples/next-prisma-websockets-starter/package.json
Expand Up @@ -75,7 +75,7 @@
"prisma": "^5.12.1",
"start-server-and-test": "^1.12.0",
"tailwindcss": "^3.3.0",
"typescript": "^5.4.0"
"typescript": "^5.5.0-beta"
},
"publishConfig": {
"access": "restricted"
Expand Down
2 changes: 1 addition & 1 deletion examples/soa/package.json
Expand Up @@ -17,7 +17,7 @@
"npm-run-all": "^4.1.5",
"start-server-and-test": "^1.12.0",
"tsx": "^4.0.0",
"typescript": "^5.4.0",
"typescript": "^5.5.0-beta",
"wait-port": "^1.0.1"
}
}
2 changes: 1 addition & 1 deletion examples/standalone-server/package.json
Expand Up @@ -31,7 +31,7 @@
"npm-run-all": "^4.1.5",
"start-server-and-test": "^1.12.0",
"tsx": "^4.0.0",
"typescript": "^5.4.0",
"typescript": "^5.5.0-beta",
"wait-port": "^1.0.1"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion examples/vercel-edge-runtime/package.json
Expand Up @@ -18,7 +18,7 @@
"esbuild": "^0.17.10",
"start-server-and-test": "^1.12.0",
"tsx": "^4.0.0",
"typescript": "^5.4.0"
"typescript": "^5.5.0-beta"
},
"publishConfig": {
"access": "restricted"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -80,7 +80,7 @@
"ts-prune": "^0.10.3",
"tsx": "^4.0.0",
"turbo": "^1.10.2",
"typescript": "^5.4.0",
"typescript": "^5.5.0-beta",
"vite": "^5.1.0",
"vitest": "^1.2.2",
"vitest-environment-miniflare": "^2.14.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Expand Up @@ -153,7 +153,7 @@
"superstruct": "^1.0.0",
"tslib": "^2.5.0",
"tsx": "^4.0.0",
"typescript": "^5.4.0",
"typescript": "^5.5.0-beta",
"valibot": "^0.30.0",
"ws": "^8.0.0",
"yup": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/tests/package.json
Expand Up @@ -44,7 +44,7 @@
"superstruct": "^1.0.0",
"tsx": "^4.0.0",
"tupleson": "0.23.1",
"typescript": "^5.4.0",
"typescript": "^5.5.0-beta",
"valibot": "^0.30.0",
"ws": "^8.0.0",
"yup": "^1.0.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/tests/server/react/__testHelpers.tsx
Expand Up @@ -133,7 +133,7 @@ export function createAppRouter() {
const last = items[items.length - 1];
const nextIndex = db.posts.findIndex((item) => item === last) + 1;
if (db.posts[nextIndex]) {
nextCursor = db.posts[nextIndex]!.createdAt;
nextCursor = db.posts[nextIndex].createdAt;
}
return {
items,
Expand Down Expand Up @@ -174,10 +174,10 @@ export function createAppRouter() {
const nextIndex = db.posts.findIndex((item) => item === last) + 1;
const prevIndex = db.posts.findIndex((item) => item === first) - 1;
if (db.posts[nextIndex]) {
nextCursor = db.posts[nextIndex]!.createdAt;
nextCursor = db.posts[nextIndex].createdAt;
}
if (db.posts[prevIndex]) {
prevCursor = db.posts[prevIndex]!.createdAt;
prevCursor = db.posts[prevIndex].createdAt;
}
return {
items,
Expand Down
2 changes: 1 addition & 1 deletion packages/tests/server/react/invalidateRouters.test.tsx
Expand Up @@ -145,7 +145,7 @@ const ctx = konn()
const last = items[items.length - 1];
const nextIndex = db.posts.findIndex((item) => item === last) + 1;
if (db.posts[nextIndex]) {
nextCursor = db.posts[nextIndex]!.createdAt;
nextCursor = db.posts[nextIndex].createdAt;
}
return {
items,
Expand Down