Commit 8df8ab4
committed
chore: upgrade to tshy 4 and TypeScript 6
Hoist tshy to a single root devDependency (4.1.2) instead of one per public
package, and move the repo from TypeScript 5.5.4 to 6.0.3.
Most of the TS6 work was absorbed by bumping @types/node to 20.19.19, which
brings the generic Buffer typings TS6 expects and clears the Buffer/Uint8Array
assignability errors at the source. The rest:
- Replace the deprecated moduleResolution: node and drop downlevelIteration
across the internal package configs, and give the database build an explicit
rootDir.
- Patch tsup so it only passes the deprecated baseUrl when configured, so the
tsup-built packages' declaration builds run under TS6.
- Declare node types explicitly (types: ["node"] in the shared base config,
with the React packages adding react/react-dom, and the clickhouse build
config) since TS6 no longer reliably auto-includes them.
Also a few genuine type fixes (clickhouse row typing, OTLP response bodies,
realtime stream ingest types) and one real bug: the dev CLI read error.status
off an eventsource error that only exposes code, so the HTTP status never
showed.
Verified: full-repo typecheck and build pass under TS6.1 parent 359e250 commit 8df8ab4
31 files changed
Lines changed: 509 additions & 414 deletions
File tree
- .configs
- apps/webapp
- app
- routes
- services/realtime
- test
- internal-packages
- clickhouse
- src/client
- database
- emails
- sdk-compat-tests
- testcontainers
- tsql
- zod-worker
- packages
- build
- cli-v3
- src
- core
- python
- react-hooks
- rsc
- schema-to-json
- trigger-sdk
- patches
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
| 309 | + | |
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
495 | | - | |
| 495 | + | |
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
| |||
0 commit comments