From fc0f831314ced692b1039c3304f28aa95db541b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ruz=CC=8Cevic=CC=81?= Date: Wed, 5 Jun 2024 10:11:53 +0200 Subject: [PATCH] release 4.0.0 --- composer.json | 14 ++--- composer.lock | 120 ++++++++++++++++++------------------ src/Cache/ManifestCache.php | 11 ++++ 3 files changed, 77 insertions(+), 68 deletions(-) diff --git a/composer.json b/composer.json index 53a95310..bd5a3bb1 100644 --- a/composer.json +++ b/composer.json @@ -32,17 +32,17 @@ "brain/monkey": "^2.6.1", "dealerdirect/phpcodesniffer-composer-installer": "^v1.0.0", "infinum/eightshift-coding-standards": "3.0.0", - "php-parallel-lint/php-parallel-lint": "^1.3", - "pestphp/pest": "^1.23.0", - "php-stubs/wordpress-stubs": "^6.3", - "phpunit/phpunit": "^9.6.8", - "szepeviktor/phpstan-wordpress": "^1.3", - "wp-cli/wp-cli": "^2.9" + "php-parallel-lint/php-parallel-lint": "^v1.4.0", + "pestphp/pest": "^v1.23.1", + "php-stubs/wordpress-stubs": "^v6.5.3", + "phpunit/phpunit": "^9.6.19", + "szepeviktor/phpstan-wordpress": "^v1.3.4", + "wp-cli/wp-cli": "^v2.10.0" }, "require": { "php": ">=8.2", "erusev/parsedown": "^1.7.4", - "infinum/eightshift-forms-utils": "dev-develop" + "infinum/eightshift-forms-utils": "^2.0.0" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index 6914b427..077b018c 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": "c563e82a038e64f28c132340b511fcb9", + "content-hash": "7907dbf45b0ca596126c12cb87a02250", "packages": [ { "name": "erusev/parsedown", @@ -58,34 +58,33 @@ }, { "name": "infinum/eightshift-forms-utils", - "version": "dev-develop", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/infinum/eightshift-forms-utils.git", - "reference": "aee4e5cab817a4850934bc3e4d6e94693089965e" + "reference": "d157c4aa58893384cf219df4ce5056b76a67c86f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/infinum/eightshift-forms-utils/zipball/aee4e5cab817a4850934bc3e4d6e94693089965e", - "reference": "aee4e5cab817a4850934bc3e4d6e94693089965e", + "url": "https://api.github.com/repos/infinum/eightshift-forms-utils/zipball/d157c4aa58893384cf219df4ce5056b76a67c86f", + "reference": "d157c4aa58893384cf219df4ce5056b76a67c86f", "shasum": "" }, "require": { - "infinum/eightshift-libs": "dev-develop", + "infinum/eightshift-libs": "^8.0.2", "php": ">=8.2" }, "require-dev": { "dealerdirect/phpcodesniffer-composer-installer": "^v1.0.0", - "infinum/eightshift-coding-standards": "2.0.0-beta", - "php-parallel-lint/php-parallel-lint": "^1.3", - "php-stubs/wordpress-stubs": "^6.3", - "szepeviktor/phpstan-wordpress": "^1.3" + "infinum/eightshift-coding-standards": "^3.0.0", + "php-parallel-lint/php-parallel-lint": "^v1.4.0", + "php-stubs/wordpress-stubs": "^v6.5.3", + "szepeviktor/phpstan-wordpress": "^v1.3.4" }, "suggest": { "ext-pcov": "* || This extension is used for code coverage generation. Use either pcov, or xdebug, but not both.", "ext-xdebug": "^3.0.0 || This extension is used for code coverage generation. Use either pcov, or xdebug, but not both." }, - "default-branch": true, "type": "library", "autoload": { "psr-4": { @@ -121,20 +120,20 @@ "issues": "https://github.com/infinum/eightshift-forms/issues", "source": "https://github.com/infinum/eightshift-forms" }, - "time": "2024-05-21T12:54:55+00:00" + "time": "2024-06-05T08:07:37+00:00" }, { "name": "infinum/eightshift-libs", - "version": "dev-develop", + "version": "8.0.2", "source": { "type": "git", "url": "https://github.com/infinum/eightshift-libs.git", - "reference": "38b2a3f188ec2533e6b671fc8ac08681602628c1" + "reference": "034ed7734ea488ddae6c77f1ee726e8cd6b00e90" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/infinum/eightshift-libs/zipball/38b2a3f188ec2533e6b671fc8ac08681602628c1", - "reference": "38b2a3f188ec2533e6b671fc8ac08681602628c1", + "url": "https://api.github.com/repos/infinum/eightshift-libs/zipball/034ed7734ea488ddae6c77f1ee726e8cd6b00e90", + "reference": "034ed7734ea488ddae6c77f1ee726e8cd6b00e90", "shasum": "" }, "require": { @@ -143,19 +142,18 @@ "ext-libxml": "*", "php": ">=8.2", "php-di/invoker": "^2.3.4", - "php-di/php-di": "^7" + "php-di/php-di": "^7.0.6" }, "require-dev": { - "captainhook/captainhook": "^5.10", - "dealerdirect/phpcodesniffer-composer-installer": "^v1.0.0", - "infinum/eightshift-coding-standards": "2.0.0-beta", - "php-parallel-lint/php-parallel-lint": "^1.3", - "php-stubs/wordpress-stubs": "^6.3", + "captainhook/captainhook": "^5.23.0", + "dealerdirect/phpcodesniffer-composer-installer": "v1.0.0", + "infinum/eightshift-coding-standards": "^3.0.0", + "php-parallel-lint/php-parallel-lint": "^v1.4.0", + "php-stubs/wordpress-stubs": "^v6.5.3", "roave/security-advisories": "dev-master", - "szepeviktor/phpstan-wordpress": "^1.3", - "wp-cli/wp-cli": "^2.9" + "szepeviktor/phpstan-wordpress": "^v1.3.4", + "wp-cli/wp-cli": "^v2.10.0" }, - "default-branch": true, "type": "library", "autoload": { "psr-4": { @@ -188,7 +186,7 @@ "issues": "https://github.com/infinum/eightshift-libs/issues", "source": "https://github.com/infinum/eightshift-libs" }, - "time": "2024-05-20T11:34:29+00:00" + "time": "2024-06-05T08:00:15+00:00" }, { "name": "laravel/serializable-closure", @@ -2111,16 +2109,16 @@ }, { "name": "phpstan/phpdoc-parser", - "version": "1.29.0", + "version": "1.29.1", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "536889f2b340489d328f5ffb7b02bb6b183ddedc" + "reference": "fcaefacf2d5c417e928405b71b400d4ce10daaf4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/536889f2b340489d328f5ffb7b02bb6b183ddedc", - "reference": "536889f2b340489d328f5ffb7b02bb6b183ddedc", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/fcaefacf2d5c417e928405b71b400d4ce10daaf4", + "reference": "fcaefacf2d5c417e928405b71b400d4ce10daaf4", "shasum": "" }, "require": { @@ -2152,22 +2150,22 @@ "description": "PHPDoc parser with support for nullable, intersection and generic types", "support": { "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/1.29.0" + "source": "https://github.com/phpstan/phpdoc-parser/tree/1.29.1" }, - "time": "2024-05-06T12:04:23+00:00" + "time": "2024-05-31T08:52:43+00:00" }, { "name": "phpstan/phpstan", - "version": "1.11.1", + "version": "1.11.3", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "e524358f930e41a2b4cca1320e3b04fc26b39e0b" + "reference": "e64220a05c1209fc856d58e789c3b7a32c0bb9a5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/e524358f930e41a2b4cca1320e3b04fc26b39e0b", - "reference": "e524358f930e41a2b4cca1320e3b04fc26b39e0b", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/e64220a05c1209fc856d58e789c3b7a32c0bb9a5", + "reference": "e64220a05c1209fc856d58e789c3b7a32c0bb9a5", "shasum": "" }, "require": { @@ -2212,7 +2210,7 @@ "type": "github" } ], - "time": "2024-05-15T08:00:59+00:00" + "time": "2024-05-31T13:53:37+00:00" }, { "name": "phpunit/php-code-coverage", @@ -3716,16 +3714,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.10.0", + "version": "3.10.1", "source": { "type": "git", "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", - "reference": "57e09801c2fbae2d257b8b75bebb3deeb7e9deb2" + "reference": "8f90f7a53ce271935282967f53d0894f8f1ff877" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/57e09801c2fbae2d257b8b75bebb3deeb7e9deb2", - "reference": "57e09801c2fbae2d257b8b75bebb3deeb7e9deb2", + "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/8f90f7a53ce271935282967f53d0894f8f1ff877", + "reference": "8f90f7a53ce271935282967f53d0894f8f1ff877", "shasum": "" }, "require": { @@ -3792,20 +3790,20 @@ "type": "open_collective" } ], - "time": "2024-05-20T08:11:32+00:00" + "time": "2024-05-22T21:24:41+00:00" }, { "name": "symfony/console", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "a170e64ae10d00ba89e2acbb590dc2e54da8ad8f" + "reference": "be5854cee0e8c7b110f00d695d11debdfa1a2a91" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/a170e64ae10d00ba89e2acbb590dc2e54da8ad8f", - "reference": "a170e64ae10d00ba89e2acbb590dc2e54da8ad8f", + "url": "https://api.github.com/repos/symfony/console/zipball/be5854cee0e8c7b110f00d695d11debdfa1a2a91", + "reference": "be5854cee0e8c7b110f00d695d11debdfa1a2a91", "shasum": "" }, "require": { @@ -3870,7 +3868,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v6.4.7" + "source": "https://github.com/symfony/console/tree/v6.4.8" }, "funding": [ { @@ -3886,7 +3884,7 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/deprecation-contracts", @@ -3957,16 +3955,16 @@ }, { "name": "symfony/finder", - "version": "v7.0.7", + "version": "v7.1.1", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "4d58f0f4fe95a30d7b538d71197135483560b97c" + "reference": "fbb0ba67688b780efbc886c1a0a0948dcf7205d6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/4d58f0f4fe95a30d7b538d71197135483560b97c", - "reference": "4d58f0f4fe95a30d7b538d71197135483560b97c", + "url": "https://api.github.com/repos/symfony/finder/zipball/fbb0ba67688b780efbc886c1a0a0948dcf7205d6", + "reference": "fbb0ba67688b780efbc886c1a0a0948dcf7205d6", "shasum": "" }, "require": { @@ -4001,7 +3999,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v7.0.7" + "source": "https://github.com/symfony/finder/tree/v7.1.1" }, "funding": [ { @@ -4017,7 +4015,7 @@ "type": "tidelift" } ], - "time": "2024-04-28T11:44:19+00:00" + "time": "2024-05-31T14:57:53+00:00" }, { "name": "symfony/polyfill-ctype", @@ -4498,16 +4496,16 @@ }, { "name": "symfony/string", - "version": "v7.0.7", + "version": "v7.1.1", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "e405b5424dc2528e02e31ba26b83a79fd4eb8f63" + "reference": "60bc311c74e0af215101235aa6f471bcbc032df2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/e405b5424dc2528e02e31ba26b83a79fd4eb8f63", - "reference": "e405b5424dc2528e02e31ba26b83a79fd4eb8f63", + "url": "https://api.github.com/repos/symfony/string/zipball/60bc311c74e0af215101235aa6f471bcbc032df2", + "reference": "60bc311c74e0af215101235aa6f471bcbc032df2", "shasum": "" }, "require": { @@ -4521,6 +4519,7 @@ "symfony/translation-contracts": "<2.5" }, "require-dev": { + "symfony/emoji": "^7.1", "symfony/error-handler": "^6.4|^7.0", "symfony/http-client": "^6.4|^7.0", "symfony/intl": "^6.4|^7.0", @@ -4564,7 +4563,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v7.0.7" + "source": "https://github.com/symfony/string/tree/v7.1.1" }, "funding": [ { @@ -4580,7 +4579,7 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:29:19+00:00" + "time": "2024-06-04T06:40:14+00:00" }, { "name": "szepeviktor/phpstan-wordpress", @@ -4948,7 +4947,6 @@ "aliases": [], "minimum-stability": "dev", "stability-flags": { - "infinum/eightshift-forms-utils": 20, "brain/faker": 20 }, "prefer-stable": true, diff --git a/src/Cache/ManifestCache.php b/src/Cache/ManifestCache.php index 89f6d561..b6c46bd0 100644 --- a/src/Cache/ManifestCache.php +++ b/src/Cache/ManifestCache.php @@ -15,6 +15,7 @@ use EightshiftFormsVendor\EightshiftFormsUtils\Config\UtilsConfig; use EightshiftFormsVendor\EightshiftFormsUtils\Helpers\UtilsDataHelper; use EightshiftFormsVendor\EightshiftLibs\Cache\AbstractManifestCache; +use EightshiftFormsVendor\EightshiftLibs\Helpers\Helpers; /** * The project cache class. @@ -52,6 +53,16 @@ public function getCacheName(): string return UtilsConfig::MAIN_PLUGIN_MANIFEST_CACHE_NAME; } + /** + * Get cache version. + * + * @return string + */ + public function getVersion(): string + { + return Helpers::getPluginVersion(); + } + /** * Set the cache for the entire project. *