Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
<!-- This file is generated, please add to it using `knope document-change` in the client-library-templates repo -->
# Changelog

## 4.21.0 (2026-10-26)

### Features

#### Set a 60 second request timeout explicitly

Requests now time out after 60 seconds unless you set `request: { timeout: ... }` in the `connection_options` client option. Previously no timeout was set by this library, so the effective timeout depended on the Faraday adapter in use, and could be unlimited for some adapters. With the default `net_http` adapter the behaviour is effectively unchanged, as Net::HTTP already waits up to 60 seconds.

```ruby
client = GoCardlessPro::Client.new(
access_token: ENV["GOCARDLESS_TOKEN"],
connection_options: { request: { timeout: 10 } }
)
```

Other `request` options in `connection_options`, such as `open_timeout`, are kept and do not remove the default `timeout`. A timed out request raises `Faraday::TimeoutError` once automatic retries are exhausted.

## 4.20.1 (2026-10-13)

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion lib/gocardless_pro/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def default_options
'User-Agent' => "#{user_agent}",
'Content-Type' => 'application/json',
'GoCardless-Client-Library' => 'gocardless-pro-ruby',
'GoCardless-Client-Version' => '4.20.1',
'GoCardless-Client-Version' => '4.21.0',
},
}
end
Expand Down
2 changes: 1 addition & 1 deletion lib/gocardless_pro/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ module GoCardlessPro

module GoCardlessPro
# Current version of the GC gem
VERSION = '4.20.1'
VERSION = '4.21.0'
end
Loading