Skip to content

Releases: webonyx/graphql-php

v0.11.5

12 Dec 09:04

Choose a tag to compare

  • Allow objects with __toString in IDType (see #210)

v0.11.4

28 Nov 13:28

Choose a tag to compare

  • findBreakingChanges utility (see #199)

v0.11.3

28 Nov 05:39

Choose a tag to compare

  • StandardServer: Support non pre-parsed PSR-7 request body (see #202)

v0.11.2

13 Oct 17:49

Choose a tag to compare

  • Bugfix: provide descriptions to custom scalars (see #181)

v0.11.1

22 Sep 16:20

Choose a tag to compare

  • Ability to override internal types via types option of the schema (see #174).

v0.11.0

20 Sep 12:51

Choose a tag to compare

This release brings little changes but there are two reasons why it is released as major version:

  1. To follow reference implementation versions (it matches 0.11.x series of graphql-js)
  2. It may break existing applications because scalar input coercion rules are stricter now:

    In previous versions sloppy client input could leak through with unexpected results.
    For example string "false" accidentally sent in variables was converted to boolean true
    and passed to field arguments. In the new version, such input will produce an error
    (which is a spec-compliant behavior).

Improvements:

  • Stricter input coercion (see #171)
  • Types built with BuildSchema now have reference to AST node with corresponding AST definition (in $astNode property)
  • Account for query offset for error locations (e.g. when query is stored in .graphql file)

v0.10.2

30 Aug 16:34

Choose a tag to compare

  • StandardServer improvement: do not raise an error when variables are passed as empty string (see #156)

v0.10.1

20 Aug 18:28

Choose a tag to compare

  • Fixed infinite loop in the server (see #153)

v0.10.0

20 Aug 16:42

Choose a tag to compare

This release brings several breaking changes. Please refer to UPGRADE document for details.

New features and notable changes:

  • Changed minimum PHP version from 5.4 to 5.5
  • Lazy loading of types without separate build step (see #69, see docs)
  • PSR-7 compliant Standard Server (see docs)
  • New default error formatting, which does not expose sensitive data (see docs)
  • Ability to define custom error handler to filter/log/re-throw exceptions after execution (see docs)
  • Allow defining schema configuration using objects with fluent setters vs array (see docs)
  • Allow serializing AST to array and re-creating AST from array lazily (see docs)
  • Apollo-style query batching support via server (see docs)
  • Schema validation, including validation of interface implementations (see docs)
  • Ability to pass custom config formatter when defining schema using GraphQL type language (see docs)

Improvements:

  • Significantly improved parser performance (see #137 and #128)
  • Support for PHP7 exceptions everywhere (see #127)
  • Improved documentation and docblock comments

Deprecations and breaking changes - see UPGRADE document.

v0.9.14

18 Aug 15:31

Choose a tag to compare

  • Minor change to assist DataLoader project in fixing #150