Repository navigation
C#: Remove outdated deprecated library APIs - #23188
Merged
Merged
Conversation
Remove obsolete AST, control-flow, data-flow, serialization, and security aliases, along with deprecated telemetry helpers and the old ParallelSink re-export. Keep all experimental queries and their supporting libraries. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7be1d7da-9061-47a8-bf98-b3169476add9
jketema
force-pushed
the
jketema/cs-dep
branch
from
November 20, 2026 16:04
d374b06 to
f3c9790
Compare
jketema
marked this pull request as ready for review
November 23, 2026 10:16
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The change removes public C# QL APIs across several compatibility-sensitive areas, and although no in-repository callers were found, external query-pack and downstream consumer compatibility still requires human review.
No open issues 🎉
What changed in this PR
This pull request removes obsolete deprecated C# CodeQL library APIs and compatibility re-exports while retaining supported replacements and experimental query libraries.
Changes:
- Removed deprecated AST, control-flow, data-flow, serialization, and security aliases and predicates.
- Deleted deprecated telemetry helper modules and the old
ParallelSinkre-export. - Added breaking-change notes for the removed query-pack and library-pack APIs.
| File | Description |
|---|---|
| csharp/ql/src/Telemetry/TestLibrary.qll | Removes the deprecated telemetry test-library module. |
| csharp/ql/src/Telemetry/ExternalApi.qll | Removes the deprecated telemetry external-API module. |
| csharp/ql/src/Likely Bugs/ParallelSink.qll | Removes the deprecated ParallelSink re-export. |
| csharp/ql/src/change-notes/2026-11-18-outdated-deprecations.md | Documents removal of deprecated query-pack compatibility modules. |
| csharp/ql/lib/semmle/code/csharp/Type.qll | Removes the deprecated Struct.isRef() predicate. |
| csharp/ql/lib/semmle/code/csharp/serialization/Deserializers.qll | Removes the misspelled deprecated FsPickler alias. |
| csharp/ql/lib/semmle/code/csharp/security/dataflow/XPathInjectionQuery.qll | Removes the deprecated remote-source alias. |
| csharp/ql/lib/semmle/code/csharp/security/dataflow/UrlRedirectQuery.qll | Removes the deprecated remote-source alias. |
| csharp/ql/lib/semmle/code/csharp/security/dataflow/TaintedPathQuery.qll | Removes the deprecated remote-source alias. |
| csharp/ql/lib/semmle/code/csharp/security/dataflow/SqlInjectionQuery.qll | Removes deprecated remote and local source aliases. |
| csharp/ql/lib/semmle/code/csharp/security/dataflow/ResourceInjectionQuery.qll | Removes deprecated remote and local source aliases. |
| csharp/ql/lib/semmle/code/csharp/security/dataflow/RegexInjectionQuery.qll | Removes the deprecated remote-source alias. |
| csharp/ql/lib/semmle/code/csharp/security/dataflow/ReDoSQuery.qll | Removes the deprecated remote-source alias. |
| csharp/ql/lib/semmle/code/csharp/security/dataflow/MissingXMLValidationQuery.qll | Removes the deprecated remote-source alias. |
| csharp/ql/lib/semmle/code/csharp/security/dataflow/LDAPInjectionQuery.qll | Removes the deprecated remote-source alias. |
| csharp/ql/lib/semmle/code/csharp/security/dataflow/flowsources/Stored.qll | Removes deprecated stored-flow-source classes. |
| csharp/ql/lib/semmle/code/csharp/security/dataflow/flowsources/FlowSources.qll | Removes the deprecated threat-model source alias. |
| csharp/ql/lib/semmle/code/csharp/security/dataflow/flowsinks/Html.qll | Removes the deprecated attribute-collection sink. |
| csharp/ql/lib/semmle/code/csharp/security/dataflow/ConditionalBypassQuery.qll | Removes the deprecated remote-source alias. |
| csharp/ql/lib/semmle/code/csharp/security/dataflow/CommandInjectionQuery.qll | Removes the deprecated remote-source alias. |
| csharp/ql/lib/semmle/code/csharp/security/dataflow/CodeInjectionQuery.qll | Removes deprecated remote and local source aliases. |
| csharp/ql/lib/semmle/code/csharp/security/auth/InsecureDirectObjectReferenceQuery.qll | Removes an obsolete deprecated source import. |
| csharp/ql/lib/semmle/code/csharp/Member.qll | Removes the deprecated fully qualified name predicate. |
| csharp/ql/lib/semmle/code/csharp/frameworks/Format.qll | Removes the deprecated array-expression predicate. |
| csharp/ql/lib/semmle/code/csharp/exprs/Expr.qll | Removes the deprecated implicit-cast stripping alias. |
| csharp/ql/lib/semmle/code/csharp/Element.qll | Removes the deprecated fully qualified name helper. |
| csharp/ql/lib/semmle/code/csharp/dataflow/SSA.qll | Removes deprecated captured-variable flow predicates. |
| csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowPublic.qll | Removes the deprecated node location predicate. |
| csharp/ql/lib/semmle/code/csharp/dataflow/FlowSummary.qll | Removes deprecated flow-summary aliases and modules. |
| csharp/ql/lib/semmle/code/csharp/controlflow/Guards.qll | Removes the deprecated collection-expression alias. |
| csharp/ql/lib/change-notes/2026-11-18-outdated-deprecations.md | Documents removal of deprecated library-pack APIs. |
Review effort: Lite (adaptive)
hvitved
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove obsolete AST, control-flow, data-flow, serialization, and security aliases, along with deprecated telemetry helpers and the old ParallelSink re-export. Keep all experimental queries and their supporting libraries.