#599·lipgloss

Latest x/ansi package (0.11.3) breaks compat with v2.0.0-beta.3

Author: mrusmeCreated Dec 15, 2025Updated Jan 6, 2026

Describe the bug The latest x/ansi package (0.11.3) breaks compatibility with v2.0.0-beta.3.

Setup

go 1.25.1

require (
	github.com/charmbracelet/lipgloss/v2 v2.0.0-beta.3
	github.com/charmbracelet/x/ansi v0.11.3
)

To Reproduce go build .

Additional context

log
# github.com/charmbracelet/lipgloss/v2
../../../.go/pkg/mod/github.com/charmbracelet/lipgloss/[email protected]/style.go:297:8: not enough arguments in call to te.Italic
        have ()
        want (bool)
../../../.go/pkg/mod/github.com/charmbracelet/lipgloss/[email protected]/style.go:300:8: not enough arguments in call to te.Underline
        have ()
        want (bool)
../../../.go/pkg/mod/github.com/charmbracelet/lipgloss/[email protected]/style.go:303:18: not enough arguments in call to teWhitespace.Reverse
        have ()
        want (bool)
../../../.go/pkg/mod/github.com/charmbracelet/lipgloss/[email protected]/style.go:304:8: not enough arguments in call to te.Reverse
        have ()
        want (bool)
../../../.go/pkg/mod/github.com/charmbracelet/lipgloss/[email protected]/style.go:307:11: te.SlowBlink undefined (type ansi.Style has no field or method SlowBlink)
../../../.go/pkg/mod/github.com/charmbracelet/lipgloss/[email protected]/style.go:334:8: not enough arguments in call to te.Underline
        have ()
        want (bool)
../../../.go/pkg/mod/github.com/charmbracelet/lipgloss/[email protected]/style.go:337:8: not enough arguments in call to te.Strikethrough
        have ()
        want (bool)
../../../.go/pkg/mod/github.com/charmbracelet/lipgloss/[email protected]/style.go:341:13: not enough arguments in call to teSpace.Underline
        have ()
        want (bool)
../../../.go/pkg/mod/github.com/charmbracelet/lipgloss/[email protected]/style.go:344:13: not enough arguments in call to teSpace.Strikethrough
        have ()
        want (bool)