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 'typescript' to v5 #303

Draft
wants to merge 1 commit into
base: v4.x
Choose a base branch
from
Draft

Conversation

fseitun
Copy link

@fseitun fseitun commented Oct 8, 2024

Closes #269

Upgrades typescript to V5

@fseitun fseitun requested a review from a team as a code owner October 8, 2024 12:21
@@ -53,15 +53,15 @@
"@types/long": "^4.0.2",
"@types/minimist": "^1.2.2",
"@types/mocha": "^9.1.1",
"@types/node": "^18.0.0",
"@types/node": "^22.7.5",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can bump this to a higher minor or patch version of 18.x, but we need the major version to stay 18 as that is our minimum supported node.js version

@@ -78,8 +78,8 @@
"semver": "^7.3.5",
"ts-loader": "^9.3.1",
"ts-node": "^3.3.0",
"typescript": "^4.5.5",
"typescript4": "npm:typescript@~4.0.0",
"typescript": "^5.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @fseitun, we can't bump TypeScript across major versions without doing a new major version ourselves, which we're not ready to do at this time. The only way we would support TypeScript 5 is if we can support both 4 and 5 at the same time, which I honestly just haven't tested yet.

Here's how you would do it:

  1. Instead of replacing typescript4 in this file, add another line for typescript5
  2. In the test file, add '5' to the array instead of replacing '4'

Then it's a matter of figuring out how to get the test for both 4 and 5 passing at the same time, which I anticipate is the actually interesting part of this.

@fseitun
Copy link
Author

fseitun commented Oct 14, 2024

Thanks for the feedback! I'm pausing this momentarily, I will try to come back as soon as I find time.

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.

Officially support TypeScript 5
2 participants