Skip to content

Commit

Permalink
Bump version (#149)
Browse files Browse the repository at this point in the history
* Feat: Add date archive details

* Bump version
  • Loading branch information
ashhitch authored Feb 6, 2023
1 parent 9495c90 commit e91fd80
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [4.22.0] - 2022-02-06

### Added

- `Date archive` title and description

## [4.21.0] - 2022-01-06

### Added
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ query GetSeoConfig {
description
title
}
date {
description
title
}
config {
separator
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wp-graphql-yoast-seo",
"version": "4.13.1",
"version": "4.22.0",
"description": "A WPGraphQL Extension that adds support for Yoast SEO",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: SEO, Yoast, WPGraphQL, GraphQL, Headless WordPress, Decoupled WordPress, J
Requires at least: 5.0
Tested up to: 6.1.1
Requires PHP: 7.1
Stable tag: 4.21.0
Stable tag: 4.22.0
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down
15 changes: 14 additions & 1 deletion wp-graphql-yoast-seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Author URI: https://www.ashleyhitchcock.com
* Text Domain: wp-graphql-yoast-seo
* Domain Path: /languages
* Version: 4.21.0
* Version: 4.22.0
*
* @package WP_Graphql_YOAST_SEO
*/
Expand Down Expand Up @@ -323,6 +323,13 @@ function wp_gql_seo_build_content_type_data($types, $all)
'description' => ['type' => 'String'],
],
]);
register_graphql_object_type('SEOGlobalMetaDate', [
'description' => __('The Yoast SEO Date data', 'wp-graphql-yoast-seo'),
'fields' => [
'title' => ['type' => 'String'],
'description' => ['type' => 'String'],
],
]);
register_graphql_object_type('SEOGlobalMetaConfig', [
'description' => __('The Yoast SEO meta config data', 'wp-graphql-yoast-seo'),
'fields' => [
Expand All @@ -341,6 +348,7 @@ function wp_gql_seo_build_content_type_data($types, $all)
'fields' => [
'homepage' => ['type' => 'SEOGlobalMetaHome'],
'author' => ['type' => 'SEOGlobalMetaAuthor'],
'date' => ['type' => 'SEOGlobalMetaDate'],
'config' => ['type' => 'SEOGlobalMetaConfig'],
'notFound' => ['type' => 'SEOGlobalMeta404'],
],
Expand Down Expand Up @@ -623,6 +631,10 @@ function wp_gql_seo_build_content_type_data($types, $all)
'title' => wp_gql_seo_format_string(wp_gql_seo_replace_vars($all['title-author-wpseo'])),
'description' => wp_gql_seo_format_string(wp_gql_seo_replace_vars($all['metadesc-author-wpseo'])),
];
$date = [
'title' => wp_gql_seo_format_string(wp_gql_seo_replace_vars($all['title-archive-wpseo'])),
'description' => wp_gql_seo_format_string(wp_gql_seo_replace_vars($all['metadesc-archive-wpseo'])),
];
$config = [
'separator' => wp_gql_seo_format_string($all['separator']),
];
Expand All @@ -636,6 +648,7 @@ function wp_gql_seo_build_content_type_data($types, $all)
'meta' => [
'homepage' => $homepage,
'author' => $author,
'date' => $date,
'config' => $config,
'notFound' => $notFound,
],
Expand Down

0 comments on commit e91fd80

Please sign in to comment.