Skip to content

Make typescript compile to "es2022"#609

Merged
jeffwidman merged 1 commit intomainfrom
bump-to-es2022-syntax
Mar 21, 2025
Merged

Make typescript compile to "es2022"#609
jeffwidman merged 1 commit intomainfrom
bump-to-es2022-syntax

Conversation

@jeffwidman
Copy link
Member

Keeping back in es6 is causing an issue over in a Dependabot PR where another library wants to use newer Javascript features.

The reason es6 was the previous target is because GitHub actions used to use node12, which didn't support some of the newer versions.

But GitHub Actions is now on node20, which supports es2022, so it's safe to let Typescript compile using this much newer syntax.

Keeping back in `"es6"` is causing an issue over in a Dependabot PR where
another library wants to use newer Javascript features.

The reason `"es6"` was the previous target is because GitHub actions
used to use node 12, which didn't support some of the newer versions.
But now that GitHub Actions is on Node 20, which supports `"es2022"`,
it's safe to let Typescript compile using this much newer syntax.
@jeffwidman jeffwidman requested a review from a team as a code owner March 21, 2025 19:23
@jeffwidman jeffwidman merged commit ed675a3 into main Mar 21, 2025
8 checks passed
@jeffwidman jeffwidman deleted the bump-to-es2022-syntax branch March 21, 2025 19:27
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