core icon indicating copy to clipboard operation
core copied to clipboard

Upgrade to TypeScript v5.1

Open MajorLift opened this issue 1 year ago • 6 comments

As part of the Wallet Framework Team's Q2 2024 OKRs (O3/KR4), we are upgrading all core packages to use TypeScript v5.1, with the goal of eventually upgrading to the latest version.

Prior to starting the upgrade process, we should read through the v5.1 release announcements and make note of the following in this ticket:

We should also do a trial run of bumping TypeScript versions in core packages and seeing what (if any) error messages we get when we run yarn build and yarn test. These errors should be recorded in this ticket.

MajorLift avatar Jun 05 '24 14:06 MajorLift

@kanthesha Will you take this one to see what the potential issues might be so we can do refinement on it?

desi avatar Jun 05 '24 16:06 desi

For the trial run, branch from this PR where the v5.0 upgrade is in place: https://github.com/MetaMask/core/pull/3645. If the PR is merged, use the latest version of core.

MajorLift avatar Jun 05 '24 16:06 MajorLift

I went through what's new in 5.1. And most of the 5.1 improvements are automatically applied (developer experience and optimisation related changes, ). Particularly from 5.1, we can incorporate this new feature Easier Implicit Returns for undefined.

I see that we are also talking about the changes in the earlier versions like satisfies in this ticket. When I looked at the current version, it's 4.9.5! And I also see upgrade to v5.0 in-progress! So bit unclear about what's already covered or what's been left from earlier versions?

kanthesha avatar Jun 13 '24 12:06 kanthesha

@kanthesha should this be in "needs dev review"? Or "ready for dev"?

desi avatar Jun 20 '24 19:06 desi

We can move to "ready to Dev".

kanthesha avatar Jun 20 '24 22:06 kanthesha

Should we move this to Blocked since it's dependent on first bumping to TypeScript 5.0?

mcmire avatar Jun 26 '24 18:06 mcmire