Skip to content

0.2.0

Compare
Choose a tag to compare
@RandomHashTags RandomHashTags released this 20 Sep 21:26
· 185 commits to main since this release

Bug fixes and QOL improvements

Fixes

  • certain attributes that take an array requiring a comma separated html value instead of space separated
  • some html elements missing some attributes, or their value type being incorrect
  • attributes with an integer or HTMLElementAttribute array value type not being compilable
  • the type attribute not compiling correctly depending on the html element
  • the acceptCharset label not compiling to accept-charset
  • the role attribute accepting any string (now requires a HTMLElementAttribute.role case)

QOL

  • no more string interpolation for HTMLElementAttribute enum values (now they get compiled directly to their rawValue/htmlValue)
  • third-party function calls, literals, and enums are now compiled to interpolated values when declared as an attribute value
  • updates to README

Changes

  • data attribute now requires a tuple value type
  • unit tests now use swift-testing instead of XCTest

Updates

  • swift-syntax dependency to 600.0.0

Full Changelog: 0.1.0...0.2.0