Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Full Changelog](v4.12.0...v4.13.0) A breaking change has been introduced in the 4.13.0 release. While [adding support for the EU](#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](#136) ([recurly-integrations](https://github.com/recurly-integrations)) - Add region argument to client to connect in EU data center [#132](#132) ([FabricioCoutinho](https://github.com/FabricioCoutinho))
- Loading branch information