Releases: wpengine/wp-graphql-content-blocks
Releases · wpengine/wp-graphql-content-blocks
v4.2.0
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
andwp_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
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
v4.0.1
v4.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.
- WHAT the breaking change is: Added new
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
inwpgraphql_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 makename
field nullable. - 9b0a63e: fix: Ensure valid
WP_Block_Type
before applyingAnchor
interfaces. - 2d4a218: fix: : rename
WPGraphQLHelpers
file to match class casing. The file name has been changed fromincludes/Utilities/WPGraphqlHelpers.php
toincludes/Utilities/WPGraphQLHelpers.php
. - d00ee4a: fix: rename
DomHelpers.php
toDOMHelpers.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 tonull
type names. - 43791db: chore: update PHPStan ruleset for stricter linting, and address newly-discovered tech debt.
v3.1.2
v3.1.1
v3.1.0
v3.0.0
Major Changes
-
f15f95c: Adds missing default value for content attribute CoreParagraph and CoreCode blocks. This will make the type of the content field
String!
instead ofString
-
9b71411: Feature: Add support for querying array type query data from blocks
Query source block attribute types are supported. See: https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#query-source
Patch Changes
- be7a34f: Interface Types are now registered with the Post Type's
graphql_single_name
, instead of the Post Type'sname
. Fixes a bug where invalid Types were registered.
v2.0.0
Major Changes
- 7251fb0: Fix: use
use_block_editor_for_post_type
instead ofpost_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 theeditorBlocks
field but that field will no longer exist on those Types.