Skip to content

C#: Remove outdated deprecated library APIs - #23188

Merged
jketema merged 1 commit into
mainfrom
jketema/cs-dep
Nov 23, 2026
Merged

jketema merged 1 commit into
mainfrom
jketema/cs-dep

Conversation

@jketema

@jketema jketema commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

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.

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
jketema marked this pull request as ready for review November 23, 2026 10:16
@jketema
jketema requested a review from a team as a code owner November 23, 2026 10:16
Copilot AI adaptive review requested due to automatic review settings November 23, 2026 10:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 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 ParallelSink re-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)

@jketema
jketema merged commit 99eddb5 into main Nov 23, 2026
27 checks passed
@jketema
jketema deleted the jketema/cs-dep branch November 23, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants