fix(deps): update rust crate comfy-table to v8 - #101
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
7.2.2→8.0.0Release 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 was generated by Mend Renovate. View the repository job log.