Repository: seqsense/aws-iot-device-sdk-go
Pull request #210 (2021-02-19 03:47:00)

Bump package major version to v5

codecov[bot]: # [Codecov](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/210?src=pr&el=h1) Report
> Merging [#210](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/210?src=pr&el=desc) (a51b74c) into [master](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/commit/736a443882c7b1d186aec10954e939d12ed824f7?el=desc) (736a443) will **not change** coverage.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/210/graphs/tree.svg?width=650&height=150&src=pr&token=St5U6jzMqv)](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/210?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##           master     #210   +/-   ##
=======================================
  Coverage   58.19%   58.19%           
=======================================
  Files          27       27           
  Lines        1239     1239           
=======================================
  Hits          721      721           
  Misses        461      461           
  Partials       57       57           
```


| [Impacted Files](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/210?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [awsiotdev.go](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/210/diff?src=pr&el=tree#diff-YXdzaW90ZGV2Lmdv) | `75.00% <ø> (ø)` | |
| [dialer.go](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/210/diff?src=pr&el=tree#diff-ZGlhbGVyLmdv) | `90.90% <ø> (ø)` | |
| [jobs/jobs.go](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/210/diff?src=pr&el=tree#diff-am9icy9qb2JzLmdv) | `86.70% <ø> (ø)` | |
| [presigner/presign.go](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/210/diff?src=pr&el=tree#diff-cHJlc2lnbmVyL3ByZXNpZ24uZ28=) | `73.33% <ø> (ø)` | |
| [shadow/shadow.go](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/210/diff?src=pr&el=tree#diff-c2hhZG93L3NoYWRvdy5nbw==) | `81.43% <ø> (ø)` | |
| [shadow/state.go](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/210/diff?src=pr&el=tree#diff-c2hhZG93L3N0YXRlLmdv) | `73.80% <ø> (ø)` | |
| [tunnel/cmd/localproxy/main.go](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/210/diff?src=pr&el=tree#diff-dHVubmVsL2NtZC9sb2NhbHByb3h5L21haW4uZ28=) | `0.00% <ø> (ø)` | |
| [tunnel/cmd/secure-tunnel-server/main.go](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/210/diff?src=pr&el=tree#diff-dHVubmVsL2NtZC9zZWN1cmUtdHVubmVsLXNlcnZlci9tYWluLmdv) | `1.35% <ø> (ø)` | |
| [tunnel/destination.go](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/210/diff?src=pr&el=tree#diff-dHVubmVsL2Rlc3RpbmF0aW9uLmdv) | `70.73% <ø> (ø)` | |
| [tunnel/msg/helper.go](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/210/diff?src=pr&el=tree#diff-dHVubmVsL21zZy9oZWxwZXIuZ28=) | `80.00% <ø> (ø)` | |
| ... and [7 more](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/210/diff?src=pr&el=tree-more) | |

------

[Continue to review full report at Codecov](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/210?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/210?src=pr&el=footer). Last update [736a443...95714ef](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/210?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

at-wat: @kamatama41 please take a look

Patch:
diff --git a/awsiotdev.go b/awsiotdev.go
index 4a6e77f..223509c 100644
--- a/awsiotdev.go
+++ b/awsiotdev.go
@@ -18,7 +18,7 @@ package awsiotdev
 import (
 	"github.com/at-wat/mqtt-go"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 // Device is an AWS IoT device.
diff --git a/dialer.go b/dialer.go
index 09a1dc9..592b870 100644
--- a/dialer.go
+++ b/dialer.go
@@ -21,8 +21,8 @@ import (
 
 	"github.com/at-wat/mqtt-go"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
-	presigner "github.com/seqsense/aws-iot-device-sdk-go/v4/presigner"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	presigner "github.com/seqsense/aws-iot-device-sdk-go/v5/presigner"
 )
 
 type presignDialer struct {
diff --git a/examples/jobs/main.go b/examples/jobs/main.go
index 09c906c..49c9ef8 100644
--- a/examples/jobs/main.go
+++ b/examples/jobs/main.go
@@ -21,8 +21,8 @@ import (
 	"time"
 
 	"github.com/at-wat/mqtt-go"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/jobs"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/jobs"
 )
 
 func main() {
diff --git a/examples/shadow/main.go b/examples/shadow/main.go
index 2b24abb..cf16291 100644
--- a/examples/shadow/main.go
+++ b/examples/shadow/main.go
@@ -21,8 +21,8 @@ import (
 	"time"
 
 	"github.com/at-wat/mqtt-go"
-	awsiotdev "github.com/seqsense/aws-iot-device-sdk-go/v4"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/shadow"
+	awsiotdev "github.com/seqsense/aws-iot-device-sdk-go/v5"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/shadow"
 )
 
 func main() {
diff --git a/examples/tunnel/main.go b/examples/tunnel/main.go
index d10d6ae..4daa9c0 100644
--- a/examples/tunnel/main.go
+++ b/examples/tunnel/main.go
@@ -23,8 +23,8 @@ import (
 	"time"
 
 	"github.com/at-wat/mqtt-go"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/tunnel"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel"
 )
 
 func main() {
diff --git a/go.mod b/go.mod
index fc36794..ef05438 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/seqsense/aws-iot-device-sdk-go/v4
+module github.com/seqsense/aws-iot-device-sdk-go/v5
 
 require (
 	github.com/at-wat/mqtt-go v0.12.0
diff --git a/jobs/jobs.go b/jobs/jobs.go
index e78e25f..3f57eeb 100644
--- a/jobs/jobs.go
+++ b/jobs/jobs.go
@@ -23,8 +23,8 @@ import (
 
 	"github.com/at-wat/mqtt-go"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 // Jobs is an interface of IoT Jobs.
diff --git a/presigner/presign.go b/presigner/presign.go
index 73ec9ea..2c687ad 100644
--- a/presigner/presign.go
+++ b/presigner/presign.go
@@ -31,7 +31,7 @@ import (
 	"github.com/aws/aws-sdk-go/aws/credentials"
 	"github.com/aws/aws-sdk-go/aws/signer/v4"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 // Presigner is an AWS v4 signer wrapper for AWS IoT.
diff --git a/shadow/shadow.go b/shadow/shadow.go
index edecba0..cb59544 100644
--- a/shadow/shadow.go
+++ b/shadow/shadow.go
@@ -24,8 +24,8 @@ import (
 
 	"github.com/at-wat/mqtt-go"
 
-	awsiotdev "github.com/seqsense/aws-iot-device-sdk-go/v4"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	awsiotdev "github.com/seqsense/aws-iot-device-sdk-go/v5"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 // Shadow is an interface of Thing Shadow.
diff --git a/shadow/state.go b/shadow/state.go
index 908a3ab..932d3a0 100644
--- a/shadow/state.go
+++ b/shadow/state.go
@@ -19,7 +19,7 @@ import (
 	"errors"
 	"fmt"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 // ErrVersionConflict means thing state update was aborted due to version conflict.
diff --git a/tunnel/cmd/localproxy/main.go b/tunnel/cmd/localproxy/main.go
index 314fe02..aa0d214 100644
--- a/tunnel/cmd/localproxy/main.go
+++ b/tunnel/cmd/localproxy/main.go
@@ -21,7 +21,7 @@ import (
 	"log"
 	"net"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/tunnel"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel"
 )
 
 var (
diff --git a/tunnel/cmd/secure-tunnel-server/main.go b/tunnel/cmd/secure-tunnel-server/main.go
index 8478ab0..a290beb 100644
--- a/tunnel/cmd/secure-tunnel-server/main.go
+++ b/tunnel/cmd/secure-tunnel-server/main.go
@@ -28,8 +28,8 @@ import (
 
 	mqtt "github.com/at-wat/mqtt-go"
 	"github.com/aws/aws-sdk-go/aws/session"
-	awsiot "github.com/seqsense/aws-iot-device-sdk-go/v4"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/tunnel/server"
+	awsiot "github.com/seqsense/aws-iot-device-sdk-go/v5"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel/server"
 )
 
 var (
diff --git a/tunnel/destination.go b/tunnel/destination.go
index ae6f7bb..ad7d3e5 100644
--- a/tunnel/destination.go
+++ b/tunnel/destination.go
@@ -19,8 +19,8 @@ import (
 
 	"google.golang.org/protobuf/proto"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/tunnel/msg"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel/msg"
 )
 
 func proxyDestination(ws io.ReadWriter, dialer Dialer, eh ErrorHandler) error {
diff --git a/tunnel/msg/helper.go b/tunnel/msg/helper.go
index eba4ca7..be02dd3 100644
--- a/tunnel/msg/helper.go
+++ b/tunnel/msg/helper.go
@@ -19,7 +19,7 @@ import (
 
 	"google.golang.org/protobuf/proto"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 // WriteMessage marshals the message and sends to the writer.
diff --git a/tunnel/proxy.go b/tunnel/proxy.go
index 79e58bf..b8f051f 100644
--- a/tunnel/proxy.go
+++ b/tunnel/proxy.go
@@ -24,7 +24,7 @@ import (
 
 	"golang.org/x/net/websocket"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 const (
diff --git a/tunnel/proxyio.go b/tunnel/proxyio.go
index 5083a1a..d88deab 100644
--- a/tunnel/proxyio.go
+++ b/tunnel/proxyio.go
@@ -18,7 +18,7 @@ import (
 	"fmt"
 	"io"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/tunnel/msg"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel/msg"
 )
 
 func readProxy(ws, conn io.ReadWriter, streamID int32, eh ErrorHandler) {
diff --git a/tunnel/server/api.go b/tunnel/server/api.go
index db660ba..ee6d927 100644
--- a/tunnel/server/api.go
+++ b/tunnel/server/api.go
@@ -27,8 +27,8 @@ import (
 	"github.com/aws/aws-sdk-go/private/protocol/json/jsonutil"
 	ist "github.com/aws/aws-sdk-go/service/iotsecuretunneling"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/tunnel"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel"
 )
 
 // apiHandler handles iotsecuretunneling API requests.
diff --git a/tunnel/server/notifier.go b/tunnel/server/notifier.go
index e4b1734..1717634 100644
--- a/tunnel/server/notifier.go
+++ b/tunnel/server/notifier.go
@@ -21,8 +21,8 @@ import (
 
 	"github.com/at-wat/mqtt-go"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/tunnel"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel"
 )
 
 const (
diff --git a/tunnel/server/tunnel.go b/tunnel/server/tunnel.go
index bf44528..f61a0cd 100644
--- a/tunnel/server/tunnel.go
+++ b/tunnel/server/tunnel.go
@@ -24,8 +24,8 @@ import (
 
 	"golang.org/x/net/websocket"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/tunnel"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/tunnel/msg"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel/msg"
 )
 
 // TunnelHandler handles websocket based secure tunneling sessions.
diff --git a/tunnel/source.go b/tunnel/source.go
index 4ae63df..b6c7222 100644
--- a/tunnel/source.go
+++ b/tunnel/source.go
@@ -21,8 +21,8 @@ import (
 
 	"google.golang.org/protobuf/proto"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/tunnel/msg"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel/msg"
 )
 
 func proxySource(ws io.ReadWriter, listener net.Listener, eh ErrorHandler) error {
diff --git a/tunnel/tunnel.go b/tunnel/tunnel.go
index df6a4cb..dff0878 100644
--- a/tunnel/tunnel.go
+++ b/tunnel/tunnel.go
@@ -22,8 +22,8 @@ import (
 
 	"github.com/at-wat/mqtt-go"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 // Tunnel is an interface of secure tunneling.


Test patch:
diff --git a/dialer_test.go b/dialer_test.go
index f538f09..3b98969 100644
--- a/dialer_test.go
+++ b/dialer_test.go
@@ -40,8 +40,8 @@ import (
 	"github.com/aws/aws-sdk-go/aws/client"
 	"github.com/aws/aws-sdk-go/aws/session"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/presigner"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/presigner"
 )
 
 type dummyConfigProvider struct{}
diff --git a/jobs/jobs_test.go b/jobs/jobs_test.go
index b395c9e..73e0139 100644
--- a/jobs/jobs_test.go
+++ b/jobs/jobs_test.go
@@ -25,7 +25,7 @@ import (
 	"github.com/at-wat/mqtt-go"
 	mockmqtt "github.com/at-wat/mqtt-go/mock"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 var errPublish = errors.New("publish failure")
diff --git a/shadow/shadow_test.go b/shadow/shadow_test.go
index c53c84b..d9051d5 100644
--- a/shadow/shadow_test.go
+++ b/shadow/shadow_test.go
@@ -25,7 +25,7 @@ import (
 	"github.com/at-wat/mqtt-go"
 	mockmqtt "github.com/at-wat/mqtt-go/mock"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 type mockDevice struct {
diff --git a/shadow/state_test.go b/shadow/state_test.go
index 0c5cc6c..7518b93 100644
--- a/shadow/state_test.go
+++ b/shadow/state_test.go
@@ -21,7 +21,7 @@ import (
 	"strings"
 	"testing"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 func TestThingDocument_update(t *testing.T) {
diff --git a/tunnel/msg/helper_test.go b/tunnel/msg/helper_test.go
index e5cf015..9efc2c9 100644
--- a/tunnel/msg/helper_test.go
+++ b/tunnel/msg/helper_test.go
@@ -19,7 +19,7 @@ import (
 	"errors"
 	"testing"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 func TestWriteMessage(t *testing.T) {
diff --git a/tunnel/proxy_test.go b/tunnel/proxy_test.go
index b0bbc6a..ea2b837 100644
--- a/tunnel/proxy_test.go
+++ b/tunnel/proxy_test.go
@@ -24,8 +24,8 @@ import (
 
 	"google.golang.org/protobuf/proto"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/tunnel/msg"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel/msg"
 )
 
 var (
diff --git a/tunnel/server/api_test.go b/tunnel/server/api_test.go
index eca9ecf..96933a7 100644
--- a/tunnel/server/api_test.go
+++ b/tunnel/server/api_test.go
@@ -30,7 +30,7 @@ import (
 	"github.com/aws/aws-sdk-go/aws/session"
 	ist "github.com/aws/aws-sdk-go/service/iotsecuretunneling"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 func TestAPI(t *testing.T) {
diff --git a/tunnel/tunnel_test.go b/tunnel/tunnel_test.go
index 109dba4..68407d1 100644
--- a/tunnel/tunnel_test.go
+++ b/tunnel/tunnel_test.go
@@ -24,7 +24,7 @@ import (
 	mqtt "github.com/at-wat/mqtt-go"
 	mockmqtt "github.com/at-wat/mqtt-go/mock"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 type mockDevice struct {