Skip to content

Releases: jehugaleahsa/FlatFiles

Add .net standard 2.1 support. Add IAsyncEnumerable support.

27 Jun 15:12
Compare
Choose a tag to compare
v4.16.0

Add .net standard 2.1 support. Add IAsyncEnumerable support.

Write header/schema row when WriteAll called.

02 May 02:17
Compare
Choose a tag to compare

The behavior of TypedWriter.WriteAll is somewhat unintuitive when called with no records. The expectation is that the header is written when performing this bulk operation; otherwise, the caller has to explicitly call WriteSchema beforehand. This slightly changes the behavior of the code, such that it might result in headers/schema being written in cases where the file was blank before. However, when IsFirstRecordSchema is true, it is extremely unlikely consumers would expect a blank file to be generated.

During my testing, I also discovered a bug where the schema was getting set, then unset, when the header/schema record was the only record in the file. You should be able to try to Read the first record of an empty file and get false back, then get the schema via GetSchema; however, my code was throwing an InvalidOperationException or, worse, a NullReferenceException.

Expose raw record text while parsing

04 Dec 03:03
Compare
Choose a tag to compare

The idea behind this release is to expose the raw text making up a record while parsing via the IRecordContext interface.

FlatFileDataReader not correctly ignoring ignored columns in several places.

22 Oct 01:48
Compare
Choose a tag to compare
v4.12.0

FlatFileDataReader not correctly ignoring ignored columns in several …

Allow handling unrecognized rows when using schema selectors.

09 Oct 18:39
Compare
Choose a tag to compare
v4.11.0

Handle unrecognized rows using schema selectors.

Allow explicitly writing schema using typed mappers.

07 Oct 00:38
Compare
Choose a tag to compare
v4.10.0

Allow explicitly writing schema using typed writers.

OnParsing, OnParsed, OnFormatting, OnFormatted Exposed

26 Sep 21:48
Compare
Choose a tag to compare

Make OnParsing, OnParsed, OnFormatting, OnFormatted events available to type mappings. Raise events for ignored columns.

Avoid memory leaks within code generation

17 Sep 19:13
Compare
Choose a tag to compare

The code generation code was emitting code for the same types/mappings each time it was called, slowly using of memory. Instead of reusing the same dynamic assembly, a new one is created each time now.

Allow retrieving null instead of DBNull with GetValues.

04 Jun 01:55
Compare
Choose a tag to compare

Allow retrieving null instead of DBNull with GetValues.

Allow disabling quotes within delimited files.

30 May 01:17
Compare
Choose a tag to compare

Allow disabling quotes within delimited files.