All Versions
6
Latest Version
Avg Release Cycle
2 days
Latest Release
2809 days ago

Changelog History

  • v1.0.0-alpha.4 Changes

    August 17, 2016

    What's New

    • โšก๏ธ Update for Xcode 8 beta 6 (Apple Swift version 3.0 (swiftlang-800.0.43.6 clang-800.0.38))
    • Travis-CI integration

    SPM Dependency Snippet

    .Package(url: "https://github.com/cfilipov/TextTable", Version(1, 0, 0, prereleaseIdentifiers: ["alpha", "4"]))
    
  • v1.0.0-alpha.3 Changes

    August 17, 2016

    What's New

    • ๐Ÿš€ This release contains breaking changes to the API. This should hopefully be the last major breaking change to the API for a long time.
    • ๐Ÿ‘€ TextTable<T> construction closure now takes an instance of T instead of a Config<T>. Config<T> has been removed completely. Instead of calling column(...) on a Config<T> in the closure, you now return an array of Column instances. See example transition below for details.
    • ๐Ÿ›  Fixed: Missing/broken tests.
    • ๐Ÿ›  Fixed: Latex tabular environment contains incorrect alignments.
    • ๐Ÿ›  Fixed: Handle optional values in mapping.
    • ๐Ÿ›  Fixed: FancyGrid using pipe symbol instead of unicode drawing character for header separator.
    • 0๏ธโƒฃ All columns are now left-aligned by default (instead of right-aligning the first column by default).
    • ๐Ÿ’… TextTableFormatter has been renamed to TextTableStyle to avoid confusion with the Foundation Formatters class. All references to the word "format" when referring to the type of table rendered have bee changed to "style".
    • ๐Ÿ’… The TextTableStyle protocol (formerly TextTableFormatter) is now simplified. All methods in TextTableStyle are now static, no state is maintained in TextTableStyle. The methods have also been consolidated (row instead of beginRow, endRow, content, beginColumn, etc...).
    • TextTable<T> and all the internal types are now value types instead of classes.
    • ๐Ÿ’… All built-in styles are case-less enums so they cannot be accidentally instantiated.

    Known Issues

    • ๐ŸŽ Very little effort has but put into performance optimizations. String utilities in particular.
    • โœ… It should be possible to create columns without headers, but this hasn't been tested and likely doesn't work yet.

    Transitioning

    Before:

    let table = TextTable<Person> { t in
        t.column("Name") { $0.name }
        t.column("Age") { $0.age }
        t.column("Birthday") { $0.birhtday }
    }
    

    After:

    let table = TextTable<Person> {
        [Column("Name" <- $0.name),
         Column("Age" <- $0.age),
         Column("Birthday" <- $0.birhtday)]
    }
    

    SPM Dependency Snippet

    .Package(url: "https://github.com/cfilipov/TextTable", Version(1, 0, 0, prereleaseIdentifiers: ["alpha", "3"]))
    
  • v1.0.0-alpha.2 Changes

    August 15, 2016

    What's New

    • ๐Ÿ‘ Column truncation support. There is now an optional truncate: argument to width.
    • โž• Added some documentation.

    Known Issues

    • ๐ŸŽ Very little effort has but put into performance optimizations.
    • โœ… It should be possible to create columns without headers, but this hasn't been tested and likely doesn't work yet.

    SPM Dependency Snippet

    .Package(url: "https://github.com/cfilipov/TextTable", Version(1, 0, 0, prereleaseIdentifiers: ["alpha", "2"]))
    
  • v1.0.0-alpha.1 Changes

    August 13, 2016

    What's New

    • ๐Ÿ‘Œ Support for center alignment.
    • If all columns have explicit width, then width calculations are skipped.
    • Escape strings in certain formats (HTML & Latex, for example).
    • ๐Ÿ›  Fixed: TextTable config persists calculated column widths. This results in widths getting stuck from the first call to print or string(for:).

    Known Issues

    • ๐ŸŽ Very little effort has but put into performance optimizations.
    • โœ… It should be possible to create columns without headers, but this hasn't been tested and likely doesn't work yet.

    SPM Dependency Snippet

    .Package(url: "https://github.com/cfilipov/TextTable", Version(1, 0, 0, prereleaseIdentifiers: ["alpha", "1"]))
    
  • v1.0.0-alpha.0 Changes

    August 13, 2016

    What's New

    • ๐Ÿ’ฅ Breaking change: completely re-written API. No more conforming to a protocol, instead a TextTable class is used in a similar way to NSFormatter. This offers much more flexibility.
    • Many more output formats. Similar to what you get from Python's tabulate lib.

    Known Issues

    • ๐ŸŽ No attempt at optimizing performance has been made yet. Even when widths are provided, an expensive calculation is still performed.
    • No escaping is being done. None of the formatters even attempt to sanitize the input strings.
    • ๐Ÿ‘ Center alignment not supported. This will result in a fatalError().
    • โœ… It should be possible to create columns without headers, but this hasn't been tested and likely doesn't work yet.

    SPM Dependency Snippet

    .Package(url: "https://github.com/cfilipov/TextTable", Version(1, 0, 0, prereleaseIdentifiers: ["alpha", "0"]))
    
  • v0.0.0 Changes

    August 09, 2016

    ๐ŸŽ‰ Initial release.