Repository navigation
Update module charm.land/lipgloss/v2 to v2.1.0 - #159
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Contributor
Author
ℹ️ Artifact update noticeFile name: go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
|
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:
v2.0.5→v2.1.0Release Notes
charmbracelet/lipgloss (charm.land/lipgloss/v2)
v2.1.0Compare Source
New table parameter and many fixes
Hi all! This release gives tables a new feature. They can now size themselves to their content and still respect a maximum width. It also comes with a big batch of fixes, many of them from first-time contributors. Let's go!
Fit Content on tables
Until now, setting
Widthon a table meant it would always stretch to fill that width, even if it only had three short words in it. Now there'sFitContent():With
FitContent, the table renders at the width its content actually needs.Widthbecomes a ceiling, if the content is wider than that, the table is held to the maximum and wraps like before.Perfect for sidebars, popups, and anywhere a table shouldn't go far. Thanks, @pete-woods!
Darker Darks, Lighter Lights
Lip Gloss now decides whether a color is dark using CIELAB lightness instead of HSL. In simple words, it now judges dark and light the way your eyes do, so saturated blues and purples are no longer mistaken for light colors.
LightDarkand friends will pick the right side more often. Thanks, @janearc!Full-Fidelity RGB
RGBColorchannels are now 16 bits, so colors survive the round trip throughcolor.Colorwithout losing precision. Thanks, @MokiMeow!Faster Wrapping
Wrapnow sizes its buffer up front and copies bytes in runs instead of one at a time. Thanks, @taciturnaxolotl!That's all for now,
Charm XX 💫
Changelog
New!
6a419c6: feat: addFitContentproperty to table renderer (#697) (@pete-woods)Fixed
e3f0511: fix(color): expand RGBColor channels to 16 bits (#757) (@MokiMeow)092b7f4: fix(compat): honor NO_COLOR in init-time background query (#692) (@jadb)19f011f: fix(luminance): detect dark colors by Lab, not HSL (#752) (@janearc)8c6bfaf: fix(table): prevent panic when YOffset is set to a negative value (#727) (@bunlongheng)03215bc: fix(tree): handle nil values (#738) (@Charlie-Wang-03)4da0bdd: fix(tree): stop swapping Offset start and end (#676) (@c-tonneslan)2a70d4e: fix: alphabet enumerator producing non-letters for large lists (#715) (@winklemad)ce49a2a: fix: don't mangle embedded ANSI when styling spaces (#708) (@larrasket)0599726: fix: infinite loop with zero-width characters (#670) (@Spuxy)4b8c667: fix: store bool props in a 64-bit field (#732) (@QuentinouLeTwist)3ab3b5f: fix: terminate margin background on each line (#711) (@c-tonneslan)0f0a984: fix: unset underline style rule (#686) (@abnormal749)Other stuff
6860635: Fix order of calling w.Close in Wrap (#689) (@neomantra)4a8c4de: Inline: replace newlines with a space, not empty string (#665) (@MukundaKatta)77047a8: ci: sync dependabot config (#728) (@charmcli)c7d9f35: perf(wrap): forward bytes in runs instead of one at a time (@taciturnaxolotl)868e8b5: perf(wrap): size the buffer in Wrap up front (@taciturnaxolotl)ff16a4e: v2.1.0 (@andrinoff)Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.
v2.0.6Compare Source
Devanagari, auto-grapheme mode, and more
Hi! The big news in this release is that Lip Gloss now properly renders Devanagari (Hindi)! Beyond that—or perhaps as a result—Lip Gloss will now switch to mode 2027 for grapheme support when possible.
There's other good stuff too. Let's go!
क्या हाल है?
Hindi speakers, it's about time! Lip Gloss and Ultraviolet now properly renders Devanagari. That means Bubble Tea will as well.
This brings us to…
Cyberpunk 2027
Lip Gloss (and Ultraviolet) now asks the terminal at startup whether it supports Unicode core mode (DEC mode 2027), and when it does, measures widths the same way the terminal does. We did this for Devanagari but it also means Emojis and things render better now too. Let's go!
Shrinky tables: not anymore
Columns no longer shrink to zero width. Thanks, @taciturnaxolotl!
Changelog
Fixed
d231906: fix(table): prevent columns from shrinking to zero width (#671) (@taciturnaxolotl)Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.
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.