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/dependency] Update all non-major dependencies #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 7, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/charmbracelet/bubbles v0.15.0 -> v0.20.0 age adoption passing confidence
github.com/charmbracelet/bubbletea v0.23.1 -> v0.27.1 age adoption passing confidence
github.com/charmbracelet/lipgloss v0.6.0 -> v0.13.1 age adoption passing confidence
github.com/spf13/cobra v1.6.1 -> v1.9.1 age adoption passing confidence
golang.org/x/oauth2 v0.4.0 -> v0.28.0 age adoption passing confidence

Release Notes

charmbracelet/bubbles (github.com/charmbracelet/bubbles)

v0.20.0

Compare Source

Focus. Breathe.

This features support for Bubble Tea's new focus-blur feature as well as a quality-of-life update to paginator. Enjoy!

Focus

You heard that right. Focus-blur window events are now enabled for textinput and textarea which were recently added to Bubble Tea v1.1.0. As long as WithReportFocus is enabled in your Program you'll automatically get nicer inputs.

To enable focus reporting:

p := tea.NewProgram(model{}, tea.WithReportFocus())

Remember to stay focused and hydrated!

Paginator opts

Speaking of functional arguments, paginator also received some some new quality-of-life startup options, courtesy @​nervo.

p := paginator.New(
	paginator.WithPerPage(42),
	paginator.WithTotalPages(42),
)

Of course, you can still set the values on the model directly too:

p := paginator.New()
p.PerPage = 42
p.TotalPages = 24

Happy paging!

Changelog

New!
Deps

The Charm logo

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

v0.19.0

Compare Source

Bugs? Squashed (along with a few nice lil’ features).

Community-Driven Development?! Yep, the majority of the changes in this release were done by the community. Thank you all for your contributions that made this release possible.

Progress: custom chars

You can now customize the filled and empty characters of the progress bar.

p := progress.New(progress.WithFillCharacters('>', '.'))

progress bar example

Table improvements

Help is on the way

Table now includes a short and full help view so it's easier than ever to tell your users how to interact with the table.

// Render a table with its help.
t := table.New()
view := t.View() + "\n" + t.HelpView()
Accessing columns

You can also now get the table's columns (this already existed for rows).

package table

// Columns returns the current columns.
func (m Model) Columns() []Column

List: page navigation is fixed!

Previously, list.NextPage() and list.PrevPage() didn't work because the methods did not have pointer receivers. We've fixed this…by making them pointer receivers!

⚠️ Note that this is a minor API change and you might need to update your app to pass a pointer receiver to your model rather than a copy. Details in #​458.

package progress

// NextPage moves to the next page, if available.
func (m *Model) NextPage()

// PrevPage moves to the previous page, if available.
func (m *Model) PrevPage()

What’s Changed

Changed
Added
Fixed
Test coverage ✅

New Contributors

Full Changelog: charmbracelet/bubbles@v0.18.0...v0.19.0


The Charm logo

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

v0.18.0

Compare Source

Textarea, but faster

This release features several fixes and big performance improvements for the textarea bubble.

What's Changed

New
Improved
Fixed

New Contributors

Full Changelog: charmbracelet/bubbles@v0.17.1...v0.18.0


The Charm logo

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

v0.17.1

Compare Source

Bumping Bubble Tea

This is just a little update to update to the latest version of Bubble Tea.

What's Changed

Full Changelog: charmbracelet/bubbles@v0.17.0...v0.17.1


The Charm logo

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

v0.17.0

Compare Source

Text input autocompletions and various improvements

Autocompletion in Text Input

So @​toadle wanted textinputs to support autocompletion in a ghost-text kind of a way. Rather than wait for us to do it he did what any dedicated open source developer would: he sent a PR! And now we can all benefit from his hard work.

Autocompletion is super easy to use:

ti := textinput.New()
ti.SetSuggestions([]string{"meow", "purr"})

By default you can press ctrl+n and ctrl+p to cycle through suggestions, but those keybindings can be changed as you, the application developer, see fit. For details check out textinput.SetSuggestions and the corresponding KeyMap in the docs.

Is the progress bar done yet?

@​yrashk acutely noticed that to nicely transition from one state to another after an animated progress bar fills up it's helpful to know when the animated has finished animating before transitioning. To solve for this he added an IsAnimating method to the progress model. Thanks, @​yrashk!

Changelog

New!
Improved
Fixed

Full Changelog: charmbracelet/bubbles@v0.16.1...v0.17.0

New Contributors


The Charm logo

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

v0.16.1

Compare Source

File Picker Bubble 📁 🫧

This release introduces a brand new filepicker bubble, new features, and a tonne of bugfixes.
Let us know what you think, ask questions, or just say hello in our Discord.

File picker example

For a quick start on how to use this bubble, take a look at the Example code.

Getting Started

Create a new file picker and add it to your Bubble Tea model.

picker := filepicker.New()
picker.CurrentDirectory, err = os.UserHomeDir()
if err != nil {
    // ...
}

