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

build(deps): bump github.com/charmbracelet/log from 0.3.2-0.20240205220859-7a3834f9b367 to 0.4.0 #1074

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 22, 2024

Bumps github.com/charmbracelet/log from 0.3.2-0.20240205220859-7a3834f9b367 to 0.4.0.

Release notes

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

v0.4.0

Custom Levels

With this release of Log, you can now style your custom level to your liking!

// Define a new level
const SuccessLevel = log.InfoLevel + 1
// Create a style
styles := log.DefaultStyles()
styles.Levels[SuccessLevel] = lipgloss.NewStyle().
SetString("SUCCESS").
Bold(true).
Foreground(lipgloss.Color("42"))
// Set the styles on the default logger
log.SetStyles(styles)
// Define your custom func
func Success(msg string, args ...any) {
log.Default().Log(SuccessLevel, msg, args...)
}

Along with that, this release includes some important bug fixes detailed below.

Changelog

New Features

Bug fixes

  • 28193306e6f5a221d00a74fa6e8683ea10ae06be: fix: lazy init default logger (#111) (@​caarlos0)

Dependency updates

  • bcd47385a62a19911e9970bcc96a3431af338160: feat(deps): bump github.com/charmbracelet/lipgloss from 0.9.1 to 0.10.0 (#112) (@​dependabot[bot])
  • 976db2be8ef2dad2071a6f061ea20b3e0df90c54: feat(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 (#108) (@​dependabot[bot])

Documentation updates

  • 87252e4b6fe8ac6e0378a5f6bd10c81cf016478f: docs: Replace function with func in README sample code (@​szktkfm)
  • ac0e6b17de4d9fb40f924721b9be2551b6a3a5b1: docs: direct users to library API (#73) (@​bashbunni)
  • 9d04d2b741a63f044858c77785d81acdd04974c1: docs: style customization updated (#106) (@​ssantoshp)

Other work

  • a4246434f75cb530c9e1ac28656f7d8e887b08f8: Create CODEOWNERS (@​maaslalani)
  • fd1729ad8eb8badce23ad62a2050f33e93b82fd8: Options.CallerFormatter documentation issue (#100) (@​pythonian23)

... (truncated)

Commits

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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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/log](https://github.com/charmbracelet/log) from 0.3.2-0.20240205220859-7a3834f9b367 to 0.4.0.
- [Release notes](https://github.com/charmbracelet/log/releases)
- [Commits](https://github.com/charmbracelet/log/commits/v0.4.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Mar 22, 2024
@k4leung4 k4leung4 merged commit 75e53a6 into main Mar 22, 2024
20 checks passed
@k4leung4 k4leung4 deleted the dependabot/go_modules/github.com/charmbracelet/log-0.4.0 branch March 22, 2024 15:41
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 go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant