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

fix(deps): update osv-scanner minor #1187

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

renovate-bot
Copy link
Collaborator

@renovate-bot renovate-bot commented Aug 18, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence Type Update
deps.dev/api/v3 v3.0.0-20240730004939-e80e6658c33b -> v3.0.0-20240807013505-16da96fe8b66 age adoption passing confidence require patch
deps.dev/util/maven e80e665 -> 16da96f age adoption passing confidence require digest
deps.dev/util/resolve e80e665 -> 16da96f age adoption passing confidence require digest
deps.dev/util/semver e80e665 -> 16da96f age adoption passing confidence require digest
github.com/charmbracelet/bubbles v0.18.0 -> v0.19.0 age adoption passing confidence require minor
github.com/charmbracelet/bubbletea v0.26.6 -> v0.27.1 age adoption passing confidence require minor
github.com/charmbracelet/lipgloss v0.12.1 -> v0.13.0 age adoption passing confidence require minor
github.com/google/go-containerregistry v0.20.1 -> v0.20.2 age adoption passing confidence require patch
github.com/ianlancetaylor/demangle bd984b5 -> 81f5be9 age adoption passing confidence require digest
github.com/urfave/cli/v2 v2.27.3 -> v2.27.4 age adoption passing confidence require patch
golang.org/x/exp 8a7402a -> 778ce7b age adoption passing confidence require digest
golang.org/x/term v0.22.0 -> v0.23.0 age adoption passing confidence require minor

Release Notes

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

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.

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.

charmbracelet/lipgloss (github.com/charmbracelet/lipgloss)

v0.13.0

Compare Source

Woodn’t you know, Lip Gloss has trees!

Lip Gloss now ships with a tree rendering sub-package!

import "github.com/charmbracelet/lipgloss/tree"

Define a new tree.

t := tree.Root(".").
  Child("A", "B", "C")

Print the tree.

fmt.Println(t)

// .
// ├── A
// ├── B
// └── C

Trees have the ability to nest.

t := tree.Root(".").
  Child("Item 1").
  Child(
    tree.Root("Item 2").
      Child("Item 2.1").
      Child("Item 2.2").
      Child("Item 2.3"),
  ).
  Child(
    tree.Root("Item 3").
      Child("Item 3.1").
      Child("Item 3.2"),
  )

Print the tree.

fmt.Println(t)

Tree Example (simple)

Trees can be customized via their enumeration function as well as using
lipgloss.Styles.

enumeratorStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("99")).MarginRight(1)
itemStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("212")).MarginRight(1)

t := tree.Root("Makeup").
  Child(
    "Glossier",
    "Claire’s Boutique",
    "Nyx",
    "Mac",
    "Milk",
  ).
  Enumerator(tree.RoundedEnumerator).
  EnumeratorStyle(enumeratorStyle).
  ItemStyle(itemStyle).
  RootStyle(lipgloss.NewStyle().Foreground(lipgloss.Color("#​04B575")))

Print the tree.

Tree Example (makeup)

The predefined enumerators for trees are DefaultEnumerator and RoundedEnumerator.

If you need, you can also build trees incrementally:

t := tree.New()

for i := 0; i < repeat; i++ {
    t.Child("Lip Gloss")
}

There’s more where that came from

See all the tree examples.


Changelog

New Features
Bug fixes
Documentation updates

The Charm logo

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

google/go-containerregistry (github.com/google/go-containerregistry)

v0.20.2

Compare Source

What's Changed

Full Changelog: google/go-containerregistry@v0.20.1...v0.20.2

urfave/cli (github.com/urfave/cli/v2)

v2.27.4

Compare Source

What's Changed

Full Changelog: urfave/cli@v2.27.3...v2.27.4


Configuration

📅 Schedule: Branch creation - "before 6am on monday" in timezone Australia/Sydney, 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.

👻 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.

@forking-renovate forking-renovate bot added the dependencies Pull requests that update a dependency file label Aug 18, 2024
Copy link

forking-renovate bot commented Aug 18, 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):

  • 6 additional dependencies were updated

Details:

Package Change
github.com/mattn/go-runewidth v0.0.15 -> v0.0.16
golang.org/x/crypto v0.25.0 -> v0.26.0
golang.org/x/net v0.27.0 -> v0.28.0
golang.org/x/sys v0.22.0 -> v0.24.0
golang.org/x/text v0.16.0 -> v0.17.0
golang.org/x/tools v0.23.0 -> v0.24.0

@renovate-bot renovate-bot force-pushed the renovate/osv-scanner-minor branch 2 times, most recently from 8810ba5 to 1c61896 Compare August 21, 2024 00:13
@andrewpollock andrewpollock added the rebase Tell renovate to rebase this PR label Aug 22, 2024
@forking-renovate forking-renovate bot removed the rebase Tell renovate to rebase this PR label Aug 22, 2024
@codecov-commenter
Copy link

codecov-commenter commented Aug 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.88%. Comparing base (1899b38) to head (e65d709).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1187      +/-   ##
==========================================
- Coverage   65.89%   65.88%   -0.01%     
==========================================
  Files         168      168              
  Lines       14072    14072              
==========================================
- Hits         9273     9272       -1     
- Misses       4289     4290       +1     
  Partials      510      510              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andrewpollock andrewpollock merged commit 636b4ac into google:main Aug 23, 2024
14 checks passed
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.

3 participants