Skip to content

Commit 33b3ab6

Browse files
Recurly integrationsdouglasmiller
authored andcommitted
4.13.0
[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))
1 parent 7894f8a commit 33b3ab6

3 files changed

Lines changed: 83 additions & 2 deletions

File tree

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 4.12.0
2+
current_version = 4.13.0
33
parse = (?P<major>\d+)
44
\.(?P<minor>\d+)
55
\.(?P<patch>\d+)

CHANGELOG.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,86 @@
11
# Changelog
22

3+
## [v4.13.0](https://github.com/recurly/recurly-client-go/tree/v4.13.0) (2022-01-31)
4+
5+
[Full Changelog](https://github.com/recurly/recurly-client-go/compare/v4.13.0...v4.13.0)
6+
7+
A breaking change has been introduced in the 4.13.0 release.
8+
9+
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.
10+
11+
When creating an instance of a `Client` with the existing `NewClient` function, you will need to handle the potential error response:
12+
13+
Original:
14+
```go
15+
client := recurly.NewClient("<apikey>")
16+
```
17+
18+
Updated:
19+
```go
20+
client, err := recurly.NewClient("<apikey>")
21+
if err != nil {
22+
// Custom error condition handling
23+
}
24+
```
25+
26+
Using the newly added `NewClientWithOptions`:
27+
```go
28+
client, err := recurly.NewClientWithOptions("<apikey>", recurly.ClientOptions{
29+
Region: recurly.EU,
30+
})
31+
if err != nil {
32+
// Custom error condition handling
33+
}
34+
```
35+
36+
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.
37+
38+
39+
40+
41+
42+
## [v4.13.0](https://github.com/recurly/recurly-client-go/tree/v4.13.0) (2022-01-31)
43+
44+
[Full Changelog](https://github.com/recurly/recurly-client-go/compare/v4.12.0...v4.13.0)
45+
46+
A breaking change has been introduced in the 4.13.0 release.
47+
48+
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.
49+
50+
When creating an instance of a `Client` with the existing `NewClient` function, you will need to handle the potential error response:
51+
52+
Original:
53+
```go
54+
client := recurly.NewClient("<apikey>")
55+
```
56+
57+
Updated:
58+
```go
59+
client, err := recurly.NewClient("<apikey>")
60+
if err != nil {
61+
// Custom error condition handling
62+
}
63+
```
64+
65+
Using the newly added `NewClientWithOptions`:
66+
```go
67+
client, err := recurly.NewClientWithOptions("<apikey>", recurly.ClientOptions{
68+
Region: recurly.EU,
69+
})
70+
if err != nil {
71+
// Custom error condition handling
72+
}
73+
```
74+
75+
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.
76+
77+
78+
**Merged Pull Requests**
79+
80+
- Generated Latest Changes for v2021-02-25 [#136](https://github.com/recurly/recurly-client-go/pull/136) ([recurly-integrations](https://github.com/recurly-integrations))
81+
82+
83+
384
## [v4.12.0](https://github.com/recurly/recurly-client-go/tree/v4.12.0) (2022-01-28)
485

586
[Full Changelog](https://github.com/recurly/recurly-client-go/compare/v4.11.0...v4.12.0)

version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package recurly
22

33
const (
4-
clientVersion = "4.12.0"
4+
clientVersion = "4.13.0"
55
)

0 commit comments

Comments
 (0)