|
1 | 1 | # Changelog |
2 | 2 |
|
| 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 | + |
3 | 84 | ## [v4.12.0](https://github.com/recurly/recurly-client-go/tree/v4.12.0) (2022-01-28) |
4 | 85 |
|
5 | 86 | [Full Changelog](https://github.com/recurly/recurly-client-go/compare/v4.11.0...v4.12.0) |
|
0 commit comments