Skip to content

Releases: yaslab/CSV.swift

2.5.2

06 Nov 15:08
b4371dc
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.5.1...2.5.2

2.5.1

24 Sep 11:47
e339deb
Compare
Choose a tag to compare

What's Changed

  • [CSVRowDecoder] Fix NilDecodingStrategy not working properly by @yaslab in #127
  • Release 2.5.1 by @yaslab in #128

Full Changelog: 2.5.0...2.5.1

2.5.0

11 Aug 13:47
5be4d8e
Compare
Choose a tag to compare

What's Changed

  • Make CSVWriter.write(row:_) generic to accept any Sequence by @bouk in #113
  • add keyDecodingStrategy option by @AntVil in #124
  • Release 2.5.0 by @yaslab in #125

New Contributors

Full Changelog: 2.4.3...2.5.0

2.4.2

13 Jul 07:14
67c5209
Compare
Choose a tag to compare

This release targets Swift 5.0.x / Xcode 10.2.x.

Fixed

  • Fix a crash that occurs when the number of fields is small (#92). Thanks a72 for reporting this issue!
  • Fix CSV Deprecated compiler warning (#93). Thanks robwithhair for reporting this issue!

Breaking change

In 2.4.2 and later versions, If you specify a key that does not have a value in subscript, an empty string is returned. For example,

let csvString = "key1,key2\nvalue1" // There is only one field in the second line.
let csv = try! CSVReader(string: csvString, hasHeaderRow: true)
csv.next()
let value2 = csv["key2"] // Change point: Formerly nil, now "" is returned.
let value3 = csv["key3"] // In this case, nil will be returned.

2.4.1

22 Jun 12:28
b5514ec
Compare
Choose a tag to compare

This release targets Swift 5.0.x / Xcode 10.2.x.

Fixed

  • CSVWriter: Automatically quote values that contain commas (#89). Thanks mxcl for the pull request!

2.4.0

11 May 03:02
af907b4
Compare
Choose a tag to compare

This release targets Swift 5.0.x / Xcode 10.2.x (#84). Thanks UberJason for the pull request!

2.3.0

01 Dec 04:27
521b6c1
Compare
Choose a tag to compare

This release targets Swift 4.2.1 / Xcode 10.1.

Added

  • Decodable support (#61). Please see README.md for usage. Thanks yoiang for the pull request!
  • Added support for decoding with Int-based CodingKey (#72). Thanks sstadelman for the pull request!

Improved

  • Improved reading speed when using InputStream. (#65)

2.1.0

23 Sep 09:46
Compare
Choose a tag to compare

Fixed

  • Xcode 9 (Swift 3.2 / Swift 4.0) compatibility (#37, #38). Thanks pefaymon for the pull request!

2.0.1

09 Jul 06:18
Compare
Choose a tag to compare

Document updates only.

2.0.0

09 Jul 06:01
Compare
Choose a tag to compare

This release targets Swift 3.1 / Xcode 8.3.

Added

  • Add the CSVWriter class (#22). Please see README.md for usage. Thanks kgn for the proposal!