Wpengine Wp Graphql Content Blocks Versions Save

Plugin that extends WPGraphQL to support querying (Gutenberg) Blocks as data

v4.0.0

1 month ago

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

2 months ago

Patch Changes

  • 1117a18: Fixed issue with updater functionality.

v3.1.1

2 months ago

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

2 months ago

Minor Changes

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

v3.0.0

3 months ago

Major Changes

Patch Changes

  • be7a34f: Interface Types are now registered with the Post Type's graphql_single_name, instead of the Post Type's name. Fixes a bug where invalid Types were registered.

v2.0.0

7 months ago

Major Changes

  • 7251fb0: Fix: use use_block_editor_for_post_type instead of post_type_supports when filtering the post types. BREAKING: Potential schema changes for GraphQL Types representing a Post Type that does not use the Block Editor. Each GraphQL Type representing a Post Type that does not have block editor support previously would have had the editorBlocks field but that field will no longer exist on those Types.

v1.2.1

7 months ago

Patch Changes

  • 54affda: Adds mediaDetails field in CoreImage block:

    {
      posts {
        nodes {
          editorBlocks {
            ... on CoreImage {
              mediaDetails {
                file
                sizes {
                  name
                  fileSize
                  height
                  width
                }
              }
            }
          }
        }
      }
    }
    

v1.2.0

8 months ago

Minor Changes

  • a118662: Added new wpgraphql_content_blocks_should_apply_post_type_editor_blocks_interfaces filter to allow controlling whether ${PostType}EditorBlock interfaces should be applied.

Patch Changes

  • 2e7f2e8: Refactored register_block_types to remove usages of register_graphql_interfaces_to_types to improve performance.

    Deprecated Anchor::register_to_block public static method.

v1.1.3

9 months ago

Patch Changes

  • db52dac: Rename utilities folder to Utilities
  • 748d846: Bug Fix. Boolean block attributes no longer always resolve as false.

v1.1.2

9 months ago

Patch Changes

  • 28fca4a: Bug Fix: CoreImage width attribute throws error.