Skip to content

Commit a66f3e1

Browse files
committed
Auto-merge master back to develop
2 parents a6173b6 + 88af688 commit a66f3e1

File tree

5 files changed

+70
-14
lines changed

5 files changed

+70
-14
lines changed

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# Changelog
22

3+
## 1.24.0
4+
5+
### Upgrade Notice
6+
7+
The AbstractConnectionResolver has undergone some refactoring. Some methods using `snakeCase` have been deprecated in favor of their `camel_case` equivalent. While we've preserved the deprecated methods to prevent breaking changes, you might begin seeing PHP notices about the deprecations. Any plugin that extends the AbstractConnectionResolver should update the following methods:
8+
9+
- `getSource` -> `get_source`
10+
- `getContext` -> `get_context`
11+
- `getInfo` -> `get_info`
12+
- `getShouldExecute` -> `get_should_execute`
13+
- `getLoader` -> `getLoader`
14+
15+
### New Features
16+
17+
- [#3084](https://github.com/wp-graphql/wp-graphql/pull/3084): perf: refactor PluginConnectionResolver to only fetch plugins once. Thanks @justlevine!
18+
- [#3088](https://github.com/wp-graphql/wp-graphql/pull/3088): refactor: improve loader handling in AbstractConnectionResolver. Thanks @justlevine!
19+
- [#3087](https://github.com/wp-graphql/wp-graphql/pull/3087): feat: improve query amount handling in AbstractConnectionResolver. Thanks @justlevine!
20+
- [#3086](https://github.com/wp-graphql/wp-graphql/pull/3086): refactor: add AbstractConnectionResolver::get_unfiltered_args() public getter. Thanks @justlevine!
21+
- [#3085](https://github.com/wp-graphql/wp-graphql/pull/3085): refactor: add AbstractConnectionResolver::prepare_page_info()and only instantiate once. Thanks @justlevine!
22+
- [#3083](https://github.com/wp-graphql/wp-graphql/pull/3083): refactor: deprecate camelCase methods in AbstractConnectionResolver for snake_case equivalents. Thanks @justlevine!
23+
24+
25+
### Chores / Bugfixes
26+
27+
- [#3095](https://github.com/wp-graphql/wp-graphql/pull/3095): chore: lint for superfluous whitespace. Thanks @justlevine!
28+
- [#3100](https://github.com/wp-graphql/wp-graphql/pull/3100): fix: recursion issues with interfaces
29+
- [#3082](https://github.com/wp-graphql/wp-graphql/pull/3082): chore: prepare ConnectionResolver classes for v2 backport
30+
331
## 1.23.0
432

533
### New Features

constants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function graphql_setup_constants() {
1818

1919
// Plugin version.
2020
if ( ! defined( 'WPGRAPHQL_VERSION' ) ) {
21-
define( 'WPGRAPHQL_VERSION', '1.23.0' );
21+
define( 'WPGRAPHQL_VERSION', '1.24.0' );
2222
}
2323

2424
// Plugin Folder Path.

readme.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@ Learn more about how [Appsero collects and uses this data](https://appsero.com/p
8787

8888
== Upgrade Notice ==
8989

90+
= 1.24.0 =
91+
92+
The AbstractConnectionResolver has undergone some refactoring. Some methods using `snakeCase` have been deprecated in favor of their `camel_case` equivalent. While we've preserved the deprecated methods to prevent breaking changes, you might begin seeing PHP notices about the deprecations. Any plugin that extends the AbstractConnectionResolver should update the following methods:
93+
94+
- `getSource` -> `get_source`
95+
- `getContext` -> `get_context`
96+
- `getInfo` -> `get_info`
97+
- `getShouldExecute` -> `get_should_execute`
98+
- `getLoader` -> `getLoader`
99+
90100
= 1.16.0 =
91101

92102
**WPGraphQL Smart Cache**
@@ -252,6 +262,24 @@ Composer dependencies are no longer versioned in Github. Recommended install sou
252262

253263
== Changelog ==
254264

265+
= 1.24.0 =
266+
267+
**New Features**
268+
269+
- [#3084](https://github.com/wp-graphql/wp-graphql/pull/3084): perf: refactor PluginConnectionResolver to only fetch plugins once. Thanks @justlevine!
270+
- [#3088](https://github.com/wp-graphql/wp-graphql/pull/3088): refactor: improve loader handling in AbstractConnectionResolver. Thanks @justlevine!
271+
- [#3087](https://github.com/wp-graphql/wp-graphql/pull/3087): feat: improve query amount handling in AbstractConnectionResolver. Thanks @justlevine!
272+
- [#3086](https://github.com/wp-graphql/wp-graphql/pull/3086): refactor: add AbstractConnectionResolver::get_unfiltered_args() public getter. Thanks @justlevine!
273+
- [#3085](https://github.com/wp-graphql/wp-graphql/pull/3085): refactor: add AbstractConnectionResolver::prepare_page_info()and only instantiate once. Thanks @justlevine!
274+
- [#3083](https://github.com/wp-graphql/wp-graphql/pull/3083): refactor: deprecate camelCase methods in AbstractConnectionResolver for snake_case equivalents. Thanks @justlevine!
275+
276+
**Chores / Bugfixes**
277+
278+
- [#3095](https://github.com/wp-graphql/wp-graphql/pull/3095): chore: lint for superfluous whitespace. Thanks @justlevine!
279+
- [#3100](https://github.com/wp-graphql/wp-graphql/pull/3100): fix: recursion issues with interfaces
280+
- [#3082](https://github.com/wp-graphql/wp-graphql/pull/3082): chore: prepare ConnectionResolver classes for v2 backport
281+
282+
255283
= 1.23.0 =
256284

257285
**New Features**

src/Data/Connection/AbstractConnectionResolver.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public function __construct( $source, array $args, AppContext $context, ResolveI
168168

169169
/**
170170
* @todo This exists for b/c, where extenders may be directly accessing `$this->args` in ::get_loader() or even `::get_args()`.
171-
* We can remove this once the rest of lifecyle has been updated.
171+
* We can remove this once the rest of lifecycle has been updated.
172172
*/
173173
$this->args = $args;
174174

@@ -1131,59 +1131,59 @@ public function get_offset() {
11311131
/**
11321132
* Returns the source of the connection.
11331133
*
1134-
* @deprecated @todo in favor of $this->get_source().
1134+
* @deprecated 1.24.0 in favor of $this->get_source().
11351135
*
11361136
* @return mixed
11371137
*/
11381138
public function getSource() {
1139-
_deprecated_function( __METHOD__, '@todo', static::class . '::get_source()' );
1139+
_deprecated_function( __METHOD__, '1.24.0', static::class . '::get_source()' );
11401140

11411141
return $this->get_source();
11421142
}
11431143

11441144
/**
11451145
* Returns the AppContext of the connection.
11461146
*
1147-
* @deprecated @todo in favor of $this->get_context().
1147+
* @deprecated 1.24.0 in favor of $this->get_context().
11481148
*/
11491149
public function getContext(): AppContext {
1150-
_deprecated_function( __METHOD__, '@todo', static::class . '::get_context()' );
1150+
_deprecated_function( __METHOD__, '1.24.0', static::class . '::get_context()' );
11511151

11521152
return $this->get_context();
11531153
}
11541154

11551155
/**
11561156
* Returns the ResolveInfo of the connection.
11571157
*
1158-
* @deprecated @todo in favor of $this->get_info().
1158+
* @deprecated 1.24.0 in favor of $this->get_info().
11591159
*/
11601160
public function getInfo(): ResolveInfo {
1161-
_deprecated_function( __METHOD__, '@todo', static::class . '::get_info()' );
1161+
_deprecated_function( __METHOD__, '1.24.0', static::class . '::get_info()' );
11621162

11631163
return $this->get_info();
11641164
}
11651165

11661166
/**
11671167
* Returns whether the connection should execute.
11681168
*
1169-
* @deprecated @todo in favor of $this->get_should_execute().
1169+
* @deprecated 1.24.0 in favor of $this->get_should_execute().
11701170
*/
11711171
public function getShouldExecute(): bool {
1172-
_deprecated_function( __METHOD__, '@todo', static::class . '::should_execute()' );
1172+
_deprecated_function( __METHOD__, '1.24.0', static::class . '::should_execute()' );
11731173

11741174
return $this->get_should_execute();
11751175
}
11761176

11771177
/**
11781178
* Returns the loader.
11791179
*
1180-
* @deprecated @todo in favor of $this->get_loader().
1180+
* @deprecated 1.24.0 in favor of $this->get_loader().
11811181
*
11821182
* @return \WPGraphQL\Data\Loader\AbstractDataLoader
11831183
* @throws \Exception
11841184
*/
11851185
protected function getLoader() {
1186-
_deprecated_function( __METHOD__, '@todo', static::class . '::get_loader()' );
1186+
_deprecated_function( __METHOD__, '1.24.0', static::class . '::get_loader()' );
11871187

11881188
return $this->get_loader();
11891189
}

wp-graphql.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Description: GraphQL API for WordPress
77
* Author: WPGraphQL
88
* Author URI: http://www.wpgraphql.com
9-
* Version: 1.23.0
9+
* Version: 1.24.0
1010
* Text Domain: wp-graphql
1111
* Domain Path: /languages/
1212
* Requires at least: 5.0
@@ -18,7 +18,7 @@
1818
* @package WPGraphQL
1919
* @category Core
2020
* @author WPGraphQL
21-
* @version 1.23.0
21+
* @version 1.24.0
2222
*/
2323

2424
// Exit if accessed directly.

0 commit comments

Comments
 (0)