Repository navigation
The booleans an exporter actually writes now read as booleans.
New
-
CsvConfig.boolValuesmaps extra spellings ontotrueandfalse. Only
lowercasetrue/falsewere booleans, but Excel writesTRUEandFALSE,
databases exportt/f, and survey tools useYes/No, so all of those
arrived as strings:const CsvConfig(boolValues: { 'TRUE': true, 'FALSE': false, 'Yes': true, 'No': false, });
Matching is exact, so each spelling you accept is listed. It applies only to
a value that read as text, the same rulenullValuesfollows, so a numeric
entry such as'1'has no effect because1has already read as a number.
nullValuesis checked first, so a value in both reads asnull.
Fixed
- A header matching
nullValuescrashed the decode.decodeWithHeaders
nulled the header out and then cast it to a string, throwing
type 'Null' is not a subtype of type 'String'. The header row is never
typed, so a header that happens to match now stays the text it was and
remains usable as a key, while the data cells under it still read as null.
Notes
The batch decoder, decodeStrings and the streaming CsvDecoder agree on all
of this, checked at every chunk-split offset as usual.