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

Botonic: upgrade typescript to 5.5.3 #2874

Closed
wants to merge 3 commits into from

Conversation

Iru89
Copy link
Contributor

@Iru89 Iru89 commented Jul 15, 2024

Description

Upgrade typescript used in botonic to v5.5.3

Context

Remove a type in the Contentful plugin as it is not typed correctly and when inferring the type automatically with the new version of typescript, an error occurs.

Removes the use of as T (in several flow builder plugin files) after using a filter on an array as the new version of typescript correctly infers the type.

Copy link

github-actions bot commented Jul 15, 2024

Test Results

30 tests   30 ✅  5m 9s ⏱️
 6 suites   0 💤
 1 files     0 ❌

Results for commit 11575f0.

♻️ This comment has been updated with latest results.

@vanbasten17 vanbasten17 changed the title Botonic: upgrade typescrit to 5.5.3 Botonic: upgrade typescript to 5.5.3 Jul 15, 2024
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"module": "ES2022",
"module": "Node16",
Copy link
Contributor

Choose a reason for hiding this comment

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

beware with this change. Here https://www.typescriptlang.org/tsconfig/#module is stated that this changes the moduleResolution. I think we have to be sure that the compiled code is the one we expect

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes you are right I had to change this to make the build but now it is failing some tests in core related to regexp. I have to check better how the build is made

Copy link
Contributor

@vanbasten17 vanbasten17 left a comment

Choose a reason for hiding this comment

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

Looking good ATM, but I would like to have this tested and be sure we are not breaking the code we are compiling and distributing

@Iru89 Iru89 marked this pull request as draft July 15, 2024 18:05
@Iru89 Iru89 closed this Oct 3, 2024
@Iru89 Iru89 deleted the botonic/upgrade-typescrit-to-5.5.3 branch October 3, 2024 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants