Skip to content

(#3930) Remove Obsolete Members - #3931

Draft
gep13 wants to merge 1 commit into
chocolatey:developfrom
gep13:remove-all-things-obsolete
Draft

(#3930) Remove Obsolete Members#3931
gep13 wants to merge 1 commit into
chocolatey:developfrom
gep13:remove-all-things-obsolete

Conversation

@gep13

@gep13 gep13 commented Aug 26, 2026

Copy link
Copy Markdown
Member

Description Of Changes

Removes every member marked [Obsolete("... will be removed in v3 ...")]
from Chocolatey CLI now that v3 is the next major release — the
snake_case method forwarders, deprecated overloads, the SCREAMING_CASE
source-type constant aliases, and other members kept only for backward
compatibility. The few internal callers of removed members are repointed
to their surviving equivalents, and a dangling SourceType doc cref is
corrected. ~181 files, ~3,800 deletions.

Motivation and Context

These members were retained only for backward compatibility and were all
annotated for removal in v3. With v3 as the next major release, this
clears the deprecated surface in a single pass so the codebase no longer
carries the obsolete forwarders and aliases.

Testing

  1. build.debug.bat --target=Run-ILMerge compiles and ILMerges the CLI
    clean against the reduced surface - 0 errors.
  2. N/A here - the unit suite was not run in this session; please run it
    and confirm.

Operating Systems Testing

Dev VM 4

Change Types Made

  • Bug fix (non-breaking change).
  • Feature / Enhancement (non-breaking change).
  • Breaking change (fix or feature that could cause existing functionality to change).
  • Documentation changes.
  • PowerShell code changes.

Change Checklist

  • Requires a change to the documentation.
  • Documentation has been updated.
  • Tests to cover my changes, have been added.
  • All new and existing tests passed?
  • PowerShell code changes: PowerShell v3 compatibility checked?

Related Issue

Fixes #3930

Remove every member marked [Obsolete("... will be removed in v3 ...")]
now that v3 is the next major release: the snake_case method
forwarders, deprecated overloads, SCREAMING_CASE source-type constant
aliases, and other members kept only for backward compatibility.

The few internal callers of removed members are repointed to their
surviving equivalents - Options.GetOptionForName("<>") becomes the
KeyedCollection indexer (Contains("<>") ? this["<>"] : null) - and a
dangling <see cref="SourceType"/> that referenced a removed member is
downgraded to <c>SourceType</c>.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove obsoleted elements slated for removal in 3.0.0

1 participant