Skip to content

Commit 38c7d56

Browse files
authored
Merge pull request #97 from justlevine/release/0.3.0
release: 0.3.0
2 parents a662dbd + 807405a commit 38c7d56

File tree

7 files changed

+67
-12
lines changed

7 files changed

+67
-12
lines changed

CHANGELOG.md

Lines changed: 58 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,69 @@
11
# Changelog
22

33
## [Unreleased]
4+
5+
## [0.3.0]
6+
7+
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.
8+
9+
### Upgrade Notes
10+
11+
This release contains breaking changes to the schema. Instead of the `seo` field returning a generic `RankMathSeo` object, it now returns a more specific object based on the node type. For example, a `Post` node will return a `RankMathPostObjectSeo` object, while a `Category` node will return a `RankMathCategoryTermSeo` object.
12+
13+
In _most_ cases, you should not need to update your queries, as the schema should resolve the correct type based on the node type. However, if you are using inline fragments on the `seo` field inside your query that are not actually resolvable, you will need to remove them from your queries.
14+
15+
E.g.
16+
17+
```graphql
18+
query GetContentNodeSeo {
19+
contentNodes {
20+
nodes {
21+
... on Post {
22+
seo {
23+
# The old way will still work,
24+
# but is now redundant.
25+
... on RankMathPostObjectSeo {
26+
...MyPostSeoFragment
27+
}
28+
29+
# This will now also work, and is the preferred way,
30+
# since `seo` is always a `RankMathPostObjectSeo` type.
31+
...MyPostSeoFragment
32+
33+
# This needs to be removed, since `Post` isnt a `User`
34+
... on RankMathUserSeo {
35+
...MyUserSeoFragment
36+
}
37+
}
38+
}
39+
}
40+
}
41+
}
42+
```
43+
44+
### Breaking Schema Changes
45+
- Field `Category.seo` changed type from `RankMathSeo` to `RankMathCategoryTermSeo`
46+
- Field `ContentNode.seo` changed type from `RankMathSeo` to `RankMathContentNodeSeo`
47+
- Field `HierarchicalContentNode.seo` changed type from `RankMathSeo` to `RankMathContentNodeSeo`
48+
- Field `MediaItem.seo` changed type from `RankMathSeo` to `RankMathMediaItemObjectSeo`
49+
- Field `Page.seo` changed type from `RankMathSeo` to `RankMathPageObjectSeo`
50+
- Field `Post.seo` changed type from `RankMathSeo` to `RankMathPostObjectSeo`
51+
- Field `PostFormat.seo` changed type from `RankMathSeo` to `RankMathPostFormatTermSeo`
52+
- Field `Tag.seo` changed type from `RankMathSeo` to `RankMathTagTermSeo`
53+
- Field `User.seo` changed type from `RankMathSeo` to `RankMathUserSeo`
54+
55+
### What's Changed
56+
457
- feat!: Narrow `seo` field types to their implementations.
5-
- chore!: Bump minimum supported WPGraphQL version to v1.26.0.
6-
- dev: Update `RedirectionConnectionResolver` for v1.26.0 compatibility.
758
- fix: Correctly resolve `rankMathSettings.homepage.description` field. Props @offminded 🙌
59+
- dev: Update `RedirectionConnectionResolver` for v1.26.0 compatibility.
60+
- chore!: Bump minimum supported WPGraphQL version to v1.26.0.
861
- chore: Update Composer dev-dependencies to latest versions and address uncovered lints.
62+
- chore: Update Strauss to v0.19.1
963
- tests: Update compatibility with `[email protected]`.
1064

11-
## [0.2.0]
65+
66+
## [0.3.0]
1267

1368
This _major_ release refactors the plugin's root files to use the `WPGraphQL/RankMath` namespace. We've also added explicit support for WordPress 6.5 (including the new Plugin Dependencies feature), squashed a few bugs, and more.
1469

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.2.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.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 />
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)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
"vendor/bin/phpstan analyze --ansi --memory-limit=1G"
124124
],
125125
"strauss-install": [
126-
"test -f ./bin/strauss.phar || curl -o bin/strauss.phar -L -C - https://github.com/BrianHenryIE/strauss/releases/download/0.17.0/strauss.phar"
126+
"test -f ./bin/strauss.phar || curl -o bin/strauss.phar -L -C - https://github.com/BrianHenryIE/strauss/releases/download/0.19.1/strauss.phar"
127127
],
128128
"strauss": [
129129
"@strauss-install",

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.2.0' );
9+
define( 'WPGRAPHQL_SEO_VERSION', '0.3.0' );

readme.txt

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

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' => '26c12338bf979a09d681555c5d8ee84419e94e6d',
6+
'reference' => 'a662dbd7df02014f5f5da80e2636ddf3c5618a55',
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' => '26c12338bf979a09d681555c5d8ee84419e94e6d',
25+
'reference' => 'a662dbd7df02014f5f5da80e2636ddf3c5618a55',
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.2.0
10+
* Version: 0.3.0
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.2.0
24+
* @version 0.3.0
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.2.0' );
54+
define( 'WPGRAPHQL_SEO_VERSION', '0.3.0' );
5555
}
5656

5757
// Plugin Folder Path.

0 commit comments

Comments
 (0)