-
-
Notifications
You must be signed in to change notification settings - Fork 254
chore: Update typescript to v5.3
#7081
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ab5c049 to
919d95e
Compare
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
55faecc to
4e78900
Compare
| this.update((_draft) => { | ||
| return SubjectMetadataController.getTrimmedState( | ||
| draftState, | ||
| this.state, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seemed like a simpler way to fix the type problem. We're not mutating the draft here, we're replacing it completely, so we don't need to use the draft at all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Sounds good to me. Is there a specific reason you’re retaining the _draft parameter instead of omitting it entirely from the update callback?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, no reason. Good point, I have removed it in 912724c
d997b9d to
657622b
Compare
cryptodev-2s
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
| this.update((_draft) => { | ||
| return SubjectMetadataController.getTrimmedState( | ||
| draftState, | ||
| this.state, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Sounds good to me. Is there a specific reason you’re retaining the _draft parameter instead of omitting it entirely from the update callback?
Update TypeScript to v5.3. Changes: https://devblogs.microsoft.com/typescript/announcing-typescript-5-3 Only changes were to fix newly highlighted type errors or lint errors.
912724c to
a2fc8e8
Compare
Explanation
Update TypeScript to v5.3. Changes: https://devblogs.microsoft.com/typescript/announcing-typescript-5-3
Only changes were to fix newly highlighted type errors or lint errors.
References
N/A
Checklist
Note
Bumps TypeScript to v5.3.3 across the monorepo and updates ESLint config and minor code to satisfy new type/lint checks.
typescriptfrom~5.2.2to~5.3.3in root and all packages; updateyarn.lockaccordingly.@typescript-eslint/no-unnecessary-type-argumentsineslint.config.mjs(with TODO comment).core-backend/src/*: annotate non-awaited traces/handlers with comments and ESLint disables (no-floating-promises,no-misused-promises).permission-controller/src/SubjectMetadataController.ts: add@ts-expect-erroron deep type instantiation; adjusttrimMetadataStateto return new state viathis.state.sample-controllers/sample-gas-prices-service.ts: ensurefromHex(chainId)is stringified via.toString()when building query param.Written by Cursor Bugbot for commit 0bb70cd. This will update automatically on new commits. Configure here.