diff --git a/.changeset/five-turtles-rule.md b/.changeset/five-turtles-rule.md deleted file mode 100644 index eac1b300..00000000 --- a/.changeset/five-turtles-rule.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": patch ---- - -Skip the Sonar Qube workflow if the user that opened the PR is not a member of the Github org diff --git a/.changeset/green-cows-accept.md b/.changeset/green-cows-accept.md deleted file mode 100644 index d758c4a9..00000000 --- a/.changeset/green-cows-accept.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": patch ---- - -Fix: prevent fatal errors when get_current_screen() is unset. diff --git a/.changeset/heavy-pans-excercise.md b/.changeset/heavy-pans-excercise.md deleted file mode 100644 index 8579dc4b..00000000 --- a/.changeset/heavy-pans-excercise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": minor ---- - -chore: Update Composer dev-dependencies to their latest (semver-compatible) versions. diff --git a/.changeset/large-cheetahs-flow.md b/.changeset/large-cheetahs-flow.md deleted file mode 100644 index a960e344..00000000 --- a/.changeset/large-cheetahs-flow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": minor ---- - -dev: Add `wpgraphql_content_blocks_pre_resolve_blocks` and `wp_graphql_content_blocks_resolve_blocks` filters. diff --git a/.changeset/late-poems-study.md b/.changeset/late-poems-study.md deleted file mode 100644 index 6ac78173..00000000 --- a/.changeset/late-poems-study.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": patch ---- - -chore: remediate non-code PHPStan errors in phpstan-baseline.neon diff --git a/.changeset/light-frogs-grow.md b/.changeset/light-frogs-grow.md deleted file mode 100644 index 0aaf2931..00000000 --- a/.changeset/light-frogs-grow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": patch ---- - -ci: test against WordPress 6.6 diff --git a/CHANGELOG.md b/CHANGELOG.md index 61b97e90..c1a68f06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # WPGraphQL Content Blocks +## 4.2.0 + +### Minor Changes + +- 7514021: chore: Update Composer dev-dependencies to their latest (semver-compatible) versions. +- b64583f: dev: Add `wpgraphql_content_blocks_pre_resolve_blocks` and `wp_graphql_content_blocks_resolve_blocks` filters. + +### Patch Changes + +- de885f1: Skip the Sonar Qube workflow if the user that opened the PR is not a member of the Github org +- 6ced628: Fix: prevent fatal errors when get_current_screen() is unset. +- 58b6792: chore: remediate non-code PHPStan errors in phpstan-baseline.neon +- c3e11b1: ci: test against WordPress 6.6 + ## 4.1.0 ### Minor Changes diff --git a/includes/WPGraphQLContentBlocks.php b/includes/WPGraphQLContentBlocks.php index 6434e2fb..7917cfe9 100644 --- a/includes/WPGraphQLContentBlocks.php +++ b/includes/WPGraphQLContentBlocks.php @@ -75,7 +75,7 @@ private function setup_constants(): void { $main_file_path = dirname( __DIR__ ) . '/wp-graphql.php'; // Plugin version. - $this->define( 'WPGRAPHQL_CONTENT_BLOCKS_VERSION', '4.1.0' ); + $this->define( 'WPGRAPHQL_CONTENT_BLOCKS_VERSION', '4.2.0' ); // Plugin Folder Path. $this->define( 'WPGRAPHQL_CONTENT_BLOCKS_PLUGIN_DIR', plugin_dir_path( $main_file_path ) ); // Plugin Root File. diff --git a/package.json b/package.json index b041cc5c..cf41b4d1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@wpengine/wp-graphql-content-blocks", "private": true, - "version": "4.1.0", + "version": "4.2.0", "engines": { "node": ">=16.0.0" }, diff --git a/readme.txt b/readme.txt index 37cce230..2aa2cf00 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: blakewpe, chriswiegman, joefusco, matthewguywright, TeresaGobble, Tags: faustjs, faust, headless, decoupled, gutenberg Requires at least: 5.7 Tested up to: 6.6.2 -Stable tag: 4.1.0 +Stable tag: 4.2.0 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -25,6 +25,20 @@ Extends WPGraphQL to support querying (Gutenberg) Blocks as data. == Changelog == += 4.2.0 = + +### Minor Changes + +- 7514021: chore: Update Composer dev-dependencies to their latest (semver-compatible) versions. +- b64583f: dev: Add `wpgraphql_content_blocks_pre_resolve_blocks` and `wp_graphql_content_blocks_resolve_blocks` filters. + +### Patch Changes + +- de885f1: Skip the Sonar Qube workflow if the user that opened the PR is not a member of the Github org +- 6ced628: Fix: prevent fatal errors when get_current_screen() is unset. +- 58b6792: chore: remediate non-code PHPStan errors in phpstan-baseline.neon +- c3e11b1: ci: test against WordPress 6.6 + = 4.1.0 = ### Minor Changes @@ -52,32 +66,4 @@ Extends WPGraphQL to support querying (Gutenberg) Blocks as data. - 8d8ce66: fix: refactor `Block::resolve_block_attributes_recursive()` and improve type safety - a910d62: fix: Don't overload `NodeWithEditorBlocks.flat` on implementing Interfaces. -= 4.0.0 = - -### Major Changes - -- ed23a32: MAJOR: Update Schema to reflect latest WordPress 6.5 changes. - - - WHAT the breaking change is: Added new `rich-text` type - - WHY the change was made: WordPress 6.5 replaced some of the attribute types from string to `rich-text` causing breaking changes to the existing block fields. - - HOW a consumer should update their code: If users need to use WordPress >= 6.5 they need to update this plugin to the latest version and update their graphql schemas. - -### Patch Changes - -- d62e8db: chore: remove `squizlabs/php_codesniffer` from Composer's direct dependencies. -- e348494: fix: handle arrays before casting when using `Block::normalize_attribute_value()` -- 7bf6bcb: fix: Change Block:get_block_attribute_fields()`$prefix parameter be an optional`string`. -- e6b4ac4: chore: update Composer dev-deps and lint -- 05b21b5: fix: Update parameter type for `$supported_blocks_for_post_type_context` in `wpgraphql_content_blocks_should_apply_post_type_editor_blocks_interfaces` to support boolean values -- 7b49863: chore: Bump PHPStan.neon.dist to level 8 and generate baseline of existing tech debt. -- 0c8e2c7: fix: check for `post_content` before attempting to parse them. -- 8eb1bb8: chore: remove unnecessary `isset()` in Anchor::get_block_interfaces(). -- bdff4fb: dev: inline and remove `Block::resolve()` and make `name` field nullable. -- 9b0a63e: fix: Ensure valid `WP_Block_Type` before applying `Anchor` interfaces. -- 2d4a218: fix: : rename `WPGraphQLHelpers` file to match class casing. The file name has been changed from `includes/Utilities/WPGraphqlHelpers.php` to `includes/Utilities/WPGraphQLHelpers.php`. -- d00ee4a: fix: rename `DomHelpers.php` to `DOMHelpers.php` and improve type-safety of internal methods. -- 66f74fb: chore: stub WP_Post_Type and boostrap wp-graphql-content-blocks.php when scanning with PHPStan -- ad03a21: fix: Don't register `NodeWithEditorBlocks` interface to `null` type names. -- 43791db: chore: update PHPStan ruleset for stricter linting, and address newly-discovered tech debt. - -[View the full changelog](https://github.com/wpengine/wp-graphql-content-blocks/blob/main/CHANGELOG.md) +[View the full changelog](https://github.com/wpengine/wp-graphql-content-blocks/blob/main/CHANGELOG.md) \ No newline at end of file diff --git a/wp-graphql-content-blocks.php b/wp-graphql-content-blocks.php index c8fa64fd..c7b7e6ba 100644 --- a/wp-graphql-content-blocks.php +++ b/wp-graphql-content-blocks.php @@ -8,7 +8,7 @@ * License URI: https://www.gnu.org/licenses/gpl-2.0.html * Text Domain: wp-graphql-content-blocks * Domain Path: /languages - * Version: 4.1.0 + * Version: 4.2.0 * Requires PHP: 7.4 * Requires at least: 5.7 *