deps: upgrade bubbletea/bubbles/lipgloss/wish to v2 #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/bubbletea-v2-upgrade"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Moves the project from charm v1 to v2:
github.com/charmbracelet/bubbletea→charm.land/bubbletea/v2 v2.0.2github.com/charmbracelet/bubbles→charm.land/bubbles/v2 v2.1.0github.com/charmbracelet/lipgloss→charm.land/lipgloss/v2 v2.0.2github.com/charmbracelet/wish→charm.land/wish/v2 v2.0.0github.com/charmbracelet/sshis unchanged — wish v2 still depends on itAPI surface changes handled:
tea.Model.View()now returnstea.View(struct). Existing string-building logic moved toviewString(); the publicView()wraps it astea.View{Content: ..., AltScreen: true}.tea.KeyMsgis now an interface (matching both press and release events). TheUpdateswitch and all sixupdateXhelpers now taketea.KeyPressMsgso release events don't double-fire keypresses.tea.WithAltScreen()removed — alt-screen is now per-view via theAltScreenfield ontea.View.lipgloss.Rendererandbubbletea.MakeRendererremoved —newStyles/newModel/NewModellose their renderer arg, and the wish handler inssh.gono longer constructs one.key(s)buildstea.KeyPressMsg{Code, Text},keyCode(code)replaces the oldkeyType.TestTUI_Colorsno longer plumbs alipgloss.NewRenderer/termenv.TrueColorsince v2Style.Render()always emits ANSI.Also updates the stale go-version note in
CLAUDE.mdto reflect 1.26.1.Test plan
go build ./...cleango test -race ./...— all packages pass (store, tui, sshserver including the real SSH server integration tests)go build -o /tmp/keys-upgraded .produces a runnable binarygithub.com/charmbracelet/(bubbletea|bubbles|lipgloss|wish)references remain in*.go/go.mod/go.sum