diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a33669..9de95f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). ## Unreleased +## [8.0.0] - 2023-11-20 +### Changed +- **BREAKING** - Server Templates cost float64 +- Fixed rand.Seed deprecation +- Updated mergo dependency ## [7.1.0] - 2023-05-25 ### Added - Implement user/login diff --git a/client.go b/client.go index 233c078..8f750ce 100644 --- a/client.go +++ b/client.go @@ -11,7 +11,7 @@ import ( "strings" ) -const version = "7.1.0" +const version = "8.0.0" type httpClientInterface interface { Do(*http.Request) (*http.Response, error) diff --git a/client_test.go b/client_test.go index 3e839c3..dacaf58 100644 --- a/client_test.go +++ b/client_test.go @@ -33,7 +33,7 @@ func TestRequestHasCorrectHeaders(t *testing.T) { assert.NoError(t, err) assert.Equal(t, "application/json", request.Header.Get("Content-Type"), "header Content-Type is correct") - assert.Equal(t, "test-application/0.0.1 glesys-go/7.1.0", request.Header.Get("User-Agent"), "header User-Agent is correct") + assert.Equal(t, "test-application/0.0.1 glesys-go/8.0.0", request.Header.Get("User-Agent"), "header User-Agent is correct") assert.NotEmpty(t, request.Header.Get("Authorization"), "header Authorization is not empty") } @@ -43,7 +43,7 @@ func TestEmptyUserAgent(t *testing.T) { request, err := client.newRequest(context.Background(), "GET", "/", nil) assert.NoError(t, err) - assert.Equal(t, "glesys-go/7.1.0", request.Header.Get("User-Agent"), "header User-Agent is correct") + assert.Equal(t, "glesys-go/8.0.0", request.Header.Get("User-Agent"), "header User-Agent is correct") } func TestGetResponseErrorMessage(t *testing.T) { diff --git a/doc_test.go b/doc_test.go index bee37fb..809762e 100644 --- a/doc_test.go +++ b/doc_test.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - glesys "github.com/glesys/glesys-go/v7" + glesys "github.com/glesys/glesys-go/v8" ) func ExampleUserService_DoOTPLogin() { diff --git a/go.mod b/go.mod index c7fb248..7a58c54 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/glesys/glesys-go/v7 +module github.com/glesys/glesys-go/v8 require ( dario.cat/mergo v1.0.0