frostdb
frostdb copied to clipboard
chore(deps): update module github.com/charmbracelet/lipgloss to v0.11.0
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| github.com/charmbracelet/lipgloss | v0.10.0 -> v0.11.0 |
Release Notes
charmbracelet/lipgloss (github.com/charmbracelet/lipgloss)
v0.11.0
Immutable Styles and Raw Speed, Baby
So! The big news in this release is:
Stylemethods will now always return new stylesStyleand 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!
- always return copies of styles by @aymanbagabas in https://github.com/charmbracelet/lipgloss/pull/276
Changed
- switch to term/ansi for text manipulation by @aymanbagabas in https://github.com/charmbracelet/lipgloss/pull/268
- replace stripansi with ansi.Strip in table by @aymanbagabas in https://github.com/charmbracelet/lipgloss/pull/271
- test for different GOOS & GOARCH by @aymanbagabas in https://github.com/charmbracelet/lipgloss/pull/292
Fixed
- fix combining both conditional and unconditional wrapping by @aymanbagabas in https://github.com/charmbracelet/lipgloss/pull/275
- fix UnderlineSpaces and StrikethroughSpaces by @Taz03 in https://github.com/charmbracelet/lipgloss/pull/299
- always render horizontal border edges when enabled by @UnseenBook in https://github.com/charmbracelet/lipgloss/pull/211
- fix possible nil panic by @maaslalani in https://github.com/charmbracelet/lipgloss/pull/245
- fix transform operating on ANSI sequences by @meowgorithm in https://github.com/charmbracelet/lipgloss/pull/274
- change propkeys from int to int64 by @hugoleodev in https://github.com/charmbracelet/lipgloss/pull/291
New Contributors
- @benwaffle made their first contribution in https://github.com/charmbracelet/lipgloss/pull/247
- @UnseenBook made their first contribution in https://github.com/charmbracelet/lipgloss/pull/211
- @hugoleodev made their first contribution in https://github.com/charmbracelet/lipgloss/pull/291
- @Taz03 made their first contribution in https://github.com/charmbracelet/lipgloss/pull/299
Full Changelog: https://github.com/charmbracelet/lipgloss/compare/v0.10.0...v0.11.0
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.
Configuration
📅 Schedule: Branch creation - "on monday and wednesday" (UTC), 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.
ℹ Artifact update notice
File name: cmd/parquet-tool/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):
- 1 additional dependency was updated
Details:
| Package | Change |
|---|---|
github.com/mattn/go-isatty |
v0.0.19 -> v0.0.20 |
Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠️ Warning: custom changes will be lost.
