FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Upgrade SharpCompress to 0.47.4 and migrate extractor APIs to new OpenReader/OpenArchive surface by Copilot · Pull Request #205 · microsoft/RecursiveExtractor · GitHub

Upgrade SharpCompress to 0.47.4 and migrate extractor APIs to new OpenReader/OpenArchive surface - #205

Merged
Giulia Stocco (gfs) merged 3 commits into
mainfrom
copilot/upgrade-sharpcompress-0-47-4
May 11, 2026
Merged

Upgrade SharpCompress to 0.47.4 and migrate extractor APIs to new OpenReader/OpenArchive surface#205
Giulia Stocco (gfs) merged 3 commits into
mainfrom
copilot/upgrade-sharpcompress-0-47-4

Conversation

Copilot AI commented Apr 23, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

SharpCompress 0.47.4 introduces breaking API changes (Open replacements and interface-based archive returns). This PR updates RecursiveExtractor to the new API surface while preserving existing extraction behavior across supported archive types.

  • Dependency update

    • Bumped SharpCompress from 0.44.5 to 0.47.4 in RecursiveExtractor.csproj.
  • Reader API migration (forward readers)

    • Updated reader-based extractors to use OpenReader(...):
      • AceReader, ArcReader, ArjReader
    • Updated ZIP forward scan path to use ReaderFactory.OpenReader(...) (non-indexed entry discovery path).
  • Archive API migration (archive model)

    • Updated archive-based extractors to use OpenArchive(...):
      • ZipArchive, TarArchive, RarArchive, SevenZipArchive
    • Adjusted call sites to handle the new interface-returning methods with concrete-type casting where needed by existing code paths.
  • BZip2 API migration

    • Replaced removed constructor usage with BZip2Stream.Create(...) in sync and async flows.
// Before
zipArchive = ZipArchive.Open(fileEntry.Content, new ReaderOptions { LeaveStreamOpen = true });

// After
zipArchive = (ZipArchive)ZipArchive.OpenArchive(
    fileEntry.Content,
    new ReaderOptions { LeaveStreamOpen = true });

Copilot AI changed the title [WIP] Upgrade to SharpCompress 0.47.4 and address breaking changes Upgrade SharpCompress to 0.47.4 and migrate extractor APIs to new OpenReader/OpenArchive surface Apr 23, 2026
Copilot AI requested a review from Giulia Stocco (gfs) April 23, 2026 06:58
Giulia Stocco (gfs) marked this pull request as ready for review May 6, 2026 18:31

Copy link
Copy Markdown
Contributor

/azp run

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

Giulia Stocco (gfs) merged commit 8a14f28 into main May 11, 2026
11 checks passed
Giulia Stocco (gfs) deleted the copilot/upgrade-sharpcompress-0-47-4 branch May 11, 2026 19:18
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade to SharpCompress 0.47.4

3 participants


Back | FazBrowse Home | New Git URL