Skip to content

Commit c4a59d5

Browse files
authored
Merge pull request #279 from EasyPost/v5.1.0
chore: prepare v5.1.0 for release
2 parents 2c28ca1 + 7529df5 commit c4a59d5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# CHANGELOG
22

3-
## Next Release
3+
## v5.1.0 (2023-07-28)
44

5-
- Maps 400 status code responses to the new `BadRequestError` class
65
- Adds hooks to introspect the request and response of API calls (see `HTTP Hooks` section in the README for more details)
6+
- Maps 400 status code responses to the new `BadRequestError` class
77

88
## v5.0.1 (2023-06-20)
99

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ my_client = described_class.new(
120120

121121
### HTTP Hooks
122122

123-
Users can audit the HTTP requests and response being made by the library by subscribing to request and response events. To do so, pass a block to `subscribe_request_hook` and `subscribe_response_hook` methods of an instance of `EasyPost::Client`:
123+
Users can audit HTTP requests and responses being made by the library by subscribing to request and response events. To do so, pass a block to the `subscribe_request_hook` and `subscribe_response_hook` methods of an instance of `EasyPost::Client`:
124124

125125
```ruby
126126
require 'easypost'
@@ -157,7 +157,7 @@ puts response_hook # :my_response_hook
157157

158158
Keep in mind that subscribing a hook with the same name of an existing hook will replace the existing hook with the new one. A request hook and a response hook can share the same name.
159159

160-
#### A note on response hooks and custom HTTP connections
160+
#### Custom HTTP Connections with HTTP Hooks
161161

162162
If you're using a custom HTTP connection, keep in mind that the `response_data` parameter that a response hook receives *will not be hydrated* with all the response data. You will have to inspect the `client_response_object` property in `response_data` to inspect the response code, response headers and response body.
163163

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.0.1
1+
5.1.0

0 commit comments

Comments
 (0)