diff --git a/CHANGELOG.md b/CHANGELOG.md index 6774322..333b535 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,19 +1,23 @@ # Changelog -## [Unreleased] +## [0.3.1] -- fix: Fix interface conflicts on `wp-graphql-woocommerce` `Product` and `ProductVariation` types. H/t @robbiebel -- fix: Improve `seo.openGraph` type handling to prevent fatal errors when resolving custom schemas. H/t @juniorzenb -- fix: expose `RankMathSeo.canonicalUrl` to unauthenticated users. H/t @marziolek +This _minor_ release fixes several bugs and improves compatibility with WPGraphQL for WooCommerce. + +- fix: Fix interface conflicts `Product.` and `ProductVariation.seo` types with WPGraphQL for WooCommerce. H/t @robbiebel +- fix: Prevent fatal errors when resolving custom `seo.openGraph` schemas by improving type handling. H/t @juniorzenb +- fix: Expose `RankMathSeo.canonicalUrl` to unauthenticated users. H/t @marziolek +- fix: Check if classes are loaded by a different autoloader before attempting to autoload them. - chore: Update Composer dev-deps. -- ci: add `INCLUDE_EXTENSIONS` to `.env` for installing external plugins (woocommerce, wp-graphql-woocommerce). +- tests: fix namespaces for Codeception tests. - ci: test plugin compatibility with WordPress 6.6.1. -- ci: replace uses of deprecated `docker-compose` with `docker compose`. - ci: Remove WP < 6.3 from GitHub Actions tests for RankMath 1.0.218+ compatibility. +- ci: add `INCLUDE_EXTENSIONS` to `.env` for installing external plugins (woocommerce, wp-graphql-woocommerce). +- ci: replace uses of deprecated `docker-compose` with `docker compose`. ## [0.3.0] -This _major_ releases simplifies the GraphQL schema by narrowing the `seo` field types to their implementations. We've also bumped the minimum version of WPGraphQL to v1.26.0 and refactored the `RedirectionConnectionResolver` to use the improved lifecycle methods introduced in that release. +This _major_ release simplifies the GraphQL schema by narrowing the `seo` field types to their implementations. We've also bumped the minimum version of WPGraphQL to v1.26.0 and refactored the `RedirectionConnectionResolver` to use the improved lifecycle methods introduced in that release. ### Upgrade Notes diff --git a/README.md b/README.md index 3a7c55a..afc8abd 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Adds WPGraphQL support for [Rank Math SEO](https://rankmath.com/). Built with [W ----- -![Packagist License](https://img.shields.io/packagist/l/axepress/wp-graphql-rank-math?color=green) ![Packagist Version](https://img.shields.io/packagist/v/axepress/wp-graphql-rank-math?label=stable) ![GitHub commits since latest release (by SemVer)](https://img.shields.io/github/commits-since/AxeWP/wp-graphql-rank-math/0.3.0) ![GitHub forks](https://img.shields.io/github/forks/AxeWP/wp-graphql-rank-math?style=social) ![GitHub Repo stars](https://img.shields.io/github/stars/AxeWP/wp-graphql-rank-math?style=social)
+![Packagist License](https://img.shields.io/packagist/l/axepress/wp-graphql-rank-math?color=green) ![Packagist Version](https://img.shields.io/packagist/v/axepress/wp-graphql-rank-math?label=stable) ![GitHub commits since latest release (by SemVer)](https://img.shields.io/github/commits-since/AxeWP/wp-graphql-rank-math/0.3.1) ![GitHub forks](https://img.shields.io/github/forks/AxeWP/wp-graphql-rank-math?style=social) ![GitHub Repo stars](https://img.shields.io/github/stars/AxeWP/wp-graphql-rank-math?style=social)
![CodeQuality](https://img.shields.io/github/actions/workflow/status/axewp/wp-graphql-rank-math/code-quality.yml?branch=develop&label=Code%20Quality) ![Integration Tests](https://img.shields.io/github/actions/workflow/status/axewp/wp-graphql-rank-math/integration-testing.yml?branch=develop&label=Integration%20Testing) ![Coding Standards](https://img.shields.io/github/actions/workflow/status/axewp/wp-graphql-rank-math/code-standard.yml?branch=develop&label=WordPress%20Coding%20Standards) diff --git a/phpstan/constants.php b/phpstan/constants.php index 662d92f..ae84463 100644 --- a/phpstan/constants.php +++ b/phpstan/constants.php @@ -6,4 +6,4 @@ */ define( 'WPGRAPHQL_SEO_PLUGIN_FILE', 'wp-graphql-rank-math.php' ); -define( 'WPGRAPHQL_SEO_VERSION', '0.3.0' ); +define( 'WPGRAPHQL_SEO_VERSION', '0.3.1' ); diff --git a/readme.txt b/readme.txt index e9677c9..5c5c957 100644 --- a/readme.txt +++ b/readme.txt @@ -6,7 +6,7 @@ Tested up to: 6.6.1 Requires PHP: 7.4 Requires Plugins: wp-graphql, seo-by-rank-math Requires WPGraphQL: 1.26.0 -Stable tag: 0.3.0 +Stable tag: 0.3.1 License: GPL-3 License URI: https://www.gnu.org/licenses/gpl-3.0.html diff --git a/src/Autoloader.php b/src/Autoloader.php index 08e541e..c1e6e4c 100644 --- a/src/Autoloader.php +++ b/src/Autoloader.php @@ -35,6 +35,11 @@ public static function autoload(): bool { return self::$is_loaded; } + // If the main class has already been loaded, then they must be using a different autoloader. + if ( class_exists( 'WPGraphQL\RankMath\Main' ) ) { + return true; + } + $autoloader = dirname( __DIR__ ) . '/vendor/autoload.php'; self::$is_loaded = self::require_autoloader( $autoloader ); diff --git a/src/Extensions/Extensions.php b/src/Extensions/Extensions.php index fcbb18d..8d47652 100644 --- a/src/Extensions/Extensions.php +++ b/src/Extensions/Extensions.php @@ -3,7 +3,7 @@ * Registers support for additional Extensions. * * @package WPGraphQL\RankMath\Extensions - * @since @todo + * @since 0.3.1 */ declare( strict_types = 1 ); diff --git a/src/Extensions/WPGraphQLWooCommerce/Type/WPObject/SeoObjects.php b/src/Extensions/WPGraphQLWooCommerce/Type/WPObject/SeoObjects.php index b49771b..30d3643 100644 --- a/src/Extensions/WPGraphQLWooCommerce/Type/WPObject/SeoObjects.php +++ b/src/Extensions/WPGraphQLWooCommerce/Type/WPObject/SeoObjects.php @@ -3,7 +3,7 @@ * Registers the SEO objects for WPGraphQL for WooCommerce. * * @package WPGraphQL\RankMath\Extensions\WPGraphQLWooCommerce\Type\WPObject - * @since @todo + * @since 0.3.1 */ declare( strict_types = 1 ); diff --git a/src/Extensions/WPGraphQLWooCommerce/WPGraphQLWooCommerce.php b/src/Extensions/WPGraphQLWooCommerce/WPGraphQLWooCommerce.php index 11a9108..07bd890 100644 --- a/src/Extensions/WPGraphQLWooCommerce/WPGraphQLWooCommerce.php +++ b/src/Extensions/WPGraphQLWooCommerce/WPGraphQLWooCommerce.php @@ -3,7 +3,7 @@ * Handles support for WPGraphQL for WooCommerce. * * @package WPGraphQL\RankMath\Extensions\WPGraphQLWooCommerce - * @since @todo + * @since 0.3.1 */ declare( strict_types = 1 ); diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 63cebdb..fe460d0 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -3,7 +3,7 @@ 'name' => 'axepress/wp-graphql-rank-math', 'pretty_version' => 'dev-develop', 'version' => 'dev-develop', - 'reference' => 'a4961cff60ae4a38771592b8357ae2adb017f21f', + 'reference' => 'e686be89e7571f21b175ed5e5329b7f39b740944', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -22,7 +22,7 @@ 'axepress/wp-graphql-rank-math' => array( 'pretty_version' => 'dev-develop', 'version' => 'dev-develop', - 'reference' => 'a4961cff60ae4a38771592b8357ae2adb017f21f', + 'reference' => 'e686be89e7571f21b175ed5e5329b7f39b740944', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), diff --git a/wp-graphql-rank-math.php b/wp-graphql-rank-math.php index a696395..2c10e72 100644 --- a/wp-graphql-rank-math.php +++ b/wp-graphql-rank-math.php @@ -7,7 +7,7 @@ * Author: AxePress * Author URI: https://github.com/AxeWP * Update URI: https://github.com/AxeWP/wp-graphql-rank-math - * Version: 0.3.0 + * Version: 0.3.1 * Text Domain: wp-graphql-rank-math * Domain Path: /languages * Requires at least: 6.0 @@ -21,7 +21,7 @@ * @package WPGraphQL\RankMath * @author axepress * @license GPL-3 - * @version 0.3.0 + * @version 0.3.1 */ declare( strict_types = 1 ); @@ -51,7 +51,7 @@ function constants(): void { // Plugin version. if ( ! defined( 'WPGRAPHQL_SEO_VERSION' ) ) { - define( 'WPGRAPHQL_SEO_VERSION', '0.3.0' ); + define( 'WPGRAPHQL_SEO_VERSION', '0.3.1' ); } // Plugin Folder Path.