Skip to content

Releases: orchetect/swift-textfile

0.5.2

Choose a tag to compare

@orchetect orchetect released this 06 Apr 07:25

Maintenance

  • Removed .swift-version file which was causing build failures when using the swiftly toolchain manager
  • Added CI build job for Android

0.5.1

Choose a tag to compare

@orchetect orchetect released this 29 Mar 23:14

New

  • PlainTextFile: Added data(includeBOM:) method
  • PlainTextFile: Added write(to:includeBOM:) method
  • StringTableRepresentable: Added data(encoding:includeBOM:) method
  • StringTableRepresentable: Added write(to:encoding:includeBOM:) method
  • String.Encoding: Added byteOrderMark property

Improved

  • DelimitedTextFormat: init?(fileExtension:): File extension string comparison is now case-insensitive
  • TextFileDecodingStrategy: Now conforms to Equatable and Hashable

Changed

  • Bumped package toolchain to Swift 6.0
  • Bumped minimum platform requirements to macOS 10.13, iOS 12, tvOS 12 , watchOS 4
  • PlainTextFile: Properties are now mutable
  • PlainTextFile: Removed url property
  • StringTableRepresentable: init(rawData:encoding:): Renamed to init(data:encoding:)
  • StringTableRepresentable: init(rawText:): Renamed to init(text:)

0.5.0

Choose a tag to compare

@orchetect orchetect released this 29 Mar 05:30

New

  • Added new ByteOrderMark enum
  • Added new PlainTextFile struct to read text files with text encoding auto-detection
  • StringTable: Expanded initializers to allow specifying text encoding
  • StringTable: Added columnIndex(withName:caseInsensitive:trimWhitespace:) method

Improved

  • Text encoding auto-detection is now vastly improved
  • CSV and TSV are now Equatable, Hashable, and Sendable
  • Several small bugfixes

Changed

  • StringTable: [safe:col:] subscript: Renamed to [safeRow:col]
  • StringTable: Added [row:col:] and [safeRow:col:] subscripts that take column name string

0.4.0

Choose a tag to compare

@orchetect orchetect released this 15 Mar 23:44

Note

The repository has been renamed from swift-textfile-tools to swift-textfile.

Please migrate your dependencies to use the new repository URL and module import name. See the README for more details.

New

  • Added Linux support

0.3.0

Choose a tag to compare

@orchetect orchetect released this 25 Nov 19:10

Note

The repository has been renamed from TextFileKit to swift-textfile-tools.

Please migrate your dependencies to use the new repository URL and module import name. See the README for more details.

0.2.2

Choose a tag to compare

@orchetect orchetect released this 27 Jul 08:18
  • Fixed bug where text files using CRLF line endings would fail to parse

0.2.1

Choose a tag to compare

@orchetect orchetect released this 03 Jan 09:26
  • Added init(file: URL) and init(rawData: Data) inits which can detect text encoding and strip BOMs

0.2.0

Choose a tag to compare

@orchetect orchetect released this 23 Sep 02:02
  • Added TextFile.DelimitedFormat enum
  • Renamed StringArrayTableRepresentable to StringTableRepresentable
  • Added Sendable conformance to types
  • Updated unit tests

0.1.7

Choose a tag to compare

@orchetect orchetect released this 21 May 05:15
  • StringTable: Added columnCharCounts property
  • Fixed typo in inline docs
  • Updated unit tests

0.1.6

Choose a tag to compare

@orchetect orchetect released this 01 Jan 08:21
  • Resolved CSV decoding bug where a mix of internal commas and double-quotes could decode incorrectly
  • Updated unit tests