Skip to content

v1.2.0

Choose a tag to compare

@timnarr timnarr released this 05 Nov 12:17
· 2 commits to main since this release

Added

  • ensureHashed() field method: New field method to ensure a string starts with a hash (#). This complements the existing ensureLeft() and ensureRight() methods for consistent string formatting.
  • getUsedBlockTypes() function: Extract all used block types from a Blocks object or array of blocks. Useful for conditional CSS loading based on which blocks are used on a page. Returns an array of unique block type strings.

Changed

  • Updated README documentation
  • Updated composer.json

Full Changelog: v1.1.0...v1.2.0