Repository navigation
Release v3.1.0
This is the release of the version v3.1.0
Changes
- Package: NanoXLSX.Core
- Breaking change:
Worksheet.Cellsnow returnsIReadOnlyDictionary<string, Cell>instead ofDictionary<string, Cell>. All read operations (["A1"],ContainsKey,TryGetValue,foreach,Count,Keys,Values) work unchanged. Mutating properties of an existing cell in-place (e.g.Cells["A1"].Value = x) continues to work. Adding or removing cells throughCellsdirectly (e.g.Cells.Add(...),Cells.Remove(...),Cells["A1"] = new Cell(...)) is no longer possible; useWorksheet.AddCell(...)andWorksheet.RemoveCell(...)instead. - Replaced internal cell storage with an integer-keyed dictionary (
(column, row)), eliminating per-cell address string allocation on everyAddCellcall and reducing memory overhead for large workbooks. - Added
Worksheet.CellValuesproperty (IEnumerable<Cell>): allocation-free enumeration over all cells, preferred for hot iteration paths.
- Breaking change:
- Package: NanoXLSX.Reader
- Improved reader performance (memory consumption, load time). Reading a workbook should now be up to 3 times faster.
- Package: NanoXLSX.Writer
- Optimized writer performance (memory consumption, save time)
- Updated internal worksheet iteration to use
Worksheet.CellValues, eliminating per-cell string allocation during save.
- General
- Added llms.txt to root directory of the repository, for better orientation of AI agents
- Added hints for AI agent, pointing to llms.txt
- Updated test projects from .Net 5.0 to .Net 8.0, Xunit 2.x to 3.x, and various test-relevant dependencies to the most recent versions.
Note: Direct manipulation of the cell dictionary through Worksheet.Cells (e.g. Cells.Add(...), Cells.Remove(...), Cells["A1"] = new Cell(...)) was never an intended or documented API. Doing so bypassed address validation, style normalization and internal bookkeeping performed by AddCell and RemoveCell, and could silently produce invalid workbooks. The change to IReadOnlyDictionary makes this boundary explicit.
Content
-
The release libraries (DLLs) for .NET 4.5 and .NET Standard 2.0
- NanoXLSX (meta package)
- NanoXLSX.Core
- NanoXLSX.Writer
- NanoXLSX.Reader
- NanoXLSX.Formatting
-
The debug libraries and XML documentation (DLLs) for .NET 4.5 and .NET Standard 2.0
- NanoXLSX (meta package)
- NanoXLSX.Core
- NanoXLSX.Writer
- NanoXLSX.Reader
- NanoXLSX.Formatting
The NuGet packages can be found at: