Skip to content

Releases: spawnia/sailor

v0.19.0

10 Mar 10:33
Compare
Choose a tag to compare

Added

  • Allow customizing how documents are found

v0.18.2

15 Feb 11:04
Compare
Choose a tag to compare

Fixed

  • Validate endpoint names in introspect command are strings

v0.18.1

02 Feb 11:23
Compare
Choose a tag to compare

Fixed

  • Fix PHP 8.1 compatibility

v0.18.0

02 Feb 10:56
Compare
Choose a tag to compare

Added

  • Allow thecodingmachine/safe v2 as dependency

v0.17.1

14 Jan 09:41
Compare
Choose a tag to compare

Fixed

  • Set errors property of Spawnia\Sailor\Error\ResultErrorsException

v0.17.0

04 Jan 13:43
fa32ab7
Compare
Choose a tag to compare

Changed

  • Use self-explanatory string value for ObjectLike::UNDEFINED

v0.16.0

04 Jan 13:23
e567c4c
Compare
Choose a tag to compare

Added

  • Add configuration EndpointConfig::errorsAreClientSafe() to propagate client-safety of endpoint errors

Changed

  • Move Spawnia\Sailor\ResultErrorsException to Spawnia\Sailor\Error\ResultErrorsException
  • Move Spawnia\Sailor\InvalidDataException to Spawnia\Sailor\Error\InvalidDataException
  • Include only messages in ResultErrorsException::$message, expose full Error objects as ResultErrorsException::$errors

Removed

  • Remove Spawnia\Sailor\Response::assertErrorFree()

v0.15.0

28 Dec 15:57
7a1d2eb
Compare
Choose a tag to compare

Added

  • Add ability to overwrite parsing of errors

Changed

  • Convert errors from plain stdClass to Spawnia\Sailor\Error\Error in results

v0.14.1

21 Dec 16:02
f6d7fa1
Compare
Choose a tag to compare

Fixed

  • Fix conversion of custom types used directly in variables

v0.14.0

08 Dec 14:45
8e5548f
Compare
Choose a tag to compare

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() and Result::fromErrors()
  • Ease input and mock data instantiation with ObjectLike::make()