Skip to content

chore: upgrade to TypeScript 7 - #4318

Open
carderne wants to merge 8 commits into
mainfrom
ts7
Open

chore: upgrade to TypeScript 7#4318
carderne wants to merge 8 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-botBot commented Jul 21, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b5bbc4a

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

This PR includes changesets to release 27 packages
NameType
trigger.devPatch
@trigger.dev/buildPatch
@trigger.dev/corePatch
@trigger.dev/pythonPatch
@trigger.dev/react-hooksPatch
@trigger.dev/redis-workerPatch
@trigger.dev/rscPatch
@trigger.dev/schema-to-jsonPatch
@trigger.dev/sdkPatch
@internal/dashboard-agentPatch
@internal/cachePatch
@internal/clickhousePatch
@internal/llm-model-catalogPatch
@internal/metrics-pipelinePatch
@trigger.dev/rbacPatch
@internal/redisPatch
@internal/replicationPatch
@internal/run-enginePatch
@internal/run-storePatch
@internal/schedule-enginePatch
@trigger.dev/ssoPatch
@internal/testcontainersPatch
@internal/tracingPatch
@internal/tsqlPatch
@internal/sdk-compat-testsPatch
@trigger.dev/databasePatch
@trigger.dev/otlp-importerPatch

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

coderabbitaiBot 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

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 nameStatusExplanationResolution
Description check⚠️ WarningThe 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 nameStatusExplanation
Title check✅ PassedThe title is concise and accurately summarizes the main change: upgrading the monorepo to TypeScript 7.
Docstring Coverage✅ PassedNo functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
Out of Scope Changes check✅ PassedCheck 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

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-newBot commented Jul 21, 2026

Copy link
Copy Markdown

Open in StackBlitz

@trigger.dev/build

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

trigger.dev

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

@trigger.dev/core

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

@trigger.dev/python

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

@trigger.dev/react-hooks

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

@trigger.dev/redis-worker

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

@trigger.dev/rsc

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

@trigger.dev/schema-to-json

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

@trigger.dev/sdk

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

commit: b5bbc4a

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.

devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>

@devin-ai-integrationdevin-ai-integrationBot 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.

Devin Review found 3 new potential issues.

Open in Devin Review

Comment threadpackages/build/package.json
Comment threadpackages/redis-worker/tsdown.config.ts
Comment threadpackage.json

@devin-ai-integrationdevin-ai-integrationBot 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.

Devin Review found 1 new potential issue.

Open in Devin Review

Comment threadpackages/redis-worker/tsdown.config.ts
Sign up for freeto 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

@carderne