Commit f6d2480
fix(deps): update charmbracelet in go.mod (#55)
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/charmbracelet/huh](https://togithub.com/charmbracelet/huh)
| `v0.3.0` -> `v0.4.2` |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
|
[github.com/charmbracelet/lipgloss](https://togithub.com/charmbracelet/lipgloss)
| `v0.10.0` -> `v0.11.0` |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
<details>
<summary>charmbracelet/huh (github.com/charmbracelet/huh)</summary>
###
[`v0.4.2`](https://togithub.com/charmbracelet/huh/releases/tag/v0.4.2)
[Compare
Source](https://togithub.com/charmbracelet/huh/compare/v0.4.1...v0.4.2)
### Your favourite files 📁
Huh? `v0.4.0` (`v0.4.2`) introduces the File Picker to forms ✨
Prompt users to select a file in just a few lines of code, you know the
drill :)
```go
var file string
huh.NewFilePicker().
Title("Select a file:").
Description("This will be your profile image.").
AllowedTypes([]string{".png", ".jpeg", ".webp", ".gif"}).
Value(&file)
```
<img width="600"
src="https://vhs.charm.sh/vhs-5DCaCK6WfJGCUuWMjTXLrM.gif" alt="Made with
VHS">
***
#### Field Interface
##### Zoom
File pickers introduce a new `Zoom` method to the `Field` interface.
```go
type Field interface {
// ...
Zoom() bool
// ...
}
```
`Zoom` tells the form whether this field should be the only visible
field.
Notice how the `FilePicker` field zooms in when selecting a file and
zooms out when the file is selected, showing only the selected file.
##### Skip
Notes introduce a new `Skip` method to the `Field` interface.
```go
type Field interface {
// ...
Skip() bool
// ...
}
```
Skip indicates to the form whether or not to skip this field, i.e. don't
let the user interact with it. This is useful for notes to be purely
informational.
#### What else?
- feat: set `height` in `WithHeight` by
[@​ardnew](https://togithub.com/ardnew) in
[https://github.com/charmbracelet/huh/pull/122](https://togithub.com/charmbracelet/huh/pull/122)
- feat: use `EchoMode` for `Input` by
[@​caarlos0](https://togithub.com/caarlos0) in
[https://github.com/charmbracelet/huh/pull/131](https://togithub.com/charmbracelet/huh/pull/131)
- feat: zoom `FilePicker` by
[@​maaslalani](https://togithub.com/maaslalani) in
[https://github.com/charmbracelet/huh/pull/133](https://togithub.com/charmbracelet/huh/pull/133)
- feat: inline `Select` by
[@​maaslalani](https://togithub.com/maaslalani) in
[https://github.com/charmbracelet/huh/pull/136](https://togithub.com/charmbracelet/huh/pull/136)
- feat: <kbd>ctrl+u</kbd>, <kbd>ctrl+d</kbd>, <kbd>g</kbd>, and
<kbd>G</kbd> keybindings on `Select` by
[@​caarlos0](https://togithub.com/caarlos0) in
[https://github.com/charmbracelet/huh/pull/143](https://togithub.com/charmbracelet/huh/pull/143)
- feat: predefined `ValidationFunc`s by
[@​anirudhaCodes](https://togithub.com/anirudhaCodes) in
[https://github.com/charmbracelet/huh/pull/140](https://togithub.com/charmbracelet/huh/pull/140)
- feat: make `PrevField` and `NextField` public by
[@​KevM](https://togithub.com/KevM) in
[https://github.com/charmbracelet/huh/pull/175](https://togithub.com/charmbracelet/huh/pull/175)
- feat: accessible mode when `TERM=dumb` by
[@​maaslalani](https://togithub.com/maaslalani) in
[https://github.com/charmbracelet/huh/pull/188](https://togithub.com/charmbracelet/huh/pull/188)
- feat: `WithOutput` API by
[@​maaslalani](https://togithub.com/maaslalani) in
[https://github.com/charmbracelet/huh/pull/201](https://togithub.com/charmbracelet/huh/pull/201)
- feat: set note next button label by
[@​abtmr](https://togithub.com/abtmr) in
[https://github.com/charmbracelet/huh/pull/225](https://togithub.com/charmbracelet/huh/pull/225)
##### Bug Fixes
- fix: overlapping style issue in render function of `field_note` by
[@​anirudhaCodes](https://togithub.com/anirudhaCodes) in
[https://github.com/charmbracelet/huh/pull/112](https://togithub.com/charmbracelet/huh/pull/112)
- fix: `MultiSelect` limit in Accessible Mode by
[@​anirudhaCodes](https://togithub.com/anirudhaCodes) in
[https://github.com/charmbracelet/huh/pull/125](https://togithub.com/charmbracelet/huh/pull/125)
- fix: CharLimit of `Text` field in Accessible mode by
[@​anirudhaCodes](https://togithub.com/anirudhaCodes) in
[https://github.com/charmbracelet/huh/pull/126](https://togithub.com/charmbracelet/huh/pull/126)
- fix: set themes on fields by
[@​maaslalani](https://togithub.com/maaslalani) in
[https://github.com/charmbracelet/huh/pull/219](https://togithub.com/charmbracelet/huh/pull/219)
- fix: remove temporary file after opening external editor in `Text`
field by [@​auvred](https://togithub.com/auvred) in
[https://github.com/charmbracelet/huh/pull/154](https://togithub.com/charmbracelet/huh/pull/154)
- fix: spinner bubbles up `tea.Program` errors by
[@​clowder](https://togithub.com/clowder) in
[https://github.com/charmbracelet/huh/pull/237](https://togithub.com/charmbracelet/huh/pull/237)
#### New Contributors
A special thanks to everyone who made this release of Huh? possible! 🤗
- [@​theredditbandit](https://togithub.com/theredditbandit) made
their first contribution in
[https://github.com/charmbracelet/huh/pull/102](https://togithub.com/charmbracelet/huh/pull/102)
- [@​anirudhaCodes](https://togithub.com/anirudhaCodes) made their
first contribution in
[https://github.com/charmbracelet/huh/pull/112](https://togithub.com/charmbracelet/huh/pull/112)
- [@​rharshit82](https://togithub.com/rharshit82) made their first
contribution in
[https://github.com/charmbracelet/huh/pull/128](https://togithub.com/charmbracelet/huh/pull/128)
- [@​stefanlogue](https://togithub.com/stefanlogue) made their
first contribution in
[https://github.com/charmbracelet/huh/pull/99](https://togithub.com/charmbracelet/huh/pull/99)
- [@​auvred](https://togithub.com/auvred) made their first
contribution in
[https://github.com/charmbracelet/huh/pull/154](https://togithub.com/charmbracelet/huh/pull/154)
- [@​KevM](https://togithub.com/KevM) made their first
contribution in
[https://github.com/charmbracelet/huh/pull/175](https://togithub.com/charmbracelet/huh/pull/175)
- [@​zimeg](https://togithub.com/zimeg) made their first
contribution in
[https://github.com/charmbracelet/huh/pull/224](https://togithub.com/charmbracelet/huh/pull/224)
- [@​bradyjoslin](https://togithub.com/bradyjoslin) made their
first contribution in
[https://github.com/charmbracelet/huh/pull/241](https://togithub.com/charmbracelet/huh/pull/241)
- [@​joshi4](https://togithub.com/joshi4) made their first
contribution in
[https://github.com/charmbracelet/huh/pull/232](https://togithub.com/charmbracelet/huh/pull/232)
- [@​abtmr](https://togithub.com/abtmr) made their first
contribution in
[https://github.com/charmbracelet/huh/pull/225](https://togithub.com/charmbracelet/huh/pull/225)
- [@​clowder](https://togithub.com/clowder) made their first
contribution in
[https://github.com/charmbracelet/huh/pull/237](https://togithub.com/charmbracelet/huh/pull/237)
**Full Changelog**:
charmbracelet/huh@v0.3.0...v0.4.0
***
<a href="https://charm.sh/"><img alt="The Charm logo"
src="https://stuff.charm.sh/charm-badge.jpg" width="400"></a>
Thoughts? Questions? We love hearing from you. Feel free to reach out on
[Twitter](https://twitter.com/charmcli), [The
Fediverse](https://mastodon.technology/@​charm), or
[Slack](https://charm.sh/slack).
###
[`v0.4.1`](https://togithub.com/charmbracelet/huh/compare/v0.4.0...v0.4.1)
[Compare
Source](https://togithub.com/charmbracelet/huh/compare/v0.4.0...v0.4.1)
###
[`v0.4.0`](https://togithub.com/charmbracelet/huh/compare/v0.3.0...v0.4.0)
[Compare
Source](https://togithub.com/charmbracelet/huh/compare/v0.3.0...v0.4.0)
</details>
<details>
<summary>charmbracelet/lipgloss
(github.com/charmbracelet/lipgloss)</summary>
###
[`v0.11.0`](https://togithub.com/charmbracelet/lipgloss/releases/tag/v0.11.0)
[Compare
Source](https://togithub.com/charmbracelet/lipgloss/compare/v0.10.0...v0.11.0)
### Immutable Styles and Raw Speed, Baby
So! The big news in this release is:
- `Style` methods will now *always* return new styles
- `Style` and ANSI operations under the hood are faster
There 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 for `Copy()`!
```go
// Before
s := lipgloss.NewStyle().Bold(true)
newStyle := s.Copy()
// After
s := lipgloss.NewStyle().Bold(true)
newStyle := s // this is a true copy
```
Okay, but why are styles easier to work with now? Consider this:
```go
// Before
baseStyle := lipgloss.NewStyle().Background(lipgloss.Color("59"))
styleAtRuntime := baseStyle.Copy().Width(m.Width)
// After
baseStyle := lipgloss.NewStyle().Padding(1, 2)
styleAtRuntime := baseStyle.Width(m.Width)
```
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 remove `Style.Copy()` calls. If you need
to *just* copy a style without any changes to it you can simply `b :=
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`](https://togithub.com/charmbracelet/x/tree/main/ansi) library
by our own [@​aymanbagabas](https://togithub.com/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!
- always return copies of styles by
[@​aymanbagabas](https://togithub.com/aymanbagabas) in
[https://github.com/charmbracelet/lipgloss/pull/276](https://togithub.com/charmbracelet/lipgloss/pull/276)
##### Changed
- switch to term/ansi for text manipulation by
[@​aymanbagabas](https://togithub.com/aymanbagabas) in
[https://github.com/charmbracelet/lipgloss/pull/268](https://togithub.com/charmbracelet/lipgloss/pull/268)
- replace stripansi with ansi.Strip in table by
[@​aymanbagabas](https://togithub.com/aymanbagabas) in
[https://github.com/charmbracelet/lipgloss/pull/271](https://togithub.com/charmbracelet/lipgloss/pull/271)
- test for different GOOS & GOARCH by
[@​aymanbagabas](https://togithub.com/aymanbagabas) in
[https://github.com/charmbracelet/lipgloss/pull/292](https://togithub.com/charmbracelet/lipgloss/pull/292)
##### Fixed
- fix combining both conditional and unconditional wrapping by
[@​aymanbagabas](https://togithub.com/aymanbagabas) in
[https://github.com/charmbracelet/lipgloss/pull/275](https://togithub.com/charmbracelet/lipgloss/pull/275)
- fix UnderlineSpaces and StrikethroughSpaces by
[@​Taz03](https://togithub.com/Taz03) in
[https://github.com/charmbracelet/lipgloss/pull/299](https://togithub.com/charmbracelet/lipgloss/pull/299)
- always render horizontal border edges when enabled by
[@​UnseenBook](https://togithub.com/UnseenBook) in
[https://github.com/charmbracelet/lipgloss/pull/211](https://togithub.com/charmbracelet/lipgloss/pull/211)
- fix possible nil panic by
[@​maaslalani](https://togithub.com/maaslalani) in
[https://github.com/charmbracelet/lipgloss/pull/245](https://togithub.com/charmbracelet/lipgloss/pull/245)
- fix transform operating on ANSI sequences by
[@​meowgorithm](https://togithub.com/meowgorithm) in
[https://github.com/charmbracelet/lipgloss/pull/274](https://togithub.com/charmbracelet/lipgloss/pull/274)
- change propkeys from int to int64 by
[@​hugoleodev](https://togithub.com/hugoleodev) in
[https://github.com/charmbracelet/lipgloss/pull/291](https://togithub.com/charmbracelet/lipgloss/pull/291)
#### New Contributors
- [@​benwaffle](https://togithub.com/benwaffle) made their first
contribution in
[https://github.com/charmbracelet/lipgloss/pull/247](https://togithub.com/charmbracelet/lipgloss/pull/247)
- [@​UnseenBook](https://togithub.com/UnseenBook) made their first
contribution in
[https://github.com/charmbracelet/lipgloss/pull/211](https://togithub.com/charmbracelet/lipgloss/pull/211)
- [@​hugoleodev](https://togithub.com/hugoleodev) made their first
contribution in
[https://github.com/charmbracelet/lipgloss/pull/291](https://togithub.com/charmbracelet/lipgloss/pull/291)
- [@​Taz03](https://togithub.com/Taz03) made their first
contribution in
[https://github.com/charmbracelet/lipgloss/pull/299](https://togithub.com/charmbracelet/lipgloss/pull/299)
**Full Changelog**:
charmbracelet/lipgloss@v0.10.0...v0.11.0
***
<a href="https://charm.sh/"><img alt="The Charm logo"
src="https://stuff.charm.sh/charm-badge.jpg" width="400"></a>
Thoughts? Questions? We love hearing from you. Feel free to reach out on
[Twitter](https://twitter.com/charmcli), [The
Fediverse](https://mastodon.technology/@​charm), or
[Discord](https://charm.sh/discord).
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "* */8 * * *" (UTC), Automerge - At
any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/jippi/dottie).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zODguMSIsInVwZGF0ZWRJblZlciI6IjM3LjM4OC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Christian Winther <[email protected]>1 parent c07d0b8 commit f6d2480
3 files changed
+56
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
| |||
79 | 85 | | |
80 | 86 | | |
81 | 87 | | |
82 | | - | |
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
89 | 94 | | |
| 95 | + | |
90 | 96 | | |
91 | | - | |
| 97 | + | |
92 | 98 | | |
93 | 99 | | |
94 | 100 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
99 | 105 | | |
100 | 106 | | |
101 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
215 | 227 | | |
216 | 228 | | |
217 | 229 | | |
| |||
226 | 238 | | |
227 | 239 | | |
228 | 240 | | |
229 | | - | |
230 | | - | |
231 | 241 | | |
232 | 242 | | |
233 | 243 | | |
234 | 244 | | |
235 | 245 | | |
236 | 246 | | |
| 247 | + | |
| 248 | + | |
237 | 249 | | |
238 | 250 | | |
239 | 251 | | |
| |||
244 | 256 | | |
245 | 257 | | |
246 | 258 | | |
| 259 | + | |
| 260 | + | |
247 | 261 | | |
248 | 262 | | |
249 | 263 | | |
| |||
420 | 434 | | |
421 | 435 | | |
422 | 436 | | |
423 | | - | |
424 | 437 | | |
425 | 438 | | |
426 | 439 | | |
| |||
431 | 444 | | |
432 | 445 | | |
433 | 446 | | |
434 | | - | |
435 | | - | |
436 | 447 | | |
437 | 448 | | |
438 | 449 | | |
| |||
446 | 457 | | |
447 | 458 | | |
448 | 459 | | |
449 | | - | |
450 | 460 | | |
451 | 461 | | |
452 | 462 | | |
| |||
495 | 505 | | |
496 | 506 | | |
497 | 507 | | |
| 508 | + | |
| 509 | + | |
498 | 510 | | |
499 | 511 | | |
500 | 512 | | |
| |||
520 | 532 | | |
521 | 533 | | |
522 | 534 | | |
523 | | - | |
524 | | - | |
| 535 | + | |
| 536 | + | |
525 | 537 | | |
526 | 538 | | |
527 | 539 | | |
| |||
651 | 663 | | |
652 | 664 | | |
653 | 665 | | |
654 | | - | |
655 | | - | |
| 666 | + | |
| 667 | + | |
656 | 668 | | |
657 | 669 | | |
658 | 670 | | |
| |||
697 | 709 | | |
698 | 710 | | |
699 | 711 | | |
| 712 | + | |
700 | 713 | | |
701 | 714 | | |
702 | 715 | | |
| |||
717 | 730 | | |
718 | 731 | | |
719 | 732 | | |
720 | | - | |
721 | | - | |
| 733 | + | |
| 734 | + | |
722 | 735 | | |
723 | 736 | | |
724 | 737 | | |
725 | | - | |
726 | | - | |
| 738 | + | |
| 739 | + | |
727 | 740 | | |
728 | 741 | | |
729 | 742 | | |
| |||
735 | 748 | | |
736 | 749 | | |
737 | 750 | | |
738 | | - | |
739 | | - | |
| 751 | + | |
| 752 | + | |
740 | 753 | | |
741 | 754 | | |
742 | 755 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| |||
0 commit comments