Skip to content

Commit 2cbeec1

Browse files
authored
release: 0.3.1 (#107)
* chore: version bump * chore: regenerate autoloader * fix: ensure autoloader compatibility when installed as Composer package. * chore: phpcs issues * chore: regenerate Composer autoloader
1 parent 79b685c commit 2cbeec1

File tree

10 files changed

+27
-18
lines changed

10 files changed

+27
-18
lines changed

CHANGELOG.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
# Changelog
22

3-
## [Unreleased]
3+
## [0.3.1]
44

5-
- fix: Fix interface conflicts on `wp-graphql-woocommerce` `Product` and `ProductVariation` types. H/t @robbiebel
6-
- fix: Improve `seo.openGraph` type handling to prevent fatal errors when resolving custom schemas. H/t @juniorzenb
7-
- fix: expose `RankMathSeo.canonicalUrl` to unauthenticated users. H/t @marziolek
5+
This _minor_ release fixes several bugs and improves compatibility with WPGraphQL for WooCommerce.
6+
7+
- fix: Fix interface conflicts `Product.` and `ProductVariation.seo` types with WPGraphQL for WooCommerce. H/t @robbiebel
8+
- fix: Prevent fatal errors when resolving custom `seo.openGraph` schemas by improving type handling. H/t @juniorzenb
9+
- fix: Expose `RankMathSeo.canonicalUrl` to unauthenticated users. H/t @marziolek
10+
- fix: Check if classes are loaded by a different autoloader before attempting to autoload them.
811
- chore: Update Composer dev-deps.
9-
- ci: add `INCLUDE_EXTENSIONS` to `.env` for installing external plugins (woocommerce, wp-graphql-woocommerce).
12+
- tests: fix namespaces for Codeception tests.
1013
- ci: test plugin compatibility with WordPress 6.6.1.
11-
- ci: replace uses of deprecated `docker-compose` with `docker compose`.
1214
- ci: Remove WP < 6.3 from GitHub Actions tests for RankMath 1.0.218+ compatibility.
15+
- ci: add `INCLUDE_EXTENSIONS` to `.env` for installing external plugins (woocommerce, wp-graphql-woocommerce).
16+
- ci: replace uses of deprecated `docker-compose` with `docker compose`.
1317

1418
## [0.3.0]
1519

16-
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.
20+
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.
1721

1822
### Upgrade Notes
1923

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Adds WPGraphQL support for [Rank Math SEO](https://rankmath.com/). Built with [W
1111

1212
-----
1313

14-
![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 />
14+
![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 />
1515
![CodeQuality](https://img.shields.io/github/actions/workflow/status/axewp/wp-graphql-rank-math/code-quality.yml?branch=develop&label=Code%20Quality)
1616
![Integration Tests](https://img.shields.io/github/actions/workflow/status/axewp/wp-graphql-rank-math/integration-testing.yml?branch=develop&label=Integration%20Testing)
1717
![Coding Standards](https://img.shields.io/github/actions/workflow/status/axewp/wp-graphql-rank-math/code-standard.yml?branch=develop&label=WordPress%20Coding%20Standards)

phpstan/constants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
*/
77

88
define( 'WPGRAPHQL_SEO_PLUGIN_FILE', 'wp-graphql-rank-math.php' );
9-
define( 'WPGRAPHQL_SEO_VERSION', '0.3.0' );
9+
define( 'WPGRAPHQL_SEO_VERSION', '0.3.1' );

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Tested up to: 6.6.1
66
Requires PHP: 7.4
77
Requires Plugins: wp-graphql, seo-by-rank-math
88
Requires WPGraphQL: 1.26.0
9-
Stable tag: 0.3.0
9+
Stable tag: 0.3.1
1010
License: GPL-3
1111
License URI: https://www.gnu.org/licenses/gpl-3.0.html
1212

src/Autoloader.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ public static function autoload(): bool {
3535
return self::$is_loaded;
3636
}
3737

38+
// If the main class has already been loaded, then they must be using a different autoloader.
39+
if ( class_exists( 'WPGraphQL\RankMath\Main' ) ) {
40+
return true;
41+
}
42+
3843
$autoloader = dirname( __DIR__ ) . '/vendor/autoload.php';
3944
self::$is_loaded = self::require_autoloader( $autoloader );
4045

src/Extensions/Extensions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Registers support for additional Extensions.
44
*
55
* @package WPGraphQL\RankMath\Extensions
6-
* @since @todo
6+
* @since 0.3.1
77
*/
88

99
declare( strict_types = 1 );

src/Extensions/WPGraphQLWooCommerce/Type/WPObject/SeoObjects.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Registers the SEO objects for WPGraphQL for WooCommerce.
44
*
55
* @package WPGraphQL\RankMath\Extensions\WPGraphQLWooCommerce\Type\WPObject
6-
* @since @todo
6+
* @since 0.3.1
77
*/
88

99
declare( strict_types = 1 );

src/Extensions/WPGraphQLWooCommerce/WPGraphQLWooCommerce.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Handles support for WPGraphQL for WooCommerce.
44
*
55
* @package WPGraphQL\RankMath\Extensions\WPGraphQLWooCommerce
6-
* @since @todo
6+
* @since 0.3.1
77
*/
88

99
declare( strict_types = 1 );

vendor/composer/installed.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
'name' => 'axepress/wp-graphql-rank-math',
44
'pretty_version' => 'dev-develop',
55
'version' => 'dev-develop',
6-
'reference' => 'a4961cff60ae4a38771592b8357ae2adb017f21f',
6+
'reference' => 'e686be89e7571f21b175ed5e5329b7f39b740944',
77
'type' => 'wordpress-plugin',
88
'install_path' => __DIR__ . '/../../',
99
'aliases' => array(),
@@ -22,7 +22,7 @@
2222
'axepress/wp-graphql-rank-math' => array(
2323
'pretty_version' => 'dev-develop',
2424
'version' => 'dev-develop',
25-
'reference' => 'a4961cff60ae4a38771592b8357ae2adb017f21f',
25+
'reference' => 'e686be89e7571f21b175ed5e5329b7f39b740944',
2626
'type' => 'wordpress-plugin',
2727
'install_path' => __DIR__ . '/../../',
2828
'aliases' => array(),

wp-graphql-rank-math.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Author: AxePress
88
* Author URI: https://github.com/AxeWP
99
* Update URI: https://github.com/AxeWP/wp-graphql-rank-math
10-
* Version: 0.3.0
10+
* Version: 0.3.1
1111
* Text Domain: wp-graphql-rank-math
1212
* Domain Path: /languages
1313
* Requires at least: 6.0
@@ -21,7 +21,7 @@
2121
* @package WPGraphQL\RankMath
2222
* @author axepress
2323
* @license GPL-3
24-
* @version 0.3.0
24+
* @version 0.3.1
2525
*/
2626

2727
declare( strict_types = 1 );
@@ -51,7 +51,7 @@
5151
function constants(): void {
5252
// Plugin version.
5353
if ( ! defined( 'WPGRAPHQL_SEO_VERSION' ) ) {
54-
define( 'WPGRAPHQL_SEO_VERSION', '0.3.0' );
54+
define( 'WPGRAPHQL_SEO_VERSION', '0.3.1' );
5555
}
5656

5757
// Plugin Folder Path.

0 commit comments

Comments
 (0)