Skip to content

0.6.0

Compare
Choose a tag to compare
@RandomHashTags RandomHashTags released this 12 Oct 10:33
· 156 commits to main since this release

Breaking changes

  • dropped requirement of declaring innerHTML values in an array
// previous version (no longer compilable in 0.6.0)
#div(attributes: [.class(["dark"])], [
    #p(["Macros are beautiful"])
])

// new version
#div(attributes: [.class(["dark"])],
    #p("Macros are beautiful")
)

New

  • can now escape HTML via #escapeHTML() macro or 4 String extension functions (HTML macros automatically escape characters)
  • writing string interpolation in HTML macros now throws a compiler warning saying it can introduce raw HTML
  • dynamic benchmarks

Other

  • fixed a case where creating a StaticString would not be permitted, even though it should've been
  • updated swift-syntax dependency url (was apple/swift-syntax, now swiftlang/swift-syntax)
  • more libraries benchmarked
  • updates to README, including
    • toned-down verbiage
    • benchmarks are now pngs
    • how to escape HTML

Full Changelog: 0.5.0...0.6.0