0.609 2023-07-14 Released-By: PERLANCAR; Urgency: medium
- No functional changes.
- Remove usage of smartmatch to avoid deprecation warning under
perl 5.38.
0.608 2022-02-14 Released-By: PERLANCAR; Backward-Incompatible: yes; Urgency: medium
[INCOMPATIBLE CHANGES]
- Update to BorderStyle v3. Marked as incompatible changes because user
will have to install a backward incompatible border style modules.
[ENHANCEMENTS]
- Add example script in share/examples/.
0.607 2021-08-27 Released-By: PERLANCAR; Urgency: low
- No functional changes.
- Declare features from Module::Features::PerlTrove.
0.606 2021-08-27 Released-By: PERLANCAR; Urgency: low
- No functional changes.
- [build][dist] Rebuild to fix dependencies (phase=develop) to
Module::Features::*.
0.605 2021-08-27 Released-By: PERLANCAR; Urgency: low
- No functional changes.
- [build][dist] Rebuild to add dependencies (phase=develop,
rel=x_features_from) to Module::Features::*.
0.604 2021-08-09 Released-By: PERLANCAR; Urgency: low
- Declare features from Module::Features::TextTable.
0.603 2021-08-08 Released-By: PERLANCAR; Urgency: medium
- Make sure column names are unique (GH#3).
- [ux] Provide backward-compatible (0.5xx) color theme & border style
names.
0.602 2021-02-19 Released-By: PERLANCAR; Urgency: medium
- [bugfix] Don't emit color reset sequence \e[0m when not using
color.
- [doc] Add sections on referring to columns & rows.
- [doc] Standardize spelling col_name -> colname.
- [refactor] Standardize spelling of variable row_num -> rownum,
col_num -> colnum.
0.601 2020-10-05 Released-By: PERLANCAR; Urgency: medium
- Add prereqs to ColorThemes::Standard and BorderStyles::Standard
(RT#133472).
0.600 2020-09-13 Released-By: PERLANCAR
- Release after 2 development releases.
0.599_002 2020-06-20 Released-By: PERLANCAR
- [bugfix] Didn't set ANSI colors correctly (affected row/column/cell
styles and cell_fgcolor/cell_bgcolor).
0.599_001 2020-06-16 Released-By: PERLANCAR; Backward-Compatible: no
[border style]
- Now conforms to BorderStyle specification (v2) instead of the old
Border::Style. The new specification makes each border style a proper
class on its own instead of just a data structure, so some methods are
moved there instead of merged into Text::ANSITable. This causes the
following changes.
- [incompatible change][removed] Remove attribute 'border_style_args'.
Arguments now should be given to the border style class directly (see
next change item).
- [incompatible change] Attribute 'border_style' now must be a string
(module name like 'ASCII::SingleLine', or a module name followed by a
list of comma-separated arguments a la Perl's -M like
'Test::CustomChar=character,o') or a 2-element array containing module
name and arguments, e.g. ['ASCII::SingleLine', []] or
['Test::CustomChar', {character=>'o'}]. 'border_style' may no longer
be a hash containing border style structure. You will have to create a
proper BorderStyle::* module if you want your own custom border style.
- [incompatible change][removed] Remove methods get_border_style and
get_border_char. The border style object (stored in 'border_style_obj'
object hash key) now sports its own get_border_char() method.
- [incompatible change] Border style names changed. See
BorderStyles-Standard distribution for a collection of border styles.
The default border style is now named 'UTF8::BrickOuterOnly' (instead
of the old name 'Default::bricko'). You can still use the
'ansitable-list-border-styles' script or see the individual border
style class to see how a border style looks.
[color theme]
- Now conforms to ColorTheme specification (v2) instead of the old
Color::Theme. The new specification makes each color theme a proper
class on its own instead of just a data structure, so some methods are
moved there instead of merged into Text::ANSITable. This causes the
following changes.
- [incompatible change][removed] Remove attribute 'color_theme_args'.
Arguments now should be given to the border style class directly (see
next change item).
- [incompatible change] Attribute 'color_theme' now must be a string
(module name like 'Text::ANSITable::Default::Gradation', or a module
name followed by a list of comma-separated arguments a la Perl's -M
like 'Test::Random=cache,0') or a 2-element array containing module
name and arguments, e.g. ['Text::ANSITable::Default::Gradation', []]
or ['Test::Random', {cache=>0}]. 'color_theme' may no longer be a hash
containing color theme structure. You will have to create a proper
ColorTheme::* module if you want your own custom color theme.
- [incompatible change] Color theme names changed. See
ColorThemes-Standard or ColorThemes-Test distribution for a collection
of generic border styles. The Text-ANSITable distribution itself still
carries some color themes, now put in
ColorTheme::Text::ANSITable::Standard::* namespace. The default color
theme is now named 'Text::ANSITable::Standard::Gradation' (instead of
the old name 'Default::default_gradation'). You can still use the
'ansitable-list-color-themes' script or see the individual color theme
class to see how a color theme looks.
0.501 2018-12-02 Released-By: PERLANCAR
- No functional changes.
- [doc] Mention about the support for NO_COLOR.
0.500 2018-05-31 Released-By: PERLANCAR
- [Bugfix] Re-add 'require Win32::Console::ANSI', which was
accidentally removed during refactoring.
- [dist] Require Win32::Console::ANSI using OSPrereqs.
- [dist] Add spec dependency to Color::Theme.
0.49 2017-07-10 Released-By: PERLANCAR
- No functional changes.
- Replace Log::Any with Log::ger.
0.48 2016-03-11 Released-By: PERLANCAR
- No functional changes.
- Adjust to Text::ANSI::Util 0.22 (::NonWideUtil removed).
0.47 2016-03-09 Released-By: PERLANCAR
- Replace JSON module with JSON::MaybeXS.
0.46 2015-10-22 Released-By: PERLANCAR
- Remove needless use of Module::Path::More.
0.45 2015-10-21 Released-By: PERLANCAR
- No functional changes.
- Mention about wide character support depending on an optional prereq
Text::ANSI::WideUtil which might need to be installed explicitly.
0.44 2015-10-21 Released-By: PERLANCAR
- [Bugfix] Make usage of Text::ANSI::WideUtil optional, add 'wide'
attribute.
0.43 2015-10-21 Released-By: PERLANCAR
- [dist] Fix build failure.
- [dist] Add Data::Unixish::Apply to DevelopRequires prereq (needed
to insert output into POD).
- [Bugfix] Delay loading Data::Unixish::Apply until it's needed.
0.42 2015-10-20 Released-By: PERLANCAR
- No functional changes.
- To reduce reps, remove use of DateTime in
bin/ansitable-list-color-themes.
- To reduce deps, downgrade prereq Data::Unixish from requires to
recommends.
0.41 2015-08-18 Released-By: PERLANCAR
- No functional changes.
- Switch from Log::Any to Log::Any::IfLOG.
0.40 2015-03-05 Released-By: PERLANCAR
- Several minor tweaks and fixes.
- [doc] Add caveat note about not naming column with a number.
- [ux] Set default columns as ["col0", "col1", ...] if we add/set rows but
haven't define columns.
0.39 2015-01-03 Released-By: PERLANCAR
- No functional changes.
- Rebuild (Generate TODO.md).
0.38 2014-12-14 Released-By: PERLANCAR
- No functional changes.
- [pod] Show sample table for each border style.
0.37 2014-12-12 Released-By: PERLANCAR
- No functional changes.
- [pod] Insert sample output of the scripts.
0.36 2014-12-11 Released-By: PERLANCAR
- No functional changes.
- Use the new name of renamed module SHARYANTO::Role::ColorTheme ->
Color::Theme::Role::ANSI, SHARYANTO::Role::TermAttrs ->
Term::App::Role::Attrs, SHARYANTO::Role::BorderStyle ->
Border::Style::Role, SHARYANTO::Color::Util -> Color::RGB::Util.
0.35 2014-12-05 Released-By: PERLANCAR
- No functional changes.
- Use the new renamed module SHARYANTO::Package::Util ->
Package::MoreUtil.
0.34 2014-07-10 Released-By: SHARYANTO
- [Bugfix] Setting border_style & color_theme in constructor didn't take
effect.
- [pod] Reorganise See Also section, mention Text::TabularDisplay and
column (Unix util).
0.33 2014-06-19 Released-By: SHARYANTO
- No functional changes.
- Avoid perl undef warning on Windows.
0.32 2014-04-28 Released-By: SHARYANTO
- Recognize numeric types from tablespec (int & float aside from num).
- Update dependency name (Data::Unixish::{ansi,ANSI}).
0.31 2014-04-23 Released-By: SHARYANTO
- Provide 'row_data' to conditional {row,cell} style's coderef.
- Bugfix: Style set, border style, and color theme modules must be
searched recursively.
- Observe WRAP environment to set default for 'wrap' style.
0.30 2014-04-23 Released-By: SHARYANTO
- Add list_style_sets().
- Add script: ansitable-list-style-sets.
0.29 2014-04-23 Released-By: SHARYANTO
[ENHANCEMENTS]
- Add conditional {column,row,cell} styles.
- Add style sets. This makes applying a set of styles easy and reusable.
[INTERNAL]
- Break up _prepare_draw() into several smaller methods.
- Revert another optimization because it was buggy.
0.28 2014-04-10 Released-By: SHARYANTO
- No functional changes.
- Replace Data::Clone with Function::Fallback::CoreOrPP.
- Revert an optimization because it was buggy.
0.27 2014-03-28 Released-By: SHARYANTO
- Bugfix: don't override UTF8 env when setting default of use_utf8.
- Add some minor optimizations.
- Add more heuristics for detecting bool columns
({can,is,has,does}_foo).
0.26 2014-01-23 Released-By: SHARYANTO
- Allow drawing table with no columns.
- Bugfix: cell height is 1 not 0 if cell contains empty string.
0.25 2014-01-23 Released-By: SHARYANTO
- Tweak default: only default to utf8 border if PerlIO layer 'utf8' has
been set, to avoid 'Wide character in print' warning.
0.24 2013-11-09 Released-By: SHARYANTO
- No functional changes.
- Add/reorganize FAQ items.
- Respect use_color setting in scripts.
0.23 2013-10-01 Released-By: SHARYANTO
- Add border styles: spacei_{ascii,boxchar,utf8}.
- Nicer default border style for Linux virtual console (it supports a
few Unicode characters, e.g. single lines).
0.22 2013-09-25 Released-By: SHARYANTO
- Extract some more code to roles
SHARYANTO::Role::{BorderStyle,ColorTheme}.
- Increase spec version for color theme to v=1.1
(SHARYANTO::Role::ColorTheme 0.58) because multiple color codes should
now be returned as the more-flexible hash instead of [fg, bg].
0.21 2013-09-25 Released-By: SHARYANTO
- No functional changes. Extract some code to roles
SHARYANTO::Role::{BorderStyle,ColorTheme,TermAttrs} to be shared with
other modules, like Perinci::CmdLine.
0.20 2013-09-11 Released-By: SHARYANTO
- More sensible defaults on Windows (80-1 column width, no box chars).
0.19 2013-09-11 Released-By: SHARYANTO
- No functional changes. Fix undef error.
0.18 2013-09-11 Released-By: SHARYANTO
- Add 'require Win32::Console::ANSI' for Windows.
0.17 2013-09-11 Released-By: SHARYANTO
- Now works on Windows.
- Make the use of Term::Size optional, to make this module work on
Windows, because currently Term::Size fails to build on my Strawberry
Perl.
0.16 2013-08-27 Released-By: SHARYANTO
- Better default for utf8: turn off if terminal supports Unicode but
LANG setting is not Unicode.
- Add some images to POD (inspired by:
http://blogs.perl.org/users/gabor_szabo/2013/08/adding-images-to-cpan.html)
0.15 2013-06-26 Released-By: SHARYANTO
- No functional changes. Second attempt: 'use experimental "smartmatch"'
must be given after 'use Moo' (or 'use warnings', to be exact, since
Moo does that for us).
0.14 2013-06-25 Released-By: SHARYANTO
- No functional changes. Add 'use experimental "smartmatch"' for 5.18+.
0.13 2013-05-17 Released-By: SHARYANTO
- Tweak adjust width algorithm (now always fit wide table to terminal
width, when possible).
- Observe COLUMNS environment variable to override terminal width
detection.
0.12 2013-05-17 Released-By: SHARYANTO
- Adjust wrappable columns' widths so table fits terminal width
Released-By: currently naive algorithm
0.11 2013-05-17 Released-By: SHARYANTO
[BUG FIXES]
- Positive width/height setting value (cell_width/column 'width'
style/cell_height/row 'height' should set maximum and clip content
that are too wide/long. Previously it acted like a negative value
(setting minimum and still widens/lengthens if content is too
wide/long).
[ENHANCEMENTS]
- Add 'column_wrap'/column 'wrap' style for convenience. Previously you
have to add a 'wrap' format for this.
0.10 2013-05-16 Released-By: SHARYANTO
- Add Text::ANSITable::ColorThemeUtil (moved from
Text-ANSITable-ColorTheme-Extra, rename sub name)
- Add get_border_style(), document get_{border_style,color_themes}.
0.09 2013-05-16 Released-By: SHARYANTO
- Tweaks and small fixes.
- Allow column_filter to specify column numbers instead of column names,
convert them all to column names.
- ansitable-list-{border-styles,color-themes} scripts: Give more visual
indicator of selected theme/style (to make it clear under xvt, rxvt).
- Tweak date column detection (moved routine from
Data-Format-Pretty-Console).
[BUG FIXES]
- Date columns were not aligned middle.
0.08 2013-05-03 Released-By: SHARYANTO
- Better detect whether to use utf8 border, whitebg/blackbg color theme
(using Term::Detect).
0.07 2013-05-03 Released-By: SHARYANTO
[INCOMPATIBLE CHANGES]
- To avoid potential overhead in the future, color_theme() and
border_style() now requires "SubPackage::name" syntax to avoid listing
and requiring all style/theme modules.
[ENHANCEMENTS]
- Observe ANSITABLE_{STYLE,COLUMN_STYLES,ROW_STYLES,CELL_STYLES} to
customize almost everything via environment.
- Add more FAQ items.
0.06 2013-05-03 Released-By: SHARYANTO
- This release is a reorganization/tidying up of the API. Lots of
renaming, sorry.
[INCOMPATIBLE CHANGES]
- Rename attributes 'column_{width,align,pad,lpad,rpad}' -> 'cell_*'.
- Rename attributes 'row_{valign,vpad,tpad,bpad,height}' -> 'cell_*'.
- {column,row,cell}_style() now split to
{get,set}_{column,row,cell}_style() to make them stand out/different
from table-level {column,row,cell}_* attributes. The set methods now
can set multiple styles and check for known styles, but they no longer
return old value.
- cell() also split to get_cell() and set_cell() (to be more consistent
with the above).
[ENHANCEMENTS]
- Add per-row/per-cell styles: align, valign.
- Add more FAQ items.
[BUG FIXES]
- Setting column_align/column_valign didn't work.
- Setting colors with ANSI escape codes didn't work.
- Proof-read and update POD.
0.05 2013-05-02 Released-By: SHARYANTO
- No functional changes. Fix bug which breaks Data::Format::Pretty when
switching from Text::ASCIITable.
0.04 2013-05-02 Released-By: SHARYANTO
- Make the default color theme more readable on terminal emulators with
white background.
0.03 2013-05-02 Released-By: SHARYANTO
- Add attributes: column_width, row_height.
- Add color theme: default_gradation_whitebg.
- Improve column type detection: date (/[acmsu]time/), percentage (/%/).
- Fixes to POD.
0.02 2013-05-01 Released-By: SHARYANTO
[ENHANCEMENTS]
- Detect bool/num/str column types. Apply some pretty formatting for
those.
0.01 2013-05-01 Released-By: SHARYANTO
- First "real" release (substantial features implemented). Some border
styles and color themes separated to
Text::ANSITable::{BorderStyle,ColorTheme}::Extra. Missing features
include: autodetection of column types (and setting default
align/colors/formats) and tests.
0.00 2013-04-12 Released-By: SHARYANTO
- First, very very very minimal release.