Releases: spawnia/sailor
Releases · spawnia/sailor
v0.18.0
v0.17.1
v0.17.0
v0.16.0
Added
- Add configuration
EndpointConfig::errorsAreClientSafe()
to propagate client-safety of endpoint errors
Changed
- Move
Spawnia\Sailor\ResultErrorsException
toSpawnia\Sailor\Error\ResultErrorsException
- Move
Spawnia\Sailor\InvalidDataException
toSpawnia\Sailor\Error\InvalidDataException
- Include only messages in
ResultErrorsException::$message
, expose fullError
objects asResultErrorsException::$errors
Removed
- Remove
Spawnia\Sailor\Response::assertErrorFree()
v0.15.0
v0.14.1
v0.14.0
Changed
- Generate operations under namespace
Operations
- Generate enums and inputs under namespace
Types
- Base inputs and results on class
ObjectLike
Added
- Allow customization of how Sailor deals with types using
EndpointConfig::configureTypes()
- Allow additional code generation with
EndpointConfig::generateClasses()
- Ease mock result instantiation with
Result::fromData()
andResult::fromErrors()
- Ease input and mock data instantiation with
ObjectLike::make()
v0.13.0
v0.12.0
v0.11.0
Added
- Support interfaces
- Support unions
- Ensure generated code complies with PHPStan v1 at level max
Changed
- Always add field
__typename
to any subselection and have it available in the result throughTypedObject
- Name generated
TypedObject
classes after the corresponding object type