chore(deps): bump github.com/charmbracelet/lipgloss from 0.6.0 to 0.7.1
Bumps github.com/charmbracelet/lipgloss from 0.6.0 to 0.7.1.
Release notes
Sourced from github.com/charmbracelet/lipgloss's releases.
v0.7.1
This bugfix release fixes a problem introduced in v0.7.0 where applications could freeze or hang on start-up.
What's Changed
- fix(renderer): use termenv default renderer by
@aymanbagabasin charmbracelet/lipgloss#179- chore: bump termenv to v0.15.1 by
@muesliin charmbracelet/lipgloss#180Full Changelog: https://github.com/charmbracelet/lipgloss/compare/v0.7.0...v0.7.1
v0.7.0
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:
func myLittleHandler(sess ssh.Session) { // Create a renderer for the client. renderer := lipgloss.NewRenderer(sess)// Create a new style on the renderer. style := renderer.NewStyle().Background(lipgloss.AdaptiveColor{Light: "63", Dark: "228"})// Render. The color profile and dark background state will be correctly detected. io.WriteString(sess, style.Render("Heyyyyyyy"))
}
For a full example on using a custom renderer over SSH with Wish see the SSH example.
New API Stuff
type Renderer structNewRenderer(io.Writer)DefaultRenderer()SetDefaultRenderer(*lipgloss.Renderer)style.Renderer(*lipgloss.Renderer) StyleWhat's Changed
New
- lipgloss renderer by
@aymanbagabasin charmbracelet/lipgloss#140 and charmbracelet/lipgloss#174- add BlockBorder, OuterHalfBlockBorder, and InnerHalfBlockBorder border styles by
@VictorBersyin charmbracelet/lipgloss#120Fixed
- RGBA implementations for non-hex color values by
@muesliin charmbracelet/lipgloss#126- unify get border size function names by
@nerg4lin charmbracelet/lipgloss#148
... (truncated)
Commits
c43b22echore: bump termenv to v0.15.17f47f0bfix(renderer): use termenv default renderer19ca9a3docs: renderer documentation (#175)b3440acfeat(go): bump termenv to v0.15c5382b3ref(renderer): change renderer impld09532achore: unify get border size function names4eea195feat(go): upgrade golang to 1.171eab58fdocs: fix the description ofMaxHeighta74950efix: don't concurrently change output profiles776c15fchore(examples): update ssh example- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)