From 7529df526c776a73619400d24d8d034a4aa27431 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Thu, 27 Jul 2023 16:22:33 -0600 Subject: [PATCH] chore: prepare v5.1.0 for release --- CHANGELOG.md | 4 ++-- README.md | 4 ++-- VERSION | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index da1c837c..6b3afa0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,9 @@ # CHANGELOG -## Next Release +## v5.1.0 (2023-07-28) -- Maps 400 status code responses to the new `BadRequestError` class - Adds hooks to introspect the request and response of API calls (see `HTTP Hooks` section in the README for more details) +- Maps 400 status code responses to the new `BadRequestError` class ## v5.0.1 (2023-06-20) diff --git a/README.md b/README.md index 0bb9655e..fd9724a7 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,7 @@ my_client = described_class.new( ### HTTP Hooks -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`: +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`: ```ruby require 'easypost' @@ -157,7 +157,7 @@ puts response_hook # :my_response_hook 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. -#### A note on response hooks and custom HTTP connections +#### Custom HTTP Connections with HTTP Hooks 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. diff --git a/VERSION b/VERSION index 6b244dcd..831446cb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -5.0.1 +5.1.0