Documentation Improvements - #968
Conversation
…enchmark projects
…nfigure if the underlying stream is closed when the reader is disposed
…, GetSheetInformations and GetColumnNames
…orter API methods
Added `leaveOpen` parameter to `GetDataReader` API methods and renamed parameter `useHeaderRow` to `hasHeaderRow` for clarifying its usage.
There was a problem hiding this comment.
Code Review
This pull request introduces several API updates, including renaming useHeaderRow to hasHeaderRow, changing CsvExporter.Export to return int instead of int[], adding a leaveOpen parameter to data readers, caching ordinals in MiniExcelDataReader, and optimizing SharedStringsDiskCache with stackalloc for .NET. Feedback from the review highlights a security risk of unbounded stackalloc in SharedStringsDiskCache that could cause a stack overflow, and notes that the leaveOpen implementation is currently broken because the underlying readers still dispose of the stream. Additionally, potential null reference issues were flagged in MiniExcelDataReader regarding GetOrdinal and the removal of null safety on Current keys.
…hat take a stream as an input
* Integrated missing documentation in the OpenXmlTemplater * Minor optimizations * Update packages suffering from security vulnerabilities in test and benchmark projects * Added leaveOpen parameter to GetDataReader API method overloads to configure if the underlying stream is closed when the reader is disposed * Removed unused configuration parameter from API methods GetSheetNames, GetSheetInformations and GetColumnNames * Renamed parameter useHeaderRow to hasHeaderRow in multiple OpenXmlImporter API methods * Added documentation to all OpenXmlImporter methods * Simplified namespaces in the fluent mapping api * Sealed CsvReader and CsvWriter classes and simplified Dispose pattern * Changed return type of API methods CsvExporter.Export from int[] to int * Added documentation for CsvExporter * Changes to CsvImporter API methods Added `leaveOpen` parameter to methods that take a stream as an input for both `OpenXmlImporter` and `CsvImporter` to configure whether the underlying stream should be closed after the operation is completed * Added documentation to CsvImporter class
OpenXmlImporter,OpenXmlExporter,CsvImporter,CsvExporter, andOpenXmlTemplaterleaveOpenparameter to methods that take a stream as an input for bothOpenXmlImporterandCsvImporterto configure whether it should be closed after the operation is completeduseHeaderRowparameter tohasHeaderRowin all API methods to clarify its usageconfigurationparameter from someOpenXmlImportermethods