Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump webonyx/graphql-php from 14.11.8 to 15.0.1 #69

Closed

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Feb 1, 2023

Bumps webonyx/graphql-php from 14.11.8 to 15.0.1.

Release notes

Sourced from webonyx/graphql-php's releases.

v15.0.1

Fixed

  • Fix printing of single line descriptions with backslashes

Changed

  • Print long argument lists on multiple lines
  • Print space between object value brackets

v15.0.0

Changed

  • PHP version required: 7.4+
  • Propagate error message and stack trace for why leaf value serialization failed
  • Do not throw client safe Error when failing to serialize an Enum type
  • Use native PHP types for properties of Type and its subclasses
  • Throw SerializationError over client safe Error when failing to serialize leaf types
  • Move debug entries in errors under extensions key
  • Use native PHP types wherever possible
  • Always throw RequestError with useful message when clients provide an invalid JSON body
  • Move class BlockString from namespace GraphQL\Utils to GraphQL\Language
  • Return string-keyed arrays from GraphQL::getStandardDirectives(), GraphQL::getStandardTypes() and GraphQL::getStandardValidationRules()
  • Move complexity related code from FieldDefinition to QueryComplexity
  • Exclude unused standard types from the schema
  • Require lazy type loader to return Type directly without an intermediary callable
  • Allow lazy type loader to return null
  • Rename ServerConfig option persistentQueryLoader to persistedQueryLoader
  • Call previously unused methods EnumType::parseValue() and EnumType::parseLiteral()
  • Strongly type PromiseAdapter::createRejected() to require \Throwable
  • Move members specific to NamedType out of Type: $name, $description, $config, isBuiltInType(), assertValid()
  • Always convert recursively when calling Node::toArray()
  • Make Directive::$config['args'] use the same definition style as FieldDefinition::$config['args']
  • Rename FieldArgument to Argument
  • Make errors when parsing scalar literals more precise
  • Change expected QueryPlan options from ['group-implementor-fields'] to ['groupImplementorFields' => true] in ResolveInfo::lookAhead()
  • Always convert promises through PromiseAdapter::convertThenable() before calling ->then() on them
  • Use JSON_THROW_ON_ERROR in json_encode()
  • Validate some internal invariants through assert()
  • PromiseAdapter::all() accepts iterable
  • Throw if Introspection::fromSchema() returns no data
  • Reorganize abstract class ASTValidationContext to interface ValidationContext
  • Reorganize AST interfaces related to schema and type extensions
  • Align Utils::suggestionList() with the reference implementation (#1075)
  • Order schema topologically and according to the user-defined order, affects introspection and printing
  • GraphQL\Utils\AST::typeFromAST() now needs a type loader callable instead of the Schema
  • Do not change HTTP status code in StandardServer
  • Use " instead of """ for single line descriptions
  • Make Helper::emitResponse() private, use Helper::sendResponse()
  • Emit unescaped UTF-8 from StandardServer

... (truncated)

Changelog

Sourced from webonyx/graphql-php's changelog.

v15.0.1

Fixed

  • Fix printing of single line descriptions with backslashes

Changed

  • Print long argument lists on multiple lines
  • Print space between object value brackets

v15.0.0

Changed

  • PHP version required: 7.4+
  • Propagate error message and stack trace for why leaf value serialization failed
  • Do not throw client safe Error when failing to serialize an Enum type
  • Use native PHP types for properties of Type and its subclasses
  • Throw SerializationError over client safe Error when failing to serialize leaf types
  • Move debug entries in errors under extensions key
  • Use native PHP types wherever possible
  • Always throw RequestError with useful message when clients provide an invalid JSON body
  • Move class BlockString from namespace GraphQL\Utils to GraphQL\Language
  • Return string-keyed arrays from GraphQL::getStandardDirectives(), GraphQL::getStandardTypes() and GraphQL::getStandardValidationRules()
  • Move complexity related code from FieldDefinition to QueryComplexity
  • Exclude unused standard types from the schema
  • Require lazy type loader to return Type directly without an intermediary callable
  • Allow lazy type loader to return null
  • Rename ServerConfig option persistentQueryLoader to persistedQueryLoader
  • Call previously unused methods EnumType::parseValue() and EnumType::parseLiteral()
  • Strongly type PromiseAdapter::createRejected() to require \Throwable
  • Move members specific to NamedType out of Type: $name, $description, $config, isBuiltInType(), assertValid()
  • Always convert recursively when calling Node::toArray()
  • Make Directive::$config['args'] use the same definition style as FieldDefinition::$config['args']
  • Rename FieldArgument to Argument
  • Make errors when parsing scalar literals more precise
  • Change expected QueryPlan options from ['group-implementor-fields'] to ['groupImplementorFields' => true] in ResolveInfo::lookAhead()
  • Always convert promises through PromiseAdapter::convertThenable() before calling ->then() on them
  • Use JSON_THROW_ON_ERROR in json_encode()
  • Validate some internal invariants through assert()
  • PromiseAdapter::all() accepts iterable
  • Throw if Introspection::fromSchema() returns no data
  • Reorganize abstract class ASTValidationContext to interface ValidationContext
  • Reorganize AST interfaces related to schema and type extensions
  • Align Utils::suggestionList() with the reference implementation (#1075)
  • Order schema topologically and according to the user-defined order, affects introspection and printing
  • GraphQL\Utils\AST::typeFromAST() now needs a type loader callable instead of the Schema
  • Do not change HTTP status code in StandardServer
  • Use " instead of """ for single line descriptions

... (truncated)

Upgrade guide

Sourced from webonyx/graphql-php's upgrade guide.

v14.x.x > v15.x.x

BREAKING: Removed error extension field category

The formatting of errors that implement the ClientAware interface no longer contains the key category. This includes both built-in and user-defined errors.

throw new \GraphQL\Error\Error('msg');

Formatting before the change:

'errors' => [
    [
        'message' => 'msg',
        'extensions' => [
            'category' => 'graphql',
        ],
    ],
]

After the change:

'errors' => [
    [
        'message' => 'msg',
    ],
]

The method ClientAware::getCategory() was removed, you may also remove it from your implementations:

use GraphQL\Error\ClientAware;
class MyException extends \Exception implements ClientAware
{
public function isClientSafe(): bool
{
return true;
}

public function getCategory(): string
{

  return 'my-category';


}
</tr></table>

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [webonyx/graphql-php](https://github.com/webonyx/graphql-php) from 14.11.8 to 15.0.1.
- [Release notes](https://github.com/webonyx/graphql-php/releases)
- [Changelog](https://github.com/webonyx/graphql-php/blob/master/CHANGELOG.md)
- [Upgrade guide](https://github.com/webonyx/graphql-php/blob/master/UPGRADE.md)
- [Commits](webonyx/graphql-php@v14.11.8...v15.0.1)

---
updated-dependencies:
- dependency-name: webonyx/graphql-php
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Feb 1, 2023
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Mar 1, 2023

Superseded by #70.

@dependabot dependabot bot closed this Mar 1, 2023
@dependabot dependabot bot deleted the dependabot/composer/webonyx/graphql-php-15.0.1 branch March 1, 2023 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants