Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 1.05 KB

File metadata and controls

46 lines (29 loc) · 1.05 KB

Upgrade Guide

0.6.0

Attribute replacement

  • HasAttributes::attributes() now updates existing attributes instead of replacing the full attribute bag.
  • Use replaceAttributes() when you need to discard previous attributes before applying new ones.

0.5.0

Runtime dependencies

  • ui-awesome/html-interop is no longer required at runtime by ui-awesome/html-mixin.
  • If your application uses enums from ui-awesome/html-interop, require it directly in your project.

Tag APIs now use UnitEnum

The following APIs now accept false|UnitEnum:

  • containerTag() / getContainerTag()
  • prefixTag() / getPrefixTag()
  • suffixTag() / getSuffixTag()

This replaces the interop-specific interface unions (BlockInterface, InlineInterface, VoidInterface).

Migration example

Before:

use UIAwesome\Html\Interop\Inline;

$component = $component->prefixTag(Inline::STRONG);

After (project enum):

enum InlineTag: string
{
    case STRONG = 'strong';
}

$component = $component->prefixTag(InlineTag::STRONG);