Skip to content

Commit 84b5906

Browse files
authored
chore: bump to v4 (#215)
1 parent 69b1906 commit 84b5906

File tree

87 files changed

+138
-140
lines changed

Some content is hidden

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

87 files changed

+138
-140
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# typesense-go
22

33
[![Build Status](https://cloud.drone.io/api/badges/typesense/typesense-go/status.svg)](https://cloud.drone.io/typesense/typesense-go)
4-
[![GoReportCard Status](https://goreportcard.com/badge/github.com/typesense/typesense-go/v3)](https://goreportcard.com/report/github.com/typesense/typesense-go/v3)
5-
[![Go Reference](https://pkg.go.dev/badge/github.com/typesense/typesense-go/v3.svg)](https://pkg.go.dev/github.com/typesense/typesense-go/v3)
4+
[![GoReportCard Status](https://goreportcard.com/badge/github.com/typesense/typesense-go/v4)](https://goreportcard.com/report/github.com/typesense/typesense-go/v4)
5+
[![Go Reference](https://pkg.go.dev/badge/github.com/typesense/typesense-go/v4.svg)](https://pkg.go.dev/github.com/typesense/typesense-go/v4)
66
[![GitHub release](https://img.shields.io/github/v/release/typesense/typesense-go)](https://github.com/typesense/typesense-go/releases/latest)
77
[![Gitter](https://badges.gitter.im/typesense-go/community.svg)](https://gitter.im/typesense-go/community)
88

@@ -11,15 +11,15 @@ Go client for the Typesense API: https://github.com/typesense/typesense
1111
## Installation
1212

1313
```
14-
go get github.com/typesense/typesense-go/v3/typesense
14+
go get github.com/typesense/typesense-go/v4/typesense
1515
```
1616

1717
## Usage
1818

1919
Import the the package into your code :
2020

2121
```go
22-
import "github.com/typesense/typesense-go/v3/typesense"
22+
import "github.com/typesense/typesense-go/v4/typesense"
2323
```
2424

2525
Create new client:
@@ -516,8 +516,6 @@ export TYPESENSE_API_KEY="xyz"
516516
go test ./... -tags=integration -v
517517
```
518518

519-
520-
521519
## License
522520

523521
`typesense-go` is distributed under the Apache 2 license.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/typesense/typesense-go/v3
1+
module github.com/typesense/typesense-go/v4
22

33
go 1.22
44

typesense/alias.go

Lines changed: 1 addition & 1 deletion
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/v3/typesense/api"
6+
"github.com/typesense/typesense-go/v4/typesense/api"
77
)
88

99
// AliasInterface is a type for Alias API operations

typesense/alias_test.go

Lines changed: 2 additions & 2 deletions
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/v3/typesense/api"
11-
"github.com/typesense/typesense-go/v3/typesense/mocks"
10+
"github.com/typesense/typesense-go/v4/typesense/api"
11+
"github.com/typesense/typesense-go/v4/typesense/mocks"
1212
"go.uber.org/mock/gomock"
1313
)
1414

typesense/aliases.go

Lines changed: 1 addition & 1 deletion
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/v3/typesense/api"
6+
"github.com/typesense/typesense-go/v4/typesense/api"
77
)
88

99
// AliasesInterface is a type for Aliases API operations

typesense/aliases_test.go

Lines changed: 3 additions & 3 deletions
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/v3/typesense/api/pointer"
9+
"github.com/typesense/typesense-go/v4/typesense/api/pointer"
1010

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

typesense/analytics_events.go

Lines changed: 1 addition & 1 deletion
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/v3/typesense/api"
6+
"github.com/typesense/typesense-go/v4/typesense/api"
77
)
88

99
type AnalyticsEventsInterface interface {

typesense/analytics_events_test.go

Lines changed: 1 addition & 1 deletion
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/v3/typesense/api"
10+
"github.com/typesense/typesense-go/v4/typesense/api"
1111
)
1212

1313
func TestAnalyticsEventsCreate(t *testing.T) {

typesense/analytics_rule.go

Lines changed: 1 addition & 1 deletion
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/v3/typesense/api"
6+
"github.com/typesense/typesense-go/v4/typesense/api"
77
)
88

99
type AnalyticsRuleInterface interface {

typesense/analytics_rule_test.go

Lines changed: 2 additions & 2 deletions
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/v3/typesense/api"
10-
"github.com/typesense/typesense-go/v3/typesense/api/pointer"
9+
"github.com/typesense/typesense-go/v4/typesense/api"
10+
"github.com/typesense/typesense-go/v4/typesense/api/pointer"
1111
)
1212

1313
func TestAnalyticsRuleRetrieve(t *testing.T) {

0 commit comments

Comments
 (0)