From 64680205f30ee7940ef07638d3ff86933955b785 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 9 Apr 2024 16:12:56 +0100 Subject: [PATCH] Release Plugin (#202) * Release Plugin * Update readme.txt --------- Co-authored-by: github-actions[bot] Co-authored-by: Theofanis Despoudis <328805+theodesp@users.noreply.github.com> --- .changeset/clean-crews-draw.md | 5 ---- .changeset/famous-hats-deliver.md | 9 ------- .changeset/good-poems-battle.md | 5 ---- .changeset/great-pans-poke.md | 5 ---- .changeset/loud-carpets-dress.md | 5 ---- .changeset/neat-ties-prove.md | 5 ---- .changeset/popular-gifts-shop.md | 5 ---- .changeset/quick-maps-exercise.md | 5 ---- .changeset/selfish-rockets-allow.md | 5 ---- .changeset/serious-numbers-chew.md | 5 ---- .changeset/shaggy-walls-rush.md | 5 ---- .changeset/sharp-panthers-own.md | 5 ---- .changeset/tame-baboons-juggle.md | 5 ---- .changeset/tough-jokes-turn.md | 5 ---- .changeset/unlucky-deers-remain.md | 5 ---- .changeset/wild-hairs-jog.md | 5 ---- CHANGELOG.md | 28 +++++++++++++++++++++ includes/WPGraphQLContentBlocks.php | 2 +- package.json | 2 +- readme.txt | 38 +++++++++++++++++++++++------ wp-graphql-content-blocks.php | 2 +- 21 files changed, 61 insertions(+), 95 deletions(-) delete mode 100644 .changeset/clean-crews-draw.md delete mode 100644 .changeset/famous-hats-deliver.md delete mode 100644 .changeset/good-poems-battle.md delete mode 100644 .changeset/great-pans-poke.md delete mode 100644 .changeset/loud-carpets-dress.md delete mode 100644 .changeset/neat-ties-prove.md delete mode 100644 .changeset/popular-gifts-shop.md delete mode 100644 .changeset/quick-maps-exercise.md delete mode 100644 .changeset/selfish-rockets-allow.md delete mode 100644 .changeset/serious-numbers-chew.md delete mode 100644 .changeset/shaggy-walls-rush.md delete mode 100644 .changeset/sharp-panthers-own.md delete mode 100644 .changeset/tame-baboons-juggle.md delete mode 100644 .changeset/tough-jokes-turn.md delete mode 100644 .changeset/unlucky-deers-remain.md delete mode 100644 .changeset/wild-hairs-jog.md diff --git a/.changeset/clean-crews-draw.md b/.changeset/clean-crews-draw.md deleted file mode 100644 index e3216488..00000000 --- a/.changeset/clean-crews-draw.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": patch ---- - -chore: remove `squizlabs/php_codesniffer` from Composer's direct dependencies. diff --git a/.changeset/famous-hats-deliver.md b/.changeset/famous-hats-deliver.md deleted file mode 100644 index 0c2061d0..00000000 --- a/.changeset/famous-hats-deliver.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": major ---- - -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. diff --git a/.changeset/good-poems-battle.md b/.changeset/good-poems-battle.md deleted file mode 100644 index 7e2f3b4f..00000000 --- a/.changeset/good-poems-battle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": patch ---- - -fix: handle arrays before casting when using `Block::normalize_attribute_value()` diff --git a/.changeset/great-pans-poke.md b/.changeset/great-pans-poke.md deleted file mode 100644 index 51ea9bb2..00000000 --- a/.changeset/great-pans-poke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": patch ---- - -fix: Change Block:get_block_attribute_fields()`$prefix parameter be an optional`string`. diff --git a/.changeset/loud-carpets-dress.md b/.changeset/loud-carpets-dress.md deleted file mode 100644 index b966eb49..00000000 --- a/.changeset/loud-carpets-dress.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": patch ---- - -chore: update Composer dev-deps and lint diff --git a/.changeset/neat-ties-prove.md b/.changeset/neat-ties-prove.md deleted file mode 100644 index 5bd6aaaa..00000000 --- a/.changeset/neat-ties-prove.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": patch ---- - -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 diff --git a/.changeset/popular-gifts-shop.md b/.changeset/popular-gifts-shop.md deleted file mode 100644 index 0bc19ed2..00000000 --- a/.changeset/popular-gifts-shop.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": patch ---- - -chore: Bump PHPStan.neon.dist to level 8 and generate baseline of existing tech debt. diff --git a/.changeset/quick-maps-exercise.md b/.changeset/quick-maps-exercise.md deleted file mode 100644 index 59a4d324..00000000 --- a/.changeset/quick-maps-exercise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": patch ---- - -fix: check for `post_content` before attempting to parse them. diff --git a/.changeset/selfish-rockets-allow.md b/.changeset/selfish-rockets-allow.md deleted file mode 100644 index 6532ec06..00000000 --- a/.changeset/selfish-rockets-allow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": patch ---- - -chore: remove unnecessary `isset()` in Anchor::get_block_interfaces(). diff --git a/.changeset/serious-numbers-chew.md b/.changeset/serious-numbers-chew.md deleted file mode 100644 index 66a1000f..00000000 --- a/.changeset/serious-numbers-chew.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": patch ---- - -dev: inline and remove `Block::resolve()` and make `name` field nullable. diff --git a/.changeset/shaggy-walls-rush.md b/.changeset/shaggy-walls-rush.md deleted file mode 100644 index 266fbe88..00000000 --- a/.changeset/shaggy-walls-rush.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": patch ---- - -fix: Ensure valid `WP_Block_Type` before applying `Anchor` interfaces. diff --git a/.changeset/sharp-panthers-own.md b/.changeset/sharp-panthers-own.md deleted file mode 100644 index 63c31e78..00000000 --- a/.changeset/sharp-panthers-own.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": patch ---- - -fix: : rename `WPGraphQLHelpers` file to match class casing. The file name has been changed from `includes/Utilities/WPGraphqlHelpers.php` to `includes/Utilities/WPGraphQLHelpers.php`. diff --git a/.changeset/tame-baboons-juggle.md b/.changeset/tame-baboons-juggle.md deleted file mode 100644 index 84da428e..00000000 --- a/.changeset/tame-baboons-juggle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": patch ---- - -fix: rename `DomHelpers.php` to `DOMHelpers.php` and improve type-safety of internal methods. diff --git a/.changeset/tough-jokes-turn.md b/.changeset/tough-jokes-turn.md deleted file mode 100644 index 7d0e1c33..00000000 --- a/.changeset/tough-jokes-turn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": patch ---- - -chore: stub WP_Post_Type and boostrap wp-graphql-content-blocks.php when scanning with PHPStan diff --git a/.changeset/unlucky-deers-remain.md b/.changeset/unlucky-deers-remain.md deleted file mode 100644 index b411e605..00000000 --- a/.changeset/unlucky-deers-remain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": patch ---- - -fix: Don't register `NodeWithEditorBlocks` interface to `null` type names. diff --git a/.changeset/wild-hairs-jog.md b/.changeset/wild-hairs-jog.md deleted file mode 100644 index 417a9aea..00000000 --- a/.changeset/wild-hairs-jog.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": patch ---- - -chore: update PHPStan ruleset for stricter linting, and address newly-discovered tech debt. diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fbde974..b0b0aa8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,33 @@ # WPGraphQL Content Blocks +## 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. + ## 3.1.2 ### Patch Changes diff --git a/includes/WPGraphQLContentBlocks.php b/includes/WPGraphQLContentBlocks.php index e10bc129..ef6b8bea 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', '3.1.2' ); + $this->define( 'WPGRAPHQL_CONTENT_BLOCKS_VERSION', '4.0.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 16a1f519..eebe737e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@wpengine/wp-graphql-content-blocks", "private": true, - "version": "3.1.2", + "version": "4.0.0", "engines": { "node": ">=16.0.0" }, diff --git a/readme.txt b/readme.txt index 7f750c23..cfbafd05 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.5 -Stable tag: 3.1.2 +Stable tag: 4.0.0 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -25,6 +25,34 @@ Extends WPGraphQL to support querying (Gutenberg) Blocks as data. == Changelog == += 4.0.0 = + +### Breaking Changes + +- ed23a32: BREAKING: 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. + = 3.1.2 = ### Patch Changes @@ -37,10 +65,4 @@ Extends WPGraphQL to support querying (Gutenberg) Blocks as data. - bc32b94: No functional changes between 3.1.0 and 3.1.1. This was tagged due to pipeline issues during the 3.1.0 release. -= 3.1.0 = - -### Minor Changes - -- 9fab724: Added support for automatic updates hosted from WP Engine infrastructure. Includes warnings when major versions with potential breaking changes are released. - -[View the full changelog](https://github.com/wpengine/wp-graphql-content-blocks/blob/main/CHANGELOG.md) \ No newline at end of file +[View the full changelog](https://github.com/wpengine/wp-graphql-content-blocks/blob/main/CHANGELOG.md) diff --git a/wp-graphql-content-blocks.php b/wp-graphql-content-blocks.php index 80a3417a..5affe5ce 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: 3.1.2 + * Version: 4.0.0 * Requires PHP: 7.4 * Requires at least: 5.7 *