Skip to content

Upgrade to wish v2 (charm.land/wish/v2) - #13

Closed
lukasschwab wants to merge 1 commit into
mainfrom
upgrade-wish-v2
Closed

lukasschwab wants to merge 1 commit into
mainfrom
upgrade-wish-v2

Conversation

@lukasschwab

Copy link
Copy Markdown
Owner

Migrates all Charmbracelet dependencies to their v2 charm.land module paths, resolving dependabot alert #4 (SCP path traversal in github.com/charmbracelet/wish <= v1.4.7).

Changes

  • charm.land/wish/v2 v2.0.1 (from github.com/charmbracelet/wish v1.4.7)
  • charm.land/bubbletea/v2 v2.0.6
  • charm.land/lipgloss/v2 v2.0.3
  • charm.land/bubbles/v2 v2.1.0
  • charm.land/log/v2 v2.0.0

Migration details

Following the wish v2 upgrade guide:

  • View() returns tea.View instead of string; alt screen set via v.AltScreen = true
  • tea.KeyMsg → tea.KeyPressMsg
  • lipgloss.NewStyle() no longer takes a renderer (color profile auto-detected in Bubble Tea v2)
  • Removed bubbletea.MakeRenderer(s); using bubbletea.MakeOptions(s) for SSH I/O setup
  • textinput.PromptStyle field replaced with textinput.SetStyles()

Builds and tests pass on Go 1.25.9.

Migrate all Charmbracelet dependencies to their v2 charm.land module paths:
- charm.land/wish/v2 v2.0.1 (from github.com/charmbracelet/wish v1.4.7)
- charm.land/bubbletea/v2 v2.0.6
- charm.land/lipgloss/v2 v2.0.3
- charm.land/bubbles/v2 v2.1.0
- charm.land/log/v2 v2.0.0

Key changes for Bubble Tea v2 compatibility:
- View() returns tea.View instead of string; use v.AltScreen for alt screen
- tea.KeyMsg replaced with tea.KeyPressMsg
- lipgloss.NewStyle() no longer takes a renderer (auto-detected)
- Remove bubbletea.MakeRenderer(); use bubbletea.MakeOptions(s) for SSH I/O
- textinput.PromptStyle replaced with textinput.SetStyles()

Resolves dependabot alert #4: wish SCP path traversal (GHSA affecting
github.com/charmbracelet/wish <= v1.4.7).

Co-authored-by: Shelley <shelley@exe.dev>
@lukasschwab

Copy link
Copy Markdown
Owner Author

Closing — unnecessary. Vulnerable middleware is unused. No independent reason to make these version upgrades.

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.

1 participant