Closed renovate[bot] closed 2 months ago
Because you closed this PR without merging, Renovate will ignore this update (v0.10.0
). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps
array of your Renovate config.
If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.
This PR contains the following updates:
v0.6.0
->v0.10.0
Release Notes
charmbracelet/lipgloss (github.com/charmbracelet/lipgloss)
### [`v0.10.0`](https://togithub.com/charmbracelet/lipgloss/releases/tag/v0.10.0) [Compare Source](https://togithub.com/charmbracelet/lipgloss/compare/v0.9.1...v0.10.0) ### String Transformers 🤖 Lip Gloss `v0.10.0` features a brand new `Transform` 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 as `func (string) string` and apply it to any style: ```go // Example: s := NewStyle().Transform(strings.ToUpper) fmt.Println(s.Render("raow!") // "RAOW!" ``` Or, if you prefer: ```go // Example: reverse := func(s string) string { n := 0 rune := make([]rune, len(s)) for _, r := range s { rune[n] = r n++ } rune = rune[0:n] for i := 0; i < n/2; i++ { rune[i], rune[n-1-i] = rune[n-1-i], rune[i] } return string(rune) } s := NewStyle().Transform(reverse) fmt.Println(s.Render("The quick brown 狐 jumped over the lazy 犬") // "犬 yzal eht revo depmuj 狐 nworb kciuq ehT", ``` #### What's Changed? - Corrected border shorthand functions explanation by [@ReidMason](https://togithub.com/ReidMason) in [https://github.com/charmbracelet/lipgloss/pull/237](https://togithub.com/charmbracelet/lipgloss/pull/237) - Align help by [@schmurfy](https://togithub.com/schmurfy) in [https://github.com/charmbracelet/lipgloss/pull/239](https://togithub.com/charmbracelet/lipgloss/pull/239) - `Style.Transform` for altering strings at render time by [@meowgorithm](https://togithub.com/meowgorithm) in [https://github.com/charmbracelet/lipgloss/pull/232](https://togithub.com/charmbracelet/lipgloss/pull/232) - Adding right padding to empty string by [@mikelorant](https://togithub.com/mikelorant) in [https://github.com/charmbracelet/lipgloss/pull/253](https://togithub.com/charmbracelet/lipgloss/pull/253) - Refactor padding functions by [@mikelorant](https://togithub.com/mikelorant) in [https://github.com/charmbracelet/lipgloss/pull/254](https://togithub.com/charmbracelet/lipgloss/pull/254) - Fix truncate of table cells containing ANSI by [@mikelorant](https://togithub.com/mikelorant) in [https://github.com/charmbracelet/lipgloss/pull/256](https://togithub.com/charmbracelet/lipgloss/pull/256) - Improve maximum width of characters in a string by [@mikelorant](https://togithub.com/mikelorant) in [https://github.com/charmbracelet/lipgloss/pull/257](https://togithub.com/charmbracelet/lipgloss/pull/257) #### New Contributors - [@ReidMason](https://togithub.com/ReidMason) made their first contribution in [https://github.com/charmbracelet/lipgloss/pull/237](https://togithub.com/charmbracelet/lipgloss/pull/237) - [@schmurfy](https://togithub.com/schmurfy) made their first contribution in [https://github.com/charmbracelet/lipgloss/pull/239](https://togithub.com/charmbracelet/lipgloss/pull/239) - [@mikelorant](https://togithub.com/mikelorant) made their first contribution in [https://github.com/charmbracelet/lipgloss/pull/253](https://togithub.com/charmbracelet/lipgloss/pull/253) **Full Changelog**: https://github.com/charmbracelet/lipgloss/compare/v0.9.1...v0.10.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.