sailor

A typesafe GraphQL client for PHP

MIT License

Downloads
175.9K
Stars
78
Committers
8
sailor - v0.24.0

Published by spawnia about 2 years ago

Added

  • Accept any array as inputs and serialize it as a list
sailor - v0.23.1

Published by spawnia about 2 years ago

Fixed

  • Normalize path to config file
sailor - v0.23.0

Published by spawnia about 2 years ago

Added

  • Pass events StartRequest and ReceiveResponse to EndpointConfig::handleEvent()
sailor - v0.22.0

Published by spawnia over 2 years ago

Added

  • Add support for types and fields named equivalent to PHP keywords like type Switch or { print { subfield } }.

Removed

  • No longer generate class TypeConverters
sailor - v0.21.2

Published by spawnia over 2 years ago

Fixed

  • Always create log file when instantiating Log client
sailor - v0.21.1

Published by spawnia over 2 years ago

Changed

  • Improve validation error for missing fields or required data

Fixed

  • Add correct __typename in polymorphic types make() method
sailor - v0.21.0

Published by spawnia over 2 years ago

Added

  • Allow specifying --configuration option to CLI commands to read specific config file
sailor - v0.20.2

Published by spawnia over 2 years ago

Changed

  • Ignore the schema itself when looking for operations
sailor - v0.20.1

Published by spawnia over 2 years ago

Changed

  • Simply ignore non-executable definitions
sailor - v0.20.0

Published by spawnia over 2 years ago

Added

  • Support fragments

Fixed

  • Merge fields between diverging subtrees within inline fragments
sailor - v0.19.0

Published by spawnia over 2 years ago

Added

  • Allow customizing how documents are found
sailor - v0.18.2

Published by spawnia over 2 years ago

Fixed

  • Validate endpoint names in introspect command are strings
sailor - v0.18.1

Published by spawnia over 2 years ago

Fixed

  • Fix PHP 8.1 compatibility
sailor - v0.18.0

Published by spawnia over 2 years ago

Added

  • Allow thecodingmachine/safe v2 as dependency
sailor - v0.17.1

Published by spawnia almost 3 years ago

Fixed

  • Set errors property of Spawnia\Sailor\Error\ResultErrorsException
sailor - v0.17.0

Published by spawnia almost 3 years ago

Changed

  • Use self-explanatory string value for ObjectLike::UNDEFINED
sailor - v0.16.0

Published by spawnia almost 3 years ago

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()
sailor - v0.15.0

Published by spawnia almost 3 years ago

Added

  • Add ability to overwrite parsing of errors

Changed

  • Convert errors from plain stdClass to Spawnia\Sailor\Error\Error in results
sailor - v0.14.1

Published by spawnia almost 3 years ago

Fixed

  • Fix conversion of custom types used directly in variables
sailor - v0.14.0

Published by spawnia almost 3 years ago

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()
Package Rankings
Top 3.74% on Packagist.org
Badges
Extracted from project README
CI Status codecov