Skip to content

0.3.0

Compare
Choose a tag to compare
@stephencelis stephencelis released this 26 Mar 14:35

What's new?

  • Swift 5 support (#51).
  • The element and attribute APIs have been completely revamped to use statics (#39).
  • The underlying Node API has been improved!
    • Arrays of nodes are now contained within a .fragment case, and .element has been updated to take a single child node, which may be a fragment (#23).
    • Node is now ExpressibleByArrayLiteral (#23).
    • Node is now Equatable and Hashable (#48).
    • Node now supports Swift 5 ExpressibleByStringInterpolation (#48).
  • The mailto API has been improved to take subject and other parameters (#41).
  • There's a new template tag helper (#43).

The cumulative changes make for a big difference in API, but we think it's worth it!

-let link: Node = a([href("/")], ["Hello, ", .text(name), "!"])
+let link: Node = .a(attributes: [.href("/")], "Hello, \(name)!")

What's fixed?

  • Both summary/details and fieldset/legend have been fixed to compile correctly (#42).
  • The HtmlSnapshotTesting module has been fixed on Carthage by disabling bit-code (#49).