Releases: spawnia/sailor
Releases · spawnia/sailor
v0.19.0
v0.18.2
v0.18.1
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()