chore(deps): bump TypeScript to v6, align @types/node to ^24#132
Merged
Conversation
TypeScript 6.0 changes two defaults that require tsconfig updates: - types now defaults to [] (was: auto-discover all @types/*). Add types: ["node"] so process, readFileSync, fetch, etc. resolve. - rootDir now defaults to . (was: common root of include files). Add rootDir: "./src" for hygiene. Also fix exclude pattern: "__tests__" -> "src/__tests__" (the old pattern didn't match the actual path under src/; worked by accident under TS 5.9 because all @types were auto-loaded).
TypeScript: ^5.9.3 -> ^6.0.0 (6.0.3 installed). @typescript-eslint/eslint-plugin and parser: ^8.56.0 -> ^8.58.0 (v8.58.0 added TS 6 support; peerDep range widened from <6.0.0 to <6.1.0). @types/node: ^25.2.3 -> ^24.0.0. Node 25 went EOL on 2026-06-01; the action runtime is node24 (Active LTS). @types/node@^26 would expose Node 26-only APIs that don't exist at runtime — avoid until action.yml bumps to node26 (after Node 26 reaches LTS in Oct 2026). ts-jest 29.4.x already supports TS 6 (no bump needed). No source code changes required — TS 6 breaking changes don't affect this project's minimal feature surface (enum + standard ESM imports).
- matrix: [18, 20, 22, 24] -> [24, 26] - bump version to 2.4.0 (2.3.0 already published)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Three coupled changes to keep the toolchain current and type-safe:
<6.0.0to<6.1.0).node24runtime.Why each change
TypeScript 6.0
TS 6.0 changes two tsconfig defaults that would break the build without config updates:
typesnow defaults to[](was: auto-discover all@types/*) → added"types": ["node"]rootDirnow defaults to.(was: inferred frominclude) → added"rootDir": "./src"Also fixed stale exclude pattern:
"__tests__"→"src/__tests__"(old pattern never matched the actual path; worked by accident under TS 5.9 because all@types/*were auto-loaded).No source code changes needed — the project's TS feature surface is minimal (just
enum+ standard ESM imports). No namespaces, decorators, import assertions, or deprecated tsconfig options.@types/node ^24 (not ^26)
node24runtime?@types/node@^24@types/node@^25@types/node@^26@types/node@^26would let TypeScript compile calls to APIs that don't exist in Node 24 — exactly the class of bug TypeScript is supposed to prevent. The types version must match the runtime version. Bump to^26only whenaction.ymlbumps tonode26(after Oct 2026 LTS).@typescript-eslint ^8.58
v8.58.0 (2026-03-30) added TS 6 support. The old
^8.56.0floor has peerDeptypescript: <6.0.0which would emitwarnOnUnsupportedTypeScriptVersionwarnings.Verification
npm run build(tsc --noEmitTS 6.0.3)npm run lintnpm test(28 tests)npm run packageSupersedes
Closes Renovate PR #117 (bare version bump without the required tsconfig changes).