Skip to content

Commit

Permalink
release: 0.3.1 (#107)
Browse files Browse the repository at this point in the history
* chore: version bump

* chore: regenerate autoloader

* fix: ensure autoloader compatibility when installed as Composer package.

* chore: phpcs issues

* chore: regenerate Composer autoloader
  • Loading branch information
justlevine authored Aug 11, 2024
1 parent 79b685c commit 2cbeec1
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 18 deletions.
18 changes: 11 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)<br />
![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)<br />
![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)
Expand Down
2 changes: 1 addition & 1 deletion phpstan/constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions src/Autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down
2 changes: 1 addition & 1 deletion src/Extensions/Extensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Registers support for additional Extensions.
*
* @package WPGraphQL\RankMath\Extensions
* @since @todo
* @since 0.3.1
*/

declare( strict_types = 1 );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
4 changes: 2 additions & 2 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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(),
Expand Down
6 changes: 3 additions & 3 deletions wp-graphql-rank-math.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -21,7 +21,7 @@
* @package WPGraphQL\RankMath
* @author axepress
* @license GPL-3
* @version 0.3.0
* @version 0.3.1
*/

declare( strict_types = 1 );
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 2cbeec1

Please sign in to comment.