Skip to content

Releases: spawnia/sailor

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()

v0.13.0

02 Dec 09:10
Compare
Choose a tag to compare

Added

  • Allow symfony/console and symfony/var-exporter v6 as dependencies

v0.12.0

26 Nov 15:53
Compare
Choose a tag to compare

Added

  • Generate Enums and Inputs from the schema

Changed

  • Operations with input object types as arguments expect generated classes instead of \stdClass
  • The operation names Inputs and Enums are now reserved

v0.11.0

24 Nov 15:49
Compare
Choose a tag to compare

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 through TypedObject
  • Name generated TypedObject classes after the corresponding object type