This library adheres to Semantic Versioning and Keep a CHANGELOG.
Nothing yet.
- The minimum PHP version is now 8.2.
- Reduce uses of validators within validators.
- "Classic" blocks, which have inner HTML but no block name, are no longer considered empty.
- Missing
alleyinteractive/composer-wordpress-autoloader
dependency.
with_innerhtml
parameter for matching blocks by their inner HTML. Includes companion\Alley\WP\Validator\Block_InnerHTML
validator.has_innerblocks
parameter for matching blocks by whether they have inner blocks. Includes companion\Alley\WP\Validator\Block_InnerBlocks_Count
validator.is_valid
parameter for matching blocks by custom validation logic.CONTAINS
andNOT CONTAINS
(case-sensitive), andLIKE
andNOT LIKE
(case-insensitive) operators toattrs
parameter.
- Passing a single block instance will return matches within its inner blocks.
- PHP 7.4 support.
- Incorrect namespace in
README.md
examples.
Initial release.