Skip to content

Commit

Permalink
Merge pull request #86 from Automattic/planned-release/1.2.2
Browse files Browse the repository at this point in the history
Planned release 1.2.2
  • Loading branch information
alecgeatches authored Apr 4, 2024
2 parents 71e9160 + 61100c3 commit 40dda37
Show file tree
Hide file tree
Showing 504 changed files with 1,230 additions and 632 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.2.2

- [**Update WPGraphQL to v1.22.1**](https://github.com/Automattic/vip-decoupled-bundle/pull/85): Updates WPGraphQL to v1.22.1

## 1.2.1

- [**Add preview URL filter**](https://github.com/Automattic/vip-decoupled-bundle/pull/81): Adds the ability to modify preview URL destinations.
Expand Down
38 changes: 0 additions & 38 deletions lib/wp-graphql-1.19.0/build/app.js

This file was deleted.

14 changes: 0 additions & 14 deletions lib/wp-graphql-1.19.0/build/graphiqlQueryComposer.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/wp-graphql-1.19.0/build/index.js

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ function get_graphql_register_action() {
*
* Should be used at the `graphql_register_types` hook.
*
* @param mixed|string|array<string> $interface_names Array of one or more names of the GraphQL Interfaces to apply to the GraphQL Types
* @param mixed|string|array<string> $type_names Array of one or more names of the GraphQL Types to apply the interfaces to.
* @param string|string[] $interface_names Array of one or more names of the GraphQL Interfaces to apply to the GraphQL Types
* @param string|string[] $type_names Array of one or more names of the GraphQL Types to apply the interfaces to.
*
* Example:
* The following would register the "MyNewInterface" interface to the Post and Page type in the
Expand Down Expand Up @@ -735,7 +735,7 @@ static function ( \WPGraphQL\Admin\Settings\SettingsRegistry $registry ) use ( $
*
* @param mixed|string|mixed[] $message The debug message
* @param array<string,mixed> $config The debug config. Should be an associative array of keys and values.
* $config['type'] will set the "type" of the log, default type is GRAPHQL_DEBUG.
* $config['type'] will set the "type" of the log, default type is GRAPHQL_DEBUG.
* Other fields added to $config will be merged into the debug entry.
*
* @return void
Expand Down Expand Up @@ -819,10 +819,10 @@ function get_graphql_setting( string $option_name, $default_value = '', $section

/**
* Filter the section fields
*
* @param array $section_fields The values of the fields stored for the section
* @param string $section_name The name of the section
* @param mixed $default_value The default value for the option being retrieved
* @param array<string,mixed> $section_fields The values of the fields stored for the section
* @param string $section_name The name of the section
* @param mixed $default_value The default value for the option being retrieved
*/
$section_fields = apply_filters( 'graphql_get_setting_section_fields', $section_fields, $section_name, $default_value );

Expand All @@ -834,11 +834,11 @@ function get_graphql_setting( string $option_name, $default_value = '', $section
/**
* Filter the value before returning it
*
* @param mixed $value The value of the field
* @param mixed $default_value The default value if there is no value set
* @param string $option_name The name of the option
* @param array $section_fields The setting values within the section
* @param string $section_name The name of the section the setting belongs to
* @param mixed $value The value of the field
* @param mixed $default_value The default value if there is no value set
* @param string $option_name The name of the option
* @param array<string,mixed> $section_fields The setting values within the section
* @param string $section_name The name of the section the setting belongs to
*/
return apply_filters( 'graphql_get_setting_section_field_value', $value, $default_value, $option_name, $section_fields, $section_name );
}
Expand Down Expand Up @@ -953,3 +953,16 @@ function str_ends_with( string $haystack, string $needle ): bool {
return $needle_length <= strlen( $haystack ) && 0 === substr_compare( $haystack, $needle, -$needle_length );
}
}

/**
* @param string $slug A unique slug to identify the admin notice by
* @param array<mixed> $config The config for the admin notice. Determines visibility, context, etc.
*/
function register_graphql_admin_notice( string $slug, array $config ): void {
add_action(
'graphql_admin_notices_init',
static function ( \WPGraphQL\Admin\AdminNotices $admin_notices ) use ( $slug, $config ) {
$admin_notices->add_admin_notice( $slug, $config );
}
);
}
File renamed without changes.
File renamed without changes.
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' => 'b46a34de121156c88432');
<?php return array('dependencies' => array('react', 'react-dom', 'wp-element', 'wp-hooks'), 'version' => 'e4db36ac3a701438f12c');
File renamed without changes.
38 changes: 38 additions & 0 deletions lib/wp-graphql/build/app.js

Large diffs are not rendered by default.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'react-dom', 'wp-element'), 'version' => 'afcdd7bc76e2b7fe5cd5');
<?php return array('dependencies' => array('react', 'react-dom', 'wp-element'), 'version' => '8737563331968d8f0aa0');
14 changes: 14 additions & 0 deletions lib/wp-graphql/build/graphiqlQueryComposer.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('wp-element', 'wp-hooks'), 'version' => '16cb921597c1ed7eed91');
<?php return array('dependencies' => array('wp-element', 'wp-hooks'), 'version' => '4e3fb6c1c0df33a85f55');
1 change: 1 addition & 0 deletions lib/wp-graphql/build/index.js

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
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.16.0' );
define( 'WPGRAPHQL_VERSION', '1.22.1' );
}

// Plugin Folder Path.
Expand Down
File renamed without changes.
File renamed without changes.
67 changes: 63 additions & 4 deletions lib/wp-graphql-1.19.0/readme.txt → lib/wp-graphql/readme.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
=== WPGraphQL ===
Contributors: jasonbahl, tylerbarnes1, ryankanner, hughdevore, chopinbach, kidunot89
Contributors: jasonbahl, tylerbarnes1, ryankanner, hughdevore, chopinbach, kidunot89, justlevine
Tags: GraphQL, JSON, API, Gatsby, Faust, Headless, Decoupled, Svelte, React, Nextjs, Vue, Apollo, REST, JSON, HTTP, Remote, Query Language
Requires at least: 5.0
Tested up to: 6.4.1
Tested up to: 6.4.3
Requires PHP: 7.1
Stable tag: 1.19.0
Stable tag: 1.22.1
License: GPL-3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -252,7 +252,66 @@ Composer dependencies are no longer versioned in Github. Recommended install sou

== Changelog ==

= 1.19.0=
= 1.22.1 =

**Chores / Bugfixes**

- [#3067](https://github.com/wp-graphql/wp-graphql/pull/3067): fix: respect show avatar setting
- [#3063](https://github.com/wp-graphql/wp-graphql/pull/3063): fix: fixes a bug in cursor stability filters that could lead to empty order
- [#3070](https://github.com/wp-graphql/wp-graphql/pull/3070): test(3063): Adds test for [#3063](https://github.com/wp-graphql/wp-graphql/pull/3063)

= 1.22.0 =

**New Features**

- [#3044](https://github.com/wp-graphql/wp-graphql/pull/3044): feat: add `graphql_pre_resolve_menu_item_connected_node` filter
- [#3039](https://github.com/wp-graphql/wp-graphql/pull/3043): feat: add `UniformResourceIdentifiable` interface to `Comment` type
- [#3020](https://github.com/wp-graphql/wp-graphql/pull/3020): feat: introduce `graphql_query_analyzer_get_headers` filter

**Chores / Bugfixes**

- [#3062](https://github.com/wp-graphql/wp-graphql/pull/3062): ci: pin wp-browser to "<3.5" to allow automated tests to run properly
- [#3057](https://github.com/wp-graphql/wp-graphql/pull/3057): fix: `admin_enqueue_scripts` callback should expect a possible `null` value passed to it
- [#3048](https://github.com/wp-graphql/wp-graphql/pull/3048): fix: `isPostsPage` on content type
- [#3043](https://github.com/wp-graphql/wp-graphql/pull/3043): fix: return empty when filtering `menuItems` by a location with no assigned items
- [#3045](https://github.com/wp-graphql/wp-graphql/pull/3045): fix: `UsersConnectionSearchColumnEnum` values should be prefixed with `user_`

= 1.21.0 =

**New Features**

- [#3035](https://github.com/wp-graphql/wp-graphql/pull/3035): feat: provide better error when field references a type that does not exist
- [#3027](https://github.com/wp-graphql/wp-graphql/pull/3027): feat: Add register_graphql_admin_notice API and intial use to inform users of the new WPGraphQL for ACF plugin

**Chores / Bugfixes**

- [#3038](https://github.com/wp-graphql/wp-graphql/pull/3038): chore(deps-dev): bump the composer group across 1 directories with 1 update. Thanks @dependabot!
- [#3033](https://github.com/wp-graphql/wp-graphql/pull/3033): fix: php deprecation error for dynamic properties on AppContext class
- [#3031](https://github.com/wp-graphql/wp-graphql/pull/3031): fix(graphiql): Allow GraphiQL to run even if a valid schema cannot be returned. Thanks @linucks!


= 1.20.0 =

**New Features**

- [#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!
- [#3008](https://github.com/wp-graphql/wp-graphql/pull/3008): perf: Expose graphql_should_analyze_queries as setting. Thanks @justlevine!

**Chores / Bugfixes**

- [#3022](https://github.com/wp-graphql/wp-graphql/pull/3022): chore: add @justlevine to list of contributors! 🙌 🥳
- [#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!
- [#3010](https://github.com/wp-graphql/wp-graphql/pull/3010): chore: implement stricter PHPDoc types. Thanks @justlevine!
- [#3009](https://github.com/wp-graphql/wp-graphql/pull/3009): chore: implement stricter PHPStan config and clean up unnecessary type-guards. Thanks @justlevine!
- [#3007](https://github.com/wp-graphql/wp-graphql/pull/3007): fix: call html_entity_decode() with explicit flags and decode single-quotes. Thanks @justlevine!
- [#3006](https://github.com/wp-graphql/wp-graphql/pull/3006): fix: replace deprecated AbstractConnectionResolver::setQueryArg() call with ::set_query_arg(). Thanks @justlevine!
- [#3004](https://github.com/wp-graphql/wp-graphql/pull/3004): docs: Update using-data-from-custom-database-tables.md
- [#2998](https://github.com/wp-graphql/wp-graphql/pull/2998): docs: Update build-your-first-wpgraphql-extension.md. Thanks @Jacob-Daniel!
- [#2997](https://github.com/wp-graphql/wp-graphql/pull/2997): docs: update wpgraphql-concepts.md. Thanks @Jacob-Daniel!
- [#2996](https://github.com/wp-graphql/wp-graphql/pull/2996): fix: Field id duplicates uri field description. Thanks @marcinkrzeminski!


= 1.19.0 =

**New Features**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ public function init() {
$this->admin_enabled = apply_filters( 'graphql_show_admin', true );
$this->graphiql_enabled = apply_filters( 'graphql_enable_graphiql', get_graphql_setting( 'graphiql_enabled', true ) );

$admin_notices = new AdminNotices();
$admin_notices->init();

// This removes the menu page for WPGraphiQL as it's now built into WPGraphQL
if ( $this->graphiql_enabled ) {
add_action(
Expand Down
Loading

0 comments on commit 40dda37

Please sign in to comment.