Skip to content

👷 Fix TypeScript 6.x compatibility check deprecation errors#4373

Merged
thomas-lebeau merged 1 commit into
mainfrom
thomas.lebeau/fix-ts7-compat-deprecations
Mar 24, 2026
Merged

👷 Fix TypeScript 6.x compatibility check deprecation errors#4373
thomas-lebeau merged 1 commit into
mainfrom
thomas.lebeau/fix-ts7-compat-deprecations

Conversation

@thomas-lebeau
Copy link
Copy Markdown
Collaborator

@thomas-lebeau thomas-lebeau commented Mar 24, 2026

Motivation

TypeScript 6 introduced deprecation warnings for certain compiler options (as a preparation for TypeScript 7, which turns them into errors). The check-typescript-compatibility script was failing because these deprecated options triggered errors when running compatibility checks against the latest TypeScript version.

Changes

  • Add ignoreDeprecations: '6.0' to the compiler options for the affected TypeScript compatibility checks (latest, exactOptionalPropertyTypes, and ESNext checks) to suppress the deprecation errors.

Test instructions

Run the TypeScript compatibility check script:

yarn ts-node scripts/check-typescript-compatibility.ts

The script should complete without deprecation errors.

Checklist

  • Tested locally
  • Tested on staging
  • Added unit tests for this change.
  • Added e2e/integration tests for this change.
  • Updated documentation and/or relevant AGENTS.md file

Add `ignoreDeprecations: "6.0"` to all latest TypeScript checks to silence
the TS5107 errors for `moduleResolution=node` and `target=es5` introduced in TS 7.
@cit-pr-commenter-54b7da
Copy link
Copy Markdown

cit-pr-commenter-54b7da Bot commented Mar 24, 2026

Bundles Sizes Evolution

📦 Bundle Name Base Size Local Size 𝚫 𝚫% Status
Rum 176.52 KiB 176.52 KiB 0 B 0.00%
Rum Profiler 6.16 KiB 6.16 KiB 0 B 0.00%
Rum Recorder 27.46 KiB 27.46 KiB 0 B 0.00%
Logs 56.85 KiB 56.85 KiB 0 B 0.00%
Rum Slim 132.16 KiB 132.16 KiB 0 B 0.00%
Worker 23.63 KiB 23.63 KiB 0 B 0.00%
🚀 CPU Performance
Action Name Base CPU Time (ms) Local CPU Time (ms) 𝚫%
RUM - add global context 0.0043 0.0044 +2.33%
RUM - add action 0.0124 0.0142 +14.52%
RUM - add error 0.0146 0.0155 +6.16%
RUM - add timing 0.0027 0.0029 +7.41%
RUM - start view 0.0122 0.0134 +9.84%
RUM - start/stop session replay recording 0.0007 0.0007 0.00%
Logs - log message 0.015 0.016 +6.67%
🧠 Memory Performance
Action Name Base Memory Consumption Local Memory Consumption 𝚫
RUM - add global context 26.40 KiB 27.32 KiB +947 B
RUM - add action 98.98 KiB 99.13 KiB +160 B
RUM - add timing 25.78 KiB 26.34 KiB +579 B
RUM - add error 94.69 KiB 102.21 KiB +7.52 KiB
RUM - start/stop session replay recording 25.68 KiB 25.32 KiB -370 B
RUM - start view 466.03 KiB 474.25 KiB +8.21 KiB
Logs - log message 45.31 KiB 46.26 KiB +972 B

🔗 RealWorld

@datadog-datadog-prod-us1-2
Copy link
Copy Markdown

datadog-datadog-prod-us1-2 Bot commented Mar 24, 2026

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 77.33% (+0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: e7c35ce | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback!

@thomas-lebeau thomas-lebeau changed the title 👷 Fix TypeScript 7.x compatibility check deprecation errors 👷 Fix TypeScript 6.x compatibility check deprecation errors Mar 24, 2026
@thomas-lebeau thomas-lebeau marked this pull request as ready for review March 24, 2026 07:57
@thomas-lebeau thomas-lebeau requested a review from a team as a code owner March 24, 2026 07:57
@thomas-lebeau thomas-lebeau merged commit 02a45fe into main Mar 24, 2026
22 checks passed
@thomas-lebeau thomas-lebeau deleted the thomas.lebeau/fix-ts7-compat-deprecations branch March 24, 2026 08:37
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 24, 2026
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.

2 participants