Skip to content

chore: bump typescript to v6#101

Merged
kjonescertinia merged 1 commit into
mainfrom
chore/typescript-6
Apr 23, 2026
Merged

chore: bump typescript to v6#101
kjonescertinia merged 1 commit into
mainfrom
chore/typescript-6

Conversation

@kjonescertinia

Copy link
Copy Markdown
Contributor

Summary

Supersedes Dependabot PR #95. Two tightly-coupled changes:

  • typescript 5.9.3 → 6.0.3
  • tsconfig.json: add "types": ["node", "jest"]

TypeScript 6 removed the automatic inclusion of every @types/* package in node_modules — ambient type deps now need to be declared explicitly. That explains why #95 failed CI with Cannot find name 'Buffer' / 'process'. The types array covers what src/Check.ts and the test files actually use.

typescript-eslint@8.59.0's peer-dep range is >=4.8.4 <6.1.0, so it already supports TS 6 — no tseslint bump needed.

Consumer impact

None. Verified by building src/ under both TS 5.9.3 and TS 6.0.3 and running diff -r over the two dist/ trees: zero differences in either .js or .d.ts output. Downstream projects on any TS version continue to see identical types.

Test plan

  • npm install clean (0 vulns, no peer-dep warnings)
  • npm run lint — clean exit
  • npm run build — BUILD SUCCESS under TS 6
  • npm test — 76/76 tests pass
  • diff -r dist-ts5 dist-ts6 — no differences
  • CI Build workflow passes

TypeScript 6 removed automatic inclusion of every @types/* package in
node_modules — ambient type deps must now be declared explicitly. The
addition of types: ["node", "jest"] covers what src/Check.ts and the
test suite actually use; without it the build fails with "Cannot find
name 'Buffer'/'process'" in both antlr4's .d.ts and our own code.

Downstream consumers are unaffected: building src against TS 6 produces
a dist/ tree bit-for-bit identical to the TS 5.9.3 output (verified via
diff -r). typescript-eslint 8.59's peer-dep range already covers TS 6.

- typescript 5.9.3 -> 6.0.3
- tsconfig.json: add types: ["node", "jest"]
@kjonescertinia kjonescertinia merged commit bf37c05 into main Apr 23, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant