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/giant-buttons-decide.md b/.changeset/giant-buttons-decide.md deleted file mode 100644 index c9c7d771..00000000 --- a/.changeset/giant-buttons-decide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": minor ---- - -fix: cleanup constants and refactor autoload handling to improve Composer compatibility. 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/.changeset/silly-lions-study.md b/.changeset/silly-lions-study.md deleted file mode 100644 index a9763a7f..00000000 --- a/.changeset/silly-lions-study.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": patch ---- - -tests: lint and format PHPUnit tests diff --git a/.changeset/smooth-years-love.md b/.changeset/smooth-years-love.md deleted file mode 100644 index 1d1b13ac..00000000 --- a/.changeset/smooth-years-love.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": minor ---- - -dev: make `PluginUpdater` namespaced functions PSR-4 compatible. diff --git a/CHANGELOG.md b/CHANGELOG.md index 61b97e90..3b99a173 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # WPGraphQL Content Blocks +## 4.2.0 + +### Minor Changes + +- 1d4fdc9: fix: cleanup constants and refactor autoload handling to improve Composer compatibility. +- 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. +- 179948c: dev: make `PluginUpdater` namespaced functions PSR-4 compatible. + +### 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 +- 89b6c60: tests: lint and format PHPUnit tests + ## 4.1.0 ### Minor Changes 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..cda0a168 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,23 @@ Extends WPGraphQL to support querying (Gutenberg) Blocks as data. == Changelog == += 4.2.0 = + +### Minor Changes + +- 1d4fdc9: fix: cleanup constants and refactor autoload handling to improve Composer compatibility. +- 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. +- 179948c: dev: make `PluginUpdater` namespaced functions PSR-4 compatible. + +### 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 +- 89b6c60: tests: lint and format PHPUnit tests + = 4.1.0 = ### Minor Changes @@ -52,32 +69,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 00089f6d..b9ae95e7 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 *