Skip to content

Files

Latest commit

c0e0ad3 · Apr 1, 2025

History

History
221 lines (133 loc) · 8.26 KB

ReleaseNotes.md

File metadata and controls

221 lines (133 loc) · 8.26 KB

WeihanLi.Npoi Release Notes

  • Upgrade NPOI package to fix merged region handling bug which causes export excel by template with merged region exception
  • migrate to slnx, xunit v3
  • Remove net6.0 target, and update build sdk and samples/tests to net8.0
  • Adjust column index enhancements, respect property index by default and support WithPropertyComparer
  • Upgrade dependencies to fix upstream breaking changes
  • Enable central package version management
  • Fixes #146, fix csv encoding handling issue, thanks @yesyeey for spotting the issue
  • CsvHelper enhancements
  • Add check before WriteToFile
  • Close workbook when the workbook would not be used anymore
  • Fixes #142, great thanks for @hansolehuang's help
  • Fix exception when read header that cell format is not string, #140, great thanks for @ensleep's help
  • Fix exception when export excel path without directory info, #140, great thanks for @ensleep's help
  • Add HasCellReader to support more read flexibility
  • Add net6.0 target support
  • Refactor CsvHelper
  • Add CsvOptions for CsvHelper
  • Add support for validation, fixes #102
  • Add support for ToEntities, fixes #113
  • Add support for duplicate column name for dataTable
  • Fix sheet name not applied bug #127
  • The ExcelHelper.ToDataTable was extended with two arguments bool removeEmptyRows = false, int? maxColumns = null
  • Fix possible IndexOutOfRangeException when loading rows
  • Fix ExcelHelper.ToDataTable bug when the imported excel column value is not the string value, thanks for @Ninjanaut's contribution
  • Fix ExcelHelper.ToDataTable bug when the imported excel file first column is empty, thanks for @Ninjanaut's contribution
  • FluentSettings.LoadMappingProfile enhancement
  • add MappingProfile support so that we could split mappings into separate mapping profiles
  • add DrawingPatriarch null check for GetPicturesAndPosition
  • add CellAction/RowAction/SheetAction for more flexible export
  • add support for image import/export
  • enable nullable reference
  • remove net45 target
  • add support for EntityList/DataTable export auto split sheets when needed
  • refactor ExcelSetting and SheetSetting
  • add support for RowFilter and CellFilter(mainly for import)
  • add support for reading file when file opened by another process
  • add support for formula value import
  • add EndRowIndex for SheetSetting(zero-based, included)
  • add FluentAPI WithDataValidation for excel setting, if set will ignore invalid data when import excel
  • remove CSVHelper TEntity new() constraint
  • fix xlsx workbook AppVersion property value caused warning
  • fix ExcelHelper.ToDataTable bug with blank cell, thanks for hokis's feedback
  • expose CsvHelper.GetCsvText extensions
  • fix CsvHelper.ParseLine bug with quoted value, thanks for hokis's effort
  • remove return 1 code fix #64
  • optimize fluent formatter performance
  • add FluentSettings.For instead of ExcelHelper.SettingsFor, fluent settings is not only for excel, but also work with csv
  • add TemplateHelper.ConfigureTemplateOptions to allow user config templateParamFormat
  • add ExportExcelByTemplate, fix #33
  • update NpoiRowCollection
  • optimize DataTable support for csv
  • export csv as utf8 encoding
  • update export generic type constraint, remove new() constraint
  • add HasColumnInputFormatter/HasColumnOutputFormatter
  • simply IExcelConfiguration SheetConfiguration
  • fix inherit property configure bug
  • fix empty column skipped bug, fix with row.Cells.Count => row.LastCellNumber
  • optimize AdjustColumnIndex
  • allow use Ignored(false) to unignore property
  • add shadow property support
  • add version info when export *.xlsx excel
  • add support for more format, treat as xlsx
  • add AutoColumnWidthEnabled setting to SheetSetting, no autoSizeColumn by default
  • add CsvHelper.ToEntityList(byte[] bytes)/CsvHelper.ToEntityList(Stream stream)
  • use xls for default ExcelFormat(better performance)
  • try to auto adjust column index when import excel(do not update existing settings)
  • add InputFormatter/OutputFormatter
  • apply column settings for CSV
  • remove unused SheetConfiguration
  • add ExcelHelper.LoadExcel()/ExcelHelper.ToEntityList override for stream/bytes
  • fix possible NullReferenceException when ExcelHelper.ToEntityList()/ToExcelFile()
  • fix treat string.Empty as null bug, SetCellType after SetCellValue so that null => CellType.Blank, string.Empty => CellType.String
  • add support for custom column width
  • fix ToExcelFile/ImportData extension not applied configuration bug
  • add support for specific sheetIndex when export excel
  • fix : CsvHelper.ToDataTable() and export DataTable to csv (Thanks for Arek's feedback)
  • add support for no header when export excel(to fix #26 )
  • add HasColumnFormatter<TEntity, TProperty>(Func<TEntity, TProperty, object> columnFormatter) to support for custom column output for export
  • add support for csv escape
  • fix csv custom columnIndex bug
  • Optimize csv operation for entity list
  • Update NPOI package to 2.4.1
  • Add support for struct types
  • Add default excel settings
  • Update NPOI package to 2.4.0, use NPOI for netstandard2.0 also
  • Add CsvHelper for import and export csv file, and mapping to entities
  • StrongNaming package