Skip to content

Commit

Permalink
feat!: v2: move to v2 module
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Oct 29, 2024
1 parent 9718f22 commit 049a2d2
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 18 deletions.
6 changes: 1 addition & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
module github.com/charmbracelet/lipgloss

retract v0.7.0 // v0.7.0 introduces a bug that causes some apps to freeze.

retract v0.11.1 // v0.11.1 uses a broken version of x/ansi StringWidth that causes some lines to wrap incorrectly.
module github.com/charmbracelet/lipgloss/v2

go 1.18

Expand Down
4 changes: 2 additions & 2 deletions list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
package list

import (
"github.com/charmbracelet/lipgloss"
"github.com/charmbracelet/lipgloss/tree"
"github.com/charmbracelet/lipgloss/v2"
"github.com/charmbracelet/lipgloss/v2/tree"
)

// List represents a list of items that can be displayed. Lists can contain
Expand Down
6 changes: 3 additions & 3 deletions list/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"unicode"

"github.com/aymanbagabas/go-udiff"
"github.com/charmbracelet/lipgloss"
"github.com/charmbracelet/lipgloss/list"
"github.com/charmbracelet/lipgloss/tree"
"github.com/charmbracelet/lipgloss/v2"
"github.com/charmbracelet/lipgloss/v2/list"
"github.com/charmbracelet/lipgloss/v2/tree"
"github.com/charmbracelet/x/ansi"
)

Expand Down
2 changes: 1 addition & 1 deletion table/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package table
import (
"strings"

"github.com/charmbracelet/lipgloss"
"github.com/charmbracelet/lipgloss/v2"
"github.com/charmbracelet/x/ansi"
)

Expand Down
2 changes: 1 addition & 1 deletion table/table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"unicode"

"github.com/aymanbagabas/go-udiff"
"github.com/charmbracelet/lipgloss"
"github.com/charmbracelet/lipgloss/v2"
"github.com/charmbracelet/x/ansi"
"github.com/charmbracelet/x/exp/golden"
)
Expand Down
2 changes: 1 addition & 1 deletion tree/renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package tree
import (
"strings"

"github.com/charmbracelet/lipgloss"
"github.com/charmbracelet/lipgloss/v2"
)

// StyleFunc allows the tree to be styled per item.
Expand Down
2 changes: 1 addition & 1 deletion tree/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"fmt"
"sync"

"github.com/charmbracelet/lipgloss"
"github.com/charmbracelet/lipgloss/v2"
)

// Node defines a node in a tree.
Expand Down
8 changes: 4 additions & 4 deletions tree/tree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"unicode"

"github.com/aymanbagabas/go-udiff"
"github.com/charmbracelet/lipgloss"
"github.com/charmbracelet/lipgloss/list"
"github.com/charmbracelet/lipgloss/table"
"github.com/charmbracelet/lipgloss/tree"
"github.com/charmbracelet/lipgloss/v2"
"github.com/charmbracelet/lipgloss/v2/list"
"github.com/charmbracelet/lipgloss/v2/table"
"github.com/charmbracelet/lipgloss/v2/tree"
"github.com/charmbracelet/x/ansi"
"github.com/charmbracelet/x/exp/golden"
)
Expand Down

0 comments on commit 049a2d2

Please sign in to comment.