Skip to content

Conversation

@Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Nov 6, 2025

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

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed, highlighting breaking changes as necessary
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

Note

Bumps TypeScript to v5.3.3 across the monorepo and updates ESLint config and minor code to satisfy new type/lint checks.

  • Build/Tooling:
    • Upgrade typescript from ~5.2.2 to ~5.3.3 in root and all packages; update yarn.lock accordingly.
    • ESLint: disable @typescript-eslint/no-unnecessary-type-arguments in eslint.config.mjs (with TODO comment).
  • Core Backend:
    • core-backend/src/*: annotate non-awaited traces/handlers with comments and ESLint disables (no-floating-promises, no-misused-promises).
  • Permissions:
    • permission-controller/src/SubjectMetadataController.ts: add @ts-expect-error on deep type instantiation; adjust trimMetadataState to return new state via this.state.
  • Samples:
    • sample-controllers/sample-gas-prices-service.ts: ensure fromHex(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.

@Gudahtt Gudahtt force-pushed the update-typescript-5.3 branch from ab5c049 to 919d95e Compare November 6, 2025 21:24
@socket-security
Copy link

socket-security bot commented Nov 6, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedtypescript@​5.2.2 ⏵ 5.3.3100 +11009010090

View full report

@Gudahtt Gudahtt force-pushed the update-typescript-5.3 branch 2 times, most recently from 55faecc to 4e78900 Compare November 6, 2025 21:33
this.update((_draft) => {
return SubjectMetadataController.getTrimmedState(
draftState,
this.state,
Copy link
Member Author

@Gudahtt Gudahtt Nov 6, 2025

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

Copy link
Contributor

@cryptodev-2s cryptodev-2s Nov 7, 2025

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?

Copy link
Member Author

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

@Gudahtt Gudahtt force-pushed the update-typescript-5.3 branch 2 times, most recently from d997b9d to 657622b Compare November 7, 2025 13:09
@Gudahtt Gudahtt marked this pull request as ready for review November 7, 2025 13:16
@Gudahtt Gudahtt requested review from a team as code owners November 7, 2025 13:16
cryptodev-2s
cryptodev-2s previously approved these changes Nov 7, 2025
Copy link
Contributor

@cryptodev-2s cryptodev-2s left a 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,
Copy link
Contributor

@cryptodev-2s cryptodev-2s Nov 7, 2025

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.
@Gudahtt Gudahtt force-pushed the update-typescript-5.3 branch from 912724c to a2fc8e8 Compare November 7, 2025 13:27
@Gudahtt Gudahtt merged commit 5f3ea3b into main Nov 7, 2025
271 checks passed
@Gudahtt Gudahtt deleted the update-typescript-5.3 branch November 7, 2025 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants