All Versions
18
Latest Version
Avg Release Cycle
154 days
Latest Release
100 days ago

Changelog History
Page 2

  • v0.8.0 Changes

    January 18, 2016

    ๐Ÿ’ฅ Breaking changes

    All Table.set_* functions have been changed to Table.put_* to better reflect their functionality and mimic convention used elsewhere in the Elixir ecosphere.

  • v0.7.0 Changes

    January 09, 2016

    ๐Ÿ’ฅ Breaking changes

    0๏ธโƒฃ The default alignment for columns is now :left rather than :center.

    This could be a breaking change for your project as if you had not explicitly set columns to be of a certain alignment then your tables will now be output with columns aligned to the left rather than centered as before. This change was made as it's much more likely that a LTR language user is going to want ๐Ÿ‘ left aligned columns, especially with the multiline cell support which will land soon.

    If you wish to remain using center-aligned columns then you can manipulate your table struct by calling:

    Table.set_column_meta(table, :all, align: :center)
    

    Other changes:

    Table.set_column_meta and Table.set_header_meta now can also take their column index(es) argument as an enumerable. Previously set_header_meta could not do this and set_column_meta could only be provided a range.

    Example usage:

    Table.set_column_meta(table, 0, align: :right) # aligns column 0 to the right.
    Table.set_column_meta(table, 0..4, align: :right) # aligns column 0 through 4 to the right.
    Table.set_column_meta(table, [0, 3, 5], align: :right) # aligns column 0, 3 & 5 to the right.
    Table.set_column_meta(table, :all, align: :right) # aligns all current and future columns to the right.
    
    Table.set_header_meta(table, 0, align: :right) # aligns header cell 0 to the right.
    Table.set_header_meta(table, 0..4, align: :right) # aligns header cells 0 through 4 to the right.
    Table.set_header_meta(table, [0, 3, 5], align: :right) # aligns header cells 0, 3 & 5 to the right.
    
  • v0.6.0 Changes

    January 07, 2016

    No breaking changes

    Table.new/0 has been supplemented with Table.new/3 which takes rows and an optional header and title. This change was made as when the data is known upfront it was quite verbose doing:

    Table.new
    |> Table.add_rows(rows)
    |> Table.set_header(header)
    |> Table.set_title(title)
    |> Table.render
    

    The following can now be used instead:

    Table.new(rows, header, title)
    |> Table.render
    
  • v0.5.0 Changes

    No breaking changes

    TableRex.Table.set_column_meta now supports applying the column meta to a range of columns as so:

    TableRex.Table.set_column_meta(table, 0..3, align: :right)
    

    This would right-align columns 0 through 3.

    It is different to using the :all atom as it allows for a subset.

  • v0.4.0 Changes

    No breaking changes

    Added TableRex.Table.set_header_meta/2 which allows a user to set the cell-level attributes (namely, alignment) of a header cell. Header cells can now be aligned individually, 0๏ธโƒฃ separately from the default which is picked up from the column.

    ๐Ÿ‘€ See issue #3.

  • v0.3.0 Changes

    No breaking changes

    โšก๏ธ Simply an update to bump the version due to an oversight as the generated ๐Ÿ“„ docs for older version contained documentation for uncommitted files which ๐Ÿ“ฆ were not part of the package. This has been remedied as of this version.

  • v0.2.0 Changes

    ๐Ÿ’ฅ Breaking changes

    • ๐Ÿšš The original TableRex.Table.render!/1, TableRex.Table.render!/2 and TableRex.Table.render!/3 have been removed and consolidated with TableRex.Table.render!/2. Choosing a custom renderer module has been moved from a first class argument into the :renderer key of the options argument.

    What was previously:

    Table.new
    |> Table.add_row(row)
    |> Table.render(CustomRenderer.Module, horizontal_style: :off)
    

    is now:

    Table.new
    |> Table.add_row(row)
    |> Table.render(renderer: CustomRenderer.Module, horizontal_style: :off)
    

    ** Other changes**

    • ๐Ÿ’… TableRex.Table.render!/2 has been added as a brother to TableRex.Table.render/2. It raises TableRex.Error on failure and returns the rendered string directly as opposed to it's brother which returns an Erlang style :ok/:error tuple.
  • v0.1.0 Changes

    ๐Ÿš€ First release on hex.pm