-
Notifications
You must be signed in to change notification settings - Fork 444
fix(deps): update module github.com/charmbracelet/lipgloss to v2 #1732
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
Open
renovate-bot
wants to merge
1
commit into
google:main
Choose a base branch
from
renovate-bot:renovate/major-osv-scanner-minor
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
fix(deps): update module github.com/charmbracelet/lipgloss to v2 #1732
renovate-bot
wants to merge
1
commit into
google:main
from
renovate-bot:renovate/major-osv-scanner-minor
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
b8e484a
to
ce07963
Compare
ce07963
to
0b0aeeb
Compare
0b0aeeb
to
ad6ce44
Compare
b0b1564
to
c83006a
Compare
c83006a
to
1610f93
Compare
1610f93
to
ed8c599
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1732 +/- ##
=======================================
Coverage 67.59% 67.59%
=======================================
Files 172 172
Lines 16326 16326
=======================================
Hits 11035 11035
Misses 4613 4613
Partials 678 678 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
36ad311
to
720f77a
Compare
4476e17
to
eca0440
Compare
dd850e8
to
f6985ac
Compare
f6985ac
to
0b79c38
Compare
25d51ec
to
0018e27
Compare
3eaed0c
to
b37cbef
Compare
37f10f7
to
b6948d1
Compare
4936107
to
eba9428
Compare
eba9428
to
9fe35db
Compare
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:
v1.1.1-0.20250404203927-76690c660834
->v2.0.0-beta.3
Release Notes
charmbracelet/lipgloss (github.com/charmbracelet/lipgloss)
v2.0.0-beta.3
Compare Source
Padding, Schmadding
This new beta release reverts back to a major change when it comes to using regular spacing for padding. We found that using NBSP
\u00a0
causes more problems than it solves. Things like simply copying the output from the terminal and then paste it back wouldn't work if NBSPs exist in a command.To solve this, we've added
style.PaddingChar(rune)
andstyle.MarginChar(rune)
to customize the characters used in padding and margins respectively.Changelog
New Features
d2233fa
: feat: add padding and margin character support (@aymanbagabas)045a87b
: feat: add padding and margin character support (#546) (@aymanbagabas)Bug fixes
99fc0ff
: fix: correct nbsp codepoint (@aymanbagabas)8e1c474
: fix: ensure we strip out \r\n from strings when getting lines (@aymanbagabas)4cb83b5
: fix: make padding char a style prop (@caarlos0)07cadae
: fix: revert back to regular space (@caarlos0)Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v2.0.0-beta.2
Compare Source
So Hot Right Now: Lip Gloss v2 Beta 2
This release builds on top of the last beta 1 release. It includes a new API for compositing layers and views, table enhancements, and a bunch of bug fixes. Let's get into it!
Compositing
The big news in this release is compositing. Here's what it looks like:
Also note that layers can also be nested (see
Layer.AddLayers
).Otherwise, that’s all there is to it!
For more info see
Layer
,Canvas
, and the compositing example.Table Enhancements
Tables are one of the most beloved Charm components, and we've been working to
make them as polished as possible. In this release several bugs were fixed,
and many other rendering enhancements were made. You can check most of the fixes
on #526.
We're also refactoring the Bubbles' table component to use the Lip Gloss' table package, and making their APIs similar, as before they were relatively different. This means that if you use Tables via Bubbles in your Bubble Tea app, you'll be able to reap the benefits soon too!
Changelog
New Features
BaseStyle
to set background color for the whole table (#519) (@andreynering)GetHeaders
,GetData
andDataToMatrix
(@andreynering)Bug fixes
nil
(#508) (@andreynering)Documentation updates
Other work
How’s it going?
Feel free to reach out, ask questions, give feedback, and let us know how it's going. We’d love to know what you think.
Part of Charm.
Charm热爱开源 • Charm loves open source • نحنُ نحب المصادر المفتوحة
v2.0.0-beta.1
Compare Source
Who said a beta release can’t be exciting?
We're thrilled to announce the first beta release of Lip Gloss v2! This release builds on top of the last alpha 2 release. Very little has changed since the last alpha, which means we’re getting closer to a proper
v2.0.0
.The only change here is that you can no longer use hexadecimal and integer format when defining colors. We found there were just to many gotchas and this way the API remains backwards compatible.
🌈 More on Lip Gloss v2
Just getting into Lip Gloss v2? Check out the full v2 release notes and upgrade guide.
💝 How’s it going?
Feel free to reach out, ask questions, give feedback, and let us know how it's going. We’d love to know what you think.
Part of Charm.
Charm热爱开源 • Charm loves open source • نحنُ نحب المصادر المفتوحة
v2.0.0-alpha.2
Compare Source
Do you think you can handle Lip Gloss v2?
We’re really excited for you to try Lip Gloss v2! Keep in mind that this is an early alpha release and things may change.
The big changes are that Styles are now deterministic (λipgloss!) and you can be much more intentional with your inputs and outputs. Why does this matter?
Playing nicely with others
v2 gives you precise control over I/O. One of the issues we saw with the Lip Gloss and Bubble Tea v1s is that they could fight over the same inputs and outputs, producing lock-ups. The v2s now operate in lockstep.
Querying the right inputs and outputs
In v1, Lip Gloss defaulted to looking at
stdin
andstdout
when downsampling colors and querying for the background color. This was not always necessarily what you wanted. For example, if your application was writing tostderr
while redirectingstdout
to a file, the program would erroneously think output was not a TTY and strip colors. Lip Gloss v2 gives you control and intentionality over this.Going beyond localhost
Did you know TUIs and CLIs can be served over the network? For example, Wish allows you to serve Bubble Tea and Lip Gloss over SSH. In these cases, you need to work with the input and output of the connected clients as opposed to
stdin
andstdout
, which belong to the server. Lip Gloss v2 gives you flexibility around this in a more natural way.🧋 Using Lip Gloss with Bubble Tea?
Make sure you get all the latest v2s as they’ve been designed to work together.
🐇 Quick upgrade
If you don't have time for changes and just want to upgrade to Lip Gloss v2 as fast as possible, do the following:
Use the
compat
packageThe
compat
package provides adaptive colors, complete colors, and complete adaptive colors:compat
works by looking atstdin
andstdout
on a global basis. Want to change the inputs and outputs? Knock yourself out:Use the new Lip Gloss writer
If you’re using Bubble Tea with Lip Gloss you can skip this step. If you're using Lip Gloss in a standalone fashion, use
lipgloss.Println
(andlipgloss.Printf
and so on) when printing your output:That’s it!
All this said, we encourage you to read on to get the full benefit of v2.
👀 What’s changing?
Only a couple main things that are changing in Lip Gloss v2:
🪄 Downsampling colors with a writer
One of the best things about Lip Gloss is that it can automatically downsample colors to the best available profile, stripping colors (and ANSI) entirely when output is not a TTY.
If you're using Lip Gloss with Bubble Tea there's nothing to do here: downsampling is built into Bubble Tea v2. If you're not using Bubble Tea you now need to use a writer to downsample colors. Lip Gloss writers are a drop-in replacement for the usual functions found in the
fmt
package:🌛 Background color detection and adaptive colors
Rendering different colors depending on whether the terminal has a light or dark background is an awesome power. Lip Gloss v2 gives you more control over this progress. This especially matters when input and output are not
stdin
andstdout
.If that doesn’t matter to you and you're only working with
stdout
you skip this viacompat
above, though encourage you to explore this new functionality.With Bubble Tea
In Bubble Tea, request the background color, listen for a
BackgroundColorMsg
in your update, and respond accordingly.Standalone
If you're not using Bubble Tea you simply can perform the query manually:
🥕 Other stuff
Colors are now
color.Color
lipgloss.Color()
now produces an idomaticcolor.Color
, whereas before colors were typelipgloss.TerminalColor
. Generally speaking, this is more of an implementation detail, but it’s worth noting the structural differences.Quotes are now optional in colors
There are also some quality-of-life niceties around color UX:
Changelog
Full Changelog: charmbracelet/lipgloss@v1.0.0...v2.0.0-alpha.2
🌈 Feedback
That's a wrap! Feel free to reach out, ask questions, and let us know how it's going. We'd love to know what you think.
Part of Charm.
Charm热爱开源 • Charm loves open source • نحنُ نحب المصادر المفتوحة
Configuration
📅 Schedule: Branch creation - "before 6am on monday" in timezone Australia/Sydney, 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 was generated by Mend Renovate. View the repository job log.