Skip to content

Releases: wpengine/wp-graphql-content-blocks

v4.3.2

12 Dec 16:51
cab682e
Compare
Choose a tag to compare

Patch Changes

  • c8832fc: fix: improve handling of empty blocks in ContentBlocksResolver.
  • 9a2ebf7: fix: Ensure correct EditorBlock.type field resolution.

v4.3.1

14 Nov 17:21
c09aeb7
Compare
Choose a tag to compare

Patch Changes

  • f99f768: Correct version definition

v4.3.0

11 Nov 16:32
6f5c0b6
Compare
Choose a tag to compare

Minor Changes

  • d123b81: dev: Refactor attribute resolution into Data\BlockAttributeResolver
  • d123b81: feat: add support for parsing (deprecated) meta attributes.

Patch Changes

  • 96bad40: tests: fix setUp()/tearDown() methods to prevent PHPUnit lifecycle issues.
  • f898d61: tests : Add tests for CoreList and CoreListItem blocks.
  • 3b32f06: tests : Backfill tests for Core Image block.
  • 7301ed9: tests: Add tests for CoreHeading block
  • d4d7374: tests : Backfill tests for Core Video block.
  • 3a1157b: fix: Correctly parse nested attribute and tag sources.
  • 8b2e168: tests : Add tests for CoreSeparator block.
  • 962081d: tests: Add tests for CoreParagraph block
  • 5915c06: tests: Add tests for CorePreformatted Block
  • 3a1157b: tests: backfill tests for CoreTable attributes.
  • a02e75a: tests: Add tests for CoreCode Block
  • c6bdab0: tests : Add tests for CoreQuote block.
  • a38e479: tests : backfill tests for ContentBlockResolver

v4.2.0

19 Sep 17:24
3fb784d
Compare
Choose a tag to compare

Minor Changes

  • 766737d: 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.
  • bced76d: feat: expose EditorBlock.type field

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
  • 27f459f: tests: fix PHP deprecation notices
  • 4f4b851: tests: fix order of expected/actual values passed to asserts.
  • 89b6c60: tests: lint and format PHPUnit tests
  • 65f0c2d: Update @since @todo tags and @todo placeholders in _deprecated_function calls

v4.1.0

14 Aug 10:21
6192a96
Compare
Choose a tag to compare

Minor Changes

  • 6241c4e: fix: prevent fatal errors by improving type-safety and returning early when parsing HTML.
    The following methods have been deprecated for their stricter-typed counterparts:
    • DOMHelpers::parseAttribute() => ::parse_attribute()
    • DOMHelpers::parseFirstNodeAttribute() => ::parse_first_node_attribute()
    • DOMHelpers::parseHTML() => ::parse_html()
    • DOMHelpers::getElementsFromHTML() => ::get_elements_from_html()
    • DOMHelpers::parseText() => ::parse_text()
    • DOMHelpers::findNodes()=> ::find_nodes()

Patch Changes

  • 2b947dc: chore: update Composer dev-dependencies and fix resulting issues.
  • 205da8c: ci: replace docker-compose commands with docker compose
  • 5c21ce3: Bug fix. Reusable block isn't resolved inside innerBlocks.

v4.0.1

25 Jun 14:05
7c3a6d7
Compare
Choose a tag to compare

Patch Changes

  • 39e8181: Bug fix: CoreTable column alignment returns null
  • 8d8ce66: fix: refactor Block::resolve_block_attributes_recursive() and improve type safety
  • a910d62: fix: Don't overload NodeWithEditorBlocks.flat on implementing Interfaces.

v4.0.0

09 Apr 15:13
6468020
Compare
Choose a tag to compare

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.

v3.1.2

28 Feb 17:45
5ea315c
Compare
Choose a tag to compare

Patch Changes

  • 1117a18: Fixed issue with updater functionality.

v3.1.1

28 Feb 16:49
0ab01f1
Compare
Choose a tag to compare

Patch Changes

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

v3.1.0

28 Feb 16:24
1802da7
Compare
Choose a tag to compare

Minor Changes

  • 9fab724: Added support for automatic updates hosted from WP Engine infrastructure. Includes warnings when major versions with potential breaking changes are released.