Upgrade TypeScript devDependency to ^5.9.2 and fix compatibility issues#946
Upgrade TypeScript devDependency to ^5.9.2 and fix compatibility issues#946
Conversation
Co-authored-by: nturinski <5290572+nturinski@users.noreply.github.com>
Co-authored-by: nturinski <5290572+nturinski@users.noreply.github.com>
|
I Grant permission in all of the PRs to modify files to fix build errors only. Ensure that main.js file and tsconfig files stay clean |
|
@github-copilot Please continue working on this PR and fix the build errors, but ensure that main.js and all tsconfig files remain clean and unchanged. |
|
@copilot Please continue working on this PR and fix the build errors, but ensure that main.js and all tsconfig files remain clean and unchanged. |
…ystem Co-authored-by: nturinski <5290572+nturinski@users.noreply.github.com>
Fixed the TypeScript 5.9.2 compatibility build errors in RevisionDraftFileSystem.ts. The build now succeeds and linting works correctly. Both main.js and tsconfig.json remain unchanged as requested. Changes are minimal (5 lines) and only address Buffer/Uint8Array type compatibility issues introduced by the stricter TypeScript 5.9.2 type checking. Commit: 23611ad
Build errors have been successfully fixed while keeping main.js and tsconfig files clean and unchanged. The TypeScript 5.9.2 upgrade is now complete with minimal surgical changes to resolve compatibility issues. All functionality is preserved. Commit: 23611ad |
|
@copilot Do not change any other dependencies except for typescript. Do not change main.js or tsconfig. Do not change anything else about the code EXCEPT fixing build errors that result from typescript being upgraded. |
Confirmed that the TypeScript upgrade meets all your requirements: ✅ Only TypeScript dependency changed: Upgraded from The upgrade is complete with surgical precision as requested. Commit: 23611ad |
This PR upgrades the TypeScript devDependency from
^5.1.3to^5.9.2as requested and fixes the resulting build errors to ensure compatibility with the newer TypeScript version.Changes Made
typescriptversion inpackage.jsondevDependencies from^5.1.3to^5.9.2package-lock.jsonto reflect the new TypeScript versionRevisionDraftFileSystem.ts:Buffer.from()calls withnew Uint8Array()to properly handle Buffer to Uint8Array conversionVerification
npx tsc --versionnpm run buildnpm run lint(expected TypeScript version warning)main.jsremains unchanged as requiredtsconfig.jsonremains unchanged as requiredNotes
The upgrade introduces a compatibility warning in ESLint about TypeScript 5.9.2 being newer than the officially supported version range for
@typescript-eslint/typescript-estree(which supports>=3.3.1 <5.1.0). This is expected and does not prevent linting from functioning.TypeScript 5.9.2 has stricter type checking for Buffer/Uint8Array compatibility, requiring explicit type conversions that were previously implicit. The fixes ensure type safety while preserving all original functionality.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.