Skip to content

Commit

Permalink
chore: bump version to v3 (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
gagantrivedi authored Jun 20, 2023
1 parent 8a0b36b commit a7b2ed0
Show file tree
Hide file tree
Showing 19 changed files with 56 additions and 56 deletions.
10 changes: 5 additions & 5 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (

"github.com/go-resty/resty/v2"

"github.com/Flagsmith/flagsmith-go-client/v2/flagengine"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/environments"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/identities"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/segments"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/environments"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/identities"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/segments"

. "github.com/Flagsmith/flagsmith-go-client/v2/flagengine/identities/traits"
. "github.com/Flagsmith/flagsmith-go-client/v3/flagengine/identities/traits"
)

// Client provides various methods to query Flagsmith API.
Expand Down
4 changes: 2 additions & 2 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"testing"
"time"

flagsmith "github.com/Flagsmith/flagsmith-go-client/v2"
"github.com/Flagsmith/flagsmith-go-client/v2/fixtures"
flagsmith "github.com/Flagsmith/flagsmith-go-client/v3"
"github.com/Flagsmith/flagsmith-go-client/v3/fixtures"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion example/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"net/http"
"os"

flagsmith "github.com/Flagsmith/flagsmith-go-client/v2"
flagsmith "github.com/Flagsmith/flagsmith-go-client/v3"
)

func main() {
Expand Down
10 changes: 5 additions & 5 deletions flagengine/engine.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package flagengine

import (
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/environments"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/features"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/identities"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/identities/traits"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/segments"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/environments"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/features"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/identities"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/identities/traits"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/segments"
)

// GetEnvironmentFeatureStates returns a list of feature states for a given environment.
Expand Down
10 changes: 5 additions & 5 deletions flagengine/engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package flagengine_test
import (
"testing"

"github.com/Flagsmith/flagsmith-go-client/v2/flagengine"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/environments"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/features"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/identities/traits"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/utils/fixtures"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/environments"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/features"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/identities/traits"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/utils/fixtures"
"github.com/stretchr/testify/assert"
)

Expand Down
6 changes: 3 additions & 3 deletions flagengine/environments/models.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package environments

import (
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/environments/integrations"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/features"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/projects"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/environments/integrations"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/features"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/projects"
)

type EnvironmentModel struct {
Expand Down
2 changes: 1 addition & 1 deletion flagengine/features/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sort"
"strconv"

"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/utils"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/utils"
)

type FeatureModel struct {
Expand Down
2 changes: 1 addition & 1 deletion flagengine/features/models_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package features_test
import (
"testing"

"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/features"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/features"
"github.com/stretchr/testify/assert"
)

Expand Down
10 changes: 5 additions & 5 deletions flagengine/flagengine_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/Flagsmith/flagsmith-go-client/v2/flagengine"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/environments"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/features"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/identities"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/identities/traits"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/environments"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/features"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/identities"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/identities/traits"
)

const TestData = "./engine-test-data/data/environment_n9fbf9h3v4fFgH3U3ngWhb.json"
Expand Down
6 changes: 3 additions & 3 deletions flagengine/identities/models.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package identities

import (
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/features"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/identities/traits"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/utils"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/features"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/identities/traits"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/utils"
)

type IdentityModel struct {
Expand Down
4 changes: 2 additions & 2 deletions flagengine/projects/models.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package projects

import (
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/organisations"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/segments"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/organisations"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/segments"
)

type ProjectModel struct {
Expand Down
6 changes: 3 additions & 3 deletions flagengine/segments/evaluator.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"strconv"
"strings"

"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/identities"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/identities/traits"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/utils"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/identities"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/identities/traits"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/utils"
"github.com/blang/semver/v4"
)

Expand Down
10 changes: 5 additions & 5 deletions flagengine/segments/evaluator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (

"github.com/stretchr/testify/assert"

"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/identities"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/identities/traits"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/segments"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/utils"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/utils/fixtures"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/identities"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/identities/traits"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/segments"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/utils"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/utils/fixtures"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions flagengine/segments/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"strconv"
"strings"

"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/features"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/utils"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/features"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/utils"
)

type SegmentConditionModel struct {
Expand Down
16 changes: 8 additions & 8 deletions flagengine/utils/fixtures/fixtures.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ package fixtures
import (
"time"

"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/environments"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/features"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/identities"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/identities/traits"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/organisations"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/projects"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/segments"
"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/utils"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/environments"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/features"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/identities"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/identities/traits"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/organisations"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/projects"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/segments"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/utils"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion flagengine/utils/hashing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/google/uuid"
"github.com/stretchr/testify/assert"

"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/utils"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/utils"
)

func TestGetHashedPercentageForObjectIds(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion flagengine/utils/time_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/utils"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/utils"
)

func TestUnmarshal(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/Flagsmith/flagsmith-go-client/v2
module github.com/Flagsmith/flagsmith-go-client/v3

go 1.19

Expand Down
4 changes: 2 additions & 2 deletions models.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"encoding/json"
"fmt"

"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/features"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/features"

"github.com/Flagsmith/flagsmith-go-client/v2/flagengine/identities/traits"
"github.com/Flagsmith/flagsmith-go-client/v3/flagengine/identities/traits"
)

type Flag struct {
Expand Down

0 comments on commit a7b2ed0

Please sign in to comment.