Skip to content

Commit 25d985c

Browse files
committed
Bump to v3, update dependencies
Fixed #189
1 parent 0cde9b6 commit 25d985c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+230
-179
lines changed

go.mod

+21-15
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
module github.com/typesense/typesense-go/v2
1+
module github.com/typesense/typesense-go/v3
22

3-
go 1.18
3+
go 1.22
4+
5+
toolchain go1.23.5
46

57
require (
6-
github.com/google/uuid v1.5.0
8+
github.com/google/uuid v1.6.0
79
github.com/jinzhu/copier v0.3.4
8-
github.com/oapi-codegen/oapi-codegen/v2 v2.3.0
10+
github.com/oapi-codegen/oapi-codegen/v2 v2.4.1
911
github.com/oapi-codegen/runtime v1.1.1
10-
github.com/sony/gobreaker v0.5.0
12+
github.com/sony/gobreaker v1.0.0
1113
github.com/stretchr/testify v1.9.0
1214
github.com/testcontainers/testcontainers-go v0.12.0
13-
go.uber.org/mock v0.4.0
15+
go.uber.org/mock v0.5.0
1416
gopkg.in/yaml.v3 v3.0.1
1517
)
1618

@@ -27,13 +29,14 @@ require (
2729
github.com/docker/docker v20.10.12+incompatible // indirect
2830
github.com/docker/go-connections v0.4.0 // indirect
2931
github.com/docker/go-units v0.4.0 // indirect
30-
github.com/getkin/kin-openapi v0.124.0 // indirect
31-
github.com/go-openapi/jsonpointer v0.20.2 // indirect
32-
github.com/go-openapi/swag v0.22.8 // indirect
32+
github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936 // indirect
33+
github.com/getkin/kin-openapi v0.127.0 // indirect
34+
github.com/go-openapi/jsonpointer v0.21.0 // indirect
35+
github.com/go-openapi/swag v0.23.0 // indirect
3336
github.com/gogo/protobuf v1.3.2 // indirect
3437
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
3538
github.com/golang/protobuf v1.5.2 // indirect
36-
github.com/invopop/yaml v0.2.0 // indirect
39+
github.com/invopop/yaml v0.3.1 // indirect
3740
github.com/josharian/intern v1.0.0 // indirect
3841
github.com/magiconair/properties v1.8.5 // indirect
3942
github.com/mailru/easyjson v0.7.7 // indirect
@@ -49,13 +52,16 @@ require (
4952
github.com/pkg/errors v0.9.1 // indirect
5053
github.com/pmezard/go-difflib v1.0.0 // indirect
5154
github.com/sirupsen/logrus v1.8.1 // indirect
55+
github.com/speakeasy-api/openapi-overlay v0.9.0 // indirect
5256
github.com/ugorji/go/codec v1.2.12 // indirect
57+
github.com/vmware-labs/yaml-jsonpath v0.3.2 // indirect
5358
go.opencensus.io v0.23.0 // indirect
54-
golang.org/x/mod v0.17.0 // indirect
55-
golang.org/x/net v0.25.0 // indirect
56-
golang.org/x/sys v0.20.0 // indirect
57-
golang.org/x/text v0.15.0 // indirect
58-
golang.org/x/tools v0.21.0 // indirect
59+
golang.org/x/mod v0.18.0 // indirect
60+
golang.org/x/net v0.26.0 // indirect
61+
golang.org/x/sync v0.8.0 // indirect
62+
golang.org/x/sys v0.21.0 // indirect
63+
golang.org/x/text v0.18.0 // indirect
64+
golang.org/x/tools v0.22.0 // indirect
5965
google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa // indirect
6066
google.golang.org/grpc v1.43.0 // indirect
6167
google.golang.org/protobuf v1.31.0 // indirect

go.sum

+71-29
Large diffs are not rendered by default.

typesense/alias.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package typesense
33
import (
44
"context"
55

6-
"github.com/typesense/typesense-go/v2/typesense/api"
6+
"github.com/typesense/typesense-go/v3/typesense/api"
77
)
88

99
// AliasInterface is a type for Alias API operations

typesense/alias_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"testing"
88

99
"github.com/stretchr/testify/assert"
10-
"github.com/typesense/typesense-go/v2/typesense/api"
11-
"github.com/typesense/typesense-go/v2/typesense/mocks"
10+
"github.com/typesense/typesense-go/v3/typesense/api"
11+
"github.com/typesense/typesense-go/v3/typesense/mocks"
1212
"go.uber.org/mock/gomock"
1313
)
1414

typesense/aliases.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package typesense
33
import (
44
"context"
55

6-
"github.com/typesense/typesense-go/v2/typesense/api"
6+
"github.com/typesense/typesense-go/v3/typesense/api"
77
)
88

99
// AliasesInterface is a type for Aliases API operations

typesense/aliases_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import (
66
"net/http"
77
"testing"
88

9-
"github.com/typesense/typesense-go/v2/typesense/api/pointer"
9+
"github.com/typesense/typesense-go/v3/typesense/api/pointer"
1010

1111
"github.com/jinzhu/copier"
1212
"github.com/stretchr/testify/assert"
13-
"github.com/typesense/typesense-go/v2/typesense/api"
14-
"github.com/typesense/typesense-go/v2/typesense/mocks"
13+
"github.com/typesense/typesense-go/v3/typesense/api"
14+
"github.com/typesense/typesense-go/v3/typesense/mocks"
1515
"go.uber.org/mock/gomock"
1616
)
1717

typesense/analytics_events.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package typesense
33
import (
44
"context"
55

6-
"github.com/typesense/typesense-go/v2/typesense/api"
6+
"github.com/typesense/typesense-go/v3/typesense/api"
77
)
88

99
type AnalyticsEventsInterface interface {

typesense/analytics_events_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"testing"
88

99
"github.com/stretchr/testify/assert"
10-
"github.com/typesense/typesense-go/v2/typesense/api"
10+
"github.com/typesense/typesense-go/v3/typesense/api"
1111
)
1212

1313
func TestAnalyticsEventsCreate(t *testing.T) {

typesense/analytics_rule.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package typesense
33
import (
44
"context"
55

6-
"github.com/typesense/typesense-go/v2/typesense/api"
6+
"github.com/typesense/typesense-go/v3/typesense/api"
77
)
88

99
type AnalyticsRuleInterface interface {

typesense/analytics_rule_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"testing"
77

88
"github.com/stretchr/testify/assert"
9-
"github.com/typesense/typesense-go/v2/typesense/api"
10-
"github.com/typesense/typesense-go/v2/typesense/api/pointer"
9+
"github.com/typesense/typesense-go/v3/typesense/api"
10+
"github.com/typesense/typesense-go/v3/typesense/api/pointer"
1111
)
1212

1313
func TestAnalyticsRuleRetrieve(t *testing.T) {

typesense/analytics_rules.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package typesense
33
import (
44
"context"
55

6-
"github.com/typesense/typesense-go/v2/typesense/api"
6+
"github.com/typesense/typesense-go/v3/typesense/api"
77
)
88

99
type AnalyticsRulesInterface interface {

typesense/analytics_rules_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"testing"
88

99
"github.com/stretchr/testify/assert"
10-
"github.com/typesense/typesense-go/v2/typesense/api"
11-
"github.com/typesense/typesense-go/v2/typesense/api/pointer"
10+
"github.com/typesense/typesense-go/v3/typesense/api"
11+
"github.com/typesense/typesense-go/v3/typesense/api/pointer"
1212
)
1313

1414
func TestAnalyticsRulesRetrieve(t *testing.T) {

typesense/api/circuit/http_client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package circuit
55
import (
66
"net/http"
77

8-
"github.com/typesense/typesense-go/v2/typesense/api"
8+
"github.com/typesense/typesense-go/v3/typesense/api"
99
)
1010

1111
type HTTPRequestDoer interface {

typesense/api/circuit/http_client_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"testing"
77

88
"github.com/stretchr/testify/assert"
9-
"github.com/typesense/typesense-go/v2/typesense/api/circuit/mocks"
9+
"github.com/typesense/typesense-go/v3/typesense/api/circuit/mocks"
1010
"go.uber.org/mock/gomock"
1111
)
1212

typesense/api/circuit/mocks/mock_circuit.go

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typesense/api/client_gen.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typesense/api/types_gen.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typesense/api_call.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"net/url"
88
"time"
99

10-
"github.com/typesense/typesense-go/v2/typesense/api/circuit"
10+
"github.com/typesense/typesense-go/v3/typesense/api/circuit"
1111
)
1212

1313
type APICall struct {

typesense/client.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"net/http"
88
"time"
99

10-
"github.com/typesense/typesense-go/v2/typesense/api"
11-
"github.com/typesense/typesense-go/v2/typesense/api/circuit"
10+
"github.com/typesense/typesense-go/v3/typesense/api"
11+
"github.com/typesense/typesense-go/v3/typesense/api/circuit"
1212
)
1313

1414
type APIClientInterface interface {

typesense/client_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77

88
"github.com/sony/gobreaker"
99
"github.com/stretchr/testify/assert"
10-
"github.com/typesense/typesense-go/v2/typesense/api"
11-
"github.com/typesense/typesense-go/v2/typesense/api/circuit"
10+
"github.com/typesense/typesense-go/v3/typesense/api"
11+
"github.com/typesense/typesense-go/v3/typesense/api/circuit"
1212
)
1313

1414
func TestHttpError(t *testing.T) {

typesense/collection.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package typesense
33
import (
44
"context"
55

6-
"github.com/typesense/typesense-go/v2/typesense/api"
6+
"github.com/typesense/typesense-go/v3/typesense/api"
77
)
88

99
// CollectionInterface is a type for Collection API operations

typesense/collection_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"testing"
88

99
"github.com/stretchr/testify/assert"
10-
"github.com/typesense/typesense-go/v2/typesense/api"
11-
"github.com/typesense/typesense-go/v2/typesense/api/pointer"
12-
"github.com/typesense/typesense-go/v2/typesense/mocks"
10+
"github.com/typesense/typesense-go/v3/typesense/api"
11+
"github.com/typesense/typesense-go/v3/typesense/api/pointer"
12+
"github.com/typesense/typesense-go/v3/typesense/mocks"
1313
"go.uber.org/mock/gomock"
1414
)
1515

typesense/collections.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package typesense
33
import (
44
"context"
55

6-
"github.com/typesense/typesense-go/v2/typesense/api"
6+
"github.com/typesense/typesense-go/v3/typesense/api"
77
)
88

99
// CollectionsInterface is a type for Collections API operations

typesense/collections_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88

99
"github.com/jinzhu/copier"
1010
"github.com/stretchr/testify/assert"
11-
"github.com/typesense/typesense-go/v2/typesense/api"
12-
"github.com/typesense/typesense-go/v2/typesense/api/pointer"
13-
"github.com/typesense/typesense-go/v2/typesense/mocks"
11+
"github.com/typesense/typesense-go/v3/typesense/api"
12+
"github.com/typesense/typesense-go/v3/typesense/api/pointer"
13+
"github.com/typesense/typesense-go/v3/typesense/mocks"
1414
"go.uber.org/mock/gomock"
1515
)
1616

typesense/conversation_model.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package typesense
33
import (
44
"context"
55

6-
"github.com/typesense/typesense-go/v2/typesense/api"
6+
"github.com/typesense/typesense-go/v3/typesense/api"
77
)
88

99
type ConversationModelInterface interface {

typesense/conversation_model_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"testing"
88

99
"github.com/stretchr/testify/assert"
10-
"github.com/typesense/typesense-go/v2/typesense/api"
11-
"github.com/typesense/typesense-go/v2/typesense/api/pointer"
10+
"github.com/typesense/typesense-go/v3/typesense/api"
11+
"github.com/typesense/typesense-go/v3/typesense/api/pointer"
1212
)
1313

1414
func TestConversationModelRetrieve(t *testing.T) {

typesense/conversation_models.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package typesense
33
import (
44
"context"
55

6-
"github.com/typesense/typesense-go/v2/typesense/api"
6+
"github.com/typesense/typesense-go/v3/typesense/api"
77
)
88

99
// ConversationModelsInterface is a type for ConversationModels API operations

typesense/conversation_models_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"testing"
88

99
"github.com/stretchr/testify/assert"
10-
"github.com/typesense/typesense-go/v2/typesense/api"
11-
"github.com/typesense/typesense-go/v2/typesense/api/pointer"
10+
"github.com/typesense/typesense-go/v3/typesense/api"
11+
"github.com/typesense/typesense-go/v3/typesense/api/pointer"
1212
)
1313

1414
func TestConversationModelsRetrieve(t *testing.T) {

typesense/document.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"io"
77
"strings"
88

9-
"github.com/typesense/typesense-go/v2/typesense/api"
9+
"github.com/typesense/typesense-go/v3/typesense/api"
1010
)
1111

1212
type DocumentInterface[T any] interface {

typesense/document_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"testing"
77

88
"github.com/stretchr/testify/assert"
9-
"github.com/typesense/typesense-go/v2/typesense/api"
10-
"github.com/typesense/typesense-go/v2/typesense/api/pointer"
11-
"github.com/typesense/typesense-go/v2/typesense/mocks"
9+
"github.com/typesense/typesense-go/v3/typesense/api"
10+
"github.com/typesense/typesense-go/v3/typesense/api/pointer"
11+
"github.com/typesense/typesense-go/v3/typesense/mocks"
1212
"go.uber.org/mock/gomock"
1313
)
1414

typesense/documents.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"io"
99
"net/http"
1010

11-
"github.com/typesense/typesense-go/v2/typesense/api"
12-
"github.com/typesense/typesense-go/v2/typesense/api/pointer"
11+
"github.com/typesense/typesense-go/v3/typesense/api"
12+
"github.com/typesense/typesense-go/v3/typesense/api/pointer"
1313
)
1414

1515
const (

typesense/documents_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"testing"
1010

1111
"github.com/stretchr/testify/assert"
12-
"github.com/typesense/typesense-go/v2/typesense/api"
13-
"github.com/typesense/typesense-go/v2/typesense/api/pointer"
14-
"github.com/typesense/typesense-go/v2/typesense/mocks"
12+
"github.com/typesense/typesense-go/v3/typesense/api"
13+
"github.com/typesense/typesense-go/v3/typesense/api/pointer"
14+
"github.com/typesense/typesense-go/v3/typesense/mocks"
1515
"go.uber.org/mock/gomock"
1616
)
1717

typesense/health_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"time"
99

1010
"github.com/stretchr/testify/assert"
11-
"github.com/typesense/typesense-go/v2/typesense/api"
12-
"github.com/typesense/typesense-go/v2/typesense/mocks"
11+
"github.com/typesense/typesense-go/v3/typesense/api"
12+
"github.com/typesense/typesense-go/v3/typesense/mocks"
1313
"go.uber.org/mock/gomock"
1414
)
1515

0 commit comments

Comments
 (0)