All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Add PSR-18 client spawnia#28
Response::fromResponseInterface()
no longer accepts non-200 status codes
- Remove forced dependency on
guzzle/guzzle
- Add methods
Log::requests()
andLog::clear()
to ease assertions onLog
client spawnia#25
- Add
Log
client for integration testing spawnia#24
- Return the first registered mock instance for each operation class
on subsequent calls to
Operation::mock()
- Fix initialization of Result from Response
- Improve error message when trying to map unknown fields onto result classes
- Add method
Result::errorFree()
to ease safe access to a result class without errors
- Allow mocking single operations with Mockery
- Fix codegen for operations with multiple parameters
- Require
Directive.isRepeatable
on introspection - Use typed properties
- Rewrite
Configuration
class
- Remove
EndpointConfig::$mockClient
andEndpointConfig::client()
- Support PHP 8
- Require PHP 7.4 or 8
- Require newer versions of various dependencies
- Fetch introspection results via
vendor/bin/sailor introspect
- Define operations in
.graphql
files and automatically generate client code - Statically validate correctness of defined operations