diff --git a/composer.lock b/composer.lock index 8afb3b87..3b6b2606 100644 --- a/composer.lock +++ b/composer.lock @@ -1492,16 +1492,16 @@ }, { "name": "illuminate/collections", - "version": "v9.19.0", + "version": "v9.20.0", "source": { "type": "git", "url": "https://github.com/illuminate/collections.git", - "reference": "253cfce2bf469c340d2268bfbc31d4ad446a1fa7" + "reference": "b53d26fbcfb623c4f7538eadd9bc5083e0a59bdd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/collections/zipball/253cfce2bf469c340d2268bfbc31d4ad446a1fa7", - "reference": "253cfce2bf469c340d2268bfbc31d4ad446a1fa7", + "url": "https://api.github.com/repos/illuminate/collections/zipball/b53d26fbcfb623c4f7538eadd9bc5083e0a59bdd", + "reference": "b53d26fbcfb623c4f7538eadd9bc5083e0a59bdd", "shasum": "" }, "require": { @@ -1543,11 +1543,11 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2022-06-28T14:33:19+00:00" + "time": "2022-07-01T20:41:17+00:00" }, { "name": "illuminate/conditionable", - "version": "v9.19.0", + "version": "v9.20.0", "source": { "type": "git", "url": "https://github.com/illuminate/conditionable.git", @@ -1593,7 +1593,7 @@ }, { "name": "illuminate/contracts", - "version": "v9.19.0", + "version": "v9.20.0", "source": { "type": "git", "url": "https://github.com/illuminate/contracts.git", @@ -1641,7 +1641,7 @@ }, { "name": "illuminate/macroable", - "version": "v9.19.0", + "version": "v9.20.0", "source": { "type": "git", "url": "https://github.com/illuminate/macroable.git", @@ -1687,16 +1687,16 @@ }, { "name": "illuminate/support", - "version": "v9.19.0", + "version": "v9.20.0", "source": { "type": "git", "url": "https://github.com/illuminate/support.git", - "reference": "350d65d043cd81ef84e8f5967d8935e8fa52c055" + "reference": "153993a1dfc8d1d5fb029b2f74a6df3c0712d89a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/support/zipball/350d65d043cd81ef84e8f5967d8935e8fa52c055", - "reference": "350d65d043cd81ef84e8f5967d8935e8fa52c055", + "url": "https://api.github.com/repos/illuminate/support/zipball/153993a1dfc8d1d5fb029b2f74a6df3c0712d89a", + "reference": "153993a1dfc8d1d5fb029b2f74a6df3c0712d89a", "shasum": "" }, "require": { @@ -1752,7 +1752,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2022-06-28T14:33:19+00:00" + "time": "2022-07-13T13:11:02+00:00" }, { "name": "justinrainbow/json-schema", @@ -2151,16 +2151,16 @@ }, { "name": "nesbot/carbon", - "version": "2.58.0", + "version": "2.59.1", "source": { "type": "git", "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "97a34af22bde8d0ac20ab34b29d7bfe360902055" + "reference": "a9000603ea337c8df16cc41f8b6be95a65f4d0f5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/97a34af22bde8d0ac20ab34b29d7bfe360902055", - "reference": "97a34af22bde8d0ac20ab34b29d7bfe360902055", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/a9000603ea337c8df16cc41f8b6be95a65f4d0f5", + "reference": "a9000603ea337c8df16cc41f8b6be95a65f4d0f5", "shasum": "" }, "require": { @@ -2175,11 +2175,12 @@ "doctrine/orm": "^2.7", "friendsofphp/php-cs-fixer": "^3.0", "kylekatarnls/multi-tester": "^2.0", + "ondrejmirtes/better-reflection": "*", "phpmd/phpmd": "^2.9", "phpstan/extension-installer": "^1.0", - "phpstan/phpstan": "^0.12.54 || ^1.0", - "phpunit/php-file-iterator": "^2.0.5", - "phpunit/phpunit": "^7.5.20 || ^8.5.23", + "phpstan/phpstan": "^0.12.99 || ^1.7.14", + "phpunit/php-file-iterator": "^2.0.5 || ^3.0.6", + "phpunit/phpunit": "^7.5.20 || ^8.5.26 || ^9.5.20", "squizlabs/php_codesniffer": "^3.4" }, "bin": [ @@ -2236,15 +2237,19 @@ }, "funding": [ { - "url": "https://opencollective.com/Carbon", - "type": "open_collective" + "url": "https://github.com/sponsors/kylekatarnls", + "type": "github" + }, + { + "url": "https://opencollective.com/Carbon#sponsor", + "type": "opencollective" }, { - "url": "https://tidelift.com/funding/github/packagist/nesbot/carbon", + "url": "https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=readme", "type": "tidelift" } ], - "time": "2022-04-25T19:31:17+00:00" + "time": "2022-06-29T21:43:55+00:00" }, { "name": "nikic/php-parser", diff --git a/readme.txt b/readme.txt index b041a9d7..13402f21 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: GraphQL Requires at least: 4.5 Tested up to: 5.6.1 Requires PHP: 5.6 -Stable tag: 0.1.1 +Stable tag: 0.1.2 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -14,6 +14,12 @@ WPGraphQL Persisted Queries for WPGraphQL, a plugin that provides an extendable == Changelog == += 0.1.2 = + +- Updates to support batch queries +- move save urls out of this plugin into the wpengine cache plugin +- updates to tests + = 0.1.1 = - Initial release to beta users diff --git a/src/Cache/Query.php b/src/Cache/Query.php index 1e19dff9..9394025a 100644 --- a/src/Cache/Query.php +++ b/src/Cache/Query.php @@ -61,6 +61,7 @@ public function build_key( $query_id, $query, $variables = null, $operation = nu 'operation' => $operation, 'user' => $user->ID, ]; + return hash( 'sha256', wp_json_encode( $parts ) ); } diff --git a/wp-graphql-smart-cache.php b/wp-graphql-smart-cache.php index 5662fbbc..2ce22335 100644 --- a/wp-graphql-smart-cache.php +++ b/wp-graphql-smart-cache.php @@ -6,7 +6,7 @@ * Author: WPGraphQL * Author URI: http://www.wpgraphql.com * Domain Path: /languages - * Version: 0.1.1 + * Version: 0.1.2 * * Persisted Queries and Caching for WPGraphQL */