m := model{
    picker: picker,
    // ...
}

Initialize the file picker in your Model's Init function.

func (m model) Init() tea.Cmd {
    return tea.Batch(
        m.picker.Init(),
        // ...
    )
}

Update the filepicker as any other bubble in the Update function.
After the picker.Update, use the DidSelectFile(msg tea.Msg) function to perform an action when the user selects a valid file.
You may allow only certain file types to be selected with the AllowedTypes property and allow directories to be selected with the DirAllowed property. To see the currently selected file/directory use the Path property.

var cmd tea.Cmd
m.picker, cmd = m.picker.Update(msg)

// Did the user select a file?
if didSelect, path := m.picker.DidSelectFile(msg); didSelect {
	// Get the path of the selected file.
	return m, tea.Println("You selected: " + selectedPath)
}

return m, cmd

For the full example on how to use this bubble, take a look at the Example code.

New

Fixed

New Contributors

Full Changelog: charmbracelet/bubbles@v0.15.0...v0.16.0


The Charm logo

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

v0.16.0

Compare Source

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

v0.27.1

Compare Source

This is a lil’ workaround for a hang that can occur when starting a program using Lip Gloss. For details see https://github.com/charmbracelet/bubbletea/pull/1107.

Changelog

Bug fixes

The Charm logo

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

v0.27.0

Compare 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.Suspend command and handle resumes with the tea.ResumeMsg message:

func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
	switch msg := msg.(type) {

	// Suspend with ctrl+z!
	case tea.KeyMsg:
		switch msg.String() {
		case "ctrl+z":
			m.suspended = true
			return m, tea.Suspend
		}

	// Handle resumes
	case tea.ResumeMsg:
		m.suspended = false
		return m, nil
	}

	// ...
}

Example

There's also a tea.SuspendMsg that flows through Update on 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:

