Asger F
9f76eea272
JS: Fix a bug in a unit test
...
The 'extractTypeScriptFiles' override did not incorporate the file type and one of our unit tests was expecting this. The test was previously passing for the wrong reasons.
2025-06-26 12:48:03 +02:00
Asger F
72bad2a254
JS: Fix imprecise condition
2025-06-26 12:48:00 +02:00
Asger F
a406df1650
JS: Change notes
2025-06-26 12:47:56 +02:00
Asger F
6ca6765869
JS: Add support for index expressions
2025-06-26 12:47:53 +02:00
Asger F
3e929141cd
JS: Handle name resolution through dynamic imports
2025-06-26 12:47:51 +02:00
Asger F
2476af957c
JS: Add test for dynamic imports
2025-06-26 12:47:47 +02:00
Asger F
1307564f2a
JS: Add deprecation comment to qldoc
2025-06-26 12:47:45 +02:00
Asger F
09c25f4e7e
JS: Don't try to augment invalid files
...
This check existed on the code path for full type extraction, but not for plain single-file extraction.
2025-06-26 12:47:42 +02:00
Asger F
274f942c55
JS: Remove code path for TypeScript full extraction
2025-06-26 12:47:39 +02:00
Asger F
62d5aef944
JS: Change default TypeScript extraction mode to basic
2025-06-26 12:47:36 +02:00
Asger F
b2a405774e
JS: Fix qldoc coverage
2025-06-26 12:47:34 +02:00
Asger F
72142ac7da
JS: Remove an unnecessary import
2025-06-26 12:47:31 +02:00
Asger F
691d8c210e
JS: Remove unneeded integration test
2025-06-26 12:47:28 +02:00
Asger F
9f750b55c1
JS: Delete or simplify TypeScript type-specific tests
2025-06-26 12:47:24 +02:00
Asger F
bdd4b5f0d9
JS: Deprecate everything that depends on type extraction
2025-06-26 12:47:22 +02:00
Asger F
c1f488a9dd
JS: Remove old metric-meta query TypedExprs.ql
...
This was used in the very old dist-compare tool, but has no use anymore
2025-06-26 12:47:18 +02:00
Asger F
c59839d095
JS: Update an outdated QLDoc comment
2025-06-26 12:47:15 +02:00
Asger F
92956b3514
JS: Update API usage in MissingAwait
2025-06-26 12:47:11 +02:00
Asger F
117ada65c2
JS: Update API usage in ViewComponentInput
2025-06-26 12:47:07 +02:00
Asger F
acac2032dd
JS: Update type usage in UnreachableMethodOverloads
...
This query depended on the cons-hashing performed by type extraction to determine if two types are the same.
This is not trivial to restore, but not important enough to reimplement right now, so for now just simplifying the query's ability to recognise that two types are the same.
2025-06-26 12:47:04 +02:00
Asger F
e3bed52da8
JS: Update type usage use in Express model
2025-06-26 12:47:00 +02:00
Asger F
94c7d0a0f3
JS: Update type usage in Electron model
2025-06-26 12:46:57 +02:00
Asger F
8e7e5a4424
JS: Update type usage in ClassValidator.qll
2025-06-26 12:46:53 +02:00
Asger F
1d85cbddf8
JS: Update type usage in definitions.qll
2025-06-26 12:46:48 +02:00
Asger F
70c62ebdf5
JS: Update type usage in Nest library model
2025-06-26 12:46:44 +02:00
Asger F
3814ac2adf
JS: Add public API
2025-06-26 12:46:40 +02:00
Asger F
92612b05bd
JS: Add classHasGlobalName into NameResolution
2025-06-26 12:46:34 +02:00
Asger F
1ca6e73fd9
JS: Move some predicates into NameResolution
2025-06-26 12:46:31 +02:00
Taus
ac8b41a5da
Merge pull request #19680 from github/tausbn/javascript-exclude-obviously-generated-files
...
JavaScript: Don't extract obviously generated files
2025-06-20 15:52:39 +02:00
Napalys Klicius
3fbe348f99
Merge pull request #19784 from Napalys/js/express_middleware
...
JS: Improve Express middleware taint tracking
2025-06-20 15:36:26 +02:00
Napalys Klicius
c1b2fd86b2
Update javascript/ql/lib/semmle/javascript/frameworks/Express.qll
...
Co-authored-by: Taus <tausbn@github.com >
2025-06-20 14:29:51 +02:00
Napalys Klicius
bca536c5b6
Merge remote-tracking branch 'origin/main' into js/quality/loop_shift
2025-06-20 11:30:20 +02:00
Napalys Klicius
8c2bda32df
Merge pull request #19776 from Napalys/js/mass_quality_promotion
...
JS: Mass promotion of queries to `quality` status
2025-06-20 10:53:32 +02:00
Napalys Klicius
7c25bcdad1
Changed js/duplicate-condition to reliability and correctness
2025-06-20 08:06:03 +02:00
Napalys Klicius
aa3e9c6579
Changed js/unreachable-statement to reliability and correctness
2025-06-19 19:52:03 +02:00
Napalys Klicius
32dd665472
Changed js/unused-loop-variable to reliability and correctness
2025-06-19 19:45:20 +02:00
Napalys Klicius
4fd3ef8f1c
Changed js/useless-assignment-in-return to reliability and correctness
2025-06-19 19:37:13 +02:00
Napalys Klicius
4bc97326d1
Changed js/label-in-switch to reliability and correctness
2025-06-19 19:30:53 +02:00
Napalys Klicius
125add1e19
Changed js/node/missing-exports-qualifier to reliability and correctness
2025-06-19 19:24:00 +02:00
Napalys Klicius
2ab35d6a45
Changed js/node/assignment-to-exports-variable to reliability and correctness
2025-06-19 19:21:06 +02:00
Napalys Klicius
c1d29cc48a
Changed js/whitespace-contradicts-precedence to reliability and correctness
2025-06-19 18:26:12 +02:00
Napalys Klicius
bb9a2289a3
Changed js/conditional-comment to reliability and correctness
2025-06-19 18:25:31 +02:00
Napalys Klicius
ad6c6b2d26
Changed js/angular/dependency-injection-mismatch to reliability and correctness
2025-06-19 17:16:32 +02:00
Napalys Klicius
c18fe303d0
JS: Changed MissingThisQualifier to reliability and correctness
2025-06-19 16:27:00 +02:00
Napalys Klicius
244bf428a1
JS: Fixed typo.
2025-06-19 16:26:07 +02:00
Napalys Klicius
8679151ace
Update javascript/ql/src/change-notes/2025-06-12-loop-iteration.md
...
Co-authored-by: Taus <tausbn@github.com >
2025-06-19 14:21:08 +02:00
Napalys Klicius
5448071e09
Update javascript/ql/src/change-notes/2025-06-12-loop-iteration-fix.md
...
Co-authored-by: Taus <tausbn@github.com >
2025-06-19 14:20:37 +02:00
Napalys Klicius
f80651e78a
Merge pull request #19750 from Napalys/js/remove_encodeURI
...
JS: remove `encodeURI` from sanitizer list of request forgery
2025-06-19 14:12:52 +02:00
Napalys Klicius
8b2bb07140
Updated quality extended expected file after merge
2025-06-19 10:27:57 +02:00
Napalys Klicius
119c1e61ec
Merge remote-tracking branch 'origin/main' into js/mass_quality_promotion
2025-06-19 10:27:15 +02:00