Skip to content

chore: upgrade to TypeScript 7#4318

Open
carderne wants to merge 5 commits into
mainfrom
ts7
Open

chore: upgrade to TypeScript 7#4318
carderne wants to merge 5 commits into
mainfrom
ts7

Conversation

@carderne

Copy link
Copy Markdown
Collaborator

Summary

Upgrade the monorepo to TypeScript 7.0.2 and update package build tooling for compatibility with the native compiler.

Design

Package builds now use tshy 4, while the packages still using tsup move to tsdown. The few scripts that depend on the legacy TypeScript compiler API use an explicit TypeScript 6 alias; declaration portability coverage invokes the TypeScript 7 CLI directly.

Turbo is updated so workspace tasks can read the regenerated pnpm lockfile.

@changeset-bot

changeset-bot Bot commented Jul 21, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5f35b92

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 26 packages
Name Type
trigger.dev Patch
@trigger.dev/build Patch
@trigger.dev/redis-worker Patch
@internal/dashboard-agent Patch
@trigger.dev/python Patch
@internal/run-engine Patch
@internal/schedule-engine Patch
@trigger.dev/core Patch
@trigger.dev/react-hooks Patch
@trigger.dev/rsc Patch
@trigger.dev/schema-to-json Patch
@trigger.dev/sdk Patch
@trigger.dev/database Patch
@trigger.dev/otlp-importer Patch
@trigger.dev/rbac Patch
@trigger.dev/sso Patch
@internal/cache Patch
@internal/clickhouse Patch
@internal/llm-model-catalog Patch
@internal/redis Patch
@internal/replication Patch
@internal/run-store Patch
@internal/testcontainers Patch
@internal/tracing Patch
@internal/tsql Patch
@internal/sdk-compat-tests Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f7a465d0-edfe-4ecd-b917-c5db59c73639

📥 Commits

Reviewing files that changed from the base of the PR and between 11ed568 and 5f35b92.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (3)
  • .changeset/typescript-seven-builds.md
  • packages/build/package.json
  • packages/redis-worker/tsdown.config.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/redis-worker/tsdown.config.ts
📜 Recent review details
🧰 Additional context used
📓 Path-based instructions (1)
**/package.json

📄 CodeRabbit inference engine (AGENTS.md)

When adding Zod, use the exact repository-wide pinned version 3.25.76, never a different version or range.

Files:

  • packages/build/package.json
🔇 Additional comments (2)
packages/build/package.json (1)

87-87: LGTM!

Also applies to: 96-104

.changeset/typescript-seven-builds.md (1)

1-8: LGTM!


Walkthrough

The changes update workspace TypeScript tooling and package build dependencies, migrate plugin and Redis worker builds from tsup to tsdown, and add Redis worker bundling post-processing. The declaration portability test now invokes the TypeScript CLI. The operations guard uses a legacy TypeScript API package, while the workspace catalog targets TypeScript 7. Redis worker cron parsing uses the default parser import. Webapp search parameter parsing broadens its input signature without changing runtime behavior.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers summary and design, but it omits most required template sections such as Closes #, checklist, testing, changelog, and screenshots. Add the missing template sections: Closes #issue, checklist items, testing steps, changelog, and screenshots or clear N/A placeholders.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately summarizes the main change: upgrading the monorepo to TypeScript 7.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ts7

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 Checkov (3.3.8)
packages/build/package.json

Traceback (most recent call last):
File "/usr/local/bin/checkov", line 2, in
from checkov.main import Checkov
ModuleNotFoundError: No module named 'checkov'


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Jul 21, 2026

Copy link
Copy Markdown

Open in StackBlitz

@trigger.dev/build

npm i https://pkg.pr.new/@trigger.dev/build@5f35b92

trigger.dev

npm i https://pkg.pr.new/trigger.dev@5f35b92

@trigger.dev/core

npm i https://pkg.pr.new/@trigger.dev/core@5f35b92

@trigger.dev/python

npm i https://pkg.pr.new/@trigger.dev/python@5f35b92

@trigger.dev/react-hooks

npm i https://pkg.pr.new/@trigger.dev/react-hooks@5f35b92

@trigger.dev/redis-worker

npm i https://pkg.pr.new/@trigger.dev/redis-worker@5f35b92

@trigger.dev/rsc

npm i https://pkg.pr.new/@trigger.dev/rsc@5f35b92

@trigger.dev/schema-to-json

npm i https://pkg.pr.new/@trigger.dev/schema-to-json@5f35b92

@trigger.dev/sdk

npm i https://pkg.pr.new/@trigger.dev/sdk@5f35b92

commit: 5f35b92

coderabbitai[bot]

This comment was marked as resolved.

@carderne
carderne marked this pull request as ready for review July 21, 2026 15:41
devin-ai-integration[bot]

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant