Skip to content

Commit 6a04373

Browse files
author
maksim.konovalov
committed
Release v2.0.0
1 parent 0230589 commit 6a04373

25 files changed

+56
-42
lines changed

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
## Unreleased
1+
## v2.0.0
2+
3+
We are excited to announce the release of version v2!
4+
This major update was necessary due to the initial design of interfaces that were either incorrect or redundant.
5+
In addition, we have fully adapted to work with Tarantool 3,
6+
eliminating the dependency on UUID-based replica sets and instances.
7+
While you can still use these elements for supplementary information, they are no longer mandatory.
8+
The update also includes changes to several previously public methods,
9+
which were not intended to be exposed in the original vshard implementation.
10+
We would like to express our gratitude to everyone who shared their migration issues with us,
11+
as your feedback was invaluable in shaping the current state of the interfaces.
212

313
FEATURES:
414

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ graph TD
7171
With [Go module](https://github.com/golang/go/wiki/Modules) support, simply add the following import
7272

7373
```
74-
import "github.com/tarantool/go-vshard-router"
74+
import "github.com/tarantool/go-vshard-router/v2"
7575
```
7676
to your code, and then `go [build|run|test]` will automatically fetch the necessary dependencies.
7777

7878
Otherwise, run the following Go command to install the `go-vshard-router` package:
7979

8080
```sh
81-
$ go get -u github.com/tarantool/go-vshard-router
81+
$ go get -u github.com/tarantool/go-vshard-router/v2
8282
```
8383

8484
### Running Go-Vshard-Router
@@ -95,7 +95,7 @@ import (
9595
"time"
9696

9797
vshardrouter "github.com/tarantool/go-vshard-router"
98-
"github.com/tarantool/go-vshard-router/providers/static"
98+
"github.com/tarantool/go-vshard-router/v2/providers/static"
9999

100100
"github.com/google/uuid"
101101
"github.com/tarantool/go-tarantool/v2"

README_ru.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ graph TD
7070
С помощью [Go module](https://github.com/golang/go/wiki/Modules) можно добавить следующий импорт
7171

7272
```
73-
import "github.com/tarantool/go-vshard-router"
73+
import "github.com/tarantool/go-vshard-router/v2"
7474
```
7575
в ваш код, а затем `go [build|run|test]` автоматически получит необходимые зависимости.
7676

7777

7878
В противном случае выполните следующую команду Go, чтобы установить пакет go-vshard-router:
7979
```sh
80-
$ go get -u github.com/tarantool/go-vshard-router
80+
$ go get -u github.com/tarantool/go-vshard-router/v2
8181
```
8282

8383
### Использование Go-Vshard-Router
@@ -93,8 +93,8 @@ import (
9393
"strconv"
9494
"time"
9595

96-
vshardrouter "github.com/tarantool/go-vshard-router"
97-
"github.com/tarantool/go-vshard-router/providers/static"
96+
vshardrouter "github.com/tarantool/go-vshard-router/v2"
97+
"github.com/tarantool/go-vshard-router/v2/providers/static"
9898

9999
"github.com/google/uuid"
100100
"github.com/tarantool/go-tarantool/v2"
@@ -215,7 +215,7 @@ func main() {
215215
![Image alt](docs/static/not-direct.png)
216216

217217

218-
[actions-badge]: https://github.com/tarantool/go-vshard-router/actions/workflows/main.yml/badge.svg
218+
[actions-badge]: https://github.com/tarantool/go-vshard-router/v2/actions/workflows/main.yml/badge.svg
219219
[actions-url]: https://github.com/tarantool/go-vshard-router/actions/workflows/main.yml
220220
[coverage-badge]: https://coveralls.io/repos/github/tarantool/go-vshard-router/badge.svg?branch=master
221221
[coverage-url]: https://coveralls.io/github/tarantool/go-vshard-router?branch=master

docs/doc_ru.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ import (
7979

8080
"github.com/google/uuid"
8181
"github.com/tarantool/go-tarantool/v2"
82-
vshardrouter "github.com/tarantool/go-vshard-router"
83-
"github.com/tarantool/go-vshard-router/providers/static"
82+
vshardrouter "github.com/tarantool/go-vshard-router/v2"
83+
"github.com/tarantool/go-vshard-router/v2/providers/static"
8484
)
8585

8686
func main() {

go.mod

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/tarantool/go-vshard-router
1+
module github.com/tarantool/go-vshard-router/v2
22

33
go 1.22
44

@@ -8,11 +8,12 @@ require (
88
github.com/spf13/viper v1.19.0
99
github.com/stretchr/testify v1.10.0
1010
github.com/tarantool/go-tarantool/v2 v2.2.1
11+
github.com/tarantool/go-vshard-router v1.3.2
1112
github.com/vmihailenco/msgpack/v5 v5.4.1
1213
go.etcd.io/etcd/client/v2 v2.305.17
1314
go.etcd.io/etcd/client/v3 v3.5.17
1415
go.etcd.io/etcd/server/v3 v3.5.17
15-
golang.org/x/sync v0.6.0
16+
golang.org/x/sync v0.10.0
1617
)
1718

1819
require (

go.sum

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,8 @@ github.com/tarantool/go-iproto v1.1.0 h1:HULVOIHsiehI+FnHfM7wMDntuzUddO09DKqu2Wn
350350
github.com/tarantool/go-iproto v1.1.0/go.mod h1:LNCtdyZxojUed8SbOiYHoc3v9NvaZTB7p96hUySMlIo=
351351
github.com/tarantool/go-tarantool/v2 v2.2.1 h1:ldzMVfkmTuJl4ie3ByMIr+mmPSKDVTcSkN8XlVZEows=
352352
github.com/tarantool/go-tarantool/v2 v2.2.1/go.mod h1:hKKeZeCP8Y8+U6ZFS32ot1jHV/n4WKVP4fjRAvQznMY=
353+
github.com/tarantool/go-vshard-router v1.3.2 h1:30ZQIZGj5U6TaAK8NXgTUYgpns938KDQKApnkcqz2Ps=
354+
github.com/tarantool/go-vshard-router v1.3.2/go.mod h1:+ZRedQeNcP5EUjtQg2BKHS9b40u2A3V+IEo2QqTpKJY=
353355
github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802 h1:uruHq4dN7GR16kFc5fp3d1RIYzJW5onx8Ybykw2YQFA=
354356
github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
355357
github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM=
@@ -468,8 +470,8 @@ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJ
468470
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
469471
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
470472
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
471-
golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ=
472-
golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
473+
golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ=
474+
golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
473475
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
474476
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
475477
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=

mocks/topology/topology_controller.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

providers/etcd/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"path/filepath"
77

88
"github.com/google/uuid"
9-
vshardrouter "github.com/tarantool/go-vshard-router"
9+
vshardrouter "github.com/tarantool/go-vshard-router/v2"
1010
"go.etcd.io/etcd/client/v2"
1111
)
1212

providers/etcd/provider_integration_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ package etcd
55

66
import (
77
"fmt"
8-
mocktopology "github.com/tarantool/go-vshard-router/mocks/topology"
9-
"go.etcd.io/etcd/client/v2"
108
"testing"
119
"time"
10+
11+
mocktopology "github.com/tarantool/go-vshard-router/v2/mocks/topology"
12+
"go.etcd.io/etcd/client/v2"
1213
)
1314

1415
func TestNewProvider(t *testing.T) {

providers/static/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"fmt"
66

7-
vshardrouter "github.com/tarantool/go-vshard-router"
7+
vshardrouter "github.com/tarantool/go-vshard-router/v2"
88
)
99

1010
// Check that provider implements TopologyProvider interface

0 commit comments

Comments
 (0)