From 33b3ab66cd987c6ea0aa27e55ffcaa5d61672fb2 Mon Sep 17 00:00:00 2001 From: Recurly integrations Date: Mon, 31 Jan 2022 22:23:06 +0000 Subject: [PATCH] 4.13.0 [Full Changelog](https://github.com/recurly/recurly-client-go/compare/v4.12.0...v4.13.0) **Merged Pull Requests** - Generated Latest Changes for v2021-02-25 [#136](https://github.com/recurly/recurly-client-go/pull/136) ([recurly-integrations](https://github.com/recurly-integrations)) --- .bumpversion.cfg | 2 +- CHANGELOG.md | 81 ++++++++++++++++++++++++++++++++++++++++++++++++ version.go | 2 +- 3 files changed, 83 insertions(+), 2 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 9ca2c07..5350145 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 4.12.0 +current_version = 4.13.0 parse = (?P\d+) \.(?P\d+) \.(?P\d+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 198ed7f..e83467d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,86 @@ # Changelog +## [v4.13.0](https://github.com/recurly/recurly-client-go/tree/v4.13.0) (2022-01-31) + +[Full Changelog](https://github.com/recurly/recurly-client-go/compare/v4.13.0...v4.13.0) + +A breaking change has been introduced in the 4.13.0 release. + +While [adding support for the EU](https://github.com/recurly/recurly-client-go/pull/132), the `ClientOptions` struct and `NewClientWithOptions` function were added. Part of this process necessitated adding region validations to the `NewClient*` functions. + +When creating an instance of a `Client` with the existing `NewClient` function, you will need to handle the potential error response: + +Original: +```go +client := recurly.NewClient("") +``` + +Updated: +```go +client, err := recurly.NewClient("") +if err != nil { + // Custom error condition handling +} +``` + +Using the newly added `NewClientWithOptions`: +```go +client, err := recurly.NewClientWithOptions("", recurly.ClientOptions{ + Region: recurly.EU, +}) +if err != nil { + // Custom error condition handling +} +``` + +While we make every effort to support semantic versioning in our modules, we determined that this breaking change was necessary in the 4.x version of the client. + + + + + +## [v4.13.0](https://github.com/recurly/recurly-client-go/tree/v4.13.0) (2022-01-31) + +[Full Changelog](https://github.com/recurly/recurly-client-go/compare/v4.12.0...v4.13.0) + +A breaking change has been introduced in the 4.13.0 release. + +While [adding support for the EU](https://github.com/recurly/recurly-client-go/pull/132), the `ClientOptions` struct and `NewClientWithOptions` function were added. Part of this process necessitated adding region validations to the `NewClient*` functions. + +When creating an instance of a `Client` with the existing `NewClient` function, you will need to handle the potential error response: + +Original: +```go +client := recurly.NewClient("") +``` + +Updated: +```go +client, err := recurly.NewClient("") +if err != nil { + // Custom error condition handling +} +``` + +Using the newly added `NewClientWithOptions`: +```go +client, err := recurly.NewClientWithOptions("", recurly.ClientOptions{ + Region: recurly.EU, +}) +if err != nil { + // Custom error condition handling +} +``` + +While we make every effort to support semantic versioning in our modules, we determined that this breaking change was necessary in the 4.x version of the client. + + +**Merged Pull Requests** + +- Generated Latest Changes for v2021-02-25 [#136](https://github.com/recurly/recurly-client-go/pull/136) ([recurly-integrations](https://github.com/recurly-integrations)) + + + ## [v4.12.0](https://github.com/recurly/recurly-client-go/tree/v4.12.0) (2022-01-28) [Full Changelog](https://github.com/recurly/recurly-client-go/compare/v4.11.0...v4.12.0) diff --git a/version.go b/version.go index 042b0f2..282c986 100644 --- a/version.go +++ b/version.go @@ -1,5 +1,5 @@ package recurly const ( - clientVersion = "4.12.0" + clientVersion = "4.13.0" )