Skip to content

v1.0.30 — Fix Livewire wire:snapshot JSON corruption from escaped [[ handling

Choose a tag to compare

@webwizo webwizo released this 20 Apr 16:57
· 15 commits to master since this release

Release Notes (v1.0.30)

Fixed

  • Resolved a regression introduced in v1.0.29 where escaped shortcode handling ([[) could alter non-shortcode content and corrupt Livewire wire:snapshot JSON.
  • Scoped unescape behavior to valid escaped shortcode tags only, so non-shortcode double brackets are preserved.

Impact

  • Fixes page-load/hydration failures in Livewire (and Filament, which depends on Livewire) caused by malformed snapshot JSON after shortcode compilation.

Tests

  • Added package regression test for issue #87 to ensure snapshot-like JSON data such as [[],{"s":"arr"}] is not modified.
  • Verified with Laravel + Livewire integration test using withShortcodes().

Reference
Closes: #87