0.13.0
Feature and improvement update by @RandomHashTags
Fixes
- reduced binary size bloat due to mishandling of
SwiftSyntaximports (moved all relevant macro code to theHTMLKitParsemodule) (commit)
Additions
HTMLKitParseproduct inPackage.swiftHTMLElementTypenow conforms toCaseIterableandHashable(commit)HTMLEncodingnow conforms toEquatable(commit)- Can now change the expansion result type from an HTML macro (using the new
resultType:option in the macro arguments; now supports chunking or streaming the expansion result)
Changes
- removed file comment headers (commit)
- removed some unnecessary/redundant bytes (type annotation, overrides, certain
returns) - no longer uses
FoundationEssentialsorFoundation(in non-test modules) (commit) innerHTMLis now only[Sendable]instead of[CustomStringConvertible & Sendable](commit)- moved some logic to their own files
- renamed some functions
- a lot of breaking changes (you won't be affected by these if you only use the macros)
- use opaque types instead of generics where applicable (commit)
Full Changelog: 0.12.1...0.13.0