Skip to content

Commit

Permalink
4.13.0
Browse files Browse the repository at this point in the history
[Full Changelog](v4.12.0...v4.13.0)

**Merged Pull Requests**

- Generated Latest Changes for v2021-02-25 [#136](#136) ([recurly-integrations](https://github.com/recurly-integrations))
  • Loading branch information
Recurly integrations authored and douglasmiller committed Jan 31, 2022
1 parent 7894f8a commit 33b3ab6
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 4.12.0
current_version = 4.13.0
parse = (?P<major>\d+)
\.(?P<minor>\d+)
\.(?P<patch>\d+)
Expand Down
81 changes: 81 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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("<apikey>")
```

Updated:
```go
client, err := recurly.NewClient("<apikey>")
if err != nil {
// Custom error condition handling
}
```

Using the newly added `NewClientWithOptions`:
```go
client, err := recurly.NewClientWithOptions("<apikey>", 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("<apikey>")
```

Updated:
```go
client, err := recurly.NewClient("<apikey>")
if err != nil {
// Custom error condition handling
}
```

Using the newly added `NewClientWithOptions`:
```go
client, err := recurly.NewClientWithOptions("<apikey>", 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)
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package recurly

const (
clientVersion = "4.12.0"
clientVersion = "4.13.0"
)

0 comments on commit 33b3ab6

Please sign in to comment.