Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update charmbracelet in go.mod #227

Merged
merged 1 commit into from
Mar 13, 2025
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 13, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence Type Update
github.com/charmbracelet/lipgloss v1.0.0 -> v1.1.0 age adoption passing confidence require minor
github.com/charmbracelet/x/exp/strings 4ba78ac -> c09addb age adoption passing confidence indirect digest

Release Notes

charmbracelet/lipgloss (github.com/charmbracelet/lipgloss)

v1.1.0

Compare Source

Tables, Improved

In this release, the @​andreynering and @​bashbunni majorly overhauled on the table sizing and content wrapping behavior. Tables will now be much smarter on deciding the ideal width of each column, and content will now wrap by default inside cells.

If you don't want content to wrap, set .Wrap(false), and the content will be cut with an ellipsis (), a behavior the was not properly working correctly before (content would just be cut, even middle word).

// Table content wraps by default.
t := table.New().
    Headers(someHeaders...).
    Rows(someRows...).
    Width(80)

fmt.Println(t)
// Actually, let's not wrap the content.
t := table.New().
    Headers(someHeaders...).
    Rows(someRows...).
    Width(80).
    Wrap(false)

fmt.Println(t)

New Border Styles

Also, we added two new border styles that you can use to generate tables in Markdown and ASCII styles.

Markdown Tables

To render tables correctly for Markdown you'll want to use lipgloss.MarkdownBorder and disable the top and bottom borders.

t := table.New().
    Headers(someHeaders...).
    Rows(someRows).
    Border(lipgloss.MarkdownBorder()).
    BorderTop(false).
    BorderBottom(false)

fmt.Println(t)
ASCII Tables

To render an ASCII-style table use lipgloss.ASCIIBorder.

t := table.New().
    Headers(someHeaders...).
    Rows(someRows).
    Border(lipgloss.ASCIIBorder())

fmt.Println(t)

Thanks everyone

Special thanks to @aymanbagabas @bashbunni and @andreynering or all the work on this release!


Changelog

New Features
Bug fixes
Other work

The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.


Configuration

📅 Schedule: Branch creation - "* */1 * * *" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge (squash) March 13, 2025 19:49
@renovate renovate bot merged commit 416eaf3 into main Mar 13, 2025
7 checks passed
@renovate renovate bot deleted the renovate/charmbracelet branch March 13, 2025 19:51
Copy link

codecov bot commented Mar 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.01%. Comparing base (972ce48) to head (351e05c).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #227   +/-   ##
=======================================
  Coverage   71.01%   71.01%           
=======================================
  Files          67       67           
  Lines        4610     4610           
=======================================
  Hits         3274     3274           
  Misses       1193     1193           
  Partials      143      143           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants