Skip to content

chore: Update Typescript to v5 #3240

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

Merged
merged 12 commits into from
May 31, 2025
Merged

chore: Update Typescript to v5 #3240

merged 12 commits into from
May 31, 2025

Conversation

MonkeyDo
Copy link
Member

@MonkeyDo MonkeyDo commented Mar 28, 2025

A few changes required to play well with newer dependencies, in particular the Swiper library.

TS 5.0 announcement blog: https://devblogs.microsoft.com/typescript/announcing-typescript-5-0-beta/#decorators

Note: When this is merged, the offscreencanvas types dependency added in #3225 should be removed.

From 4.9.3 to 5.8.2
Small changes after updating to TS v5

es5 > ES2018 target change so tat we can use named groups in regexps (in frontend/js/src/utils/utils.tsx) without triggering an error (was previously a warning)
@MonkeyDo MonkeyDo marked this pull request as draft March 28, 2025 16:48
MonkeyDo added 2 commits May 6, 2025 19:10
Allows using ESM and CJS modules together, like we do with our webpack setup.
Issue with nivo packages, resolved by making sure we use the compiled and minified versions of D3 dependencies.
See plouc/nivo#2310
@MonkeyDo MonkeyDo marked this pull request as ready for review May 6, 2025 17:15
Issues with typescript definitions, updating to latest version as it requires few changes and we now have working TS definitions.
MonkeyDo added a commit that referenced this pull request May 7, 2025
Getting some errors with ts-jest and the import style for tyhese components.
Unfortunately this import style prevents tree-shaking I think, so should be reviewed once we have figured out our typescript setup with TS5 in #3240
@MonkeyDo MonkeyDo requested a review from anshg1214 May 30, 2025 12:29
@MonkeyDo
Copy link
Member Author

After merging this, I will start working on removing the LESS compilation and dependencies, and moving everything to SASS instead.

Copy link
Member

@anshg1214 anshg1214 left a comment

Choose a reason for hiding this comment

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

LG!

@anshg1214 anshg1214 merged commit 768ea74 into master May 31, 2025
4 checks passed
@anshg1214 anshg1214 deleted the typescript-5 branch May 31, 2025 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants