siyul-park / uniflow

A high-performance, extremely flexible, and easily extensible universal workflow engine.
MIT License
45 stars 5 forks source link

fix(deps): update module github.com/charmbracelet/bubbles to v0.20.0 - autoclosed #183

Closed renovate[bot] closed 1 month ago

renovate[bot] commented 2 months ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/charmbracelet/bubbles v0.18.0 -> v0.20.0 age adoption passing confidence

Release Notes

charmbracelet/bubbles (github.com/charmbracelet/bubbles) ### [`v0.20.0`](https://redirect.github.com/charmbracelet/bubbles/releases/tag/v0.20.0) [Compare Source](https://redirect.github.com/charmbracelet/bubbles/compare/v0.19.0...v0.20.0) ### 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](https://redirect.github.com/charmbracelet/bubbletea/releases/tag/v1.1.0). As long as [`WithReportFocus`](https://pkg.go.dev/github.com/charmbracelet/bubbletea#WithReportFocus) is enabled in your Program you'll automatically get nicer inputs. To enable focus reporting: ```go 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](https://redirect.github.com/nervo). ```go p := paginator.New( paginator.WithPerPage(42), paginator.WithTotalPages(42), ) ``` Of course, you can still set the values on the model directly too: ```go p := paginator.New() p.PerPage = 42 p.TotalPages = 24 ``` Happy paging! #### Changelog ##### New! - [`d3bd075`](https://redirect.github.com/charmbracelet/bubbles/commit/d3bd075ed2b27a3b5d76bb79b5d1c928dcd780d0): feat(cursor): focus/blur support ([#​581](https://redirect.github.com/charmbracelet/bubbles/issues/581)) ([@​caarlos0](https://redirect.github.com/caarlos0)) - [`5110925`](https://redirect.github.com/charmbracelet/bubbles/commit/5110925e8788a8ecfd206df0da8dbeed36cde0f0): feat: Introduce paginator options ([@​nervo](https://redirect.github.com/nervo)) ##### Deps - [`3eaf8da`](https://redirect.github.com/charmbracelet/bubbles/commit/3eaf8da348203f12a72ce4f994334dc4cd8d91ba): feat(deps): bump github.com/charmbracelet/bubbletea from 0.27.0 to 1.0.0 ([#​604](https://redirect.github.com/charmbracelet/bubbles/issues/604)) ([@​dependabot](https://redirect.github.com/dependabot)\[bot]) - [`6fc27e9`](https://redirect.github.com/charmbracelet/bubbles/commit/6fc27e99d3b0e0cf5db13111e518b47435c42f5a): feat(deps): bump github.com/charmbracelet/bubbletea from 1.0.0 to 1.1.0 ([#​607](https://redirect.github.com/charmbracelet/bubbles/issues/607)) ([@​dependabot](https://redirect.github.com/dependabot)\[bot]) *** The Charm logo Thoughts? Questions? We love hearing from you. Feel free to reach out on [Twitter](https://twitter.com/charmcli), [The Fediverse](https://mastodon.technology/@​charm), or on [Discord](https://charm.sh/chat). ### [`v0.19.0`](https://redirect.github.com/charmbracelet/bubbles/releases/tag/v0.19.0) [Compare Source](https://redirect.github.com/charmbracelet/bubbles/compare/v0.18.0...v0.19.0) ### 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. ```go p := progress.New(progress.WithFillCharacters('>', '.')) ``` ![progress bar example](https://redirect.github.com/user-attachments/assets/ee1a1351-ebee-4f39-8543-af464e60b099) #### 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. ```go // 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). ```go 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](https://redirect.github.com/charmbracelet/bubbles/issues/458). ```go 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 - Textarea: Improve setting width by [@​mikelorant](https://redirect.github.com/mikelorant) in [https://github.com/charmbracelet/bubbles/pull/496](https://redirect.github.com/charmbracelet/bubbles/pull/496) - Textinput: fix out of range panic if no matched suggestions by [@​rdnt](https://redirect.github.com/rdnt) in [https://github.com/charmbracelet/bubbles/pull/473](https://redirect.github.com/charmbracelet/bubbles/pull/473) - List: Fix no-op list pagination functions by [@​nekopy](https://redirect.github.com/nekopy) in [https://github.com/charmbracelet/bubbles/pull/458](https://redirect.github.com/charmbracelet/bubbles/pull/458) - Table: Clarify position constant in JoinHorizontal by [@​aditipatelpro](https://redirect.github.com/aditipatelpro) in [https://github.com/charmbracelet/bubbles/pull/577](https://redirect.github.com/charmbracelet/bubbles/pull/577) - Progress: make full/empty fill characters configurable by [@​rwinkhart](https://redirect.github.com/rwinkhart) in [https://github.com/charmbracelet/bubbles/pull/409](https://redirect.github.com/charmbracelet/bubbles/pull/409) - Dependencies: switch to x/ansi for text manipulation by [@​aymanbagabas](https://redirect.github.com/aymanbagabas) in [https://github.com/charmbracelet/bubbles/pull/505](https://redirect.github.com/charmbracelet/bubbles/pull/505) ##### Added - Textarea: add help to textarea key bindings by [@​TravisYeah](https://redirect.github.com/TravisYeah) in [https://github.com/charmbracelet/bubbles/pull/418](https://redirect.github.com/charmbracelet/bubbles/pull/418) - Textarea: Add multiline placeholder by [@​mikelorant](https://redirect.github.com/mikelorant) in [https://github.com/charmbracelet/bubbles/pull/302](https://redirect.github.com/charmbracelet/bubbles/pull/302) - Table: Add column return function by [@​abeleinin](https://redirect.github.com/abeleinin) in [https://github.com/charmbracelet/bubbles/pull/369](https://redirect.github.com/charmbracelet/bubbles/pull/369) - Table: Implement help.Keymap interface and add quit mapping by [@​prgres](https://redirect.github.com/prgres) in [https://github.com/charmbracelet/bubbles/pull/440](https://redirect.github.com/charmbracelet/bubbles/pull/440) - Ctrl+Left/Right for WordForward/Backward by [@​maaslalani](https://redirect.github.com/maaslalani) in [https://github.com/charmbracelet/bubbles/pull/387](https://redirect.github.com/charmbracelet/bubbles/pull/387) - Use goreleaser for releases by [@​aymanbagabas](https://redirect.github.com/aymanbagabas) in [https://github.com/charmbracelet/bubbles/pull/526](https://redirect.github.com/charmbracelet/bubbles/pull/526) ##### Fixed - Table: Render Row Tests by [@​maaslalani](https://redirect.github.com/maaslalani) in [https://github.com/charmbracelet/bubbles/pull/487](https://redirect.github.com/charmbracelet/bubbles/pull/487) - Table: Only render columns with a positive width by [@​fabio42](https://redirect.github.com/fabio42) in [https://github.com/charmbracelet/bubbles/pull/465](https://redirect.github.com/charmbracelet/bubbles/pull/465) - Table: Fix inheritence of SelectedStyle in StyleFunc by [@​gabrielfu](https://redirect.github.com/gabrielfu) in [https://github.com/charmbracelet/bubbles/pull/539](https://redirect.github.com/charmbracelet/bubbles/pull/539) - Table: Don't include header height in the total table size by [@​prgres](https://redirect.github.com/prgres) in [https://github.com/charmbracelet/bubbles/pull/434](https://redirect.github.com/charmbracelet/bubbles/pull/434) - Table: Fix premature viewport scroll by [@​dzeleniak](https://redirect.github.com/dzeleniak) in [https://github.com/charmbracelet/bubbles/pull/429](https://redirect.github.com/charmbracelet/bubbles/pull/429) - Textarea: Fix end of buffer character by [@​mikelorant](https://redirect.github.com/mikelorant) in [https://github.com/charmbracelet/bubbles/pull/491](https://redirect.github.com/charmbracelet/bubbles/pull/491) - Textarea: Set textarea default EndOfBufferCharacter to ' ' by [@​blvrd](https://redirect.github.com/blvrd) in [https://github.com/charmbracelet/bubbles/pull/510](https://redirect.github.com/charmbracelet/bubbles/pull/510) - Textarea: End of Buffer alignment by [@​maaslalani](https://redirect.github.com/maaslalani) in [https://github.com/charmbracelet/bubbles/pull/486](https://redirect.github.com/charmbracelet/bubbles/pull/486) - Textinput: don't block input on validation by [@​GabrielNagy](https://redirect.github.com/GabrielNagy) in [https://github.com/charmbracelet/bubbles/pull/185](https://redirect.github.com/charmbracelet/bubbles/pull/185) - Viewport: Fix division by zero in scrollpercentage by [@​zMoooooritz](https://redirect.github.com/zMoooooritz) in [https://github.com/charmbracelet/bubbles/pull/494](https://redirect.github.com/charmbracelet/bubbles/pull/494) - Help: Fix centering by [@​gabe565](https://redirect.github.com/gabe565) in [https://github.com/charmbracelet/bubbles/pull/516](https://redirect.github.com/charmbracelet/bubbles/pull/516) - Progress: Stop spring defaults from overriding WithStringOptions by [@​nervo](https://redirect.github.com/nervo) in [https://github.com/charmbracelet/bubbles/pull/540](https://redirect.github.com/charmbracelet/bubbles/pull/540) - Cursor: Make SetMode method in cursor library handle invalid mode values correctly by [@​anirudhaCodes](https://redirect.github.com/anirudhaCodes) in [https://github.com/charmbracelet/bubbles/pull/477](https://redirect.github.com/charmbracelet/bubbles/pull/477) ##### Test coverage :white_check_mark: - Add tests for textarea view by [@​mikelorant](https://redirect.github.com/mikelorant) in [https://github.com/charmbracelet/bubbles/pull/485](https://redirect.github.com/charmbracelet/bubbles/pull/485) - Add tests for paginator by [@​anirudhaCodes](https://redirect.github.com/anirudhaCodes) in [https://github.com/charmbracelet/bubbles/pull/480](https://redirect.github.com/charmbracelet/bubbles/pull/480) - Add tests for textInput Tests by [@​KevM](https://redirect.github.com/KevM) in [https://github.com/charmbracelet/bubbles/pull/500](https://redirect.github.com/charmbracelet/bubbles/pull/500) - Improve textarea tests by [@​mikelorant](https://redirect.github.com/mikelorant) in [https://github.com/charmbracelet/bubbles/pull/490](https://redirect.github.com/charmbracelet/bubbles/pull/490) #### New Contributors - [@​rdnt](https://redirect.github.com/rdnt) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/473](https://redirect.github.com/charmbracelet/bubbles/pull/473) - [@​rwinkhart](https://redirect.github.com/rwinkhart) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/409](https://redirect.github.com/charmbracelet/bubbles/pull/409) - [@​mikelorant](https://redirect.github.com/mikelorant) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/485](https://redirect.github.com/charmbracelet/bubbles/pull/485) - [@​anirudhaCodes](https://redirect.github.com/anirudhaCodes) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/480](https://redirect.github.com/charmbracelet/bubbles/pull/480) - [@​nekopy](https://redirect.github.com/nekopy) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/458](https://redirect.github.com/charmbracelet/bubbles/pull/458) - [@​TravisYeah](https://redirect.github.com/TravisYeah) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/418](https://redirect.github.com/charmbracelet/bubbles/pull/418) - [@​abeleinin](https://redirect.github.com/abeleinin) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/369](https://redirect.github.com/charmbracelet/bubbles/pull/369) - [@​fabio42](https://redirect.github.com/fabio42) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/465](https://redirect.github.com/charmbracelet/bubbles/pull/465) - [@​prgres](https://redirect.github.com/prgres) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/440](https://redirect.github.com/charmbracelet/bubbles/pull/440) - [@​zMoooooritz](https://redirect.github.com/zMoooooritz) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/494](https://redirect.github.com/charmbracelet/bubbles/pull/494) - [@​dzeleniak](https://redirect.github.com/dzeleniak) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/429](https://redirect.github.com/charmbracelet/bubbles/pull/429) - [@​KevM](https://redirect.github.com/KevM) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/500](https://redirect.github.com/charmbracelet/bubbles/pull/500) - [@​gabe565](https://redirect.github.com/gabe565) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/516](https://redirect.github.com/charmbracelet/bubbles/pull/516) - [@​blvrd](https://redirect.github.com/blvrd) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/510](https://redirect.github.com/charmbracelet/bubbles/pull/510) - [@​nervo](https://redirect.github.com/nervo) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/540](https://redirect.github.com/charmbracelet/bubbles/pull/540) - [@​gabrielfu](https://redirect.github.com/gabrielfu) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/539](https://redirect.github.com/charmbracelet/bubbles/pull/539) - [@​aditipatelpro](https://redirect.github.com/aditipatelpro) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/577](https://redirect.github.com/charmbracelet/bubbles/pull/577) **Full Changelog**: https://github.com/charmbracelet/bubbles/compare/v0.18.0...v0.19.0 *** The Charm logo Thoughts? Questions? We love hearing from you. Feel free to reach out on [Twitter](https://twitter.com/charmcli), [The Fediverse](https://mastodon.social/@​charm), or on [Discord](https://charm.sh/chat).

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 this update again.



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

