mergestat / mergestat-lite

Query git repositories with SQL. Generate reports, perform status checks, analyze codebases. 🔍 📊
https://mergestat.com/
MIT License
3.45k stars 103 forks source link

fix(deps): update module github.com/charmbracelet/bubbletea to v0.25.0 - autoclosed #388

Closed renovate[bot] closed 6 months ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/charmbracelet/bubbletea v0.23.2 -> v0.25.0 age adoption passing confidence

Release Notes

charmbracelet/bubbletea (github.com/charmbracelet/bubbletea) ### [`v0.25.0`](https://togithub.com/charmbracelet/bubbletea/releases/tag/v0.25.0) [Compare Source](https://togithub.com/charmbracelet/bubbletea/compare/v0.24.2...v0.25.0) ### Major mouse improvements, better input parsing, and lots more! We hope you’re ready for winter. Unless you’re in the southern hemisphere (like [@​caarlos0](https://togithub.com/caarlos0)) in which case, we hope you’re ready for summer. In either case, we hope you have a happy new year if the Julian calendar is something you’re into. There are a bunch of good features in this release and a ton of input-related improvements. Read on for more! #### Extended Mouse Mode Bubble Tea now supports Extended Mouse Mode (aka SGR mode) which makes now mouse support in Bubble Tea *way*, *way* better. Prior to this release Bubble Tea used the X10 mouse protocol. X10 was last released in 1986: a time when screen resolutions were smaller, memory limits were low, and a terminal sizes were tiny. For terminals and mice this meant that the mouse tracking stopped after the 127th horizontal cell. Well, thanks to the elite abilities of [@​aymanbagabas](https://togithub.com/aymanbagabas) Bubble Tea can now track mouse movements across the entire terminal window, no matter how enormous. And that's not all: Bubble Tea now has higher fidelity access to mouse operations such as shift, ctrl, and alt modifiers, mouse button release events, and a big range of mouse button and mouse wheel events. For details see the docs for the new and improved [`MouseEvent`](https://pkg.go.dev/github.com/charmbracelet/bubbletea@v0.25.0#MouseEvent). #### Setting the Window Title [@​aymanbagabas](https://togithub.com/aymanbagabas) also wanted to be able to set the terminal window title with Bubble Tea, so he added the [`SetWindowTitle`](https://pkg.go.dev/github.com/charmbracelet/bubbletea@v0.25.0#SetWindowTitle) `Cmd`. Now setting the window title is as simple as: ```go func (m Model) Update(msg tea.Msg) (tea.Model. tea.Cmd) { return m, tea.SetWindowTitle("oh my") } ``` #### FPS Control Have you ever thought “Bubble Tea is too fast and I just can’t handle it?” Or perhaps 60fps is too slow and you want to go full 120fps. Now, thanks to [@​tomfeigin](https://togithub.com/tomfeigin)’s [`WithFPS`](https://pkg.go.dev/github.com/charmbracelet/bubbletea@v0.25.0#WithFPS) `ProgramOption` you can: ```go // Let’s go with the classic soap opera frame rate p := tea.NewProgram(model, tea.WithMaxFPS(45)) ``` #### Better Input, Better Living [@​knz](https://togithub.com/knz) is just incredible. He took a look at Bubble Tea’s input parser and whipped it into shape with what felt like a flick of the wrist. Keyboard input is now more efficient than ever and very large amounts of input can be parsed with the greatest of ease. It's hard to overstate how impactful his contributions are—and there are more in the pipe. ### Changelog #### New! - Extended Coordinates mouse reporting and additional button support by [@​aymanbagabas](https://togithub.com/aymanbagabas) in [https://github.com/charmbracelet/bubbletea/pull/594](https://togithub.com/charmbracelet/bubbletea/pull/594) - Option to set max FPS by [@​tomfeigin](https://togithub.com/tomfeigin) in [https://github.com/charmbracelet/bubbletea/pull/578](https://togithub.com/charmbracelet/bubbletea/pull/578) - `SetWindowTitle` command by [@​aymanbagabas](https://togithub.com/aymanbagabas) in [https://github.com/charmbracelet/bubbletea/pull/611](https://togithub.com/charmbracelet/bubbletea/pull/611) #### Fixed - Invert the key parsing control loop by [@​knz](https://togithub.com/knz) in [https://github.com/charmbracelet/bubbletea/pull/569](https://togithub.com/charmbracelet/bubbletea/pull/569) - Simplify the key input analysis code by [@​knz](https://togithub.com/knz) in [https://github.com/charmbracelet/bubbletea/pull/568](https://togithub.com/charmbracelet/bubbletea/pull/568) - Support very long buffered input in key parsing by [@​knz](https://togithub.com/knz) in [https://github.com/charmbracelet/bubbletea/pull/570](https://togithub.com/charmbracelet/bubbletea/pull/570) - Make `ReleaseTerminal`/`RestoreTerminal` thread safe by [@​caarlos0](https://togithub.com/caarlos0) in [https://github.com/charmbracelet/bubbletea/pull/791](https://togithub.com/charmbracelet/bubbletea/pull/791) **Full Changelog**: https://github.com/charmbracelet/bubbletea/compare/v0.24.2...v0.25.0 #### New Contributors - [@​tomfeigin](https://togithub.com/tomfeigin) made their first contribution in [https://github.com/charmbracelet/bubbletea/pull/578](https://togithub.com/charmbracelet/bubbletea/pull/578) - [@​bloznelis](https://togithub.com/bloznelis) made their first contribution in [https://github.com/charmbracelet/bubbletea/pull/763](https://togithub.com/charmbracelet/bubbletea/pull/763) - [@​grafviktor](https://togithub.com/grafviktor) made their first contribution in [https://github.com/charmbracelet/bubbletea/pull/770](https://togithub.com/charmbracelet/bubbletea/pull/770) - [@​naglis](https://togithub.com/naglis) made their first contribution in [https://github.com/charmbracelet/bubbletea/pull/787](https://togithub.com/charmbracelet/bubbletea/pull/787) - [@​grrlopes](https://togithub.com/grrlopes) made their first contribution in [https://github.com/charmbracelet/bubbletea/pull/804](https://togithub.com/charmbracelet/bubbletea/pull/804) - [@​Juneezee](https://togithub.com/Juneezee) made their first contribution in [https://github.com/charmbracelet/bubbletea/pull/812](https://togithub.com/charmbracelet/bubbletea/pull/812) - [@​ddworken](https://togithub.com/ddworken) made their first contribution in [https://github.com/charmbracelet/bubbletea/pull/828](https://togithub.com/charmbracelet/bubbletea/pull/828) - [@​wI2L](https://togithub.com/wI2L) made their first contribution in [https://github.com/charmbracelet/bubbletea/pull/829](https://togithub.com/charmbracelet/bubbletea/pull/829) - [@​guyfedwards](https://togithub.com/guyfedwards) made their first contribution in [https://github.com/charmbracelet/bubbletea/pull/865](https://togithub.com/charmbracelet/bubbletea/pull/865) *** The Charm logo Thoughts? Questions? We love hearing from you. Feel free to reach out on [Twitter](https://twitter.com/charmcli), [The Fediverse](https://mastodon.social/@​charmcli), or [Discord](https://charm.sh/chat). ### [`v0.24.2`](https://togithub.com/charmbracelet/bubbletea/releases/tag/v0.24.2) [Compare Source](https://togithub.com/charmbracelet/bubbletea/compare/v0.24.1...v0.24.2) This point release fixes a race condition that could occur when stopping the default renderer: - fix: stop renderer before acquiring mutex by [@​muesli](https://togithub.com/muesli) in [https://github.com/charmbracelet/bubbletea/pull/757](https://togithub.com/charmbracelet/bubbletea/pull/757) **Full Changelog**: https://github.com/charmbracelet/bubbletea/compare/v0.24.1...v0.24.2 *** The Charm logo Thoughts? Questions? We love hearing from you. Feel free to reach out on [Twitter](https://twitter.com/charmcli), [The Fediverse](https://mastodon.social/@​charmcli), or [Discord](https://charm.sh/chat). ### [`v0.24.1`](https://togithub.com/charmbracelet/bubbletea/releases/tag/v0.24.1) [Compare Source](https://togithub.com/charmbracelet/bubbletea/compare/v0.24.0...v0.24.1) ### You can pipe again This point release fixes a regression introduced in `v0.24.0` in which keyboard and mouse input would be lost when piping and redirecting into a program with default inputs. Special thanks to [@​pomdtr](https://togithub.com/pomdtr) for…piping up about the regression. - fix: auto-open a TTY when stdin is not a TTY (regression) by [@​meowgorithm](https://togithub.com/meowgorithm) in [https://github.com/charmbracelet/bubbletea/pull/746](https://togithub.com/charmbracelet/bubbletea/pull/746) **Full Changelog**: https://github.com/charmbracelet/bubbletea/compare/v0.24.0...v0.24.1 *** The Charm logo Thoughts? Questions? We love hearing from you. Feel free to reach out on [Twitter](https://twitter.com/charmcli), [The Fediverse](https://mastodon.social/@​charmcli), or [Discord](https://charm.sh/chat). ### [`v0.24.0`](https://togithub.com/charmbracelet/bubbletea/releases/tag/v0.24.0) [Compare Source](https://togithub.com/charmbracelet/bubbletea/compare/v0.23.2...v0.24.0) It is finally time for another Bubble Tea release! This release contains 31 commits by 14 contributors. Thank you everyone! 💕 Without further ado, here's a list of the most important changes: #### Message handling and filtering The [`tea.QuitMsg`](https://pkg.go.dev/github.com/charmbracelet/bubbletea@v0.24.0#QuitMsg) is now exported and you can use [`tea.WithFilter`](https://pkg.go.dev/github.com/charmbracelet/bubbletea@v0.24.0#WithFilter) to filter which messages your model will receive: ```golang func filter(m tea.Model, msg tea.Msg) tea.Msg { if _, ok := msg.(tea.QuitMsg); !ok { return msg } model := m.(myModel) if model.hasChanges { return nil } return msg } p := tea.NewProgram(Model{}, tea.WithFilter(filter)); if _,err := p.Run(); err != nil { fmt.Println("Error running program:", err) os.Exit(1) } ``` #### Testing We are introducing an our very own [`/x`](https://togithub.com/charmbracelet/x) package, which contains the [`teatest`](https://togithub.com/charmbracelet/x/tree/main/exp/teatest) package. With `teatest`, you can easily run a `tea.Program`, assert its final model and/or output. This package required a couple of new methods on Bubble Tea, namely [`Program.Wait()`](https://pkg.go.dev/github.com/charmbracelet/bubbletea@v0.24.0#Wait), [`WithoutSignals`](https://pkg.go.dev/github.com/charmbracelet/bubbletea@v0.24.0#WithoutSignals). You can see an example usage [in the `simple` example](https://togithub.com/charmbracelet/bubbletea/tree/master/examples/simple). #### Bug fixing We try hard to not let any of them pass, but we know, sometimes a few of them do. This release also gets rid of a bunch of them. #### What's Changed - feat: LogToFileWith by [@​caarlos0](https://togithub.com/caarlos0) in [https://github.com/charmbracelet/bubbletea/pull/692](https://togithub.com/charmbracelet/bubbletea/pull/692) - feat: add generic event filter by [@​muesli](https://togithub.com/muesli) in [https://github.com/charmbracelet/bubbletea/pull/536](https://togithub.com/charmbracelet/bubbletea/pull/536) - feat(deps): bump golang.org/x/text from 0.3.7 to 0.3.8 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/charmbracelet/bubbletea/pull/674](https://togithub.com/charmbracelet/bubbletea/pull/674) - feat(ci): auto go mod tidy examples by [@​caarlos0](https://togithub.com/caarlos0) in [https://github.com/charmbracelet/bubbletea/pull/561](https://togithub.com/charmbracelet/bubbletea/pull/561) - feat: tea.Wait by [@​caarlos0](https://togithub.com/caarlos0) in [https://github.com/charmbracelet/bubbletea/pull/722](https://togithub.com/charmbracelet/bubbletea/pull/722) - feat: allow to disable signals by [@​caarlos0](https://togithub.com/caarlos0) in [https://github.com/charmbracelet/bubbletea/pull/721](https://togithub.com/charmbracelet/bubbletea/pull/721) - fix: Check if program cancelReader is is nil before invoking by [@​nderjung](https://togithub.com/nderjung) in [https://github.com/charmbracelet/bubbletea/pull/643](https://togithub.com/charmbracelet/bubbletea/pull/643) - fix: renderer only stops once by [@​muesli](https://togithub.com/muesli) in [https://github.com/charmbracelet/bubbletea/pull/685](https://togithub.com/charmbracelet/bubbletea/pull/685) - fix: stop renderer before launching a child process. by [@​muesli](https://togithub.com/muesli) in [https://github.com/charmbracelet/bubbletea/pull/686](https://togithub.com/charmbracelet/bubbletea/pull/686) - fix(output): reuse termenv output by [@​aymanbagabas](https://togithub.com/aymanbagabas) in [https://github.com/charmbracelet/bubbletea/pull/715](https://togithub.com/charmbracelet/bubbletea/pull/715) - chore: make input options mutually exclusive by [@​meowgorithm](https://togithub.com/meowgorithm) in [https://github.com/charmbracelet/bubbletea/pull/734](https://togithub.com/charmbracelet/bubbletea/pull/734) - chore: bump console dep by [@​muesli](https://togithub.com/muesli) in [https://github.com/charmbracelet/bubbletea/pull/700](https://togithub.com/charmbracelet/bubbletea/pull/700) - chore(deps): bump actions/setup-go from 3 to 4 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/charmbracelet/bubbletea/pull/701](https://togithub.com/charmbracelet/bubbletea/pull/701) - chore: bump termenv, lipgloss, x/term by [@​muesli](https://togithub.com/muesli) in [https://github.com/charmbracelet/bubbletea/pull/711](https://togithub.com/charmbracelet/bubbletea/pull/711) - docs: using the x/exp/teatest package by [@​caarlos0](https://togithub.com/caarlos0) in [https://github.com/charmbracelet/bubbletea/pull/352](https://togithub.com/charmbracelet/bubbletea/pull/352) - docs: fix portal markdown URL syntax by [@​mjmammoth](https://togithub.com/mjmammoth) in [https://github.com/charmbracelet/bubbletea/pull/669](https://togithub.com/charmbracelet/bubbletea/pull/669) - docs: fix typos and clean up comments by [@​gzipChrist](https://togithub.com/gzipChrist) in [https://github.com/charmbracelet/bubbletea/pull/672](https://togithub.com/charmbracelet/bubbletea/pull/672) - docs: countdown to Bubble Tea in the Wild by [@​aldernero](https://togithub.com/aldernero) in [https://github.com/charmbracelet/bubbletea/pull/679](https://togithub.com/charmbracelet/bubbletea/pull/679) - docs: issue template by [@​caarlos0](https://togithub.com/caarlos0) in [https://github.com/charmbracelet/bubbletea/pull/389](https://togithub.com/charmbracelet/bubbletea/pull/389) - docs: update issue templates by [@​bashbunni](https://togithub.com/bashbunni) in [https://github.com/charmbracelet/bubbletea/pull/712](https://togithub.com/charmbracelet/bubbletea/pull/712) - docs: remove british spelling by [@​bashbunni](https://togithub.com/bashbunni) in [https://github.com/charmbracelet/bubbletea/pull/719](https://togithub.com/charmbracelet/bubbletea/pull/719) - docs: add WG Commander to README.md by [@​AndrianBdn](https://togithub.com/AndrianBdn) in [https://github.com/charmbracelet/bubbletea/pull/667](https://togithub.com/charmbracelet/bubbletea/pull/667) - docs: filepicker Example by [@​maaslalani](https://togithub.com/maaslalani) in [https://github.com/charmbracelet/bubbletea/pull/683](https://togithub.com/charmbracelet/bubbletea/pull/683) - docs(README): add eks-node-viewer to "Bubble Tea in the Wild" list by [@​Nezz7](https://togithub.com/Nezz7) in [https://github.com/charmbracelet/bubbletea/pull/619](https://togithub.com/charmbracelet/bubbletea/pull/619) #### New Contributors - [@​mjmammoth](https://togithub.com/mjmammoth) made their first contribution in [https://github.com/charmbracelet/bubbletea/pull/669](https://togithub.com/charmbracelet/bubbletea/pull/669) - [@​gzipChrist](https://togithub.com/gzipChrist) made their first contribution in [https://github.com/charmbracelet/bubbletea/pull/672](https://togithub.com/charmbracelet/bubbletea/pull/672) - [@​Nezz7](https://togithub.com/Nezz7) made their first contribution in [https://github.com/charmbracelet/bubbletea/pull/619](https://togithub.com/charmbracelet/bubbletea/pull/619) - [@​AndrianBdn](https://togithub.com/AndrianBdn) made their first contribution in [https://github.com/charmbracelet/bubbletea/pull/667](https://togithub.com/charmbracelet/bubbletea/pull/667) - [@​aldernero](https://togithub.com/aldernero) made their first contribution in [https://github.com/charmbracelet/bubbletea/pull/679](https://togithub.com/charmbracelet/bubbletea/pull/679) **Full Changelog**: https://github.com/charmbracelet/bubbletea/compare/v0.23.2...v0.24.0 *** The Charm logo Thoughts? Questions? We love hearing from you. Feel free to reach out on [Twitter](https://twitter.com/charmcli), [The Fediverse](https://mastodon.social/@​charmcli), or [Discord](https://charm.sh/chat).

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.

codecov[bot] commented 1 year ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 70.92%. Comparing base (1bfdf5d) to head (fc5193a). Report is 13 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #388 +/- ## ======================================= Coverage 70.92% 70.92% ======================================= Files 57 57 Lines 4461 4461 ======================================= Hits 3164 3164 Misses 928 928 Partials 369 369 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.