Fix stream nesting issue (#77): stream.transform(csv.decoder).toList() now
correctly returns List<List<dynamic>> instead of List<List<List<dynamic>>>.
Breaking changes:
CsvCodechas been renamed toCsv. A deprecatedCsvCodectypedef is provided for migration.Csvdoes not extenddart:convert'sCodec. UseasCodec()if you need aCodec(e.g., for.fuse()).CsvDecoderis now aStreamTransformerBase<String, List<dynamic>>instead of aConverter<String, List<List<dynamic>>>. Each stream event is a single row.CsvEncoderis now aStreamTransformerBase<List<dynamic>, String>instead of aConverter<List<List<dynamic>>, String>. Each stream event is a single row.csv.decoder.fuse(...)→ usecsv.asCodec().decoder.fuse(...)instead.
See the "The Codec Problem" section in the README for a detailed explanation.
Document CsvRow map-like access and necessary casts. Add decodeWithHeaders() helper function.
Implement dynamic typing for CSV.
Complete rewrite of the library, now compatible with dart:convert.
Automatic delimiter detection and BOM support.
Optimized for performance and memory usage.
If you need compatibility with the older API, please continue using version 6.
If inside an unquoted string, text-delimiters are ignored instead of swallowed.
This (partially?) fixes issue #70.
Example: "A B", "C, D" will now produce [["A B",' "C',' D"']] instead of [["A B",' C',' D']].
Fix warnings. (Thanks https://github.com/thumbert for the bug report)
Implement feature request #29. It is now possible to specify a value for empty fields (CSV to List) and
a value for null (List to CSV).
fix bug #61 "Unexpected Error: The text end delimiter (") for the last field is missing."
thanks https://github.com/liam7800
Improve nullsafety code.
fix bug #26 "A value of type 'dynamic' can't be assigned to a variable of type 'String'."
thanks https://github.com/lil5
nullsafety updating dependencies to released nullsafety version Removing unnecessary const and new keywords
Thanks to: https://github.com/arnaudelub
nullsafety
Thanks to: https://github.com/darwingr
Add returnString option to work around a major performance bug.
Thanks: @boukeversteegh
Remove codec documentation in README
Fix analysis errors. No new functionality. No bug fix.
update dependencies for dart sdk 2.1