fix(deps): update module github.com/charmbracelet/bubbletea to v1 #844
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v0.24.2→v1.3.10Release Notes
charmbracelet/bubbletea (github.com/charmbracelet/bubbletea)
v1.3.10Compare Source
Changelog
Bug fixes
9edf69c: fix: handle setWindowTitleMsg and windowSizeMsg in eventLoop (@aymanbagabas)Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.
v1.3.9Compare Source
Changelog
New Features
314b50c: feat: properly call nested sequenceMsg and batchMsg (@wolfmagnate)Bug fixes
9e0e8f0: fix: recover from nested panics in Sequence and Batch commands (@aymanbagabas)Other work
6e1282a: add example for the nested Sequence and Batch (@wolfmagnate)0290af4: simplify case for BatchMsg (@wolfmagnate)Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, Discord, Slack, The Fediverse.
v1.3.8Compare Source
Changelog
Bug fixes
21eecd5: fix: send batch commands to cmds channel instead of executing them in event loop (#1473) (@aymanbagabas)Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, Discord, Slack, The Fediverse.
v1.3.7Compare Source
Changelog
Bug fixes
28ab4f4: fix(renderer): properly reset cursor position to start of line (#1472) (@aymanbagabas)c76509a: fix: compact sequences like batches (#958) (@jdhenke)f5da8d0: fix: handle nested SequenceMsg in event loop and use sync.WaitGroup f… (#1463) (@aymanbagabas)80ea844: fix: lint issues in key_windows.go and tty_windows.go (@aymanbagabas)Documentation updates
c3136ed: docs(license): update copyright date range (@meowgorithm)919805f: docs(readme): update footer art (@meowgorithm)f01583b: docs: show the correct branch in the build badge (@aymanbagabas)Other work
a81d6f3: ci: sync dependabot config (#1480) (@charmcli)53609c1: ci: sync golangci-lint config (#1466) (@github-actions[bot])Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, Discord, Slack, The Fediverse.
v1.3.6Compare Source
This version fixes some important issues regarding
tea.Execoutput after resuming from the executed program, and Windows losing input character on successive program execution.Big thanks to @raphaelvigee and @joshallenit for working on these issues, you're the best!
Changelog
Bug fixes
0a63003: fix: Windows: first character input lost on successive programs (#1368) (@joshallenit)78ed49b: fix: maintain exec output (#1276) (@raphaelvigee)Documentation updates
1b0f489: docs(readme): cleanup badges (@meowgorithm)Other work
ca9473b: ci: sync golangci-lint config (#1431) (@github-actions[bot])Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v1.3.5Compare Source
This release fixes an important bug on Windows where function keys (F1..F20) don't get recognized and sent to the program. It also fixes multiple concurrency bugs related to using external context and p.Wait() and p.Kill().
Also, huge thank you to @desertwitch who went in and just crushed a handful of deadlocks.
Happy hacking!
Changelog
Bug fixes
62ca063: fix(key): windows: recognize function keys on Windows (#1405) (@aymanbagabas)0f9cd5b: fix(panics): fix race condition and false nil error return (@desertwitch)a79ab3f: fix(tests): account for multiple p.Wait() (@desertwitch)1b5fc27: fix: prevent deadlock on ctx cancel during msg processing (@desertwitch)aa7a240: fix: release p.Wait() on p.Kill() to prevent external deadlocks (@desertwitch)1923181: fix: report only external ctx cancel as ctx error (@desertwitch)c56f776: fix: resolve race conditions caused by p.Kill() (@desertwitch)Documentation updates
3797acb: docs(readme): fix header image mis-caching (@meowgorithm)8508131: docs(readme): header art adjustments (@meowgorithm)b3150e1: docs(readme): update header art (@meowgorithm)Other work
b224818: ci(lint): fix all lint issues onmain(#1342) (@andreynering)1a0062b: ci: fix lint issues (@andreynering)d0c4b65: ci: fix linting on windows-only files (#1361) (@andreynering)0b18d1f: ci: sync dependabot config (#1403) (@charmcli)0e49efb: ci: sync golangci-lint config (#1354) (@github-actions[bot])a46d16d: ci: sync golangci-lint config (#1379) (@github-actions[bot])5a360c9: ci: sync golangci-lint config (#1394) (@github-actions[bot])Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v1.3.4Compare Source
This release fixes an issue on Windows where the mouse is always enabled even if it wasn't requested. Now, using mouse options such as
tea.WithAllMouseMotion()and commands such astea.EnableMouseAllMotionandtea.DisableMouseturns the mouse on/off as expected.Changelog
New Features
e817654: feat(ci): move from goveralls to codecov (#1332) (@aymanbagabas)Bug fixes
bf1216d: fix: windows: enable mouse mode on demand (#1340) (@aymanbagabas)Other work
00e3ef4: ci: sync dependabot config (#1328) (@charmcli)4a30f3f: ci: sync dependabot config (#1329) (@charmcli)Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v1.3.3Compare Source
This release restore the program options that were deprecated in the previous releases.
Changelog
Full Changelog: charmbracelet/bubbletea@v1.3.2...v1.3.3
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v1.3.2Compare Source
Fix canceling terminal input reads on Windows.
Changelog
Bug fixes
b0186ad: fix: windows: handle cancel io error (@aymanbagabas)Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v1.3.1Compare Source
This release introduces some important bug fixes when it comes to cursor movements while rendering, and properly handle Windows AltGr key on non-English keyboards.
Changelog
Bug fixes
771a101: fix: renderer: use newline instead of cud1 to move cursor down (#1323) (@aymanbagabas)c66daf9: fix: windows: AltGr maps to LEFT_CTRL+RIGHT_ALT (#1162) (@aymanbagabas)Other work
439398b: Remove irrelevant option comments (@nervo)Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v1.3.0Compare Source
Sorry to interrupt: it's time for Bubble Tea v1.3.0!
Bubble Tea now ships with refined interrupt handling, courtesy @caarlos0. Now, you can throw your terminal a ctrl+c or an interrupt signal, Bubble Tea will take it with grace and poise. Switch any ol’ run-of-the-mill
tea.Quitcommand withtea.Interruptfor seamless interruptions.Bug Fixes
2556e01: The last rendered line count now includes those sneaky alt screen lines, thanks to @semihbkgr's keen eye (#1254)c8d6005: Windows users rejoice! @awoodbeck has managed to cancel those unruly threads like an expert party planner usingCancelIoEx(#1305)New Contributors
Special thanks to the following new contributors:
Changelog
New Features
Bug fixes
Documentation updates
Other work
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v1.2.4Compare Source
A few little rendering fixes
This release fixes a couple rendering bugs. Quality rendering in Bubble Tea is paramount!
Changelog
Bug fixes
4ad0792: fix: cursor position adjustment after exiting alt screen (#1241) (@semihbkgr)ede8caa: fix: renderer: keep a separate count of lines rendered in the alt screen (@aymanbagabas)Other work
76b0f81: ci: fix goreleaser config (#1238) (@caarlos0)Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v1.2.3Compare Source
Altscreen-not-altscreen
This release fixes a sneaky longstanding bug in the renderer where mis-paints could happen when toggling in and out of the altscreen if the height of the TUI changed whilst in the altscreen. Special thanks to @applejag for reporting the issue and @semihbkgr for the fix.
Changelog
f8f840c: fix: cursor position adjustment after exiting alt screen (#1241) (@semihbkgr)Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v1.2.2Compare Source
Hi! This release fixes some bugs found the fast new renderer introduced in v1.2.0. Happy rendering!
Fixed
New Contributors
Full Changelog: charmbracelet/bubbletea@v1.2.0...v1.2.2
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v1.2.1Compare Source
v1.2.0Compare Source
It’s performance boost time
Sometimes you have to take matters into your own hands. That’s exactly what @LeperGnome did when he wanted faster rendering. This release features adjustments to the rendering algorithm for faster repaints. We encourage you to upgrade and give it a go!
Changelog
New Contributors
Full Changelog: charmbracelet/bubbletea@v1.1.2...v1.2.0
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v1.1.2Compare Source
This and that
A tiny tiny release that fixes the tests on Windows, and uses the latest
ansipackage definitions.Changelog
Details
New Features
Bug fixes
Documentation updates
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v1.1.1Compare Source
Don't panic!
Panicking is a part of life…and a part of workin’ in Go. This release addresses two edge cases where a
panic()could tank Bubble Tea and break your terminal:Panics outside of Bubble Tea
If a panic occurs outside of Bubble Tea you can use
Program.Killto restore the terminal state before exiting:Panics in Cmds
If a panic occurs in a
CmdBubble Tea will now automatically restore the terminal to its natural state before exiting.Happy panicking (if that makes any sense).
Changelog
Fixed!
0589921: fix: recover from panics within cmds (@aymanbagabas)6e71f52: fix: restore the terminal on kill (@aymanbagabas)Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v1.1.0Compare Source
Let’s focus
Lose focus much? This release contains support for focus-blur window events.
Usage
All you need to do is to add the program option to your application:
Then later in your
Updatefunction, you can listen for focus-blur messages:For details, see WithReportFocus.
Tmux
If you're using
tmux, make sure you enable thefocus-eventsoption in your config.Happy focusing (whatever that means)!
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v1.0.1Compare Source
This release that fixes the way carriage returns are handled with using the WithoutRenderer
ProgramOptionand improves the way it works overall by not altering the terminal the way we normally do when starting aProgram. For details see #1120.c69bd97: fix: we don't initialize the terminal when using a nilRenderer (#1120) (@aymanbagabas)Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v1.0.0Compare Source
At last: v1.0.0
This is an honorary release denoting that Bubble Tea is now stable. Thank you, open source community, for all your love, support, and great taste in beverage over the past four years.
Stay tuned for v2: we have some great things coming.
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v0.27.1Compare Source
This is a lil’ workaround for a hang that can occur when starting a program using Lip Gloss. For details see #1107.
Changelog
Bug fixes
d6458e0: fix: force query the terminal bg before running any programs (@aymanbagabas)Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v0.27.0Compare Source
Suspending, environment hacking, and more
Hi! This release has three nice little features and some bug fixes. Let's take a look:
Suspending and resuming
At last, now you can programmatically suspend and resume programs with the
tea.Suspendcommand and handle resumes with thetea.ResumeMsgmessage:Example
There's also a
tea.SuspendMsgthat flows throughUpdateon suspension.Special thanks to @knz for prototyping the original implementation of this.
Setting the environment
When Bubble Tea is behind Wish you may have needed to pass environment variables from the remote session to the
Program. Now you can with the all new tea.WithEnvironment:Requesting the window dimensions
All the Bubble Tea pros know that you get a
tea.WindowSizeMsgwhen theProgramstarts and when the window resizes. Now you can just query it on demand too with thetea.WindowSizecommand.Changelog
New!
7d70838: feat: add a cmd to request window size (#988) (@aymanbagabas)ea13ffb: feat: allow to suspend bubbletea programs (#1054) (@caarlos0)cae9acd: feat: set the program environment variables (#1063) (@aymanbagabas)Fixed
7c1bfc0: query window-size in a goroutine (#1059) (@aymanbagabas)4497aa9: reset cursor position on renderer exit (#1058) (@aymanbagabas)d6a19f0: wrapErrProgramKillederror (@aymanbagabas)4a9620e: fix bugs in package-manager example (@AkshayKalose)Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v0.26.6Compare Source
Changelog
Bug fixes
60a57ea: fix: nil deref on release terminal (@aymanbagabas)Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v0.26.5Compare Source
Fix special keys input handling on Windows using the latest Windows Console Input driver.
Changelog
New Features
42a7dd8: feat(ci): use goreleaser for releases (#1023) (@aymanbagabas)Bug fixes
a08802e: fix(windows): coninput not handling control sequences (#1041) (@Sculas)Other work
2d65ed6: chore(examples): removed use of deprecated Copy (@arianizadi)Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v0.26.4Compare Source
Fix panics! Using
program.SetWindowTitleand others may panic if they were called before the program starts.Also note that
program.SetWindowTitleis now deprecated. To set the window title usetea.SetWindowTitlecommand.What's Changed
Full Changelog: charmbracelet/bubbletea@v0.26.3...v0.26.4
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.
v0.26.3Compare Source
This is a patch release that prevents
tea.WindowSizeMsgs from being fired during altscreen changes on Windows. This was due to the fact that Windows emits awindow-size-eventon altscreen changes even if the size hand’t changed. Now, we cache the window-size and compare before sending the message to theModel.What's Changed
Full Changelog: charmbracelet/bubbletea@v0.26.2...v0.26.3
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.
v0.26.2Compare Source
This fixes a small regression that was introduced in v0.26.0 related to the first line on the first render not being displayed correctly. Thank you @mistakenelf for pointing this out in #1000!
What's Changed
Full Changelog: charmbracelet/bubbletea@v0.26.1...v0.26.2
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.
v0.26.1Compare Source
This is a quick one to fix a Windows shortcoming in the last release acutely identified by our pal @jon4hz. Thank you!
What's Changed
Full Changelog: charmbracelet/bubbletea@v0.26.0...v0.26.1
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.
v0.26.0Compare Source
Bracketed Paste, Windows Improvements, Mainframes, and more
What do tapioca balls, IBM mainframes, and the Microsoft Windows Console API have in common? Bubble Tea v0.26.0, that’s what. Let’s get to it.
⚡️ Windows Input Improvements
A few years ago @erikgeiser, a penetration tester and ex-particle physicist, wrote this awesome library called coninput to majorly improve Bubble Tea input on Windows. @aymanbagabas has implemented the library in Bubble Tea and input on Windows is roughly 1000 times better now. In the short term, this means that for Windows users inputting non-Latin characters (like Greek, Cyrillic, Korean, Chinese and so on) stuff will “just work.”
The bigger news, however, is that this paves the way for Windows parity with our forthcoming support for super high fidelity input via Kitty Keyboard and Fixterms.
🍳 Hot Windows Resize Events
Terminal emulators on Windows don’t support the
SIGWINCHsignal, which is sent when the terminal is resized. It’s been a huge bummer for a really long time. Thanks (again) to @erikgeiser and @aymanbagabas, we’re now able to reach deep into Windows’ underpinnings, detect window resizes, and sendtea.WindowSizeMsgs accordingly! This is a glorious moment for Bubble Tea on Windows indeed.🫠 Bracketed Paste
While building a query editor for a CockroachDB client, @knz noticed that Bubble Tea didn't support Bracketed Paste. Performance-wise, that sucks because it means pasting large bodies of text (like SQL queries) will normally be seen as a bunch of little successive keypresses. That’s where Bracketed Paste comes in. When enabled at the terminal-level Bracketed Paste lets you slam down a bunch of text with one big, fat input event.
Bubble Tea enables bracketed paste by default, however you can opt out of it with the
WithoutBracketedPaste()program option:You can also enable and disable it on demand with the
EnableBracketedPaste()andDisableBracketedPaste()commands.🌿 Multiline
tea.PrintlnIn case you forgot,
tea.Println(and it’s brothertea.Printf) is aCmdthat lets you print unmanaged output above a Bubble Tea program, similar to what you see with package managers likeapt-get. Thanks to @Adjective-Object (who also implementedtea.Printlnin the first place) now you can send multi-line output, too. For atea.Printlnrefresher see the package manager example.📀 Hello, z/OS
Don’t you think it’s about time we all ran Bubble Tea apps on our mainframes? Thanks to @dustin-ward that dream is now a reality, so long as you have a z/OS mainframe. We're thrilled to announce that Bubble Tea is now fully supported on z/OS.
🌹 Bug fixes
Bugfixes are the unsung heroes that sometimes get buried below the feature listings. This release has them and they’re good ones; see the changelog below for details.
Changelog
New!
tea.Println()messages by @Adjective-Object in #490Changed
Fixed
New Contributors
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 was generated by Mend Renovate. View the repository job log.