Skip to content

Releases: humanmade/rehydrator

v1.3.0

Choose a tag to compare

@kadamwhite kadamwhite released this 07 Sep 17:09
12f8dd4

1.3.0

What's Changed

Added

  • Introduced map_inner_blocks() helper: replace each inner block via a callback while keeping innerContent placeholders in sync. The callback may return blocks and literal HTML strings. Pattern resolution, transformations, and Template placeholder replacement all use it. (#22)

Fixed

  • Literal HTML between inner blocks (e.g. an <hr> separator or raw markup) is no longer discarded when a sibling is removed by a _delete transformation or when a nested pattern reference is resolved. (#22)
  • Freeform blocks between a resolved pattern's top-level blocks are now kept as literal innerContent chunks instead of being dropped. (#17 & #22, thanks @saarnilauri)
  • core/table blocks converted from legacy markup no longer fail block validation. Presentational attributes (valign, bgcolor, border, cellpadding, cellspacing) are stripped and hasFixedLayout is set explicitly to match what core/table saves. (#20)
  • replace_text() no longer corrupts blocks whose wrapper is a void element such as core/separator. Those blocks are left unchanged. (#18, thanks @saarnilauri)

Changed

  • rebuild_inner_content() is now a fallback for blocks whose placeholders don't line up with their children. Its core/cover early return, which left stale placeholders in place, is removed. (#22)
  • When rebuilding block wrapper markup, attribute names outside [a-zA-Z0-9:_.-] are dropped rather than re-emitted verbatim. No effect on standard block markup. (#18)

New Contributors

Full Changelog: v1.2.0...v1.3.0

v1.2.0

Choose a tag to compare

@kadamwhite kadamwhite released this 03 Sep 16:48
4c94d60

What's Changed

  • Introduce helper methods to modify class names in block markup and serialized attributes by @kadamwhite in #19
  • Bump version to 1.2.0 by @kadamwhite in #21

Full Changelog: v1.1.3...v1.2.0

v1.1.3

Choose a tag to compare

@kadamwhite kadamwhite released this 04 Aug 14:34
2e78d96

What's Changed

Full Changelog: v1.1.2...v1.1.3

v1.1.2

Choose a tag to compare

@kadamwhite kadamwhite released this 04 Aug 13:56
f21ee37

What's Changed

Full Changelog: v1.1.1...v1.1.2

v1.1.1

Choose a tag to compare

@kadamwhite kadamwhite released this 24 Jul 18:10
0337711

What's Changed

  • Allow chained search_replace calls to work properly by @kadamwhite in #8
  • Upgrade HMCS to stable and resolve PHPCompatibility error when running PHPCS by @kadamwhite in #9
  • Prepare v1.1.1 by @kadamwhite in #10

Full Changelog: v1.1.0...v1.1.1

v1.1.0

Choose a tag to compare

@kadamwhite kadamwhite released this 21 Jul 15:48
b53180d

What's Changed

New Contributors

Full Changelog: v1.0.0...v1.1.0

v1.0.0

Choose a tag to compare

@kadamwhite kadamwhite released this 15 Jul 14:38

What's Changed

New Contributors

Full Changelog: https://github.com/humanmade/rehydrator/commits/v1.0.0