Skip to content

Commit

Permalink
Merge pull request #3129 from wp-graphql/release/v1.26.0
Browse files Browse the repository at this point in the history
release: v1.26.0
  • Loading branch information
jasonbahl committed May 10, 2024
2 parents b9ac1a6 + 9fbc8b8 commit b288907
Show file tree
Hide file tree
Showing 39 changed files with 1,247 additions and 558 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Changelog

= 1.26.0 =

## New Features

- [#3125](https://github.com/wp-graphql/wp-graphql/pull/3125): refactor: improve query handling in AbstractConnectionResolver
- new: `graphql_connection_pre_get_query` filter
- new: `AbstractConnectionResolver::is_valid_query_class()`
- new: `AbstractConnectionResolver::get_query()`
- new: `AbstractConnectionResolver::get_query_class()`
- new: `AsbtractConnectionResolver::query_class()`
- new: `AbstractConnectionResolver::$query_class`
- [#3124](https://github.com/wp-graphql/wp-graphql/pull/3124): refactor: split `AbstractConnectionResolver::get_args()` and `::get_query_args()` into `::prepare_*()` methods
- [#3123](https://github.com/wp-graphql/wp-graphql/pull/3123): refactor: split `AbstractConnectionResolver::get_ids()` into `::prepare_ids()`
- [#3121](https://github.com/wp-graphql/wp-graphql/pull/3121): refactor: split `AbstractConnectionResolver::get_nodes()` and `get_edges()` into `prepare_*()` methods
- [#3120](https://github.com/wp-graphql/wp-graphql/pull/3120): refactor: wrap `AbstractConnectionResolver::is_valid_model()` in `::get_is_valid_model()`

### Chores / Bugfixes

- [#3125](https://github.com/wp-graphql/wp-graphql/pull/3125): refactor: improve query handling in AbstractConnectionResolver
- Implement PHPStan Generic Type
- Update generic Exceptions to InvariantViolation
- [#3127](https://github.com/wp-graphql/wp-graphql/pull/3127): chore: update references to the WPGraphQL Slack Community to point to the new WPGraphQL Discord community instead.
- [#3122](https://github.com/wp-graphql/wp-graphql/pull/3122): chore: relocate `AbstractConnectionResolver::is_valid_offset()` with other abstract methods.
-
## 1.25.0

### Upgrade Notice
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Below are some links to help you get started with WPGraphQL
- <a href="https://wpgraphql.com/docs/quick-start" target="_blank">Quick Start Guide</a>
- <a href="https://wpgraphql.com/docs/intro-to-graphql" target="_blank">Intro to GraphQL</a>
- <a href="https://wpgraphql.com/docs/intro-to-wordpress" target="_blank">Intro to WordPress</a>
- <a href="https://join.slack.com/t/wp-graphql/shared_invite/zt-3vloo60z-PpJV2PFIwEathWDOxCTTLA" target="_blank">Join the WPGraphQL community on Slack</a>
- <a href="https://discord.gg/AGVBqqyaUY" target="_blank">Join the WPGraphQL community on Discord</a>

-----

Expand Down
2 changes: 0 additions & 2 deletions access-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ function graphql_format_type_name( $type_name ) {
return str_replace( ' ', '', ucfirst( ucwords( $formatted_type_name ) ) );
}


/**
* Provides a simple way to run a GraphQL query without posting a request to the endpoint.
*
Expand Down Expand Up @@ -625,7 +624,6 @@ static function ( TypeRegistry $type_registry ) use ( $type_name, $field_name )
);
}


/**
* Given a Connection Name, this removes the connection from the Schema
*
Expand Down
2 changes: 1 addition & 1 deletion build/app.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'react-dom', 'wp-element', 'wp-hooks'), 'version' => '878a79f97bdc86d6e199');
<?php return array('dependencies' => array('react', 'react-dom', 'wp-element', 'wp-hooks'), 'version' => '81f173f818f820506c81');
2 changes: 1 addition & 1 deletion build/app.js

Large diffs are not rendered by default.

235 changes: 126 additions & 109 deletions composer.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function graphql_setup_constants() {

// Plugin version.
if ( ! defined( 'WPGRAPHQL_VERSION' ) ) {
define( 'WPGRAPHQL_VERSION', '1.25.0' );
define( 'WPGRAPHQL_VERSION', '1.26.0' );
}

// Plugin Folder Path.
Expand Down
9 changes: 4 additions & 5 deletions packages/wpgraphiql/screens/Help/Help.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,19 +227,18 @@ const Help = () => {
<Col xs={24} sm={24} md={24} lg={8} xl={8}>
<Card
style={{ height: "100%" }}
title="Join us in Slack"
title="Join us in Discord"
actions={[
<a
href="https://join.slack.com/t/wp-graphql/shared_invite/zt-3vloo60z-PpJV2PFIwEathWDOxCTTLA"
href="https://discord.gg/AGVBqqyaUY"
target="_blank"
>
<Button type="primary">Join us in Slack</Button>
<Button type="primary">Join us in Discord</Button>
</a>,
]}
>
<p>
There are more than 2,000 people in the WPGraphQL Slack community
asking questions and helping each other. Join us today!
Join the WPGraphQL Community in Discord where you can ask questions, show off projects and help other WPGraphQL users. Join us today!
</p>
</Card>
</Col>
Expand Down
32 changes: 30 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: GraphQL, JSON, API, Gatsby, Faust, Headless, Decoupled, Svelte, React, Nex
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.1
Stable tag: 1.25.0
Stable tag: 1.26.0
License: GPL-3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand All @@ -18,7 +18,7 @@ Below are some links to help you get started with WPGraphQL
- <a href="https://wpgraphql.com/docs/quick-start" target="_blank">Quick Start Guide</a>
- <a href="https://wpgraphql.com/docs/intro-to-graphql" target="_blank">Intro to GraphQL</a>
- <a href="https://wpgraphql.com/docs/intro-to-wordpress" target="_blank">Intro to WordPress</a>
- <a href="https://join.slack.com/t/wp-graphql/shared_invite/zt-3vloo60z-PpJV2PFIwEathWDOxCTTLA" target="_blank">Join the WPGraphQL community on Slack</a>
- <a href="https://discord.gg/AGVBqqyaUY" target="_blank">Join the WPGraphQL community on Discord</a>

= Build rich JavaScript applications with WordPress and GraphQL =

Expand Down Expand Up @@ -87,6 +87,10 @@ Learn more about how [Appsero collects and uses this data](https://appsero.com/p

== Upgrade Notice ==

= 1.26.0 =

This release refactors some code in the AbstractConnectionResolver with an aim at making it more efficient and easier to extend. While we believe there are no breaking changes and have tested against popular extensions such as WPGraphQL Headless Login, WPGraphQL Gravity Forms, WPGraphQL Rank Math and others, we recommend running your own tests on a staging site to confirm that there are no regresssions caused by the refactoring.

= 1.25.0 =

This release includes a fix to a regression in the v1.24.0. Users impacted by the regression in 1.24.0 included, but are not necessarily limited to, users of the WPGraphQL for WooCommerce extension.
Expand Down Expand Up @@ -266,6 +270,30 @@ Composer dependencies are no longer versioned in Github. Recommended install sou

== Changelog ==

= 1.26.0 =

**New Features**

- [#3125](https://github.com/wp-graphql/wp-graphql/pull/3125): refactor: improve query handling in AbstractConnectionResolver
- new: `graphql_connection_pre_get_query` filter
- new: `AbstractConnectionResolver::is_valid_query_class()`
- new: `AbstractConnectionResolver::get_query()`
- new: `AbstractConnectionResolver::get_query_class()`
- new: `AsbtractConnectionResolver::query_class()`
- new: `AbstractConnectionResolver::$query_class`
- [#3124](https://github.com/wp-graphql/wp-graphql/pull/3124): refactor: split `AbstractConnectionResolver::get_args()` and `::get_query_args()` into `::prepare_*()` methods
- [#3123](https://github.com/wp-graphql/wp-graphql/pull/3123): refactor: split `AbstractConnectionResolver::get_ids()` into `::prepare_ids()`
- [#3121](https://github.com/wp-graphql/wp-graphql/pull/3121): refactor: split `AbstractConnectionResolver::get_nodes()` and `get_edges()` into `prepare_*()` methods
- [#3120](https://github.com/wp-graphql/wp-graphql/pull/3120): refactor: wrap `AbstractConnectionResolver::is_valid_model()` in `::get_is_valid_model()`

**Chores / Bugfixes**

- [#3125](https://github.com/wp-graphql/wp-graphql/pull/3125): refactor: improve query handling in AbstractConnectionResolver
- Implement PHPStan Generic Type
- Update generic Exceptions to InvariantViolation
- [#3127](https://github.com/wp-graphql/wp-graphql/pull/3127): chore: update references to the WPGraphQL Slack Community to point to the new WPGraphQL Discord community instead.
- [#3122](https://github.com/wp-graphql/wp-graphql/pull/3122): chore: relocate `AbstractConnectionResolver::is_valid_offset()` with other abstract methods.

= 1.25.0 =

**New Features**
Expand Down
1 change: 0 additions & 1 deletion src/Admin/Settings/SettingsRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,6 @@ public function callback_color( $args ) {
echo wp_kses( $html, Utils::get_allowed_wp_kses_html() );
}


/**
* Displays a select box for creating the pages select box
*
Expand Down

0 comments on commit b288907

Please sign in to comment.