Releases: pointfreeco/swift-html
Releases · pointfreeco/swift-html
0.5.0
What's Changed
- Added: Swift 6 concurrency support (thanks @adriansergheev, #104; @alephao, #107).
- Fixed: Conform
<link>toHasCrossorigin(thanks @atacan, #87) - Fixed:
Fontstatics have been updated to be theSelftype (#108). - Infrastructure: Add
.editorconfigfor consistent code formatting (thanks @Matejkob, #105).
New Contributors
- @Matejkob made their first contribution in #105
- @adriansergheev made their first contribution in #104
- @alephao made their first contribution in #107
- @atacan made their first contribution in #87
Full Changelog: 0.4.1...0.5.0
0.4.1
What's Changed
- Fixed: Support wrapping
dtandddelements indiv(thanks @nkalvi, #95). - Infrastructure: Update README (#86), modernize package to swift-tools 5.5. by @mbrandonw in #96; CI updates (thanks @nkalvi, #98); typo fixes (thanks @qmoya, #99).
New Contributors
Full Changelog: 0.4.0...0.5.0
0.4.0
- Added: Support for
viewport-fit(thanks @hallee). - Added: Support for the
acceptattribute (thanks @xavierLowmiller). - Added: an experimental rendered for XML,
_xmlRender. It is prefixed with an underscore for now. It renders valid XML and avoids rendering "void" (non-closing) HTML tags. - Changed: the package has been renamed to
swift-htmlto match Apple conventions. - Fixed:
srcsetis now rendered in a stable order. - Removed: support for Carthage and CocoaPods. If you depend on these package managers, you must pin to an older version than 0.4.0.
0.3.1
This minor release restores support for Swift 4.2!
0.3.0
What's new?
- Swift 5 support (#51).
- The element and attribute APIs have been completely revamped to use
statics (#39). - The underlying
NodeAPI has been improved!- Arrays of nodes are now contained within a
.fragmentcase, and.elementhas been updated to take a single child node, which may be a fragment (#23). Nodeis nowExpressibleByArrayLiteral(#23).Nodeis nowEquatableandHashable(#48).Nodenow supports Swift 5ExpressibleByStringInterpolation(#48).
- Arrays of nodes are now contained within a
- The
mailtoAPI has been improved to takesubjectand other parameters (#41). - There's a new
templatetag 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?
0.2.1
0.2.0
What's new?
- Support for Carthage and CocoaPods
- A brand new module,
HtmlSnapshotTestingfor testing your HTML using SnapshotTesting - A new
debugRenderfunction, which renders HTML with human-readable indentation - Support for iOS, tvOS, and watchOS
- Added a missing
style(unsafe:)attribute helper that takes non-static strings - Added a missing
enctypeform attribute helper
What's fixed?
- Fixed
theadandtbodyelement helpers to require nesting in atable
0.1.3
This release fixes how empty, non-void elements are closed.