Upgrade TypeScript from 5.1.3 to 5.9.2 #1194
Closed
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.
This PR upgrades the project's TypeScript version from 5.1.3 to 5.9.2, bringing performance improvements and modern language features to the codebase.
Changes Made
Core Upgrade
^5.1.3to^5.9.2in package.json0.2.1to0.2.4for better compatibilityTypeScript Configuration Updates
"es6"to"es2018"to support modern JavaScript features including regex flags used in gulpfile"skipLibCheck": trueto handle type definition incompatibilities in external libraries that haven't been updated for TypeScript 5.9 yetCode Compatibility Fixes
Fixed Buffer/Uint8Array type compatibility issues in
src/commands/tags/TagFileSystem.tsthat arose due to stricter type checking in TypeScript 5.9:Before:
After:
Verification
All builds and workflows continue to function correctly:
npm run build)npm run webpack)npm run webpack-prod)Notes
ESLint displays warnings about TypeScript 5.9 not being officially supported by the current
@typescript-eslintversion, but linting continues to work correctly. The Microsoft ESLint configuration currently constrains the TypeScript ESLint plugin to v5.x, which is sufficient for this upgrade.Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
update.code.visualstudio.comnode ./out/test/runTest.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.