Skip to content

merge release to master#1174

Merged
adamhathcock merged 85 commits intomasterfrom
adam/merge-release-to-master
Feb 4, 2026
Merged

merge release to master#1174
adamhathcock merged 85 commits intomasterfrom
adam/merge-release-to-master

Conversation

@adamhathcock
Copy link
Owner

@adamhathcock adamhathcock commented Jan 28, 2026

This pull request includes several changes across configuration, build tooling, and the core library, focusing on improving versioning logic, stream handling, and internal diagnostics for 7z archives. The most significant updates are the removal of legacy agent and planning files, enhancements to the build versioning strategy, and improvements to stream management and diagnostics in the core archive code.

Configuration and Documentation Cleanup:

  • Removed .copilot-agent.yml and .github/agents/copilot-agent.yml, eliminating old Copilot agent configuration and policies. [1] [2]
  • Deleted two detailed planning prompt documents: .github/prompts/plan-async.prompt.md and .github/prompts/plan-for-next.prompt.md, cleaning up project documentation. [1] [2]

Build and Versioning Improvements:

  • Enhanced the versioning logic in build/Program.cs to increment the patch version for release branches and the minor version for other branches, with branch detection supporting both local and CI environments. [1] [2] [3]

Core Library Enhancements:

  • Refactored stream handling in ArchiveFactory.cs and ArchiveFactory.Async.cs by removing unnecessary wrapping with SharpCompressStream.Create, simplifying stream management for archive operations. [1] [2]
  • Updated IArchiveEntryExtensions.cs to use a shared Constants.BufferSize for all copy operations, ensuring consistency and maintainability. [1] [2] [3]
  • Changed GZipWritableArchiveEntry.cs to use NonDisposingStream instead of SharpCompressStream.Create for entry streams, improving resource handling.

SevenZip Archive Diagnostics and Internal Improvements:

  • Added internal diagnostics support to SevenZipArchive.SevenZipReader, exposing properties for test diagnostics and clarifying folder stream handling for solid archives. Also improved documentation and code comments for maintainability. [1] [2] [3]

API Simplification:

  • Simplified IsArchive methods in ArchiveFactory.cs by removing the bufferSize parameter and streamlining overloads.

These changes collectively improve code clarity, maintainability, and diagnostics, while also cleaning up obsolete configuration and documentation files.

adamhathcock and others added 30 commits January 27, 2026 10:46
Add [Obsolete] attribute to ReaderOptions.DefaultBufferSize for backward compatibility
Fix grammatical errors in ArcFactory comment documentation
…tion

(Release) Buffer size consolidation
…gression

Fix ZIP parsing failure on non-seekable streams with short reads
…guous-streams

Fix SevenZipReader to maintain contiguous stream state for solid archives
# Conflicts:
#	src/SharpCompress/Archives/ArchiveFactory.cs
#	src/SharpCompress/Archives/AutoArchiveFactory.cs
#	src/SharpCompress/Archives/SevenZip/SevenZipArchive.cs
#	src/SharpCompress/Archives/Zip/ZipArchive.cs
#	src/SharpCompress/Factories/AceFactory.cs
#	src/SharpCompress/Factories/ArcFactory.cs
#	src/SharpCompress/Factories/ArjFactory.cs
#	src/SharpCompress/Factories/Factory.cs
#	src/SharpCompress/Factories/GZipFactory.cs
#	src/SharpCompress/Factories/IFactory.cs
#	src/SharpCompress/Factories/RarFactory.cs
#	src/SharpCompress/Factories/SevenZipFactory.cs
#	src/SharpCompress/Factories/TarFactory.cs
#	src/SharpCompress/Factories/ZStandardFactory.cs
#	src/SharpCompress/Factories/ZipFactory.cs
#	src/SharpCompress/IO/SharpCompressStream.cs
#	src/SharpCompress/Readers/AbstractReader.cs
#	src/SharpCompress/Utility.cs
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.

3 participants