renovate[bot] commented 2 months ago

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

The artifact failure details are included below:

File name: cmd/go.sum
Command failed: go get -d -t ./...
go: -d flag is deprecated. -d=true is a no-op
go: downloading github.com/siyul-park/uniflow v0.9.0
go: downloading github.com/jedib0t/go-pretty/v6 v6.5.9
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/stretchr/testify v1.9.0
go: downloading github.com/mattn/go-sqlite3 v1.14.22
go: downloading github.com/siyul-park/uniflow/driver/mongo v0.9.0
go: downloading github.com/siyul-park/uniflow/ext v0.9.0
go: downloading github.com/spf13/afero v1.11.0
go: downloading github.com/spf13/viper v1.19.0
go: downloading go.mongodb.org/mongo-driver v1.16.1
go: downloading github.com/charmbracelet/bubbles v0.20.0
go: downloading github.com/charmbracelet/bubbletea v1.1.0
go: downloading github.com/gofrs/uuid v4.4.0+incompatible
go: downloading github.com/spf13/cobra v1.8.1
go: downloading github.com/go-faker/faker/v4 v4.4.2
go: downloading github.com/benbjohnson/immutable v0.4.3
go: downloading github.com/iancoleman/strcase v0.3.0
go: downloading github.com/pkg/errors v0.9.1
go: downloading golang.org/x/exp v0.0.0-20240808152545-0cdaa3abc0fa
go: downloading github.com/mattn/go-runewidth v0.0.16
go: downloading golang.org/x/sys v0.24.0
go: downloading github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
go: downloading github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2
go: downloading github.com/tryvium-travels/memongo v0.12.0
go: downloading github.com/jmoiron/sqlx v1.4.0
go: downloading github.com/google/cel-go v0.21.0
go: downloading github.com/dop251/goja v0.0.0-20240815170236-7d18bf7df119
go: downloading github.com/evanw/esbuild v0.23.0
go: downloading github.com/gorilla/websocket v1.5.3
go: downloading golang.org/x/text v0.17.0
go: downloading github.com/fsnotify/fsnotify v1.7.0
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading github.com/sagikazarmark/locafero v0.6.0
go: downloading github.com/sagikazarmark/slog-shim v0.1.0
go: downloading github.com/spf13/cast v1.7.0
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78
go: downloading github.com/charmbracelet/lipgloss v0.13.0
go: downloading github.com/charmbracelet/x/ansi v0.2.3
go: downloading github.com/charmbracelet/x/term v0.2.0
go: downloading github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f
go: downloading github.com/mattn/go-localereader v0.0.1
go: downloading github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6
go: downloading github.com/muesli/cancelreader v0.2.2
go: downloading golang.org/x/sync v0.8.0
go: downloading github.com/atotto/clipboard v0.1.4
go: downloading github.com/rivo/uniseg v0.4.7
go: downloading github.com/inconshreveable/mousetrap v1.1.0
go: downloading github.com/andybalholm/brotli v1.1.0
go: downloading github.com/stoewer/go-strcase v1.3.0
go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142
go: downloading google.golang.org/protobuf v1.34.2
go: downloading github.com/dlclark/regexp2 v1.11.4
go: downloading github.com/google/pprof v0.0.0-20240727154555-813a5fbdbec8
go: downloading github.com/sourcegraph/conc v0.3.0
go: downloading github.com/subosito/gotenv v1.6.0
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading gopkg.in/ini.v1 v1.67.0
go: downloading github.com/magiconair/properties v1.8.7
go: downloading github.com/pelletier/go-toml/v2 v2.2.2
go: downloading golang.org/x/crypto v0.26.0
go: downloading github.com/golang/snappy v0.0.4
go: downloading github.com/klauspost/compress v1.17.9
go: downloading github.com/montanaflynn/stats v0.7.1
go: downloading github.com/muesli/termenv v0.15.2
go: downloading github.com/acobaugh/osrelease v0.1.0
go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142
go: downloading github.com/antlr4-go/antlr/v4 v4.13.1
go: downloading github.com/go-sourcemap/sourcemap v2.1.4+incompatible
go: downloading github.com/xdg-go/scram v1.1.2
go: downloading github.com/xdg-go/stringprep v1.0.4
go: downloading github.com/aymanbagabas/go-osc52/v2 v2.0.1
go: downloading github.com/lucasb-eyer/go-colorful v1.2.0
go: downloading github.com/mattn/go-isatty v0.0.20
go: downloading go.uber.org/multierr v1.11.0
go: downloading github.com/xdg-go/pbkdf2 v1.0.0
go: github.com/siyul-park/uniflow/cmd/pkg/cli imports
    github.com/siyul-park/uniflow/pkg/debug: cannot find module providing package github.com/siyul-park/uniflow/pkg/debug
codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 75.42%. Comparing base (7982a74) to head (37fb091). Report is 11 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #183 +/- ## ========================================== + Coverage 75.29% 75.42% +0.12% ========================================== Files 121 121 Lines 7307 7307 ========================================== + Hits 5502 5511 +9 + Misses 1237 1228 -9 Partials 568 568 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.