Skip to content

JS: Support Typescript 5.6 #17164

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

Closed
wants to merge 17 commits into from
Closed

JS: Support Typescript 5.6 #17164

wants to merge 17 commits into from

Conversation

sidshank
Copy link
Contributor

@sidshank sidshank commented Aug 6, 2024

This pull request enables CodeQL analysis of code using TypeScript 5.6 features. Notably, the use of arbitrary import/export specifiers is now supported. Ref 1, 2

Release announcement here: https://devblogs.microsoft.com/typescript/announcing-typescript-5-6/

@github-actions github-actions bot added the JS label Aug 6, 2024
@sidshank sidshank changed the title Updates to Typescript 5.6 beta JS: Support Typescript 5.6 Aug 25, 2024
@sidshank sidshank marked this pull request as ready for review September 10, 2024 11:44
@sidshank sidshank requested a review from a team as a code owner September 10, 2024 11:44
Copy link
Contributor

@erik-krogh erik-krogh left a comment

Choose a reason for hiding this comment

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

Looks good 👍

The only relevant change seem to be the arbitrary module identifiers.

Just one minor nit how we specify the version of TypeScript we use.

I've started some DCA runs. I'll comment here when they are done.

Comment on lines 1210 to 1212
isNamespaceExportNode
? Collections.singletonList(convertNodeAsIdentifier(exportClauseNode.getAsJsonObject()))
: convertChildren(exportClauseNode.getAsJsonObject(), "elements");
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a test for this specific syntax?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do. I'm taking a look at convertImportDeclaration to see if I need to make similar changes there. Once I figure that out (and make the changes if necessary), I'll add tests.

@sidshank sidshank marked this pull request as draft September 10, 2024 18:49
@sidshank
Copy link
Contributor Author

Closing in favour of: #17433

@sidshank sidshank closed this Sep 11, 2024
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