v2.0.0-rc.1
This release includes a big change in the module name, and several message type changes. These types changed from type aliases to structs to improve extensibility and allow for future enhancements without breaking changes:
github.com/charmbracelet/bubbletea/v2- now moved tocharm.land/bubbletea/v2CursorPositionMsg- now a struct typeKeyboardEnhancementsMsg- now a struct typePasteMsg- now a struct typeCapabilityMsg- now a struct typeTerminalVersionMsg- now struct types
Migration Guide
Charm Land!
// Before
import tea "github.com/charmbracelet/bubbletea/v2"
// After
import tea "charm.land/bubbletea/v2"
Or you can use this GNU sed oneliner in your project root 😉
find . -name \*.go | xargs -I{} sed -i 's/"github.com\/charmbracelet\/bubbletea\/v2"/"charm.land\/bubbletea\/v2"/' {}
