Skip to content

Removed obsolete public APIs and updated package dependencies - #1062

Merged
michelebastione merged 5 commits into
mini-software:masterfrom
michelebastione:v2-release-preparations
Nov 21, 2026
Merged

michelebastione merged 5 commits into
mini-software:masterfrom
michelebastione:v2-release-preparations

Conversation

@michelebastione

@michelebastione michelebastione commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

This PR addresses some public API code cleanup in preparations for the final V2 release:

  • Obsolete classes, methods and properties have been removed
  • Methods and proeprties whose signatures are necessary to preserve backwards compatibility with V1 API have been copied into the respective facade classes
  • Package dependencies have been updated

Summary by CodeRabbit

  • API Changes
    • Removed several obsolete APIs for column naming, CSV empty-field configuration, template filling, and worksheet editing. Use the remaining supported APIs for these operations.
    • Added ExcelColumnName and ReadEmptyStringAsNull properties to compatibility-facing APIs; each maps to an existing setting or property.
  • Maintenance
    • Updated package and test tooling versions.

The following methods have been removed:
- The overloads `MappingTemplater.ApplyTemplate` for methods `MappingTemplater.FillTemplate`
- The overloads `OpenXmlEporter.AlterSheet for methods `OpenXmlEditor.AlterSheetInfo`
The class was previously renamed to MiniExcelV2 to avoid confusion with the namesake class containing the methods that preserve the signatures of the methods of the v1 API. It was marked as obsolete in the last pre-release version and now it's been removed for the full v2 release.
The property was used in previous pre-releases as facade for the more accurately named `ReadEmptyFieldsAsDefault` property. The actual `CsvConfiguration` facade class utilized to preserve the v1 API signatures was updated to include this facade property for backwards compatibility.
The property was used in previous pre-releases as facade for the simpler `Name` property. The `ExcelColumnNameAttribute` facade class utilized to preserve the v1 API signatures was updated to include this facade property for backwards compatibility.
@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The change removes obsolete API members from Core, CSV, and OpenXML APIs, adds forwarding compatibility properties to MiniExcel attribute and CSV configuration types, and updates package versions in source and test projects.

Changes: API surface changes

Layer / File(s) Summary
Forwarding compatibility properties
src/MiniExcel/Attributes.cs, src/MiniExcel/Configuration.cs
ExcelColumnNameAttribute.ExcelColumnName forwards to the inherited Name value. CsvConfiguration.ReadEmptyStringAsNull forwards to ReadEmptyFieldsAsDefault.
Remove obsolete API members
src/MiniExcel.Core/Attributes/MiniExcelColumnNameAttribute.cs, src/MiniExcel.Core/MiniExcelV2.cs, src/MiniExcel.Csv/CsvConfiguration.cs, src/MiniExcel.OpenXml.FluentMapping/Api/MappingTemplater.cs, src/MiniExcel.OpenXml/Api/OpenXmlExporter.cs
The obsolete ExcelColumnName property, MiniExcel class, ReadEmptyStringAsNull property, ApplyTemplateAsync overloads, and AlterSheetAsync overloads are removed.

Package version updates

Layer / File(s) Summary
Update package versions
src/Directory.Packages.props, tests/MiniExcel.Csv.Tests/MiniExcel.Csv.Tests.csproj, tests/MiniExcel.OpenXml.Tests/MiniExcel.OpenXml.Tests.csproj
Source package versions and test dependencies are updated. System.Linq.AsyncEnumerable remains conditional on net8.0 and net9.0 in the CSV tests and is added with that condition in the OpenXML tests.

Estimated code review effort: 2 (Simple) | ~12 minutes

Suggested reviewers: shps951023, coreykaylor

Merge Risk: Minimal · up to 24b74

This change removes obsolete API members, keeps V1-compatible facade properties, and updates package versions. No concrete defects were found. The failing reviewer-request check comes from a missing workflow secret and does not reflect a code problem.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title says the PR removes obsolete public APIs and updates package dependencies. The changeset matches both parts. It removes the obsolete MiniExcel class, the ReadEmptyStringAsNull CsvConfigurati…
Full details: Title check

Explanation

The title says the PR removes obsolete public APIs and updates package dependencies. The changeset matches both parts. It removes the obsolete MiniExcel class, the ReadEmptyStringAsNull CsvConfiguration property, the obsolete MappingTemplater.ApplyTemplateAsync overloads, and the OpenXmlExporter.AlterSheetAsync overloads. It also updates Microsoft.Bcl.Memory, Microsoft.Bcl.AsyncInterfaces, System.Linq.AsyncEnumerable, ClosedXML, ExcelDataReader, and Microsoft.NET.Test.Sdk. The title is specific and clear. It omits that some V1-compatible facade members are added or kept, but that detail does not change the main point.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: aa28521d-1f09-4b74-9de2-e9475bbf3cde
Commits

Reviewing files that changed from the base of the PR and between b065958 and 24b7444.

Files selected for processing: 10

  • src/Directory.Packages.props
  • src/MiniExcel.Core/Attributes/MiniExcelColumnNameAttribute.cs
  • src/MiniExcel.Core/MiniExcelV2.cs
  • src/MiniExcel.Csv/CsvConfiguration.cs
  • src/MiniExcel.OpenXml.FluentMapping/Api/MappingTemplater.cs
  • src/MiniExcel.OpenXml/Api/OpenXmlExporter.cs
  • src/MiniExcel/Attributes.cs
  • src/MiniExcel/Configuration.cs
  • tests/MiniExcel.Csv.Tests/MiniExcel.Csv.Tests.csproj
  • tests/MiniExcel.OpenXml.Tests/MiniExcel.OpenXml.Tests.csproj
Files with no reviewable changes: 5

  • src/MiniExcel.Core/Attributes/MiniExcelColumnNameAttribute.cs
  • src/MiniExcel.Core/MiniExcelV2.cs
  • src/MiniExcel.Csv/CsvConfiguration.cs
  • src/MiniExcel.OpenXml.FluentMapping/Api/MappingTemplater.cs
  • src/MiniExcel.OpenXml/Api/OpenXmlExporter.cs

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.

@michelebastione michelebastione changed the title V2 release preparations Removed obsolete public APIs and updated package dependencies Nov 21, 2026
@michelebastione
michelebastione merged commit 4035266 into mini-software:master Nov 21, 2026
7 of 11 checks passed
@michelebastione
michelebastione deleted the v2-release-preparations branch November 21, 2026 22:48
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.

1 participant