chore(deps-dev): TypeScript 6 + fixes#28
Merged
Conversation
Bump typescript devDependency 5.9.3 -> 6.0.3. TS 6.0 no longer auto-includes the @types/node ambient globals for this project's NodeNext config, so `node:fs`/`process`/`Buffer` etc. failed with TS2591. Add `"types": ["node"]` to tsconfig compilerOptions (the fix the TS6 error message itself recommends). tsconfig.test.json extends this config and inherits the setting, so both the build and the test compile pass. Supersedes dependabot PR #16. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Bumps the
typescriptdevDependency from 5.9.3 → 6.0.3 (the target of dependabot #16) and fixes the resultingnpm run build(tsc) break. Supersedes #16 — that PR fails itsbuildcheck because the bump alone is not enough on TS 6.Root cause
TS 6.0 changed ambient type discovery. With this project's
NodeNextconfig,@types/node's global ambient types are no longer auto-included, so everynode:-protocol import plusprocess/Bufferfailed at compile time:(11 errors total across
src/client.tsandsrc/index.ts.)Fix
package.json:typescript^5.9.3→^6.0.3(+package-lock.json).tsconfig.json: add"types": ["node"]tocompilerOptions— the exact remedy the TS 6 error message recommends.@types/node@25.9.1is already a devDependency; this just opts its globals back in.tsconfig.test.jsonextends this config and inherits the setting, so both the build and the test compile pass.No
strictloosening, no blanketany, no@ts-ignore. The type fix is the canonical one.Verification
npm run build(tsc): 0 errors, exit 0.npm run buildoftsconfig.test.json(thepreteststep): 0 errors.npm test: 248 pass / 0 fail, coverage 99.81% line / 95.03% branch / 100% funcs (above the 95% floor). The one# SKIPislive smoke (provision-then-teardown), which intentionally self-skips without live network/credentials toapi.instanode.dev— expected in CI/sandbox, not a failure.🤖 Generated with Claude Code