Skip to content
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

Upgrade to TypeScript 4.5.4 #6115

Closed
wants to merge 7 commits into from
Closed

Conversation

taras
Copy link

@taras taras commented Jan 10, 2022

Summary

Blocking #6106

NetlifyCMS project is currently built with TypeScript 3.9.10. In #6106, I upgraded AJV to 8.8.2 which was built with TypeScript 4+. The type definitions for AJV@8 include syntax that current version of TypeScript doesn't support. As a result, in #6106, the build is failing because it can't compile TypeScript. This PR attempts to upgrade version of TypeScript to 4.5.4 to allow us building with TypeScript 4+.

Most of the changes were around error handling. I'm using type guards to detect presence of error.message property. There is one type error that I'm not sure about - it's around handling of response from GraphQL. I'll check with me team tomorrow and update this PR.

Test plan

Checklist

Please add a x inside each checkbox:

  • I have read the contribution guidelines.
  • Code is formatted via running yarn format.
  • Tests are passing via running yarn test.
  • The status checks are successful (continuous integration). Those can be seen below.

A picture of a cute animal (not mandatory but encouraged)

@taras taras requested a review from a team January 10, 2022 23:15
@taras taras marked this pull request as draft January 10, 2022 23:16
@erezrokah erezrokah added the type: chore work needed to keep the product and development running smoothly label Jan 11, 2022
@taras
Copy link
Author

taras commented Jan 11, 2022

I might need to try this again because the approach that I took doesn't seem to be right. I'll try doing this again in a few days.

@erezrokah erezrokah force-pushed the tm/upgrade-typescript branch from a223996 to 5b0b030 Compare March 14, 2022 12:19
@stale
Copy link

stale bot commented Apr 26, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status: stale label Apr 26, 2023
@martinjagodic
Copy link
Member

Dependencies are a mess right now, so they will be updated as part of a PR by maintainers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: stale type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants