Releases: brudaswen/kotlinx-serialization-csv
Releases · brudaswen/kotlinx-serialization-csv
2.1.0
Changed
- Update to Kotlin 2.1.0 (🏅 kudos to theyoz).
- Update to Kotlinx-Serialization 1.7.3.
- Make
CsvConfig
public. - Support for streaming via Reader and Appendable (🏅 kudos to UnknownJoe796).
- Handle Microsoft Excel's insistence on using a byte order marker (🏅 kudos to UnknownJoe796).
- Asynchronous/Streaming support via
CsvRecordReader
andCsvRecordWriter
(🏅 kudos to UnknownJoe796).
Removed
- Removed
Csv(from: Csv, action: CsvBuilder.() -> Unit)
(usefrom.configure {}
instead).
2.0.0
Added
Csv {}
builder function to configure Csv instance.
Changed
- Use Unix newline (
\n
) as defaultrecordSeparator
(useCsv { recordSeparator = "\r\n" }
or
Csv.Rfc4180
for old behavior). - Using
QuoteMode.NONE
requiresescapeChar
to be set manually (use
Csv { quoteMode = QuoteMode.NONE ; escapeChar = '\\' }
for old behavior). - Last line in CSV is always ignored when empty.
- Throws
SerializationException
instead ofIllegalStateException
in case of error.
Removed
- Removed
CsvConfiguration
(useCsv {}
builder function instead). - Removed
Csv.default
(useCsv { recordSeparator = "\r\n" }
instead). - Removed
Csv.rfc4180
(useCsv.Rfc4180
instead). - Removed
Csv.excel
(useCsv.Rfc4180
instead).