Skip to content

patch: typescript 5.9 support - #6877

Merged
KATT merged 22 commits into
mainfrom
08-04-ts59
Aug 4, 2025
Merged

KATT merged 22 commits into
mainfrom
08-04-ts59

Conversation

@KATT

@KATT KATT commented Aug 4, 2025 •

Copy link
Copy Markdown
Member

Closes #6875

🎯 Changes

Adds support for typescript 5.9

βœ… Checklist

  • I have followed the steps listed in the Contributing guide.
  • If necessary, I have added documentation related to the changes made.
  • I have added or updated the tests related to the changes made.

Summary by CodeRabbit

  • Chores
    • Updated the TypeScript dependency version from ^5.8.2 to ^5.9.2 across all example projects and packages.
    • Renamed and consolidated type-checking scripts for consistency across packages.
    • Added a dedicated type-checking job to the GitHub Actions workflow for pull requests.
    • Simplified test commands and updated testing instructions for watch mode.
    • Enhanced test setup to suppress specific React warnings for cleaner test output.
  • Bug Fixes
    • Adjusted type definitions to support broader binary data formats in request bodies.
    • Improved type safety with enhanced type predicates for content type checks.

@KATT
KATT requested review from a team as code owners August 4, 2025 10:55
@railway-app

railway-app Bot commented Aug 4, 2025 •

Copy link
Copy Markdown

πŸš… Deployed to the trpc-pr-6877 environment in trpc-sse-and-websockets

Service Status Web Updated (UTC)
next-sse-chat ◻️ Removed (View Logs) Web Aug 4, 2025 at 3:19 pm

@coderabbitai

coderabbitai Bot commented Aug 4, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

All changes in this pull request update the TypeScript dependency version from ^5.8.2 to ^5.9.2 across multiple package.json files in various example projects, core packages, and supporting directories. No other changes to dependencies, scripts, or configuration are present except removal of a pnpm override for @types/node in the root package.json. Additionally, minor script adjustments and type-related code updates were made to support the TypeScript upgrade, including adding type-check scripts, suppressing specific TypeScript errors, and adding a new GitHub Actions job for type checking.

Changes

