diff --git a/CHANGELOG.md b/CHANGELOG.md index f1d48d9..e81b130 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +## v5.1.0 + +### Changed + +- Make requirement of `mll-lab/graphql-php-scalars` optional + ## v5.0.0 ### Added diff --git a/composer.json b/composer.json index 6549fc0..7a48052 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,6 @@ "require": { "php": "^7.4 || ^8", "illuminate/support": "^7 || ^8 || ^9 || ^10", - "mll-lab/graphql-php-scalars": "^6", "myclabs/php-enum": "^1.7", "thecodingmachine/safe": "^1" }, @@ -25,6 +24,7 @@ "ergebnis/composer-normalize": "^2", "infection/infection": "~0.25", "jangregor/phpstan-prophecy": "^1", + "mll-lab/graphql-php-scalars": "^6", "mll-lab/php-cs-fixer-config": "^4.3", "mll-lab/rector-config": "^2", "nunomaduro/larastan": "^1 || ^2", @@ -38,6 +38,9 @@ "symfony/var-dumper": "^5 || ^6", "thecodingmachine/phpstan-safe-rule": "^1.1" }, + "suggest": { + "mll-lab/graphql-php-scalars": "To use the provided scalar types for GraphQL servers, requires version ^6" + }, "autoload": { "psr-4": { "Mll\\Microplate\\": "src/" diff --git a/composer.lock b/composer.lock index 8d05fdf..27a1d4a 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "59c86e8662a1650ef8d2c9239cdc4d03", + "content-hash": "ca977eba17dd1bb68e79fd377fa92d6c", "packages": [ { "name": "brick/math", @@ -1245,68 +1245,6 @@ ], "time": "2022-04-17T13:12:02+00:00" }, - { - "name": "mll-lab/graphql-php-scalars", - "version": "v6.1.0", - "source": { - "type": "git", - "url": "https://github.com/mll-lab/graphql-php-scalars.git", - "reference": "24a479797f65789e4b47b08f379ac7458a88cb08" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/mll-lab/graphql-php-scalars/zipball/24a479797f65789e4b47b08f379ac7458a88cb08", - "reference": "24a479797f65789e4b47b08f379ac7458a88cb08", - "shasum": "" - }, - "require": { - "egulias/email-validator": "^2.1.17 || ^3 || ^4", - "ext-json": "*", - "php": "^8", - "spatie/regex": "^1.4 || ^2 || ^3", - "thecodingmachine/safe": "^1.3 || ^2", - "webonyx/graphql-php": "^15" - }, - "require-dev": { - "ergebnis/composer-normalize": "^2.16", - "friendsofphp/php-cs-fixer": "3.4.*", - "mll-lab/php-cs-fixer-config": "^4.3", - "phpstan/extension-installer": "^1", - "phpstan/phpstan": "^1", - "phpstan/phpstan-deprecation-rules": "^1", - "phpstan/phpstan-phpunit": "^1", - "phpstan/phpstan-strict-rules": "^1", - "phpunit/phpunit": "^9", - "symfony/var-dumper": "^5.4 || ^6", - "thecodingmachine/phpstan-safe-rule": "^1.1" - }, - "type": "library", - "autoload": { - "psr-4": { - "MLL\\GraphQLScalars\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Benedikt Franke", - "email": "benedikt@franke.tech" - } - ], - "description": "A collection of custom scalar types for usage with https://github.com/webonyx/graphql-php", - "keywords": [ - "graphql", - "php" - ], - "support": { - "issues": "https://github.com/mll-lab/graphql-php-scalars/issues", - "source": "https://github.com/mll-lab/graphql-php-scalars/tree/v6.1.0" - }, - "time": "2023-02-24T08:21:51+00:00" - }, { "name": "monolog/monolog", "version": "3.3.1", @@ -2268,69 +2206,6 @@ ], "time": "2023-01-12T18:13:24+00:00" }, - { - "name": "spatie/regex", - "version": "3.1.1", - "source": { - "type": "git", - "url": "https://github.com/spatie/regex.git", - "reference": "d543de2019a0068e7b80da0ba24f1c51c7469303" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/spatie/regex/zipball/d543de2019a0068e7b80da0ba24f1c51c7469303", - "reference": "d543de2019a0068e7b80da0ba24f1c51c7469303", - "shasum": "" - }, - "require": { - "php": "^8.0|^8.1" - }, - "require-dev": { - "phpunit/phpunit": "^9.3" - }, - "type": "library", - "autoload": { - "psr-4": { - "Spatie\\Regex\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Sebastian De Deyne", - "email": "sebastian@spatie.be", - "homepage": "https://spatie.be", - "role": "Developer" - } - ], - "description": "A sane interface for php's built in preg_* functions", - "homepage": "https://github.com/spatie/regex", - "keywords": [ - "expression", - "expressions", - "regex", - "regular", - "spatie" - ], - "support": { - "issues": "https://github.com/spatie/regex/issues", - "source": "https://github.com/spatie/regex/tree/3.1.1" - }, - "funding": [ - { - "url": "https://spatie.be/open-source/support-us", - "type": "custom" - }, - { - "url": "https://github.com/spatie", - "type": "github" - } - ], - "time": "2021-11-30T21:13:59+00:00" - }, { "name": "symfony/console", "version": "v6.2.7", @@ -4933,79 +4808,6 @@ "source": "https://github.com/webmozarts/assert/tree/1.11.0" }, "time": "2022-06-03T18:03:27+00:00" - }, - { - "name": "webonyx/graphql-php", - "version": "v15.2.4", - "source": { - "type": "git", - "url": "https://github.com/webonyx/graphql-php.git", - "reference": "ac27a8692622ac13e72a6fe354027cc81ef31a6e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/webonyx/graphql-php/zipball/ac27a8692622ac13e72a6fe354027cc81ef31a6e", - "reference": "ac27a8692622ac13e72a6fe354027cc81ef31a6e", - "shasum": "" - }, - "require": { - "ext-json": "*", - "ext-mbstring": "*", - "php": "^7.4 || ^8" - }, - "require-dev": { - "amphp/amp": "^2.6", - "amphp/http-server": "^2.1", - "dms/phpunit-arraysubset-asserts": "^0.4", - "ergebnis/composer-normalize": "^2.28", - "mll-lab/php-cs-fixer-config": "^5.0", - "nyholm/psr7": "^1.5", - "phpbench/phpbench": "^1.2", - "phpstan/extension-installer": "^1.1", - "phpstan/phpstan": "1.10.6", - "phpstan/phpstan-phpunit": "1.3.10", - "phpstan/phpstan-strict-rules": "1.5.0", - "phpunit/phpunit": "^9.5", - "psr/http-message": "^1", - "react/http": "^1.6", - "react/promise": "^2.9", - "rector/rector": "^0.15.18", - "symfony/polyfill-php81": "^1.23", - "symfony/var-exporter": "^5 || ^6", - "thecodingmachine/safe": "^1.3 || ^2" - }, - "suggest": { - "amphp/http-server": "To leverage async resolving with webserver on AMPHP platform", - "psr/http-message": "To use standard GraphQL server", - "react/promise": "To leverage async resolving on React PHP platform" - }, - "type": "library", - "autoload": { - "psr-4": { - "GraphQL\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "A PHP port of GraphQL reference implementation", - "homepage": "https://github.com/webonyx/graphql-php", - "keywords": [ - "api", - "graphql" - ], - "support": { - "issues": "https://github.com/webonyx/graphql-php/issues", - "source": "https://github.com/webonyx/graphql-php/tree/v15.2.4" - }, - "funding": [ - { - "url": "https://opencollective.com/webonyx-graphql-php", - "type": "open_collective" - } - ], - "time": "2023-03-20T18:50:41+00:00" } ], "packages-dev": [ @@ -6595,6 +6397,68 @@ ], "time": "2020-07-06T04:49:32+00:00" }, + { + "name": "mll-lab/graphql-php-scalars", + "version": "v6.1.0", + "source": { + "type": "git", + "url": "https://github.com/mll-lab/graphql-php-scalars.git", + "reference": "24a479797f65789e4b47b08f379ac7458a88cb08" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mll-lab/graphql-php-scalars/zipball/24a479797f65789e4b47b08f379ac7458a88cb08", + "reference": "24a479797f65789e4b47b08f379ac7458a88cb08", + "shasum": "" + }, + "require": { + "egulias/email-validator": "^2.1.17 || ^3 || ^4", + "ext-json": "*", + "php": "^8", + "spatie/regex": "^1.4 || ^2 || ^3", + "thecodingmachine/safe": "^1.3 || ^2", + "webonyx/graphql-php": "^15" + }, + "require-dev": { + "ergebnis/composer-normalize": "^2.16", + "friendsofphp/php-cs-fixer": "3.4.*", + "mll-lab/php-cs-fixer-config": "^4.3", + "phpstan/extension-installer": "^1", + "phpstan/phpstan": "^1", + "phpstan/phpstan-deprecation-rules": "^1", + "phpstan/phpstan-phpunit": "^1", + "phpstan/phpstan-strict-rules": "^1", + "phpunit/phpunit": "^9", + "symfony/var-dumper": "^5.4 || ^6", + "thecodingmachine/phpstan-safe-rule": "^1.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "MLL\\GraphQLScalars\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Benedikt Franke", + "email": "benedikt@franke.tech" + } + ], + "description": "A collection of custom scalar types for usage with https://github.com/webonyx/graphql-php", + "keywords": [ + "graphql", + "php" + ], + "support": { + "issues": "https://github.com/mll-lab/graphql-php-scalars/issues", + "source": "https://github.com/mll-lab/graphql-php-scalars/tree/v6.1.0" + }, + "time": "2023-02-24T08:21:51+00:00" + }, { "name": "mll-lab/php-cs-fixer-config", "version": "v4.5.0", @@ -7058,16 +6922,16 @@ }, { "name": "orchestra/testbench", - "version": "v8.0.10", + "version": "v8.0.11", "source": { "type": "git", "url": "https://github.com/orchestral/testbench.git", - "reference": "c02190defc738fbe20d147a6de48738aed113c19" + "reference": "563a6c3a2e5762385ac6ce900640ae267b815802" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/orchestral/testbench/zipball/c02190defc738fbe20d147a6de48738aed113c19", - "reference": "c02190defc738fbe20d147a6de48738aed113c19", + "url": "https://api.github.com/repos/orchestral/testbench/zipball/563a6c3a2e5762385ac6ce900640ae267b815802", + "reference": "563a6c3a2e5762385ac6ce900640ae267b815802", "shasum": "" }, "require": { @@ -7078,7 +6942,7 @@ "orchestra/testbench-core": ">=8.0.5 <8.2.0", "php": "^8.1", "phpunit/phpunit": "^9.6 || ^10.0.7", - "spatie/laravel-ray": "^1.32", + "spatie/laravel-ray": "^1.32.4", "symfony/process": "^6.2", "symfony/yaml": "^6.2", "vlucas/phpdotenv": "^5.4.1" @@ -7107,22 +6971,22 @@ ], "support": { "issues": "https://github.com/orchestral/testbench/issues", - "source": "https://github.com/orchestral/testbench/tree/v8.0.10" + "source": "https://github.com/orchestral/testbench/tree/v8.0.11" }, - "time": "2023-03-18T13:08:38+00:00" + "time": "2023-03-23T09:39:48+00:00" }, { "name": "orchestra/testbench-core", - "version": "v8.1.1", + "version": "v8.1.2", "source": { "type": "git", "url": "https://github.com/orchestral/testbench-core.git", - "reference": "9ec213fb981eda7ba35d1996a2716ee7e24dc0ac" + "reference": "fa72d1867fcd0b1f693e6d8d56a6f24ee27ba459" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/orchestral/testbench-core/zipball/9ec213fb981eda7ba35d1996a2716ee7e24dc0ac", - "reference": "9ec213fb981eda7ba35d1996a2716ee7e24dc0ac", + "url": "https://api.github.com/repos/orchestral/testbench-core/zipball/fa72d1867fcd0b1f693e6d8d56a6f24ee27ba459", + "reference": "fa72d1867fcd0b1f693e6d8d56a6f24ee27ba459", "shasum": "" }, "require": { @@ -7196,7 +7060,7 @@ "issues": "https://github.com/orchestral/testbench/issues", "source": "https://github.com/orchestral/testbench-core" }, - "time": "2023-03-20T10:00:27+00:00" + "time": "2023-03-22T07:28:32+00:00" }, { "name": "phar-io/manifest", @@ -8327,16 +8191,16 @@ }, { "name": "rector/rector", - "version": "0.15.21", + "version": "0.15.23", "source": { "type": "git", "url": "https://github.com/rectorphp/rector.git", - "reference": "1cee8cc5d6d836e1bf9a3006d7b062adde3a6022" + "reference": "f4984ebd62b3613002869b0ddd6868261d62819e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/rectorphp/rector/zipball/1cee8cc5d6d836e1bf9a3006d7b062adde3a6022", - "reference": "1cee8cc5d6d836e1bf9a3006d7b062adde3a6022", + "url": "https://api.github.com/repos/rectorphp/rector/zipball/f4984ebd62b3613002869b0ddd6868261d62819e", + "reference": "f4984ebd62b3613002869b0ddd6868261d62819e", "shasum": "" }, "require": { @@ -8376,7 +8240,7 @@ ], "support": { "issues": "https://github.com/rectorphp/rector/issues", - "source": "https://github.com/rectorphp/rector/tree/0.15.21" + "source": "https://github.com/rectorphp/rector/tree/0.15.23" }, "funding": [ { @@ -8384,7 +8248,7 @@ "type": "github" } ], - "time": "2023-03-06T11:44:29+00:00" + "time": "2023-03-22T15:22:45+00:00" }, { "name": "sanmai/later", @@ -9601,16 +9465,16 @@ }, { "name": "spatie/laravel-ray", - "version": "1.32.3", + "version": "1.32.4", "source": { "type": "git", "url": "https://github.com/spatie/laravel-ray.git", - "reference": "8c7ea86c8092bcfe7a046f640b6ac9e5d7ec98cd" + "reference": "2274653f0a90dd87fbb887437be1c1ea1388a47c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-ray/zipball/8c7ea86c8092bcfe7a046f640b6ac9e5d7ec98cd", - "reference": "8c7ea86c8092bcfe7a046f640b6ac9e5d7ec98cd", + "url": "https://api.github.com/repos/spatie/laravel-ray/zipball/2274653f0a90dd87fbb887437be1c1ea1388a47c", + "reference": "2274653f0a90dd87fbb887437be1c1ea1388a47c", "shasum": "" }, "require": { @@ -9670,7 +9534,7 @@ ], "support": { "issues": "https://github.com/spatie/laravel-ray/issues", - "source": "https://github.com/spatie/laravel-ray/tree/1.32.3" + "source": "https://github.com/spatie/laravel-ray/tree/1.32.4" }, "funding": [ { @@ -9682,7 +9546,7 @@ "type": "other" } ], - "time": "2023-03-03T13:37:21+00:00" + "time": "2023-03-23T08:04:54+00:00" }, { "name": "spatie/macroable", @@ -9810,6 +9674,69 @@ ], "time": "2023-03-06T07:22:28+00:00" }, + { + "name": "spatie/regex", + "version": "3.1.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/regex.git", + "reference": "d543de2019a0068e7b80da0ba24f1c51c7469303" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/regex/zipball/d543de2019a0068e7b80da0ba24f1c51c7469303", + "reference": "d543de2019a0068e7b80da0ba24f1c51c7469303", + "shasum": "" + }, + "require": { + "php": "^8.0|^8.1" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Regex\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Sebastian De Deyne", + "email": "sebastian@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "A sane interface for php's built in preg_* functions", + "homepage": "https://github.com/spatie/regex", + "keywords": [ + "expression", + "expressions", + "regex", + "regular", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/regex/issues", + "source": "https://github.com/spatie/regex/tree/3.1.1" + }, + "funding": [ + { + "url": "https://spatie.be/open-source/support-us", + "type": "custom" + }, + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2021-11-30T21:13:59+00:00" + }, { "name": "symfony/filesystem", "version": "v6.2.7", @@ -10396,6 +10323,79 @@ "abandoned": "symfony/filesystem", "time": "2015-12-17T08:42:14+00:00" }, + { + "name": "webonyx/graphql-php", + "version": "v15.2.4", + "source": { + "type": "git", + "url": "https://github.com/webonyx/graphql-php.git", + "reference": "ac27a8692622ac13e72a6fe354027cc81ef31a6e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webonyx/graphql-php/zipball/ac27a8692622ac13e72a6fe354027cc81ef31a6e", + "reference": "ac27a8692622ac13e72a6fe354027cc81ef31a6e", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-mbstring": "*", + "php": "^7.4 || ^8" + }, + "require-dev": { + "amphp/amp": "^2.6", + "amphp/http-server": "^2.1", + "dms/phpunit-arraysubset-asserts": "^0.4", + "ergebnis/composer-normalize": "^2.28", + "mll-lab/php-cs-fixer-config": "^5.0", + "nyholm/psr7": "^1.5", + "phpbench/phpbench": "^1.2", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "1.10.6", + "phpstan/phpstan-phpunit": "1.3.10", + "phpstan/phpstan-strict-rules": "1.5.0", + "phpunit/phpunit": "^9.5", + "psr/http-message": "^1", + "react/http": "^1.6", + "react/promise": "^2.9", + "rector/rector": "^0.15.18", + "symfony/polyfill-php81": "^1.23", + "symfony/var-exporter": "^5 || ^6", + "thecodingmachine/safe": "^1.3 || ^2" + }, + "suggest": { + "amphp/http-server": "To leverage async resolving with webserver on AMPHP platform", + "psr/http-message": "To use standard GraphQL server", + "react/promise": "To leverage async resolving on React PHP platform" + }, + "type": "library", + "autoload": { + "psr-4": { + "GraphQL\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A PHP port of GraphQL reference implementation", + "homepage": "https://github.com/webonyx/graphql-php", + "keywords": [ + "api", + "graphql" + ], + "support": { + "issues": "https://github.com/webonyx/graphql-php/issues", + "source": "https://github.com/webonyx/graphql-php/tree/v15.2.4" + }, + "funding": [ + { + "url": "https://opencollective.com/webonyx-graphql-php", + "type": "open_collective" + } + ], + "time": "2023-03-20T18:50:41+00:00" + }, { "name": "zbateson/mail-mime-parser", "version": "2.4.0",