fix(deps): update module github.com/charmbracelet/lipgloss to v0.11.1 #82
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:
v0.6.0
->v0.11.1
Release Notes
charmbracelet/lipgloss (github.com/charmbracelet/lipgloss)
v0.11.1
Compare Source
A small patch release to fix text truncation in table cells https://github.com/charmbracelet/lipgloss/issues/324.
What's Changed
Full Changelog: charmbracelet/lipgloss@v0.11.0...v0.11.1
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.
v0.11.0
Compare Source
Immutable Styles and Raw Speed, Baby
So! The big news in this release is:
Style
methods will now always return new stylesStyle
and ANSI operations under the hood are fasterThere are also a handful of great lil' bug fixes. Read on for more.
Immutable Styles
Every
Style
method now returns a completely new style with its own underlying data structure no matter what. This means working with Styles is a lot easier. No more need forCopy()
!Okay, but why are styles easier to work with now? Consider this:
It might seem small, but eliminating the risk of mutations in persistent styles in an enormous usability improvement.
How to upgrade
There's nothing to do, however
Style.Copy()
is now deprecated and only returns itself, so you can just removeStyle.Copy()
calls. If you need to just copy a style without any changes to it you can simplyb := a
.Faster ANSI
Sometimes watch companies brag about their "in-house" watch movement. Well, now we're bragging about our in-house-amazing
x/ansi
library by our own @aymanbagabas. It's a fine-tuned, low-level way to manage ANSI sequencing and, because we're pretty nerdy, we’re super excited about it.What's Changed
New!
Changed
Fixed
New Contributors
Full Changelog: charmbracelet/lipgloss@v0.10.0...v0.11.0
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.
v0.10.0
Compare Source
String Transforms 💄
Lip Gloss
v0.10.0
features a brand newTransform
function for Styles to alter strings at render time. As well as some bug fixes, like ANSI-aware table cell truncation. 🧹Simply define a
Transform
function asfunc (string) string
and apply it to any style:Or, if you prefer:
What's Changed?
Style.Transform
for altering strings at render time by @meowgorithm in https://github.com/charmbracelet/lipgloss/pull/232New Contributors
Full Changelog: charmbracelet/lipgloss@v0.9.1...v0.10.0
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Slack.
v0.9.1
Compare Source
This bugfix release changes the Table
Headers
API to accept[]string
for consistency withRow
/Rows
and downgrades Lip Gloss to Go versionv1.17
.What's Changed
[]any
→[]string
by @maaslalani in https://github.com/charmbracelet/lipgloss/pull/234v1.17
by @maaslalani in https://github.com/charmbracelet/lipgloss/pull/234Full Changelog: charmbracelet/lipgloss@v0.9.0...v0.9.1
v0.9.0
Compare Source
My, how the tables have turned
Now you can draw
Table
s with Lip Gloss! 💅View the source code.
Let's get started
Define some rows of data.
Use the table package to style and render the table.
Print the table.
For more on tables see the examples.
Additional Borders
Lip Gloss'
Border
now supports additional middle border separators.v0.8.0
Compare Source
Predictable Tabs
At last: tabs that render the way you want ’em to. With the new
Style.TabWidth()
method, you can determine exactly how a\t
will render.Before this release, Lip Gloss used to mis-measure a tab (i.e. a
\t
) at 0 cells wide when they actually render at different widths in different terminals (usually 8 cells, sometimes 4 cells). For these reasons, tabs are almost never what you want when designing layouts for TUIs.With this release, a tab will get converted to 4 spaces by default—so this is a behavioral change—but you can customize the behavior as well as disable it entirely.
You can disable the feature with
Style.TabWidth(NoTabConversion)
(orStyle.TabWidth(-1)
, if you're the pedantic type).Bug Fixes
This release also includes a bunch of bug fixes. This includes:
Full Changelog: charmbracelet/lipgloss@v0.7.1...v0.8.0
v0.7.1
Compare Source
This bugfix release fixes a problem introduced in v0.7.0 where applications could freeze or hang on start-up.
What's Changed
Full Changelog: charmbracelet/lipgloss@v0.7.0...v0.7.1
v0.7.0
Compare Source
Custom Renderers
We're pleased to introduce custom renders for Lip Gloss! Custom renderers allow you to render to a specific outputs, which is particularly important when you want to detect the color profile and dark background status for multiple different outputs at runtime, such as in a server-client situation.
Here's what it looks like:
For a full example on using a custom renderer over SSH with Wish see the SSH example.
New API Stuff
type Renderer struct
NewRenderer(io.Writer)
DefaultRenderer()
SetDefaultRenderer(*lipgloss.Renderer)
style.Renderer(*lipgloss.Renderer) Style
What's Changed
New
Fixed
New Contributors
Full Changelog: charmbracelet/lipgloss@v0.6.0...v0.7.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 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. View repository job log here.