What's Changed
- Update shivammathur/setup-php action to v2.31.1 by @renovate in #38
- Capture the request data to the response to enable logging and troubleshooting by @apotek in #40
Breaking Change
This version changes the constructor of the Response class from __construct(ResponseInterface $response)
to __construct(\GuzzleHttp\ClientInterface $client, string $method, string $url, array $options = [])
.
Most users of this library will not have instantiated a response directly as the response is created by the client request. Nevertheless, we recognize that some users might have used the library in unconventional ways, so we have made this change a major version change.
New Feature.
The response that is returned from API queries now contains two new methods getRequestPath()
and getRequestOptions()
that allow the caller to have some insight into the actual query that was sent to the API. This can be useful for logging or debugging.
Full Changelog: v1.3.0...v.2.0.0