Skip to content

Commit 3a1fae6

Browse files
committed
JS: Change notes
1 parent a039c1b commit 3a1fae6

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
category: breaking
3+
---
4+
* The `Type` and `Symbol` classes have been deprecated and will be empty in newly extracted databases, since the TypeScript extractor no longer populates them.
5+
This is breaking change for custom queries that explicitly relied on these classes.
6+
Such queries will still compile, but with deprecation warnings, and may have different query results due to type information no longer being available.
7+
We expect most custom queries will not be affected, however. If a custom query has no deprecation warnings, it should not be affected by this change.
8+
Uses of `getType()` should be rewritten to use the new `getTypeBinding()` or `getNameBinding()` APIs instead.
9+
If the new API is not sufficient, please consider opening an issue in `github/codeql` describing your use-case.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
category: majorAnalysis
3+
---
4+
* The TypeScript extractor no longer relies on the TypeScript compiler for extracting type information.
5+
Instead, the information we need from types is now derived by an algorithm written in QL.
6+
This results in more robust extraction with faster extraction times, in some cases significantly faster.

0 commit comments

Comments
 (0)