Skip to content

Releases: webonyx/graphql-php

v14.5.1

05 Feb 10:52
3af8b92

Choose a tag to compare

Fix:

  • Fix Input Object field shortcut definition with callable (#773)

v14.5.0

23 Jan 12:54

Choose a tag to compare

Feat:

  • Implement support for interfaces implementing interfaces (#740), huge kudos to @Kingdutch

Deprecates:

  • Constant BreakingChangeFinder::BREAKING_CHANGE_INTERFACE_REMOVED_FROM_OBJECT.
    Use BreakingChangeFinder::BREAKING_CHANGE_IMPLEMENTED_INTERFACE_REMOVED instead.
    Constant value also changed from INTERFACE_REMOVED_FROM_OBJECT to IMPLEMENTED_INTERFACE_REMOVED.

  • Constant BreakingChangeFinder::DANGEROUS_CHANGE_INTERFACE_ADDED_TO_OBJECT
    Use DANGEROUS_CHANGE_IMPLEMENTED_INTERFACE_ADDED instead.
    Constant value also changed from INTERFACE_ADDED_TO_OBJECT to IMPLEMENTED_INTERFACE_ADDED.

Refactoring:

  • Reify AST node types and remove unneeded nullability (#751)

v14.4.1

23 Jan 09:56

Choose a tag to compare

Fix:

  • Allow pushing nodes to NodeList via []= (#767)
  • Fix signature of Error\FormattedError::prepareFormatter() to address PHP8 deprecation (#742)
  • Do not add errors key to result when errors discarded by custom error handler (#766)

v14.4.0

03 Dec 16:07

Choose a tag to compare

  • Fixed SchemaPrinter so that it uses late static bindings when extended (#747)
  • Parse DirectiveDefinitionNode->locations as NodeList<NamedNode> (fixes AST::fromArray conversion) (#723)
  • Parse Parser::implementsInterfaces as NodeList<NamedTypeNode> (fixes AST::fromArray conversion)
  • Fix signature of Parser::unionMemberTypes to match actual NodeList<NamedTypeNode>

v14.3.0

23 Aug 11:53

Choose a tag to compare

New:

  • Allow typeLoader to return a type thunk (#687)

Fix:

  • Read getParsedBody() instead of getBody() when Request is ServerRequest (#715)
  • Fix default get/set behavior on InputObjectField and FieldDefinition (#716)

v14.2.0

14 Aug 08:55

Choose a tag to compare

Deprecates:

  • Public access to FieldDefinition::$type property (#702)

Fixes:

  • Fix validation for input field definition directives (#714)

v14.1.1

21 Jul 17:40

Choose a tag to compare

Fixes:

  • Handle nullable DirectiveNode#astNode in SchemaValidationContext (#708)

v14.1.0

21 Jul 11:23

Choose a tag to compare

New:

  • Add partial parse functions for const variants (#693)

Fixes:

  • Differentiate between client-safe and non-client-safe errors in scalar validation (#706)
  • Proper type hints for IntValueNode (#691)

Refactoring:

  • Ensure NamedTypeNode::$name is always a NameNode (#695)
  • Visitor: simplify getVisitFn (#694)
  • Replace function calls with type casts (#692)
  • Fix "only booleans are allowed" errors (#659)

v14.0.2

07 Jul 16:25

Choose a tag to compare

  • Optimize lazy types (#684)

v14.0.1

02 Jul 06:00

Choose a tag to compare

Bug fixes:

  • Fix for "Invalid AST Node: false" error (#685)
  • Fix for: Argument defaults with integer/float values crashes introspection query (#679)
  • Fix double Error wrapping when parsing variables (#688)

Refactoring:

  • Do not use call_user_func or call_user_func_array (#676)
  • Codestyle and static analysis improvements (#648, #690)