Repository navigation
Commit 170ec7f
authored
chore(tooling): upgrade to TypeScript 7 and tsdown 0.23 (#6061)
Upgrade the workspace checker to stable TypeScript 7.0.2 and tsdown
0.23. Remove the framework-bundled ts-node dependency and use Oxc for
CLI development and the legacy ESM fallback. Plain JavaScript ESM apps
receive no TypeScript loader; applications can still install and select
a compiler with --tscompiler.
The default native utoo TypeScript catalog is TS7 and workspace scripts
use plain tsc. Only the root and egg-bin SWC compatibility tests opt
into the separate compiler-api TS5 catalog. Egg 4 templates and the HTTP
benchmark declare TS7 directly. Delete the obsolete pnpm workspace
configuration. An installed-toolchain guard checks the actual tsc
version from each workspace's bin paths.
Validate real utoo tarballs through strict publint using isolated
package copies and published manifests. Include declaration
compatibility fixes, packaging regressions, ESM compiler initialization
coverage, and compiler tests that resolve the supported package metadata
instead of TS7's unexported bin subpath. The compiler resolution test
helper is shared following CodeRabbit's review.
### Validation on final commit 69324e8
- GitHub Actions CI succeeded: typecheck, lint/format/build/package
validation, Linux Node 22/24/26 tests, macOS Node 24 tests, Windows Node
24 tests, egg-bin/egg-scripts/tegg-vitest matrices, and coverage
aggregation.
- cnpmcore, cnpmcore snapshot, and examples E2E all succeeded.
- CodeQL, Codecov project/patch, Socket checks and CodeRabbit follow-up
succeeded. Copilot could not review because its requested-review quota
was exhausted.
- Local focused compiler regressions, both Redis TypeScript fixture
builds, and all workspace typechecks passed.
Snyk and FOSSA still report third-party scan errors; their linked
detailed reports are inaccessible here. Site deployment checks are
outside this PR's requested validation scope.
Re-run the 02 stable-release rehearsal after integrating 07. No merge or
release is included.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* TypeScript 7 is now the default for type checking across the framework
and its examples. Legacy compiler API use remains supported through a
separate TypeScript 5 compatibility path.
* TypeScript applications can use Oxc for runtime registration, while
explicitly selected custom compilers remain supported.
* Public packages are checked for publishing issues during builds.
* **Bug Fixes**
* Improved TypeScript compiler selection for application startup and
package checks.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent a4f7410 commit 170ec7f
137 files changed
Lines changed: 843 additions & 497 deletions
File tree
- examples
- helloworld-service-worker
- helloworld-tegg
- helloworld-typescript
- packages
- cluster
- test
- fixtures/apps/options-require
- master
- cookies
- core
- test
- egg
- src
- errors
- extend2
- koa-static-cache
- koa
- loader-fs
- logger
- path-matching
- router
- supertest
- tsconfig/test
- typings
- utils
- plugins
- cors
- development
- i18n
- jsonp
- logrotator
- mock
- multipart
- onerror
- redis
- test
- schedule
- test/fixtures/timer-close/app/app
- schedule
- security
- session
- static
- tracer
- typebox-validate
- view-nunjucks
- view
- watcher
- scripts
- test
- tegg
- benchmark/http
- core
- agent-runtime
- ajv-decorator
- aop-decorator
- aop-runtime
- background-task
- common-util
- controller-decorator
- controller-runtime
- core-decorator
- dal-decorator
- dal-runtime
- test
- dynamic-inject-runtime
- dynamic-inject
- test
- eventbus-decorator
- eventbus-runtime
- langchain-decorator
- lifecycle
- loader
- mcp-client
- test/fixtures
- sse-mcp-server
- streamable-mcp-server
- metadata
- orm-decorator
- runtime
- schedule-decorator
- standalone-decorator
- tegg
- test-util
- transaction-decorator
- types
- vitest
- plugin
- ajv
- aop
- common
- config
- controller
- dal
- dns-cache
- eventbus
- langchain
- mcp-client
- test/fixtures
- sse-mcp-server
- streamable-mcp-server
- mcp-proxy
- test
- orm
- schedule
- tegg
- standalone
- service-worker-controller
- service-worker-runtime
- service-worker
- standalone
- test/fixtures/inner-object-proto
- tools
- create-egg
- src/templates
- simple-ts
- tegg
- egg-bin
- bin
- src
- test
- commands
- fixtures
- example-ts-cluster-client
- example-ts-cluster/test
- example-ts-cov
- example-ts-test
- example-ts
- test-demo-app-esm
- egg-bundler
- scripts
- bin
- wiki
- workflows
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
201 | 200 | | |
202 | | - | |
| 201 | + | |
203 | 202 | | |
204 | 203 | | |
205 | 204 | | |
206 | 205 | | |
207 | | - | |
| 206 | + | |
208 | 207 | | |
209 | 208 | | |
210 | 209 | | |
| |||
220 | 219 | | |
221 | 220 | | |
222 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
77 | | - | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
| 453 | + | |
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
463 | | - | |
464 | | - | |
| 463 | + | |
| 464 | + | |
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
0 commit comments