Commit 55f03e0
build: Update to typescript 5.8.0 (#17710)
This updates the TS version we use to 5.8.0.
We still downlevel to 3.8 so this should not be breaking (even if we
were to use newer features eventually), downlevel-dts will fail/or our
tests anyhow if we use some features that cannot be downlevelled.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Upgrade TypeScript to 5.8 across the repo, adjust tsconfigs and deps,
and fix minor type issues to satisfy stricter checks.
>
> - **Tooling/Versions**:
> - Bump `typescript` to `~5.8.0` and update version guard in
`scripts/verify-packages-versions.js`.
> - Update `yarn.lock` and package constraints; add new e2e app
`dev-packages/e2e-tests/test-applications/generic-ts5.0`.
> - **TS Configs**:
> - Add `moduleResolution: "Node16"` in multiple `tsconfig.json` files
and test configs.
> - Add `@types/node` and include `"node"` in `types` where needed
(e.g., Hydrogen test app).
> - **Type/Code Adjustments**:
> - Remove unnecessary casts and add explicit non-null assertions for
`Map.keys().next().value`.
> - Simplify handler registration (`handlers[type].push(handler)`), and
minor TS cleanups in profiling/LRU/debug-id utilities.
> - Cloudflare/Nuxt/SvelteKit: relax Request typing and use
`@ts-expect-error` for `cf` init property; avoid unused CF type import.
> - Next.js webpack: remove unnecessary non-null assertion when joining
`appDirPath`.
> - Remix: streamline FormData attribute handling and vendor
instrumentation check.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
5ec5959. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: s1gr1d <sigrid.huemer@posteo.at>1 parent af83b87 commit 55f03e0
File tree
32 files changed
+85
-38
lines changed- dev-packages/e2e-tests/test-applications
- generic-ts5.0
- hydrogen-react-router-7
- packages
- browser-utils/src/metrics
- browser/src/profiling
- core/src
- instrument
- utils
- nextjs
- src/config
- node-core
- src/integrations/anr
- test/helpers
- node-native/src
- node
- test/helpers
- nuxt/src
- runtime/plugins
- remix
- src
- utils
- vendor
- test/integration
- sveltekit/src/worker
- tanstackstart-react
- tanstackstart
- typescript
- scripts
32 files changed
+85
-38
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
567 | | - | |
| 567 | + | |
| 568 | + | |
568 | 569 | | |
569 | 570 | | |
570 | 571 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments