Skip to content

Commit

Permalink
Merge pull request #5 from benada002/fix-1.6-compat
Browse files Browse the repository at this point in the history
Update wp-graphql to v1.6.*
  • Loading branch information
benada002 authored Aug 23, 2021
2 parents 6470846 + da97c8f commit 22fbddd
Show file tree
Hide file tree
Showing 206 changed files with 5,408 additions and 3,657 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
},
"require": {
"php": ">=7.1.0",
"wp-graphql/wp-graphql": "^1.3",
"ivome/graphql-relay-php": "^0.5.0"
"wp-graphql/wp-graphql": "^1.6",
"ivome/graphql-relay-php": "^0.6.0"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
Expand Down
64 changes: 32 additions & 32 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ public function registerWidgetType($typeName, $config)
$objectName = \graphql_format_type_name($typeName);
$this->widgetTypes[$typeName] = $objectName;

$config['eagerlyLoadType'] = true;

\register_graphql_object_type($objectName, $config);
}
}
58 changes: 29 additions & 29 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
[
{
"name": "ivome/graphql-relay-php",
"version": "v0.5.0",
"version_normalized": "0.5.0.0",
"version": "v0.6.0",
"version_normalized": "0.6.0.0",
"source": {
"type": "git",
"url": "https://github.com/ivome/graphql-relay-php.git",
"reference": "b227c17e79564d147db2162329f5bdbe19192313"
"reference": "7055fd45b7e552cee4d1290849b84294b0049373"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ivome/graphql-relay-php/zipball/b227c17e79564d147db2162329f5bdbe19192313",
"reference": "b227c17e79564d147db2162329f5bdbe19192313",
"url": "https://api.github.com/repos/ivome/graphql-relay-php/zipball/7055fd45b7e552cee4d1290849b84294b0049373",
"reference": "7055fd45b7e552cee4d1290849b84294b0049373",
"shasum": ""
},
"require": {
"php": ">=5.4,<8.0-DEV",
"webonyx/graphql-php": ">=0.7.0"
"php": "^7.1 || ^8.0",
"webonyx/graphql-php": "^14.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8",
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
"satooshi/php-coveralls": "~1.0"
},
"time": "2018-05-10T20:18:11+00:00",
"time": "2021-04-24T19:31:29+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand All @@ -44,17 +44,17 @@
},
{
"name": "webonyx/graphql-php",
"version": "v14.4.0",
"version_normalized": "14.4.0.0",
"version": "v14.9.0",
"version_normalized": "14.9.0.0",
"source": {
"type": "git",
"url": "https://github.com/webonyx/graphql-php.git",
"reference": "aab3d49181467db064b41429cde117a7589625fc"
"reference": "36b83621deb5eae354347a2e86dc7aec81b32a82"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/webonyx/graphql-php/zipball/aab3d49181467db064b41429cde117a7589625fc",
"reference": "aab3d49181467db064b41429cde117a7589625fc",
"url": "https://api.github.com/repos/webonyx/graphql-php/zipball/36b83621deb5eae354347a2e86dc7aec81b32a82",
"reference": "36b83621deb5eae354347a2e86dc7aec81b32a82",
"shasum": ""
},
"require": {
Expand All @@ -68,9 +68,9 @@
"nyholm/psr7": "^1.2",
"phpbench/phpbench": "^0.16.10",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "0.12.32",
"phpstan/phpstan-phpunit": "0.12.11",
"phpstan/phpstan-strict-rules": "0.12.2",
"phpstan/phpstan": "0.12.82",
"phpstan/phpstan-phpunit": "0.12.18",
"phpstan/phpstan-strict-rules": "0.12.9",
"phpunit/phpunit": "^7.2|^8.5",
"psr/http-message": "^1.0",
"react/promise": "2.*",
Expand All @@ -81,7 +81,7 @@
"psr/http-message": "To use standard GraphQL server",
"react/promise": "To leverage async resolving on React PHP platform"
},
"time": "2020-12-03T16:05:21+00:00",
"time": "2021-06-15T16:14:17+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand All @@ -108,23 +108,23 @@
},
{
"name": "wp-graphql/wp-graphql",
"version": "v1.3.5",
"version_normalized": "1.3.5.0",
"version": "v1.6.3",
"version_normalized": "1.6.3.0",
"source": {
"type": "git",
"url": "https://github.com/wp-graphql/wp-graphql.git",
"reference": "b2471c50f338080ea10c8f2f519cf141b32273b1"
"reference": "0068cb66cdb3ad2fe35223862e4b57914f15d01c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/wp-graphql/wp-graphql/zipball/b2471c50f338080ea10c8f2f519cf141b32273b1",
"reference": "b2471c50f338080ea10c8f2f519cf141b32273b1",
"url": "https://api.github.com/repos/wp-graphql/wp-graphql/zipball/0068cb66cdb3ad2fe35223862e4b57914f15d01c",
"reference": "0068cb66cdb3ad2fe35223862e4b57914f15d01c",
"shasum": ""
},
"require": {
"ivome/graphql-relay-php": "0.5.0",
"php": ">=7.1.0",
"webonyx/graphql-php": "14.4.0"
"ivome/graphql-relay-php": "0.6.0",
"php": "^7.1 || ^8.0",
"webonyx/graphql-php": "14.9.0"
},
"require-dev": {
"automattic/vipwpcs": "^2.2",
Expand All @@ -141,14 +141,14 @@
"phpcompatibility/phpcompatibility-wp": "^2.1.0",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^0.12.64",
"phpunit/phpunit": "^7.5",
"phpunit/phpunit": "^8.5",
"simpod/php-coveralls-mirror": "^3.0",
"squizlabs/php_codesniffer": "^3.5.7",
"szepeviktor/phpstan-wordpress": "^0.7.1",
"wp-coding-standards/wpcs": "^2.3",
"wp-graphql/wp-graphql-testcase": "^1.1"
"wp-graphql/wp-graphql-testcase": "~2.1"
},
"time": "2021-04-07T13:36:57+00:00",
"time": "2021-08-13T17:22:35+00:00",
"type": "wordpress-plugin",
"installation-source": "dist",
"autoload": {
Expand Down
3 changes: 2 additions & 1 deletion vendor/ivome/graphql-relay-php/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
/composer.lock
/vendor/
/bin/
/build/
/build/
/.phpunit.result.cache
20 changes: 10 additions & 10 deletions vendor/ivome/graphql-relay-php/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
language: php

php:
- 5.4
- 5.5
- 5.6
- 7.0
- nightly
- hhvm
- 7.1
- 7.2
- 7.3
- 7.4
- 8.0
- nightly

install:
- composer install --prefer-dist
- composer install --prefer-dist

script:
- mkdir -p build/logs
- ./bin/phpunit --coverage-clover build/logs/clover.xml tests/
- mkdir -p build/logs
- ./bin/phpunit --coverage-clover build/logs/clover.xml tests/

after_script:
- ./bin/coveralls -v
- ./bin/coveralls -v
6 changes: 3 additions & 3 deletions vendor/ivome/graphql-relay-php/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
"API"
],
"require": {
"php": ">=5.4,<8.0-DEV",
"webonyx/graphql-php": ">=0.7.0"
"php": "^7.1 || ^8.0",
"webonyx/graphql-php": "^14.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8",
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
"satooshi/php-coveralls": "~1.0"
},
"config": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
namespace GraphQLRelay\Tests\Connection;

use GraphQLRelay\Connection\ArrayConnection;
use PHPUnit\Framework\TestCase;

class ArrayConnectionTest extends \PHPUnit_Framework_TestCase
class ArrayConnectionTest extends TestCase
{
protected $letters = ['A', 'B', 'C', 'D', 'E'];

Expand Down
Loading

0 comments on commit 22fbddd

Please sign in to comment.