Skip to content

Commit

Permalink
⬆️ Upgrade dependencies
Browse files Browse the repository at this point in the history
Upgrade third-party libraries to their latest stable releases to
incorporate security patches, bug fix and performance improvements.
This routine maintenance helps keep the codebase secure and efficient.

As part of this upgrade, some regressions were identified and
corrected.

Using page up and page down in the filter list was being sent twice. A
bug with the list component was fixed upstream and the existing code
attempted to send this twice however one of the methods was a noop.
This was corrected by removing the unnecessary duplication.

A list with empty items had the wording changing. This required the
golden files to be updated.

All dependencies were determining string width using `go-runewidth`
which has been problematic. This has been replaced with `uniseg` which
required the `StringWidth()` function to be swapped over to be
consistent. This also caused some incorrectly rendered golden files to
be fixed.

This upgrade will cause the terminal package to activate the grapheme
cluster width override map. This will allow the rendering of emoji
widths to be cosnsistent to previous versions.

The upgrade to Bubbletea has caused a minor change in the quit message
type which has become public.
  • Loading branch information
mikelorant committed Mar 6, 2024
1 parent 429e6de commit 2afcd85
Show file tree
Hide file tree
Showing 15 changed files with 195 additions and 197 deletions.
98 changes: 49 additions & 49 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,90 +1,90 @@
module github.com/mikelorant/committed

go 1.19
go 1.22

require (
github.com/MakeNowJust/heredoc/v2 v2.0.1
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d
github.com/charmbracelet/bubbles v0.15.0
github.com/charmbracelet/bubbletea v0.23.2
github.com/charmbracelet/lipgloss v0.6.0
github.com/creack/pty v1.1.18
github.com/charmbracelet/bubbles v0.18.0
github.com/charmbracelet/bubbletea v0.25.0
github.com/charmbracelet/lipgloss v0.10.0
github.com/creack/pty v1.1.21
github.com/forPelevin/gomoji v1.1.8
github.com/go-git/go-billy/v5 v5.4.1
github.com/go-git/go-git-fixtures/v4 v4.3.1
github.com/go-git/go-git/v5 v5.5.2
github.com/goccy/go-yaml v1.9.8
github.com/hexops/autogold/v2 v2.0.2
github.com/go-git/go-billy/v5 v5.5.0
github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399
github.com/go-git/go-git/v5 v5.11.0
github.com/goccy/go-yaml v1.11.3
github.com/hexops/autogold/v2 v2.2.1
github.com/ivanpirog/coloredcobra v1.0.1
github.com/lithammer/fuzzysearch v1.1.5
github.com/lrstanley/bubbletint v0.0.0-20221222153826-8c18bc6ecfd0
github.com/mattn/go-runewidth v0.0.14
github.com/lithammer/fuzzysearch v1.1.8
github.com/lrstanley/bubbletint v0.0.0-20240125042035-5615d402d4e1
github.com/muesli/gamut v0.3.1
github.com/muesli/reflow v0.3.0
github.com/muesli/termenv v0.14.0
github.com/muesli/termenv v0.15.2
github.com/rivo/uniseg v0.4.7
github.com/spf13/cobra v1.6.1
github.com/spf13/cobra v1.8.0
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.8.1
golang.org/x/exp v0.0.0-20230213192124-5e25df0256eb
github.com/stretchr/testify v1.9.0
golang.org/x/exp v0.0.0-20240222234643-814bf88cf225
gopkg.in/yaml.v3 v3.0.1
)

replace (
github.com/charmbracelet/bubbles => github.com/mikelorant/bubbles v0.0.0-20221206230145-c5687de7af43
github.com/charmbracelet/lipgloss => github.com/mikelorant/lipgloss v0.0.0-20230212060525-24ffefde7d62
github.com/muesli/reflow => github.com/mikelorant/reflow v0.0.0-20230112022445-408368584af4
github.com/charmbracelet/bubbles => github.com/mikelorant/bubbles v0.0.0-20240229221128-1e8da2960de8
github.com/muesli/reflow => github.com/mikelorant/reflow v0.0.0-20240303072837-675d5d5cbae9
github.com/rivo/uniseg => github.com/mikelorant/uniseg v0.0.0-20240303073632-27c86650ffa5
)

require (
github.com/Microsoft/go-winio v0.6.0 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8 // indirect
github.com/acomagu/bufpipe v1.0.3 // indirect
dario.cat/mergo v1.0.0 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/ProtonMail/go-crypto v1.0.0 // indirect
github.com/atotto/clipboard v0.1.4 // indirect
github.com/aymanbagabas/go-osc52 v1.2.1 // indirect
github.com/cloudflare/circl v1.3.2 // indirect
github.com/containerd/console v1.0.3 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
github.com/containerd/console v1.0.4 // indirect
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/fatih/color v1.14.1 // indirect
github.com/go-git/gcfg v1.5.0 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/fatih/color v1.15.0 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/hexops/gotextdiff v1.0.3 // indirect
github.com/hexops/valast v1.4.3 // indirect
github.com/imdario/mergo v0.3.13 // indirect
github.com/hexops/valast v1.4.4 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/kr/pretty v0.3.0 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.17 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-localereader v0.0.1 // indirect
github.com/muesli/ansi v0.0.0-20221106050444-61f0cd9a192a // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
github.com/muesli/cancelreader v0.2.2 // indirect
github.com/muesli/clusters v0.0.0-20200529215643-2700303c1762 // indirect
github.com/muesli/kmeans v0.3.1 // indirect
github.com/nightlyone/lockfile v1.0.0 // indirect
github.com/pjbgf/sha1cd v0.2.3 // indirect
github.com/pjbgf/sha1cd v0.3.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rogpeppe/go-internal v1.9.0 // indirect
github.com/sahilm/fuzzy v0.1.0 // indirect
github.com/rogpeppe/go-internal v1.11.0 // indirect
github.com/sahilm/fuzzy v0.1.1 // indirect
github.com/sergi/go-diff v1.3.1 // indirect
github.com/skeema/knownhosts v1.1.0 // indirect
github.com/skeema/knownhosts v1.2.1 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
golang.org/x/crypto v0.6.0 // indirect
golang.org/x/mod v0.8.0 // indirect
golang.org/x/net v0.7.0 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/sys v0.5.0 // indirect
golang.org/x/term v0.5.0 // indirect
golang.org/x/text v0.7.0 // indirect
golang.org/x/tools v0.6.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
github.com/xrash/smetrics v0.0.0-20231213231151-1d8dd44e695e // indirect
golang.org/x/crypto v0.21.0 // indirect
golang.org/x/mod v0.16.0 // indirect
golang.org/x/net v0.22.0 // indirect
golang.org/x/sync v0.6.0 // indirect
golang.org/x/sys v0.18.0 // indirect
golang.org/x/term v0.18.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/tools v0.19.0 // indirect
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
mvdan.cc/gofumpt v0.4.0 // indirect
mvdan.cc/gofumpt v0.5.0 // indirect
)
Loading

0 comments on commit 2afcd85

Please sign in to comment.