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:
Font
statics have been updated to be theSelf
type (#108). - Infrastructure: Add
.editorconfig
for 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
dt
anddd
elements 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
accept
attribute (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-html
to match Apple conventions. - Fixed:
srcset
is 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
static
s (#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 nowExpressibleByArrayLiteral
(#23).Node
is nowEquatable
andHashable
(#48).Node
now supports Swift 5ExpressibleByStringInterpolation
(#48).
- Arrays of nodes are now contained within a
- The
mailto
API has been improved to takesubject
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?
0.2.1
0.2.0
What's new?
- Support for Carthage and CocoaPods
- A brand new module,
HtmlSnapshotTesting
for testing your HTML using SnapshotTesting - A new
debugRender
function, 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
enctype
form attribute helper
What's fixed?
- Fixed
thead
andtbody
element helpers to require nesting in atable
0.1.3
This release fixes how empty, non-void elements are closed.