Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update module github.com/charmbracelet/bubbletea to v0.24.2 #73

Closed
wants to merge 1 commit into from

Conversation

ctison
Copy link
Owner

@ctison ctison commented Nov 10, 2022

This PR contains the following updates:

Package Type Update Change
github.com/charmbracelet/bubbletea require minor v0.22.1 -> v0.24.2

Warning

Some dependencies could not be looked up. Check the warning logs for more information.


Release Notes

charmbracelet/bubbletea (github.com/charmbracelet/bubbletea)

v0.24.2

Compare Source

This point release fixes a race condition that could occur when stopping the default renderer:

Full Changelog: charmbracelet/bubbletea@v0.24.1...v0.24.2


The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.

v0.24.1

Compare Source

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.

Full Changelog: charmbracelet/bubbletea@v0.24.0...v0.24.1


The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.

v0.24.0

Compare Source

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

New Contributors

Full Changelog: charmbracelet/bubbletea@v0.23.2...v0.24.0


The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.

v0.23.2

Compare Source

Hello Bugfixes

This is a small maintenance release with two small but acute fixes from our wonderful community. Thanks for the support! 💘

Fixed


The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.

v0.23.1

Compare Source

This bugfix release addresses an issue that was introduced by v0.23.0 and prevented programs from re-using stdin after a tea.Program had finished execution.


Changelog

Fixed!

The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.

v0.23.0

Compare Source

If you are closely following Bubble Tea's development, you may have already noticed that we have been really busy fixing a lot of issues and merged more than just a couple of feature requests in recent weeks. This v0.23.0 release is in fact our biggest update since the initial release of the package: in the last 3 months over 100 commits have reached us by more than 30 individual contributors! Thank you everyone! 💕

Here's a quick overview of what has changed:

Custom Outputs

Don't want to render your beautiful TUI to stdout? A buffer or an alternative file descriptor like stderr seems more
appropriate? We got you covered now:

Render to stderr

p := tea.NewProgram(model, tea.WithOutput(os.Stderr))

Render to a Buffer

var buf bytes.Buffer
p := tea.NewProgram(model, tea.WithOutput(&buf))

Run Like the Wind

We've introduced the aptly named method Program.Run which replaces and deprecates the existing Program.Start and
Program.StartReturningModel methods. This unifies and clarifies the blocking behavior of the Bubble Tea program execution.

The old methods will continue to work for now, but please update your programs accordingly:

p := tea.NewProgram(model, tea.WithOutput(os.Stderr))
model, err := p.Run() // instead of p.Start or p.StartReturningModel
...

Bug Fix Galore!

The initialization and tear-down methods of tea.Program have been revised and some long-standing problems have been resolved. We couldn't list every single fix in the release notes, so please check out the full changelog below!

🤗 Thanks

We would like to particularly thank @​knz who is the sole author of more than a dozen PRs since the last release. Outstanding work!


Changelog

New
  • Render to custom outputs, io.Writers and buffers (tea.WithOutput)
  • Support for new keys: Ctrl(+Alt) - Page, Home, End, and Insert keys
  • Signal handler is optional with program option tea.WithoutSignalHandler
  • tea.ClearScreen, tea.ShowCursor commands
  • Exported BatchMsg
Fixed!
  • Race conditions in console renderer
  • Issues restoring terminal state on shutdown
  • Kill not resulting in an error returned by Program.Run
  • Repaint behavior
  • Skip over unrecognized CSI sequences
  • Function keys on urxvt
  • Function keys on Linux console
  • Rendering issues with overflowing output buffers
  • Ensure final render on clean shutdown
  • Cursor visibility on altscreen state switch
  • Deadlock in Program.Send on shutdown
Deprecated
  • Program.Start, Program.StartReturningModel: please use Program.Run

The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@ctison ctison self-assigned this Nov 10, 2022
@ctison ctison changed the title chore(deps): update module github.com/charmbracelet/bubbletea to v0.23.0 chore(deps): update module github.com/charmbracelet/bubbletea to v0.23.1 Nov 16, 2022
@ctison ctison force-pushed the renovate/github.com-charmbracelet-bubbletea-0.x branch from 276bd53 to da14ec2 Compare November 16, 2022 06:09
@ctison ctison force-pushed the renovate/github.com-charmbracelet-bubbletea-0.x branch from da14ec2 to b9e96b8 Compare January 21, 2023 06:08
@ctison ctison changed the title chore(deps): update module github.com/charmbracelet/bubbletea to v0.23.1 chore(deps): update module github.com/charmbracelet/bubbletea to v0.23.2 Feb 9, 2023
@ctison ctison force-pushed the renovate/github.com-charmbracelet-bubbletea-0.x branch 2 times, most recently from 25c536d to 8b6fb61 Compare February 15, 2023 06:10
@ctison ctison force-pushed the renovate/github.com-charmbracelet-bubbletea-0.x branch from 8b6fb61 to 55b901d Compare March 11, 2023 06:08
@ctison ctison force-pushed the renovate/github.com-charmbracelet-bubbletea-0.x branch from 55b901d to d7a6c89 Compare April 7, 2023 06:01
@ctison ctison force-pushed the renovate/github.com-charmbracelet-bubbletea-0.x branch 2 times, most recently from 08ee1bd to 8651c38 Compare April 25, 2023 06:03
@ctison ctison changed the title chore(deps): update module github.com/charmbracelet/bubbletea to v0.23.2 chore(deps): update module github.com/charmbracelet/bubbletea to v0.24.0 May 9, 2023
@ctison ctison force-pushed the renovate/github.com-charmbracelet-bubbletea-0.x branch from 8651c38 to e1c0490 Compare May 9, 2023 06:01
@ctison ctison force-pushed the renovate/github.com-charmbracelet-bubbletea-0.x branch from e1c0490 to a0c81bb Compare May 25, 2023 06:01
@ctison ctison changed the title chore(deps): update module github.com/charmbracelet/bubbletea to v0.24.0 chore(deps): update module github.com/charmbracelet/bubbletea to v0.24.1 May 25, 2023
@ctison ctison changed the title chore(deps): update module github.com/charmbracelet/bubbletea to v0.24.1 chore(deps): update module github.com/charmbracelet/bubbletea to v0.24.2 Jun 7, 2023
@ctison ctison force-pushed the renovate/github.com-charmbracelet-bubbletea-0.x branch 3 times, most recently from 203d893 to ffb1bb7 Compare June 9, 2023 06:02
@ctison ctison force-pushed the renovate/github.com-charmbracelet-bubbletea-0.x branch from ffb1bb7 to 8cf4ba5 Compare June 14, 2023 06:02
@ctison ctison force-pushed the renovate/github.com-charmbracelet-bubbletea-0.x branch from 8cf4ba5 to 4cfa8b6 Compare August 18, 2023 06:03
@ctison ctison force-pushed the renovate/github.com-charmbracelet-bubbletea-0.x branch from 4cfa8b6 to 9f73295 Compare October 13, 2023 06:02
@ctison ctison closed this Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants