Skip to content

0.13.0

Choose a tag to compare

@RandomHashTags RandomHashTags released this 23 Aug 00:33
· 1 commit to main since this release

Feature and improvement update by @RandomHashTags

Fixes

  • reduced binary size bloat due to mishandling of SwiftSyntax imports (moved all relevant macro code to the HTMLKitParse module) (commit)

Additions

  • HTMLKitParse product in Package.swift
  • HTMLElementType now conforms to CaseIterable and Hashable (commit)
  • HTMLEncoding now conforms to Equatable (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 FoundationEssentials or Foundation (in non-test modules) (commit)
  • innerHTML is 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