var sess ssh.Session // ssh.Session is a type from the github.com/charmbracelet/ssh package
pty, _, _ := sess.Pty()
environ := append(sess.Environ(), "TERM="+pty.Term)
p := tea.NewProgram(model, tea.WithEnvironment(environ)

Requesting the window dimensions

All the Bubble Tea pros know that you get a tea.WindowSizeMsg when the Program starts and when the window resizes. Now you can just query it on demand too with the tea.WindowSize command.

Changelog

New!
Fixed

The Charm logo

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

v0.26.6

Compare Source

Changelog

Bug fixes

The Charm logo

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

v0.26.5

Compare Source

Fix special keys input handling on Windows using the latest Windows Console Input driver.

Changelog

New Features
Bug fixes
Other work

The Charm logo

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

v0.26.4

Compare Source

Fix panics! Using program.SetWindowTitle and others may panic if they were called before the program starts.

Also note that program.SetWindowTitle is now deprecated. To set the window title use tea.SetWindowTitle command.

What's Changed

Full Changelog: charmbracelet/bubbletea@v0.26.3...v0.26.4


The Charm logo

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

v0.26.3

Compare 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 a window-size-event on altscreen changes even if the size hand’t changed. Now, we cache the window-size and compare before sending the message to the Model.

What's Changed

Full Changelog: charmbracelet/bubbletea@v0.26.2...v0.26.3


The Charm logo

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

v0.26.2

Compare 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 https://github.com/charmbracelet/bubbletea/issues/1000!

What's Changed

Full Changelog: charmbracelet/bubbletea@v0.26.1...v0.26.2


The Charm logo

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

v0.26.1

Compare 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


The Charm logo

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

v0.26.0

Compare 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 SIGWINCH signal, 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 send tea.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:

p := tea.NewProgram(myCuteModel, tea.WithoutBracketedPaste())

You can also enable and disable it on demand with the EnableBracketedPaste() and DisableBracketedPaste() commands.

🌿 Multiline tea.Println

In case you forgot, tea.Println (and it’s brother tea.Printf) is a Cmd that lets you print unmanaged output above a Bubble Tea program, similar to what you see with package managers like apt-get. Thanks to @​Adjective-Object (who also implemented tea.Println in the first place) now you can send multi-line output, too. For a tea.Println refresher 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!
Changed
Fixed
New Contributors

Configuration

📅 Schedule: Branch creation - "* 0-3 * * 1" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


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

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate-all-minor-patch branch 2 times, most recently from ec7a73e to c7b7642 Compare March 7, 2023 09:28
@vijaynallagatla vijaynallagatla self-requested a review March 7, 2023 09:28
@renovate renovate bot force-pushed the renovate-all-minor-patch branch 2 times, most recently from 491974c to 15f0c09 Compare March 9, 2023 20:06
@renovate renovate bot force-pushed the renovate-all-minor-patch branch 2 times, most recently from 9becacd to 0c990c5 Compare April 7, 2023 10:23
@renovate renovate bot force-pushed the renovate-all-minor-patch branch 2 times, most recently from 84db54b to c325e49 Compare May 31, 2023 19:54
@renovate renovate bot force-pushed the renovate-all-minor-patch branch from c325e49 to 63fdafc Compare June 6, 2023 09:47
@renovate renovate bot force-pushed the renovate-all-minor-patch branch from 63fdafc to 393175b Compare June 13, 2023 16:18
@renovate renovate bot force-pushed the renovate-all-minor-patch branch from 393175b to e899b3a Compare July 6, 2023 00:55
@renovate renovate bot force-pushed the renovate-all-minor-patch branch from e899b3a to 39db00c Compare August 5, 2023 01:45
@renovate renovate bot force-pushed the renovate-all-minor-patch branch from 39db00c to aa74899 Compare August 22, 2023 20:41
@renovate renovate bot force-pushed the renovate-all-minor-patch branch from aa74899 to 9136f00 Compare September 5, 2023 18:46
@renovate renovate bot force-pushed the renovate-all-minor-patch branch 3 times, most recently from 111a8c4 to 7417dda Compare October 12, 2023 07:53
@renovate renovate bot force-pushed the renovate-all-minor-patch branch 2 times, most recently from 1f10a1c to 49b7799 Compare November 9, 2023 01:26
@renovate renovate bot force-pushed the renovate-all-minor-patch branch from 49b7799 to ef89899 Compare November 27, 2023 21:27
@renovate renovate bot force-pushed the renovate-all-minor-patch branch 3 times, most recently from 97b3ce3 to e41fbc7 Compare December 13, 2023 23:51
@renovate renovate bot force-pushed the renovate-all-minor-patch branch from e41fbc7 to 8a61926 Compare January 8, 2024 20:22
@renovate renovate bot force-pushed the renovate-all-minor-patch branch 2 times, most recently from 5e96a34 to 402b092 Compare February 8, 2024 16:09
@renovate renovate bot force-pushed the renovate-all-minor-patch branch from 402b092 to a1cf442 Compare March 5, 2024 00:18
@renovate renovate bot force-pushed the renovate-all-minor-patch branch 2 times, most recently from b767ff8 to d02da87 Compare May 30, 2024 19:46
Copy link
Contributor Author

renovate bot commented Jun 4, 2024

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 8 additional dependencies were updated

Details:

Package Change
github.com/inconshreveable/mousetrap v1.0.1 -> v1.1.0
github.com/mattn/go-isatty v0.0.16 -> v0.0.20
github.com/mattn/go-runewidth v0.0.14 -> v0.0.16
github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b -> v0.0.0-20230316100256-276c6243b2f6
github.com/muesli/termenv v0.13.0 -> v0.15.2
github.com/rivo/uniseg v0.4.2 -> v0.4.7
github.com/spf13/pflag v1.0.5 -> v1.0.6
golang.org/x/sys v0.4.0 -> v0.24.0
File name: yapi/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.13 -> 1.24.1

@renovate renovate bot force-pushed the renovate-all-minor-patch branch from d02da87 to 02bd354 Compare June 4, 2024 16:40
@renovate renovate bot force-pushed the renovate-all-minor-patch branch 2 times, most recently from 65e3a6b to 66f46f7 Compare June 21, 2024 03:06
@renovate renovate bot force-pushed the renovate-all-minor-patch branch from 66f46f7 to fe1f34c Compare June 24, 2024 22:45
@renovate renovate bot force-pushed the renovate-all-minor-patch branch 3 times, most recently from be2e88d to 0c8718e Compare July 12, 2024 18:05
@renovate renovate bot force-pushed the renovate-all-minor-patch branch from 0c8718e to 01c59fd Compare August 4, 2024 19:45
@renovate renovate bot force-pushed the renovate-all-minor-patch branch 4 times, most recently from 8b8a39d to c22b80d Compare August 22, 2024 18:22
@renovate renovate bot force-pushed the renovate-all-minor-patch branch 2 times, most recently from d932f1f to 2c67910 Compare September 6, 2024 18:39
@renovate renovate bot force-pushed the renovate-all-minor-patch branch 3 times, most recently from 6e6e904 to b00d279 Compare October 22, 2024 21:25
@renovate renovate bot force-pushed the renovate-all-minor-patch branch from b00d279 to 7c32b46 Compare November 7, 2024 22:19
@renovate renovate bot force-pushed the renovate-all-minor-patch branch from 7c32b46 to d97ba1e Compare January 4, 2025 16:00
@renovate renovate bot force-pushed the renovate-all-minor-patch branch from d97ba1e to b429cab Compare February 4, 2025 14:56
@renovate renovate bot force-pushed the renovate-all-minor-patch branch 4 times, most recently from b4fb053 to 9f91c1a Compare February 17, 2025 03:13
@renovate renovate bot force-pushed the renovate-all-minor-patch branch from 9f91c1a to 1e25d65 Compare February 24, 2025 19:13
@renovate renovate bot force-pushed the renovate-all-minor-patch branch from 1e25d65 to bfa412e Compare March 5, 2025 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants