fix(deps): update module github.com/charmbracelet/bubbletea to v0.24.2 - autoclosed
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
github.com/charmbracelet/bubbletea | require | minor |
v0.23.2 -> v0.24.2
|
Release Notes
charmbracelet/bubbletea
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 in https://github.com/charmbracelet/bubbletea/pull/757
Full Changelog: https://github.com/charmbracelet/bubbletea/compare/v0.24.1...v0.24.2
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.
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 for…piping up about the regression.
- fix: auto-open a TTY when stdin is not a TTY (regression) by @meowgorithm in https://github.com/charmbracelet/bubbletea/pull/746
Full Changelog: https://github.com/charmbracelet/bubbletea/compare/v0.24.0...v0.24.1
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.
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
is now exported and you can use tea.WithFilter
to filter which messages your model will receive:
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
package, which contains the 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()
, WithoutSignals
.
You can see an example usage in the simple
example.
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 in https://github.com/charmbracelet/bubbletea/pull/692
- feat: add generic event filter by @muesli in https://github.com/charmbracelet/bubbletea/pull/536
- feat(deps): bump golang.org/x/text from 0.3.7 to 0.3.8 by @dependabot in https://github.com/charmbracelet/bubbletea/pull/674
- feat(ci): auto go mod tidy examples by @caarlos0 in https://github.com/charmbracelet/bubbletea/pull/561
- feat: tea.Wait by @caarlos0 in https://github.com/charmbracelet/bubbletea/pull/722
- feat: allow to disable signals by @caarlos0 in https://github.com/charmbracelet/bubbletea/pull/721
- fix: Check if program cancelReader is is nil before invoking by @nderjung in https://github.com/charmbracelet/bubbletea/pull/643
- fix: renderer only stops once by @muesli in https://github.com/charmbracelet/bubbletea/pull/685
- fix: stop renderer before launching a child process. by @muesli in https://github.com/charmbracelet/bubbletea/pull/686
- fix(output): reuse termenv output by @aymanbagabas in https://github.com/charmbracelet/bubbletea/pull/715
- chore: make input options mutually exclusive by @meowgorithm in https://github.com/charmbracelet/bubbletea/pull/734
- chore: bump console dep by @muesli in https://github.com/charmbracelet/bubbletea/pull/700
- chore(deps): bump actions/setup-go from 3 to 4 by @dependabot in https://github.com/charmbracelet/bubbletea/pull/701
- chore: bump termenv, lipgloss, x/term by @muesli in https://github.com/charmbracelet/bubbletea/pull/711
- docs: using the x/exp/teatest package by @caarlos0 in https://github.com/charmbracelet/bubbletea/pull/352
- docs: fix portal markdown URL syntax by @mjmammoth in https://github.com/charmbracelet/bubbletea/pull/669
- docs: fix typos and clean up comments by @gzipChrist in https://github.com/charmbracelet/bubbletea/pull/672
- docs: countdown to Bubble Tea in the Wild by @aldernero in https://github.com/charmbracelet/bubbletea/pull/679
- docs: issue template by @caarlos0 in https://github.com/charmbracelet/bubbletea/pull/389
- docs: update issue templates by @bashbunni in https://github.com/charmbracelet/bubbletea/pull/712
- docs: remove british spelling by @bashbunni in https://github.com/charmbracelet/bubbletea/pull/719
- docs: add WG Commander to README.md by @AndrianBdn in https://github.com/charmbracelet/bubbletea/pull/667
- docs: filepicker Example by @maaslalani in https://github.com/charmbracelet/bubbletea/pull/683
- docs(README): add eks-node-viewer to "Bubble Tea in the Wild" list by @Nezz7 in https://github.com/charmbracelet/bubbletea/pull/619
New Contributors
- @mjmammoth made their first contribution in https://github.com/charmbracelet/bubbletea/pull/669
- @gzipChrist made their first contribution in https://github.com/charmbracelet/bubbletea/pull/672
- @Nezz7 made their first contribution in https://github.com/charmbracelet/bubbletea/pull/619
- @AndrianBdn made their first contribution in https://github.com/charmbracelet/bubbletea/pull/667
- @aldernero made their first contribution in https://github.com/charmbracelet/bubbletea/pull/679
Full Changelog: https://github.com/charmbracelet/bubbletea/compare/v0.23.2...v0.24.0
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.