Skip to content

Commit 3942941

Browse files
authored
Merge pull request #3025 from wp-graphql/release/v1.20.0
release: v1.20.0
2 parents 162424b + 25d9ef3 commit 3942941

File tree

84 files changed

+1764
-810
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+1764
-810
lines changed

CHANGELOG.md

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

3+
## 1.20.0
4+
5+
### New Features
6+
7+
- [#3013](https://github.com/wp-graphql/wp-graphql/pull/3013): feat: output GRAPHQL_DEBUG message if requested amount is larger than connection limit. Thanks @justlevine!
8+
- [#3008](https://github.com/wp-graphql/wp-graphql/pull/3008): perf: Expose graphql_should_analyze_queries as setting. Thanks @justlevine!
9+
10+
### Chores / Bugfixes
11+
12+
- [#3022](https://github.com/wp-graphql/wp-graphql/pull/3022): chore: add @justlevine to list of contributors! 🙌 🥳
13+
- [#3011](https://github.com/wp-graphql/wp-graphql/pull/3011): chore: update composer dev-dependencies and use php-compatibility:develop branch to 8.0+ lints. Thanks @justlevine!
14+
- [#3010](https://github.com/wp-graphql/wp-graphql/pull/3010): chore: implement stricter PHPDoc types. Thanks @justlevine!
15+
- [#3009](https://github.com/wp-graphql/wp-graphql/pull/3009): chore: implement stricter PHPStan config and clean up unnecessary type-guards. Thanks @justlevine!
16+
- [#3007](https://github.com/wp-graphql/wp-graphql/pull/3007): fix: call html_entity_decode() with explicit flags and decode single-quotes. Thanks @justlevine!
17+
- [#3006](https://github.com/wp-graphql/wp-graphql/pull/3006): fix: replace deprecated AbstractConnectionResolver::setQueryArg() call with ::set_query_arg(). Thanks @justlevine!
18+
- [#3004](https://github.com/wp-graphql/wp-graphql/pull/3004): docs: Update using-data-from-custom-database-tables.md
19+
- [#2998](https://github.com/wp-graphql/wp-graphql/pull/2998): docs: Update build-your-first-wpgraphql-extension.md. Thanks @Jacob-Daniel!
20+
- [#2997](https://github.com/wp-graphql/wp-graphql/pull/2997): docs: update wpgraphql-concepts.md. Thanks @Jacob-Daniel!
21+
- [#2996](https://github.com/wp-graphql/wp-graphql/pull/2996): fix: Field id duplicates uri field description. Thanks @marcinkrzeminski!
22+
323
## 1.19.0
424

525
### New Features

access-functions.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ function get_graphql_register_action() {
150150
*
151151
* Should be used at the `graphql_register_types` hook.
152152
*
153-
* @param mixed|string|array<string> $interface_names Array of one or more names of the GraphQL Interfaces to apply to the GraphQL Types
154-
* @param mixed|string|array<string> $type_names Array of one or more names of the GraphQL Types to apply the interfaces to.
153+
* @param string|string[] $interface_names Array of one or more names of the GraphQL Interfaces to apply to the GraphQL Types
154+
* @param string|string[] $type_names Array of one or more names of the GraphQL Types to apply the interfaces to.
155155
*
156156
* Example:
157157
* The following would register the "MyNewInterface" interface to the Post and Page type in the
@@ -819,10 +819,10 @@ function get_graphql_setting( string $option_name, $default_value = '', $section
819819

820820
/**
821821
* Filter the section fields
822-
*
823-
* @param array $section_fields The values of the fields stored for the section
824-
* @param string $section_name The name of the section
825-
* @param mixed $default_value The default value for the option being retrieved
822+
823+
* @param array<string,mixed> $section_fields The values of the fields stored for the section
824+
* @param string $section_name The name of the section
825+
* @param mixed $default_value The default value for the option being retrieved
826826
*/
827827
$section_fields = apply_filters( 'graphql_get_setting_section_fields', $section_fields, $section_name, $default_value );
828828

@@ -834,11 +834,11 @@ function get_graphql_setting( string $option_name, $default_value = '', $section
834834
/**
835835
* Filter the value before returning it
836836
*
837-
* @param mixed $value The value of the field
838-
* @param mixed $default_value The default value if there is no value set
839-
* @param string $option_name The name of the option
840-
* @param array $section_fields The setting values within the section
841-
* @param string $section_name The name of the section the setting belongs to
837+
* @param mixed $value The value of the field
838+
* @param mixed $default_value The default value if there is no value set
839+
* @param string $option_name The name of the option
840+
* @param array<string,mixed> $section_fields The setting values within the section
841+
* @param string $section_name The name of the section the setting belongs to
842842
*/
843843
return apply_filters( 'graphql_get_setting_section_field_value', $value, $default_value, $option_name, $section_fields, $section_name );
844844
}

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"codeception/util-universalframework": "^1.0",
4040
"lucatume/wp-browser": "^3.1.6",
4141
"phpcompatibility/phpcompatibility-wp": "^2.1",
42+
"phpcompatibility/php-compatibility": "dev-develop as 9.9.9",
4243
"phpstan/extension-installer": "^1.1",
4344
"phpstan/phpstan": "~1.10.18",
4445
"phpunit/phpunit": "^9.5",

0 commit comments

Comments
 (0)