Skip to content

build(deps): Bump github.com/charmbracelet/bubbletea from 0.12.5 to 0.19.0#35

Closed
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/go_modules/github.com/charmbracelet/bubbletea-0.19.0
Closed

build(deps): Bump github.com/charmbracelet/bubbletea from 0.12.5 to 0.19.0#35
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/go_modules/github.com/charmbracelet/bubbletea-0.19.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Nov 1, 2021

Bumps github.com/charmbracelet/bubbletea from 0.12.5 to 0.19.0.

Release notes

Sourced from github.com/charmbracelet/bubbletea's releases.

v0.19.0

Final Model Access

This release features Program.StartReturningModel, a handy alternative start method for returning the final Model after a Program exits. This makes it easy to access data collected in a Bubble Tea program while still working in an immutable fashion.

Here’s an example illustrating how it works:

type MyModel struct {
	Name         string
	FaveCatColor string
}
p := tea.NewProgram(MyModel{})
// Return the final model when we're done
finalModel, err := p.StartReturningModel()
if err != nil {
fmt.Println("Uh oh", err)
os.Exit(1)
}
// The final model is a generalized tea.Model, so be sure to assert it into
// your actual model type.
if m, ok := finalModel.(MyModel); ok {
fmt.Printf("Hello, %s. I have a %s kitty for you.\n", m.Name, m.FaveCatColor)
}

🤗 A big thanks to @​Raphexion for both conceptualizing and executing this feature.

ANSI Compression, Now Opt-In

We’ve also made the ANSI compressor opt-in by default as we noticed that it was incurring a larger performance hit than we’d like in some cases. To enable the ANSI compressor just use the WithANSICompressor program option:

tea.NewProgram(model, tea.WithANSICompressor())

Changelog

Here’s the full changelog for this release.


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

v0.18.0

... (truncated)

Commits
  • 119144e ANSI compression is now opt-in via the WithANSICompressor program option
  • 56aa4ef tea: Add StartReturningModel()
  • 6dc000b Examples and tutorials: update dependencies and go mod tidy
  • e52d1f1 Bump reflow, termenv and go-isatty
  • c29912c Enable ANSI compressor
  • 1f12bda Add program-level quit convenience method
  • e828914 test: logging test
  • 350b13c test: key tests
  • cfb871c test: cmds
  • 7934b60 test: logging
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 0.12.5 to 0.19.0.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases)
- [Commits](charmbracelet/bubbletea@v0.12.5...v0.19.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbletea
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Nov 1, 2021
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github Nov 8, 2021

Superseded by #36.

@dependabot dependabot bot closed this Nov 8, 2021
@dependabot dependabot bot deleted the dependabot/go_modules/github.com/charmbracelet/bubbletea-0.19.0 branch November 8, 2021 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants