Skip to content

chore: upgrade TypeScript 7#38575

Merged
hyoban merged 3 commits into
mainfrom
0709-typescript7
Jul 9, 2026
Merged

chore: upgrade TypeScript 7#38575
hyoban merged 3 commits into
mainfrom
0709-typescript7

Conversation

@hyoban

@hyoban hyoban commented Jul 9, 2026

Copy link
Copy Markdown
Member

Important

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue and you have been assigned to it
  3. Use the correct syntax to link this PR: Fixes #<issue number>.

Summary

Upgrade the workspace TypeScript CLI path from the native preview package to the official TypeScript 7.0.2 package. See the official announcement: https://devblogs.microsoft.com/typescript/announcing-typescript-7-0/

  • Replace @typescript/native-preview with @typescript/native aliased to typescript@7.0.2.
  • Switch workspace type-check scripts from tsgo to tsc.
  • Keep the typescript package alias on @typescript/typescript6 for tooling that still requires the legacy compiler API.
  • Remove eslint-plugin-sonarjs and the component analyzer scripts that depended on it.

Issue: N/A

Screenshots

Before After
N/A N/A

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran pnpm type-check, pnpm lint:quiet, and pnpm --filter dify-web build.

From Codex

@github-actions github-actions Bot added web This relates to changes on the web. e2e End-to-end tests and E2E test infrastructure. labels Jul 9, 2026
@codecov

codecov Bot commented Jul 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.39%. Comparing base (caf1a22) to head (b35f678).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #38575   +/-   ##
=======================================
  Coverage   85.39%   85.39%           
=======================================
  Files        5174     5174           
  Lines      271378   271378           
  Branches    51906    51906           
=======================================
  Hits       231743   231743           
  Misses      35168    35168           
  Partials     4467     4467           
Flag Coverage Δ
cli 88.48% <ø> (ø)
dify-ui 94.61% <ø> (ø)
web 84.84% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@hyoban hyoban marked this pull request as ready for review July 9, 2026 01:40
@hyoban hyoban enabled auto-merge July 9, 2026 01:40
@dosubot dosubot Bot added size:XXL This PR changes 1000+ lines, ignoring generated files. dependencies Pull requests that update a dependency file labels Jul 9, 2026
@hyoban hyoban added this pull request to the merge queue Jul 9, 2026
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jul 9, 2026
Merged via the queue into main with commit 512f39d Jul 9, 2026
72 of 74 checks passed
@hyoban hyoban deleted the 0709-typescript7 branch July 9, 2026 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file e2e End-to-end tests and E2E test infrastructure. lgtm This PR has been approved by a maintainer size:XXL This PR changes 1000+ lines, ignoring generated files. web This relates to changes on the web.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants