Commit 500249d
build(js): upgrade TypeScript to 6.0 (both clients) (#346)
build(js): upgrade TypeScript to 6.0
Upgrade both JS clients to typescript@^6.0.3.
clients/js (modern, tsup):
- Add "rootDir": "./src" to tsconfig.declarations.json (TS6 requires an
explicit rootDir for declaration emit; TS5011).
clients/js-legacy (tsc --build):
- tsconfig.base.json: add "ignoreDeprecations": "6.0" (node10/"Node"
resolution is deprecated, TS5107), "lib": ["ES2020", "DOM"] (the cjs
project targets ES2016 and the source uses BigInt, TS2583), and
"types": ["node"] (so Buffer/http/https resolve, TS2591).
- tsconfig.cjs.json / tsconfig.esm.json: add "rootDir": "./src" (TS5011).
- tsconfig.json: "types": ["node", "mocha"] so the test build sees
mocha's globals after the base "types" narrowing.
Each change corresponds to an actual TS6 compiler error observed when
building unmodified; no extra options were added.
Verified locally with typescript@6.0.3:
- clients/js: `pnpm build` + `pnpm lint` pass.
- clients/js-legacy: `pnpm build`, `pnpm lint`, and `pnpm test:exports`
pass. The mocha integration tests (basic/longRecord) require a local
validator and were not run here.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 8b10f78 commit 500249d
9 files changed
Lines changed: 467 additions & 460 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
0 commit comments