Skip to content

v4.0.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 09 Apr 15:13
· 12 commits to main since this release
6468020

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 optionalstring`.
  • 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.