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

Bump ES target version to ES2022 #4264

Merged
merged 2 commits into from
Jun 21, 2024
Merged

Bump ES target version to ES2022 #4264

merged 2 commits into from
Jun 21, 2024

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jun 21, 2024

I want to be able to use WeakRef, and per element-hq/element-web#24913 (comment), I believe this should be safe.

I want to be able to use `WeakRef`, and per
element-hq/element-web#24913 (comment),
I believe this should be safe.
@richvdh richvdh requested a review from a team as a code owner June 21, 2024 10:40
@richvdh richvdh added the T-Task Tasks for the team like planning label Jun 21, 2024
It seems that ES2022 causes typescript to change the initialization order of
regular properties vs parameter properties
(microsoft/TypeScript#45995), so we need to rearrange
the initializations to avoid an error.

In practice, it might be fine because we have enabled
`babel-plugin-transform-class-properties`, which moves the initialization back
after the parameter property, but we shoudn't rely on that, and anyway it
upsets the linter.
@richvdh richvdh added this pull request to the merge queue Jun 21, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 21, 2024
@richvdh richvdh added this pull request to the merge queue Jun 21, 2024
Merged via the queue into develop with commit 9f1aebb Jun 21, 2024
27 checks passed
@richvdh richvdh deleted the rav/bump_es_target branch June 21, 2024 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants