chore(deps): update rust crate comfy-table to v8 #14
No reviewers
Labels
No labels
automerge
bug
dependencies
duplicate
enhancement
help wanted
invalid
migrations
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Personal/my-cli!14
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/comfy-table-8.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
7→8Release Notes
nukesor/comfy-table (comfy-table)
v8.0.0Compare Source
Breaking Changes
The following types and functions have been removed:
TableComponentenummodifiersmodule andTable::apply_modifierhave been removed.Table::current_style_as_presetTable::set_styleTable::styleTable::remove_styleTable::load_presetThe positional preset string format has been replaced with the new
TableStyle,LineStyleandContentLineStyletypes.The old approach of having "stringified" presets was too finicky and also implicitly bound to the order of variants in the old
TableComponentenum.It was just not a good design.
The new design, in comparison, has a nice and (hopefully) intuitive API to define a style.
On top of that, all functions on
TableStyleareconst, so custom styles can still be declared as constants:The new API looks as follows:
comfy_table::presets::*are nowTableStyleconstants.Table::load_style(style)has been added to load a preset or custom style.Table::style()andTable::style_mut()to get a handle to the style used by the table.The
muthandle can be used to change the style.TableStyle::with_rounded_corners/TableStyle::with_solid_inner_borders.TableStyle,LineStyleandContentLineStyleare public:The default truncation indicator is now
…instead of....This should make it more obvious that there's more text and consumes less visual space.
Fix
Various performance improvements that reduce table formatting time quite a bit:
17µs -> 11µs253µs -> 172µs20.8ms -> 6.15msMost of these improvements boil down to:
Fixed a non-critical bug that resulted in less-than optimal layouting when UTF-8 characters were involved.
No longer panic when rendering a
Tablethat contains a row withRow::max_height(0).Don't print multi-width truncation indicators, if they would be longer than the column.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate.
57278133de3b4cd10e0aView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.