Cohort / File(s) Change Summary
Examples: Update TypeScript to 5.9.2
examples/*/package.json, examples/.experimental/next-app-dir/package.json, examples/.test/*/package.json
Updated TypeScript dependency version from ^5.8.2 to ^5.9.2.
Core Packages: Update TypeScript to 5.9.2 and Add Typecheck Scripts
package.json, packages/*/package.json (including packages/client, packages/next, packages/react-query, packages/server, packages/tanstack-react-query, packages/tests, packages/upgrade)
Updated TypeScript dependency version from ^5.8.2 to ^5.9.2. Added new typecheck scripts running tsc --noEmit or equivalent, modified existing watch/test scripts, and removed pnpm override for @types/node in root package.json.
Web and Misc: Update TypeScript to 5.9.2
www/package.json, www/og-image/package.json
Updated TypeScript dependency version from ^5.8.2 to ^5.9.2.
TypeScript Configuration and Build Updates
packages/next/tsconfig.json, packages/next/tsconfig.watch.json (deleted), tsconfig.build.json
Deleted tsconfig.watch.json in packages/next, added empty compilerOptions in tsconfig.json, updated build config to target ES2022 and changed unused locals setting.
GitHub Actions Workflow Update
.github/workflows/main.yml
Added new typecheck job to run pnpm typecheck on pull requests with timeout and environment variables.
Code and Test Adjustments for TypeScript 5.9 Compatibility
packages/client/src/internals/types.ts, packages/client/src/internals/types.test.ts, packages/client/src/links/internals/contentTypes.ts, packages/react-query/test/__testHelpers.tsx, packages/react-query/test/mutationkey.test.tsx, packages/tanstack-react-query/test/infiniteQueryOptions.test.tsx, packages/tests/suppressActWarnings.ts, vitest.config.ts
Expanded RequestInitEsque.body type, added @ts-expect-error to suppress TS errors, refined type predicates, adjusted test imports and ESLint directives, added script to suppress React act warnings, and configured Vitest to use this setup.
Turbo Configuration Update
turbo.json
Removed old test tasks and added a new typecheck task with simplified dependencies and caching disabled.

Sequence Diagram(s)

No sequence diagram generated as the changes are limited to dependency version updates, configuration, and minor type/code adjustments without changes to control flow or features.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Assessment against linked issues

Objective Addressed Explanation
Update TypeScript to 5.9.x in all relevant packages to reproduce or address the type error described (#6875) βœ…
Ensure no other changes are made beyond the TypeScript version update (#6875) βœ…

Assessment against linked issues: Out-of-scope changes

No out-of-scope changes detected.

Suggested labels

♻️ autoupdate

Suggested reviewers

  • juliusmarminge

Poem

πŸ‡ Hopping up the version tree,
From five-eight-two to five-nine-three!
Packages fresh and code so bright,
TypeScript’s leap feels just right.
With every update, smooth and keen,
This rabbit’s code stays sharp and clean! ✨🐰

Note

⚑️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


πŸ“œ Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between 4f83134 and d657ffb.

πŸ“’ Files selected for processing (4)
  • CONTRIBUTING.md (1 hunks)
  • packages/client/src/internals/types.ts (1 hunks)
  • packages/react-query/test/mutationkey.test.tsx (2 hunks)
  • turbo.json (1 hunks)
βœ… Files skipped from review due to trivial changes (1)
  • CONTRIBUTING.md
🚧 Files skipped from review as they are similar to previous changes (2)
  • packages/client/src/internals/types.ts
  • packages/react-query/test/mutationkey.test.tsx
🧰 Additional context used
🧠 Learnings (3)
πŸ““ Common learnings
Learnt from: juliusmarminge
PR: trpc/trpc#6789
File: packages/tanstack-react-query/tsdown.config.ts:1-24
Timestamp: 2025-06-09T14:01:20.033Z
Learning: In the tRPC monorepo, packages/tests and packages/upgrade don't need main/module/types fields in their package.json because tests is not distributed and upgrade just exposes a binary.
Learnt from: juliusmarminge
PR: trpc/trpc#6262
File: examples/minimal-react/client/package.json:16-17
Timestamp: 2025-02-12T16:56:46.960Z
Learning: In examples and codemods targeting future versions, dependencies may intentionally use upcoming versions (e.g., React v19) or `next` tags, even if those versions haven't been officially released yet.
πŸ“š Learning: in the trpc monorepo, packages/tests and packages/upgrade don't need main/module/types fields in the...
Learnt from: juliusmarminge
PR: trpc/trpc#6789
File: packages/tanstack-react-query/tsdown.config.ts:1-24
Timestamp: 2025-06-09T14:01:20.033Z
Learning: In the tRPC monorepo, packages/tests and packages/upgrade don't need main/module/types fields in their package.json because tests is not distributed and upgrade just exposes a binary.

Applied to files:

  • turbo.json
πŸ“š Learning: the cli options `trpcfile` and `trpcimportname` in `packages/upgrade/src/bin/cli.ts` are temporary a...
Learnt from: barelyhuman
PR: trpc/trpc#6530
File: packages/upgrade/src/bin/cli.ts:218-222
Timestamp: 2025-02-19T20:31:52.088Z
Learning: The CLI options `trpcFile` and `trpcImportName` in `packages/upgrade/src/bin/cli.ts` are temporary and planned to be removed in favor of using automatically discovered references from the TypeScript program.

Applied to files:

  • turbo.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
  • GitHub Check: E2E-tests (.test/internal-types-export)
  • GitHub Check: E2E-tests (next-prisma-starter)
  • GitHub Check: E2E-tests (next-prisma-todomvc)
  • GitHub Check: E2E-tests (express-minimal)
  • GitHub Check: E2E-tests (.experimental/next-app-dir)
  • GitHub Check: E2E-tests (.test/diagnostics-big-router)
  • GitHub Check: E2E-tests (cloudflare-workers)
  • GitHub Check: E2E-tests (next-formdata)
  • GitHub Check: E2E-tests (minimal-react)
  • GitHub Check: e2e-legacy-node (next-prisma-todomvc, 20.x)
  • GitHub Check: e2e-legacy-node (next-prisma-starter, 18.x)
  • GitHub Check: e2e-legacy-node (next-prisma-websockets-starter, 18.x)
  • GitHub Check: e2e-legacy-node (next-prisma-todomvc, 18.x)
  • GitHub Check: Test a monorepo using built declaration files
  • GitHub Check: E2E-tests (Bun) (bun, ubuntu-latest)
  • GitHub Check: E2E-tests (Deno) (deno-deploy)
  • GitHub Check: Release using pkg.pr.new
  • GitHub Check: typecheck
  • GitHub Check: Lint and auto-fix
  • GitHub Check: test
πŸ”‡ Additional comments (1)
turbo.json (1)

54-57: No lingering obsolete task references found

I ran a repo-wide search for type-check and test-run:tsc. The only matches are:

  • pnpm-lock.yaml entries for the [email protected] package
  • A blog post mentioning β€œtype-check” in the context of TS compilation performance

There are no package.json scripts, GitHub Actions workflows, or docs invoking the old task names as commands.

✨ Finishing Touches
  • πŸ“ Generate Docstrings
πŸ§ͺ Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 08-04-ts59

πŸͺ§ Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@vercel

vercel Bot commented Aug 4, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
next-prisma-starter βœ… Ready (Inspect) Visit Preview Aug 4, 2025 3:16pm
og-image βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Aug 4, 2025 3:16pm
www βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Aug 4, 2025 3:16pm

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

πŸ”­ Outside diff range comments (1)
examples/fastify-server/package.json (1)

28-38: Pipeline is red – pnpm-lock.yaml must be refreshed after this dev-dependency change.

The TypeScript upgrade itself is fine, but the lockfile mismatch (see GitHub Actions logs) prevents installs with the --frozen-lockfile flag. Regenerate and commit the lockfile so downstream consumers get a reproducible install.

♻️ Duplicate comments (8)
examples/minimal-react/server/package.json (1)

20-20: Same concern applies here – see earlier comment

examples/.test/diagnostics-big-router/package.json (1)

26-26: Same concern applies here – see earlier comment

examples/minimal-content-types/client/package.json (1)

24-24: Same concern applies here – see earlier comment

examples/.test/ssg-infinite-serialization/package.json (1)

32-32: Same concern applies here – see earlier comment

examples/lambda-url/package.json (1)

26-27: Same TypeScript 5.9 bump as above

The earlier comment applies here as well.

examples/.test/ssg/package.json (1)

32-33: Same TypeScript 5.9 bump as above

The earlier comment applies here as well.

www/og-image/package.json (1)

20-21: Same TypeScript 5.9 bump as above

The earlier comment applies here as well.

examples/tanstack-start/package.json (1)

43-44: Same TypeScript 5.9 bump as above

The earlier comment applies here as well.

🧹 Nitpick comments (3)
examples/.experimental/next-app-dir/package.json (1)

34-34: Move TypeScript to devDependencies to avoid shipping the compiler in production

typescript is only needed at build time. Keeping it under dependencies increases the runtime install footprint for this example without any benefit. Consider moving it to the existing devDependencies block.

-    "trpc-api": "link:./src/trpc",
-    "typescript": "^5.9.2",
+    "trpc-api": "link:./src/trpc"
 ...
   "devDependencies": {
     "@playwright/test": "^1.50.1",
     "start-server-and-test": "^1.12.0",
     "wait-port": "^1.0.1",
+    "typescript": "^5.9.2"
   },
packages/tanstack-react-query/package.json (1)

75-75: Optionally tighten the peer range

peerDependencies.typescript still reads ">=5.7.2".
If the package is only verified against β‰₯5.9, consider raising the lower bound:

-    "typescript": ">=5.7.2"
+    "typescript": ">=5.9.0"

Not mandatory, but it makes expectations explicit for consumers.

examples/next-prisma-starter/package.json (1)

64-65: Check plugin parity with the new TypeScript major.

TypeScript jumps from 5.8 β†’ 5.9, but @typescript-eslint stays at 8.31.1 (Nov-2023). That plugin tracks TS internals quite closely; mixing an old plugin with a new compiler can surface false-positives or missed diagnostics. Consider upgrading the whole trio (typescript, @typescript-eslint/*, eslint) together.

-    "@typescript-eslint": "^8.31.1",
+    "@typescript-eslint": "^8.59.0",
πŸ“œ Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between 564c926 and de4cf38.

β›” Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
πŸ“’ Files selected for processing (40)
  • examples/.experimental/next-app-dir/package.json (1 hunks)
  • examples/.test/diagnostics-big-router/package.json (1 hunks)
  • examples/.test/internal-types-export/package.json (1 hunks)
  • examples/.test/ssg-infinite-serialization/package.json (1 hunks)
  • examples/.test/ssg/package.json (1 hunks)
  • examples/bun/package.json (1 hunks)
  • examples/cloudflare-workers/package.json (1 hunks)
  • examples/express-minimal/package.json (1 hunks)
  • examples/express-server/package.json (1 hunks)
  • examples/fastify-server/package.json (1 hunks)
  • examples/lambda-api-gateway/package.json (1 hunks)
  • examples/lambda-url/package.json (1 hunks)
  • examples/lazy-load/package.json (1 hunks)
  • examples/minimal-content-types/client/package.json (1 hunks)
  • examples/minimal-content-types/server/package.json (1 hunks)
  • examples/minimal-react/client/package.json (1 hunks)
  • examples/minimal-react/server/package.json (1 hunks)
  • examples/minimal/package.json (1 hunks)
  • examples/next-big-router/package.json (1 hunks)
  • examples/next-edge-runtime/package.json (1 hunks)
  • examples/next-formdata/package.json (1 hunks)
  • examples/next-minimal-starter/package.json (1 hunks)
  • examples/next-prisma-starter/package.json (1 hunks)
  • examples/next-prisma-todomvc/package.json (1 hunks)
  • examples/next-prisma-websockets-starter/package.json (1 hunks)
  • examples/next-sse-chat/package.json (1 hunks)
  • examples/soa/package.json (1 hunks)
  • examples/standalone-server/package.json (1 hunks)
  • examples/tanstack-start/package.json (1 hunks)
  • examples/vercel-edge-runtime/package.json (1 hunks)
  • package.json (1 hunks)
  • packages/client/package.json (1 hunks)
  • packages/next/package.json (1 hunks)
  • packages/react-query/package.json (1 hunks)
  • packages/server/package.json (1 hunks)
  • packages/tanstack-react-query/package.json (1 hunks)
  • packages/tests/package.json (1 hunks)
  • packages/upgrade/package.json (1 hunks)
  • www/og-image/package.json (1 hunks)
  • www/package.json (1 hunks)
🧰 Additional context used
🧠 Learnings (4)
πŸ““ Common learnings
Learnt from: barelyhuman
PR: trpc/trpc#6530
File: packages/upgrade/src/bin/cli.ts:218-222
Timestamp: 2025-02-19T20:31:52.088Z
Learning: The CLI options `trpcFile` and `trpcImportName` in `packages/upgrade/src/bin/cli.ts` are temporary and planned to be removed in favor of using automatically discovered references from the TypeScript program.
Learnt from: juliusmarminge
PR: trpc/trpc#6262
File: examples/minimal-react/client/package.json:16-17
Timestamp: 2025-02-12T16:56:46.960Z
Learning: In examples and codemods targeting future versions, dependencies may intentionally use upcoming versions (e.g., React v19) or `next` tags, even if those versions haven't been officially released yet.
Learnt from: juliusmarminge
PR: trpc/trpc#6789
File: packages/tanstack-react-query/tsdown.config.ts:1-24
Timestamp: 2025-06-09T14:01:20.033Z
Learning: In the tRPC monorepo, packages/tests and packages/upgrade don't need main/module/types fields in their package.json because tests is not distributed and upgrade just exposes a binary.
πŸ“š Learning: in examples and codemods targeting future versions, dependencies may intentionally use upcoming vers...
Learnt from: juliusmarminge
PR: trpc/trpc#6262
File: examples/minimal-react/client/package.json:16-17
Timestamp: 2025-02-12T16:56:46.960Z
Learning: In examples and codemods targeting future versions, dependencies may intentionally use upcoming versions (e.g., React v19) or `next` tags, even if those versions haven't been officially released yet.

Applied to files:

  • examples/next-minimal-starter/package.json
  • examples/minimal-react/client/package.json
  • examples/lazy-load/package.json
  • examples/minimal-content-types/client/package.json
  • examples/.test/diagnostics-big-router/package.json
  • examples/cloudflare-workers/package.json
  • examples/lambda-api-gateway/package.json
  • examples/.experimental/next-app-dir/package.json
  • examples/express-server/package.json
  • examples/.test/ssg-infinite-serialization/package.json
  • examples/minimal-content-types/server/package.json
  • examples/standalone-server/package.json
  • examples/fastify-server/package.json
  • examples/.test/internal-types-export/package.json
  • examples/next-prisma-todomvc/package.json
  • packages/next/package.json
  • examples/minimal-react/server/package.json
  • examples/lambda-url/package.json
  • examples/tanstack-start/package.json
  • examples/next-prisma-starter/package.json
  • examples/bun/package.json
  • packages/upgrade/package.json
  • examples/vercel-edge-runtime/package.json
  • examples/.test/ssg/package.json
  • examples/next-formdata/package.json
  • examples/next-edge-runtime/package.json
  • examples/soa/package.json
  • packages/tests/package.json
  • examples/next-sse-chat/package.json
  • www/package.json
  • packages/react-query/package.json
  • www/og-image/package.json
  • packages/client/package.json
  • package.json
  • examples/minimal/package.json
  • examples/express-minimal/package.json
  • examples/next-big-router/package.json
  • packages/tanstack-react-query/package.json
  • examples/next-prisma-websockets-starter/package.json
  • packages/server/package.json
πŸ“š Learning: in the trpc monorepo, packages/tests and packages/upgrade don't need main/module/types fields in the...
Learnt from: juliusmarminge
PR: trpc/trpc#6789
File: packages/tanstack-react-query/tsdown.config.ts:1-24
Timestamp: 2025-06-09T14:01:20.033Z
Learning: In the tRPC monorepo, packages/tests and packages/upgrade don't need main/module/types fields in their package.json because tests is not distributed and upgrade just exposes a binary.

Applied to files:

  • examples/next-minimal-starter/package.json
  • examples/minimal-react/client/package.json
  • examples/lazy-load/package.json
  • examples/minimal-content-types/client/package.json
  • examples/.test/diagnostics-big-router/package.json
  • examples/cloudflare-workers/package.json
  • examples/lambda-api-gateway/package.json
  • examples/.experimental/next-app-dir/package.json
  • examples/express-server/package.json
  • examples/.test/ssg-infinite-serialization/package.json
  • examples/minimal-content-types/server/package.json
  • examples/standalone-server/package.json
  • examples/fastify-server/package.json
  • examples/.test/internal-types-export/package.json
  • examples/next-prisma-todomvc/package.json
  • packages/next/package.json
  • examples/minimal-react/server/package.json
  • examples/lambda-url/package.json
  • examples/tanstack-start/package.json
  • examples/next-prisma-starter/package.json
  • examples/bun/package.json
  • packages/upgrade/package.json
  • examples/vercel-edge-runtime/package.json
  • examples/.test/ssg/package.json
  • examples/next-formdata/package.json
  • examples/next-edge-runtime/package.json
  • examples/soa/package.json
  • packages/tests/package.json
  • examples/next-sse-chat/package.json
  • www/package.json
  • packages/react-query/package.json
  • www/og-image/package.json
  • packages/client/package.json
  • package.json
  • examples/minimal/package.json
  • examples/express-minimal/package.json
  • examples/next-big-router/package.json
  • packages/tanstack-react-query/package.json
  • examples/next-prisma-websockets-starter/package.json
  • packages/server/package.json
πŸ“š Learning: the cli options `trpcfile` and `trpcimportname` in `packages/upgrade/src/bin/cli.ts` are temporary a...
Learnt from: barelyhuman
PR: trpc/trpc#6530
File: packages/upgrade/src/bin/cli.ts:218-222
Timestamp: 2025-02-19T20:31:52.088Z
Learning: The CLI options `trpcFile` and `trpcImportName` in `packages/upgrade/src/bin/cli.ts` are temporary and planned to be removed in favor of using automatically discovered references from the TypeScript program.

Applied to files:

  • examples/minimal-content-types/client/package.json
  • examples/.experimental/next-app-dir/package.json
  • examples/.test/internal-types-export/package.json
  • examples/next-prisma-todomvc/package.json
  • packages/next/package.json
  • examples/next-prisma-starter/package.json
  • examples/bun/package.json
  • packages/upgrade/package.json
  • packages/tests/package.json
  • www/package.json
  • packages/client/package.json
  • package.json
  • packages/tanstack-react-query/package.json
  • examples/next-prisma-websockets-starter/package.json
  • packages/server/package.json
πŸͺ› GitHub Actions: main
examples/fastify-server/package.json

[error] 1-1: pnpm install failed due to outdated lockfile. The pnpm-lock.yaml is not up to date with package.json dependencies. Run 'pnpm install --no-frozen-lockfile' to update the lockfile.

package.json

[error] 1-1: pnpm install failed due to outdated lockfile. The pnpm-lock.yaml is not up to date with package.json dependencies. Run 'pnpm install --no-frozen-lockfile' to update the lockfile.

πŸͺ› GitHub Actions: autofix.ci
examples/fastify-server/package.json

[error] 1-1: pnpm install failed due to outdated lockfile. The pnpm-lock.yaml is not up to date with package.json dependencies. Run 'pnpm install --no-frozen-lockfile' to update the lockfile.

package.json

[error] 1-1: pnpm install failed due to outdated lockfile. The pnpm-lock.yaml is not up to date with package.json dependencies. Run 'pnpm install --no-frozen-lockfile' to update the lockfile.

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Analyze (typescript)
πŸ”‡ Additional comments (28)
packages/tests/package.json (1)

36-37: Workspace TS alignment confirmed

  • rg --json '"typescript":\s*"\^[0-5]\.[0-8]\.' returned no matches, so no ^5.8.x entries remain in any package.json.
  • In pnpm-lock.yaml, only transitive dependencies still pin [email protected]; the root resolution for typescript is correctly 5.9.2.

All packages now depend on ^5.9.2 and the lockfile’s direct TypeScript entry is at 5.9.2. No further action required.

examples/next-prisma-websockets-starter/package.json (1)

77-78: Type-check All Workspaces with TS 5.9

Due to TS 5.9’s stricter DOM typings (see #6875), please verify that every workspaceβ€”both packages and examplesβ€”still compiles without errors under the new version. For example:

  • From repo root:
    pnpm -r exec --filter "{packages/**,examples/**}" tsc --noEmit
  • Or individually in each example/package:
    cd examples/next-prisma-websockets-starter
    pnpm exec tsc --noEmit

Ensure no new type errors remain before merging.

examples/next-big-router/package.json (2)

29-29: TypeScript 5.9 bump looks good

The version alignment to ^5.9.2 matches the repo-wide upgrade and keeps the example in sync with the core packages. No further action needed here.


1-33: No stray TypeScript 5.8 references found
I ran the RG search across all package.json files and confirmed there are no remaining "typescript": "5.8.x" entries.

examples/next-prisma-todomvc/package.json (1)

48-48: Version bump confirmed

The dev dependency is correctly updated to ^5.9.2; everything else remains unchanged.

examples/soa/package.json (1)

20-20: TS 5.9 adoption acknowledged

typescript is upgraded in devDependencies, consistent with the repo-wide move. Looks good.

examples/minimal/package.json (1)

24-24: Upgrade aligns with global tooling versions

The minimal example now targets typescript@^5.9.2, matching the rest of the codebase.

examples/bun/package.json (1)

23-23: Lockfile refreshed after TypeScript bump

All devDependencies now target TypeScript ^5.9.2 and the pnpm-lock.yaml has been updated accordinglyβ€”no further action needed. πŸŽ‰

www/package.json (1)

106-106: OK, but re-run docs TS build once locks are updated

Docusaurus’ TS build occasionally caches types; after upgrading to 5.9, do a clean build (pnpm docs:build && pnpm docs:serve) to catch any latent 5.9-specific type regressions.

examples/lambda-api-gateway/package.json (1)

27-27: Upgrade looks good

Serverless + esbuild work fine on TS 5.9. No further action required.

packages/client/package.json (1)

128-128: Dev-only upgrade aligns with peer range

peerDependencies.typescript still uses >=5.7.2, which is acceptable; projects stuck on 5.8 continue to work while we dog-food 5.9 internally.

packages/react-query/package.json (1)

116-116: Consistent with rest of monorepo

No further changes neededβ€”tsdown & test suites should compile under 5.9 once locks are refreshed.

packages/server/package.json (1)

218-220: Confirm build-tool chain is ready for the 5.9 compiler

[email protected], ESLint’s @typescript-eslint/* plugins (pulled via the monorepo presets), and any TS-powered generators must tolerate the 5.9 compiler API. A silent peer-range mismatch there will surface only at publish time.

Please run the full workspace build once with Node β‰₯18 to ensure nothing crashes on the new typescript major bump.

examples/minimal-content-types/server/package.json (1)

18-21: Version bump looks good

Example keeps in sync with the repo’s compiler baseline.

examples/minimal-react/client/package.json (1)

23-25: TS 5.9 upgrade approved

No conflicting dev tooling in this example; the bump is safe.

examples/lazy-load/package.json (1)

22-24: LGTM

The lazy-load example now compiles against the new baseline. βœ…

examples/next-formdata/package.json (1)

28-31: Consistent compiler version across examples

Change aligns this Next.js example with the monorepo’s TypeScript target.

examples/next-minimal-starter/package.json (1)

27-27: Synchronise the lock-file after the TS bump

typescript was bumped to ^5.9.2, but the CI failed because pnpm-lock.yaml wasn’t regenerated.
Run pnpm install --no-frozen-lockfile and commit the updated lock-file to keep the workspace consistent.

examples/cloudflare-workers/package.json (1)

21-21: Remember to update pnpm-lock.yaml

Like the other example packages, this version bump requires a fresh lock-file; otherwise installs with --frozen-lockfile will fail.

packages/upgrade/package.json (1)

38-38: Double-check why TypeScript is a runtime dependency

packages/upgrade lists TypeScript under dependencies (not devDependencies).
That makes sense only if the CLI invokes the TS compiler API at runtime.
Please verify this is still required; otherwise move it to devDependencies to avoid shipping an extra 90 MB to end users.

examples/express-server/package.json (1)

35-36: LGTM – version bump only.

No downstream tooling here is tightly coupled to the TS compiler, so this looks safe.

examples/standalone-server/package.json (1)

34-35: LGTM – version bump aligns with repo-wide policy.

Nothing else in the dev tool-chain should break with 5.9.

examples/.test/internal-types-export/package.json (1)

14-15: Confirm tsdown support for TS 5.9.

[email protected] bundles its own TypeScript instance. Make sure its transitive dependency tree has already been cut for 5.9; otherwise code-gen may still use an older compiler and drift from the new type-checker.

examples/next-edge-runtime/package.json (1)

26-27: LGTM – upgrade only.

Edge-runtime example relies on Next.js compilation which already bundles its own TS; local typescript is only for lint & type-check, so this bump is low-risk.

examples/vercel-edge-runtime/package.json (1)

21-21: TypeScript bump looks good – remember to regenerate the lock-file.

The version bump to 5.9.2 is correct, but CI is currently failing because pnpm-lock.yaml is out-of-date. Run pnpm install --no-frozen-lockfile and commit the updated lockfile to unblock the pipeline.

examples/express-minimal/package.json (1)

35-35: LGTM – no further action needed here.

packages/next/package.json (1)

139-139: Dev-dependency bump is fine, peer range can stay unchanged.

peerDependencies.typescript is still >=5.7.2, which encompasses 5.9.x, so no peer change is necessary.

examples/next-sse-chat/package.json (1)

45-45: LGTM – consistent with the repository-wide 5.9.2 upgrade.

Comment thread package.json
"tsx": "^4.19.3",
"turbo": "^2.5.4",
"typescript": "^5.8.2",
"typescript": "^5.9.2",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

CI is failing – regenerate and commit pnpm-lock.yaml

The root lock-file is out of sync after bumping to ^5.9.2, causing all GitHub Actions jobs to error out.

Run the following to fix it:

#!/bin/bash
pnpm install --no-frozen-lockfile          # rewrite lock-file
rg --no-heading -n '"typescript": "[^5.9]' package.json pnpm-lock.yaml || echo "βœ“ All TypeScript refs β‰₯5.9"
git add pnpm-lock.yaml

The ripgrep check ensures no stale 5.8.x references remain.

πŸ€– Prompt for AI Agents
In package.json at line 74, after updating the TypeScript version to ^5.9.2, the
pnpm-lock.yaml file is out of sync causing CI failures. To fix this, run 'pnpm
install --no-frozen-lockfile' to regenerate the lock file, verify no older
TypeScript versions remain using ripgrep, and then commit the updated
pnpm-lock.yaml file to the repository.

@pkg-pr-new

pkg-pr-new Bot commented Aug 4, 2025 •

Copy link
Copy Markdown

Open in StackBlitz

@trpc/client

npm i https://pkg.pr.new/trpc/trpc/@trpc/client@6877

@trpc/next

npm i https://pkg.pr.new/trpc/trpc/@trpc/next@6877

@trpc/react-query

npm i https://pkg.pr.new/trpc/trpc/@trpc/react-query@6877

@trpc/server

npm i https://pkg.pr.new/trpc/trpc/@trpc/server@6877

@trpc/tanstack-react-query

npm i https://pkg.pr.new/trpc/trpc/@trpc/tanstack-react-query@6877

@trpc/upgrade

npm i https://pkg.pr.new/trpc/trpc/@trpc/upgrade@6877

commit: d657ffb

* Sets the request's body.
*/
body?: FormData | string | null | Uint8Array | Blob | File;
body?: FormData | string | null | Uint8Array<ArrayBuffer> | Blob | File;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the main fix

@github-actions

github-actions Bot commented Aug 5, 2025

Copy link
Copy Markdown
Contributor

This pull request has been locked because we are very unlikely to see comments on closed issues. If you think, this PR is still necessary, create a new one with the same branch. Thank you.

This branch was successfully deployed

5 active deployments
Preview – www β€” d657ffb8 Deployed Aug 4, 2025 by vercel[bot]
Preview – trpc-next-app-dir β€” d657ffb8 Deployed Aug 4, 2025 by vercel[bot]
Preview – next-prisma-starter β€” d657ffb8 Deployed Aug 4, 2025 by vercel[bot]
Preview – examples-todomvc β€” d657ffb8 Deployed Aug 4, 2025 by vercel[bot]
Preview – og-image β€” d657ffb8 Deployed Aug 4, 2025 by vercel[bot]
trpc-pr-6877 β€” d657ffb8 Deployed Aug 4, 2025 by railway-app[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: httpBatchLink with credentials (CORS) throws a type-error on TypeScript 5.9.x

2 participants