github webonyx/graphql-php v15.51.0

latest releases: v15.52.1, v15.52.0
one hour ago

Added

  • Complexity::calculate() to calculate the complexity of the operation that execution selects GHSA-7xh5-44rv-4vr4
  • maxQueryComplexity execution option of GraphQL::executeQuery(), GraphQL::promiseToExecute() and StandardServer GHSA-7xh5-44rv-4vr4

Changed

  • GraphQL::executeQuery(), GraphQL::promiseToExecute() and StandardServer enforce the QueryComplexity rule's limit after validation and only for the executed operation, so operations that do not run no longer reject the document GHSA-7xh5-44rv-4vr4

Deprecated

  • QueryComplexity validation rule, use the maxQueryComplexity execution option or Complexity::calculate() GHSA-7xh5-44rv-4vr4

Fixed

  • Avoid quadratic validation cost in QueryComplexity from re-coercing request variables for every operation, for GraphQL::executeQuery(), GraphQL::promiseToExecute() and StandardServer; direct DocumentValidator::validate() callers should switch to Complexity::calculate() GHSA-7xh5-44rv-4vr4

Don't miss a new graphql-php release

NewReleases is sending notifications on new releases.